diff --git a/B4A/B4XMainPage.bas b/B4A/B4XMainPage.bas index 69aedea..f991039 100644 --- a/B4A/B4XMainPage.bas +++ b/B4A/B4XMainPage.bas @@ -205,6 +205,7 @@ Private Sub B4XPage_Created (Root1 As B4XView) Subs.agregaColumna("RECHAZOS", "R_PRECIO", "TEXT") Subs.agregaColumna("VENTAS", "V_PRECIO", "TEXT") Subs.agregaColumna("HIST_VENTAS","PLACA","TEXT") + Subs.agregaColumna("HIST_VENTAS","HVD_USUARIO","TEXT") Subs.agregaColumna("HIST_VENTAS","HVD_BCREDITO","TEXT") Subs.agregaColumna("HIST_VENTAS","HVD_RECHAZOCANT","TEXT") Subs.agregaColumna("HIST_VENTAS","CONSECUTIVO","TEXT") diff --git a/B4A/C_Principal.bas b/B4A/C_Principal.bas index 9d034ea..bed0fe2 100644 --- a/B4A/C_Principal.bas +++ b/B4A/C_Principal.bas @@ -1329,21 +1329,21 @@ Sub envioinfo ' End If -' c=Starter.skmt.ExecQuery("SELECT CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO FROM REPARTO_GEO") -' Log($"REPARTO_Cliente PENDIENTE: ${c.RowCount}"$) -' If c.RowCount>0 Then -' For i=0 To c.RowCount -1 -' c.Position=i -' -' Dim cmd As DBCommand -' cmd.Initialize -' cmd.Name = "insert_REPARTO_IZCA" -' cmd.Parameters = Array As Object(c.GetString("CLIENTE"), c.GetString("USUARIO"), c.GetString("FECHA_PUNTEO"), c.GetString("LATITUD"), c.GetString("LONGITUD"), c.GetString("ALMACEN"), c.GetString("RUTA_REPARTO"), c.GetString("RUTA_PREV"), c.GetString("FECHA_PREVENTA"), c.GetString("MOTIVO"), c.GetString("COMENTARIO"),c.GetString("TIPO")) -' reqManager.ExecuteCommand(cmd , $"ins_REPARTOPendientes_head_${c.GetString("CLIENTE")}"$) -' -' Next -' End If -' c.Close + c=Starter.skmt.ExecQuery("SELECT CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO FROM REPARTO_GEO") + Log($"REPARTO_Cliente PENDIENTE: ${c.RowCount}"$) + If c.RowCount>0 Then + For i=0 To c.RowCount -1 + c.Position=i + + Dim cmd As DBCommand + cmd.Initialize + cmd.Name = "insert_REPARTO_IZCA" + cmd.Parameters = Array As Object(c.GetString("CLIENTE"), c.GetString("USUARIO"), c.GetString("FECHA_PUNTEO"), c.GetString("LATITUD"), c.GetString("LONGITUD"), c.GetString("ALMACEN"), c.GetString("RUTA_REPARTO"), c.GetString("RUTA_PREV"), c.GetString("FECHA_PREVENTA"), c.GetString("MOTIVO"), c.GetString("COMENTARIO"),c.GetString("TIPO")) + reqManager.ExecuteCommand(cmd , $"ins_REPARTOPendientes_head_${c.GetString("CLIENTE")}"$) + + Next + End If + c.Close ' PCIK CIEGO c = Starter.skmt.ExecQuery("SELECT PC_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO") @@ -2204,6 +2204,7 @@ Sub JobDone(Job As HttpJob) Dim HVD_NUM_REGISTRO As String = records(result.Columns.Get("HVD_NUM_REGISTRO")) Dim HVD_RECHAZO As String = records(result.Columns.Get("HVD_RECHAZO")) Dim HVD_BCREDITO As String = records(result.Columns.Get("HVD_BCREDITO")) + Dim HVD_USUARIO As String = records(result.Columns.Get("HVD_USUARIO")) ' Dim HVD_PLACA As String = records(result.Columns.Get("HVD_PLACA")) Dim bcajas As String = 0 ' records(result.Columns.Get("HVD_BCAJAS")) Dim cantc As String = 0 'records(result.Columns.Get("HVD_CANTC")) @@ -2212,14 +2213,14 @@ Sub JobDone(Job As HttpJob) Log(HVD_PRONOMBRE & ", " & HVD_CANT & ", " &HVD_CLIENTE) If l_ruta.Text = "0" Then 'Si no hay ruta cargada, guardamos todos los clientes Log("No hay ruta, guardamos todos") - Starter.skmt.ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?)", Array As Object (HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT,HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, bcajas,cantc,consecutivo,bcajas,cantc,HVD_BCREDITO)) + Starter.skmt.ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO,HVD_USUARIO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?)", Array As Object (HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT,HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, bcajas,cantc,consecutivo,bcajas,cantc,HVD_BCREDITO,HVD_USUARIO)) Starter.skmt.ExecNonQuery2("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)", Array As Object (HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT,HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO)) Else 'Si ya hay ruta cargada, solo guardamos los clientes nuevos. ' Log("Hay ruta, guardamos los nuevos") - Private tc As Cursor = Starter.skmt.ExecQuery($"select HVD_CLIENTE from HIST_VENTAS where HVD_CLIENTE = '${HVD_CLIENTE}' and HVD_PROID = '${HVD_PROID}' AND HVD_CANT = '${HVD_CANT}' AND HVD_CODPROMO = '${HVD_CODPROMO}' "$) + Private tc As Cursor = Starter.skmt.ExecQuery($"select HVD_CLIENTE from HIST_VENTAS where HVD_CLIENTE = '${HVD_CLIENTE}' and HVD_PROID = '${HVD_PROID}' AND HVD_CANT = '${HVD_CANT}' AND HVD_CODPROMO = '${HVD_CODPROMO}' AND HVD_USUARIO = '${HVD_USUARIO}'"$) If tc.RowCount = 0 Then Log($"Guardamos ${HVD_CLIENTE}"$) - Starter.skmt.ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?)", Array As Object (HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT,HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, bcajas,cantc,consecutivo,bcajas,cantc,HVD_BCREDITO)) + Starter.skmt.ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO,HVD_USUARIO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?)", Array As Object (HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT,HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, bcajas,cantc,consecutivo,bcajas,cantc,HVD_BCREDITO,HVD_USUARIO)) Starter.skmt.ExecNonQuery2("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)", Array As Object (HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT,HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO)) End If End If @@ -2603,7 +2604,7 @@ Sub connecta_Click cmd.Initialize - cmd.Name = "select_ruta_re_REPG_IZCA5" + cmd.Name = "select_ruta_re_REPG_IZCA6" cmd.Parameters = Array As Object(ALMACEN, e_ruta.text, usuario) Log($"${ALMACEN}, ${e_ruta.text}, ${usuario}"$) reqManager.ExecuteQuery(cmd , 0, "ruta") diff --git a/B4A/Izca_Reparto.b4a b/B4A/Izca_Reparto.b4a index aa39052..d899d53 100644 --- a/B4A/Izca_Reparto.b4a +++ b/B4A/Izca_Reparto.b4a @@ -3018,7 +3018,7 @@ Version=12.8 #Region Project Attributes #ApplicationLabel: Izca Reparto #VersionCode: 1 - #VersionName: 5.09.26 + #VersionName: 6.03.16 'SupportedOrientations possible values: unspecified, landscape or portrait. #SupportedOrientations: portrait #CanInstallToExternalStorage: False diff --git a/B4A/Izca_Reparto.b4a.meta b/B4A/Izca_Reparto.b4a.meta index 1b4171d..ca2aa44 100644 --- a/B4A/Izca_Reparto.b4a.meta +++ b/B4A/Izca_Reparto.b4a.meta @@ -91,6 +91,6 @@ ModuleClosedNodes6=18,19,20,21 ModuleClosedNodes7= ModuleClosedNodes8= ModuleClosedNodes9= -NavigationStack=C_Clientes,caculaRutaGPS,590,0,C_Productos,Class_Globals,0,0,C_Principal,Class_Globals,0,0,C_Principal,b_venta_emp_Click,3039,0,C_Principal,b_aceptar_Click,3890,0,B4XMainPage,JobDone,380,0,Diseñador Visual,principal.bal,-100,6,C_Principal,b_terpc_Click,3535,0,C_Principal,JobDone,2484,0,C_Principal,CreateListItem,3840,0,C_Principal,connecta_Click,2599,0 +NavigationStack=C_Principal,b_terpc_Click,3535,0,C_Principal,CreateListItem,3840,0,C_Cliente,Class_Globals,0,0,C_Principal,e_ruta_EnterPressed,2626,0,B4XMainPage,B4XPage_Created,201,1,C_Principal,JobDone,2213,3,C_Principal,Subir_Click,902,0,C_Principal,envioinfo,1310,0,C_Principal,B4XPage_CloseRequest,2583,0,C_Principal,connecta_Click,2600,0 SelectedBuild=0 VisibleModules=1,2,3,4,5,6,7,8,9,10,16 diff --git a/B4A/Objects/AndroidManifest.xml b/B4A/Objects/AndroidManifest.xml index c8220b6..9108375 100644 --- a/B4A/Objects/AndroidManifest.xml +++ b/B4A/Objects/AndroidManifest.xml @@ -3,7 +3,7 @@ xmlns:android="http://schemas.android.com/apk/res/android" package="reparto_izca.keymon.lat" android:versionCode="1" - android:versionName="5.09.26" + android:versionName="6.03.16" android:installLocation="internalOnly"> diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/animatedcounter.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/animatedcounter.class index dc4d4a2..7aae2fd 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/animatedcounter.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/animatedcounter.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.class index 203e5fe..429890c 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar.class index 2fa25d6..9c2eadd 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/anotherprogressbar.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.class index 02111bb..5c597d8 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.class index 34e9640..872b8d3 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$_mnewversion.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$_mnewversion.class index 1acce16..f9ad42e 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$_mnewversion.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$_mnewversion.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$appupdater_BR.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$appupdater_BR.class index 8930503..138edf9 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$appupdater_BR.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater$appupdater_BR.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater.class index c49d6ae..7db6c4c 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/appupdater.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbitset.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbitset.class index ef943c8..960cde8 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbitset.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbitset.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbreadcrumb.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbreadcrumb.class index c84bd40..13db2ce 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbreadcrumb.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbreadcrumb.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbytesbuilder.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbytesbuilder.class index 4152652..2ec3dfb 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbytesbuilder.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xbytesbuilder.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.class index bd841b1..387b372 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache.class index 0a76bfa..adc2062 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcache.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcollections.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcollections.class index 9561629..9cc8528 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcollections.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcollections.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.class index d7006da..0f0f6b9 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.class index 6dfb2d0..af6c06b 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate.class index 2ab34c4..15d1d2c 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcolortemplate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.class index 3c6f7b4..6c7ded2 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox.class index b5aa0bf..8aeeb1c 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcombobox.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcomparatorsort.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcomparatorsort.class index a35736c..7c5f5c4 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcomparatorsort.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xcomparatorsort.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.class index 976fa44..5d90a46 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate.class index e40471f..2e817c9 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdatetemplate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.class index 7e46521..761d70b 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.class index 5f805d7..a9bd732 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.class index 3d9b846..a64f560 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog.class index 162d26d..c8d4501 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xdialog.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.class index 9991bf8..e9d908b 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield.class index d86a9a4..e1a294c 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xfloattextfield.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.class index 161b9d6..48228f4 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter.class index c47b2d0..ec65986 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xformatter.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4ximageview.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4ximageview.class index c3143ec..eba613f 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4ximageview.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4ximageview.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.class index dd24416..98aa8d2 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate.class index 182025b..18b180f 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xinputtemplate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.class index 39e0275..dbae9b2 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate.class index d71340c..8862ddb 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlisttemplate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.class index a4c8131..583fc8b 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator.class index 9dc240f..810502a 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xloadingindicator.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlongtexttemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlongtexttemplate.class index cd25130..842287a 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlongtexttemplate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xlongtexttemplate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.class index 237901a..15f9d02 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.class index ac209fd..963e1f2 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.class index 0367631..c577270 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.class index d72e261..dd23406 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage.class index 4b9e9fe..1a87a7e 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xmainpage.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xorderedmap.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xorderedmap.class index 6e866eb..2fbec70 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xorderedmap.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xorderedmap.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpages.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpages.class index a005875..e6307dd 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpages.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpages.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesdelegator.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesdelegator.class index 4f672ea..1c199a3 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesdelegator.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesdelegator.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.class index 8d2557e..312948c 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.class index 80db497..46d2f89 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.class index 21b95d3..a8a4d44 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.class index 297fab3..9f08d34 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.class index c241d43..17187a1 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager.class index d19b637..bd028df 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xpagesmanager.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.class index c34863d..2d63282 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus.class index 15993b5..ac1ccee 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xplusminus.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.class index 09ff4e9..d0629b0 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton.class index ff18e52..1928641 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xradiobutton.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.class index 5d174f9..aaba240 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate.class index 3bf38e7..c4f33b4 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsearchtemplate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xseekbar.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xseekbar.class index edbf5cc..d8e998f 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xseekbar.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xseekbar.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xset.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xset.class index 60e3be4..26023bc 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xset.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xset.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsignaturetemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsignaturetemplate.class index 9544786..68f5cb6 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsignaturetemplate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xsignaturetemplate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.class index b05fc76..7856b64 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch.class index ae88d46..ed9e49c 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xswitch.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.class index a1ef4b6..4f49927 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate.class index 89e1969..07de098 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/b4xtimedtemplate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/batteryutilities.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/batteryutilities.class index 0a5468e..2d1bdf1 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/batteryutilities.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/batteryutilities.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.class index 6173f9e..a60c598 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar.class index 2551141..2c7abe5 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_buscar.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.class index c4984d8..c85ddab 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.class index 83af068..a2d646c 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.class index a50907e..cbe64fd 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist.class index 5fc6533..81d5458 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cheklist.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.class index 77112bc..521baf7 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.class index 8c8f887..2c32359 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.class index 43ab756..4cafc36 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_HIST_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_HIST_Click.class index d928aa0..adb1fc3 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_HIST_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_HIST_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.class index d395031..73ce63a 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_gest_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_gest_Click.class index 1bfaa0f..caadef7 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_gest_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_gest_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_abonopagare.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_abonopagare.class index 5b82693..f730a38 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_abonopagare.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_abonopagare.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_pagare.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_pagare.class index db43bf4..478f50d 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_pagare.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_pagare.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente.class index b6c4ea1..2a50075 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_cliente.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.class index 8fe6ec1..cf9a38e 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.class index 2a49684..2a8ed2a 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.class index bce0cc2..2f3bf43 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.class index 0697497..9d988a5 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.class index 7072d15..7ce7fbb 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.class index 4d2869b..35134e5 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.class index d35a26f..f1fd836 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes.class index d52f0a7..4b5ca00 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_clientes.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalle_promo.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalle_promo.class index c5f09fa..668b1f8 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalle_promo.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalle_promo.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.class index 4c66364..6b26e8c 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa.class index 2f6bb90..ebe30f6 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_detalleventa.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.class index 5635ffc..d0871c1 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto.class index ed402c9..5dbc91f 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_foto.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.class index cc4af89..d2adbae 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico.class index c73febb..494050a 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_historico.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_mapas.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_mapas.class index cdf735c..5b9e3a7 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_mapas.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_mapas.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.class index 88bfac3..1a4086a 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa.class index 2a845c2..ac01f8e 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_noventa.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_nuevocliente.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_nuevocliente.class index c940fa4..e657f48 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_nuevocliente.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_nuevocliente.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_pedidos.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_pedidos.class index fde8c22..cc8d9fa 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_pedidos.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_pedidos.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.class index 1b2965b..145af27 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.class index 4d048d3..241c678 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.class index d43c03e..2662e5b 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal.class index b7272dc..2c0aa7e 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_principal.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.class index b93b995..cbcdf5f 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos.class index fafbe3d..41e9c83 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_productos.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_tabulador.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_tabulador.class index 30b6233..7e4b0e3 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_tabulador.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_tabulador.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_ticketsdia.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_ticketsdia.class index d69a6a5..398ca6a 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_ticketsdia.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_ticketsdia.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.class index 7777912..06968b2 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable.class index 89ee62b..b9c2f71 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/c_updateavailable.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.class index 73f34c3..ede9817 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerasize.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerasize.class index 709bd5e..7639459 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerasize.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass$_camerasize.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass.class index af4c2ef..be0e82d 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cameraexclass.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.class index dcdbea9..33a1937 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.class index 369eae5..3a25c2e 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.class index 6fee349..ca6e70e 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.class index bdcd07c..35fed5c 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.class index 2a7e0d9..08fecff 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate.class index 964bcc1..39972e0 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/cl_appupdate.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.class index 90df252..9e4d4be 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.class index 5f4b728..5e44015 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager.class index 2b603c8..9289885 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/dbrequestmanager.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter$_animage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter$_animage.class index 128f2fb..729f6da 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter$_animage.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter$_animage.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter.class index 1408f77..467ad3e 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/escposprinter.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/fileprovider.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/fileprovider.class index f8f832e..1996468 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/fileprovider.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/fileprovider.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto.class index ece94b7..5c71e30 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/foto.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob$_multipartfiledata.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob$_multipartfiledata.class index a4e2fd1..fc37144 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob$_multipartfiledata.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob$_multipartfiledata.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob.class index 8064679..f9f9fa9 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httpjob.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httputils2service.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httputils2service.class index bd5b23b..9426c4e 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httputils2service.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/httputils2service.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/madewithlove.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/madewithlove.class index a8c6971..f788fed 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/madewithlove.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/madewithlove.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main.class index 819f56d..3b934aa 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/main.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/manageexternalstorage.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/manageexternalstorage.class index c9b9f70..27717fe 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/manageexternalstorage.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/manageexternalstorage.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.class index 19e7200..d4d39e8 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente.class index d384855..a9d9604 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_cliente.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.class index e4e98a8..79306f3 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas.class index 064ea69..1350816 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/mapa_rutas.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$newinst2_BR.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$newinst2_BR.class index 965251d..7ddb9d4 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$newinst2_BR.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2$newinst2_BR.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2.class index cf17164..9f45172 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/newinst2.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/roundslider.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/roundslider.class index 36cc589..6c6a3e7 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/roundslider.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/roundslider.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.class index c4197e4..f97c826 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel.class index 501304f..c4617e5 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/scrollinglabel.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$starter_BR.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$starter_BR.class index b6a0c71..fa37a22 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$starter_BR.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter$starter_BR.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter.class index c43f8a2..6a851ee 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/starter.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/subs.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/subs.class index ff38d2e..b64351d 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/subs.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/subs.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/swiftbutton.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/swiftbutton.class index 06cdcd5..a3d7912 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/swiftbutton.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/swiftbutton.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.class index dce2032..bc3a3a2 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.class index 8ddd8f6..1389ab1 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$tracker_BR.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$tracker_BR.class index 3ad2152..b18a7cd 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$tracker_BR.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker$tracker_BR.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker.class index c79992b..c3069de 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/tracker.class differ diff --git a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/xuiviewsutils.class b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/xuiviewsutils.class index bfe72d9..8695321 100644 Binary files a/B4A/Objects/bin/classes/reparto_izca/keymon/lat/xuiviewsutils.class and b/B4A/Objects/bin/classes/reparto_izca/keymon/lat/xuiviewsutils.class differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/animatedcounter.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/animatedcounter.dex index a9f8dfd..1f4d18c 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/animatedcounter.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/animatedcounter.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.dex index 381c09a..6c3a197 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar$ResumableSub_BusyLoop.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar.dex index 4d736e8..59c6555 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/anotherprogressbar.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.dex index ffb74da..efdc32c 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_Service_Start.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.dex index 78725a4..07d96bd 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$ResumableSub_download_newApk.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$_mnewversion.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$_mnewversion.dex index 320f216..1fadfbd 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$_mnewversion.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$_mnewversion.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$appupdater_BR.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$appupdater_BR.dex index eaee2a6..07a8fbd 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$appupdater_BR.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater$appupdater_BR.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater.dex index d2cdc1c..212925d 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/appupdater.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbitset.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbitset.dex index 68ad46b..ad034ce 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbitset.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbitset.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbreadcrumb.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbreadcrumb.dex index ae0a756..d17ba18 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbreadcrumb.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbreadcrumb.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbytesbuilder.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbytesbuilder.dex index 8949cc1..bb4fb60 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbytesbuilder.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xbytesbuilder.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.dex index 8fa7850..1644144 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache$_b4xcacheitem.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache.dex index 1a1c65c..286d127 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcache.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcollections.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcollections.dex index 4e8c0c5..1a3bff4 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcollections.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcollections.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.dex index 884cbe7..d226bb5 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.dex index 3f80177..0f5f6bb 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate$_colorpickerpart.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate.dex index fc56371..1251260 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcolortemplate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.dex index 3dd467e..15030ba 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox$ResumableSub_RaiseEvent.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox.dex index 331bb90..541c89c 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcombobox.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcomparatorsort.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcomparatorsort.dex index af90313..14b2637 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcomparatorsort.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xcomparatorsort.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.dex index 8305c7a..91a360a 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate.dex index dedbd56..54c7094 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdatetemplate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.dex index 58f8e28..ce8255e 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.dex index e0ef4fb..a2b465f 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowCustom.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.dex index d883c73..ad9a671 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog$ResumableSub_ShowTemplate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog.dex index 98b4900..1b8df65 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xdialog.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex index 8254516..641bcb0 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield$ResumableSub_SwitchFromPasswordToRegular.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield.dex index a12e32f..e4f7c2d 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xfloattextfield.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.dex index e9b3b32..bf965da 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter$_b4xformatdata.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter.dex index b783408..294c0ed 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xformatter.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4ximageview.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4ximageview.dex index 1a28242..ecdb680 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4ximageview.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4ximageview.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.dex index b47641e..e7de549 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate.dex index 2054493..32b8248 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xinputtemplate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.dex index 382f070..e81c258 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate.dex index 6baaa90..e46467d 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlisttemplate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.dex index d3338f0..267746e 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator$ResumableSub_MainLoop.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator.dex index 4e21979..98ccc75 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xloadingindicator.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlongtexttemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlongtexttemplate.dex index 49189fe..739be01 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlongtexttemplate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xlongtexttemplate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.dex index 5048d8e..4cfde76 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_Appear.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex index 058afb7..d41f5a6 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.dex index 800fe58..8737e66 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_envioBD_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.dex index 78c0f91..6620c84 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage$ResumableSub_b_terpc_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage.dex index c8e1ad0..f5d9c78 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xmainpage.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xorderedmap.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xorderedmap.dex index 74b3a16..75b16aa 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xorderedmap.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xorderedmap.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpages.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpages.dex index bcb8b65..e9b4bc6 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpages.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpages.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesdelegator.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesdelegator.dex index 5682cf6..516f5af 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesdelegator.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesdelegator.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.dex index 88aa158..e7ea301 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$PagesMenuListener.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.dex index 3368e12..c749f00 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$ResumableSub_HandleCloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.dex index 57893da..6cce481 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4amenuitem.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.dex index aa6c8ee..4bb7925 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageinfo.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.dex index 6a52e86..b2ad4c4 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager$_b4xpageparent.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager.dex index 106444b..bbc7aae 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xpagesmanager.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.dex index a86d24c..3a38321 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus$ResumableSub_StartDownLoop.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus.dex index fe8cedf..fee9a5c 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xplusminus.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.dex index 55c63cd..ce00ed7 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton$ResumableSub_SetValueImpl.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton.dex index 34a6496..19d63ac 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xradiobutton.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.dex index 877ed65..f13f657 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate.dex index 895dcd5..39fbded 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsearchtemplate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xseekbar.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xseekbar.dex index 5f3371e..9332561 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xseekbar.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xseekbar.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xset.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xset.dex index 916ddd9..3308d4f 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xset.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xset.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsignaturetemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsignaturetemplate.dex index c24a344..e97b5cf 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsignaturetemplate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xsignaturetemplate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.dex index cf55ac8..fccdbfa 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch$ResumableSub_SetValueImpl.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch.dex index 11e5873..1475fc9 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xswitch.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.dex index 351d811..53301d7 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate$ResumableSub_Show.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate.dex index f8234ed..5d52303 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/b4xtimedtemplate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/batteryutilities.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/batteryutilities.dex index 5420676..3be1453 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/batteryutilities.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/batteryutilities.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.dex index 608a7e3..246431a 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar.dex index 24ab1ad..f11c995 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_buscar.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.dex index 85d1d0e..8a5e22c 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_Appear.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.dex index d6325a9..7e8bdfb 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.dex index 9224183..28f1680 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist$ResumableSub_InitializeCamera2.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist.dex index 08c214a..f59f12e 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cheklist.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.dex index b4d2936..3f2af53 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.dex index 79286be..416acd3 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP2_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.dex index a923589..5a9a5c3 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_B_IMP_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_HIST_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_HIST_Click.dex index 520c7d9..a5fd609 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_HIST_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_HIST_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.dex index 4b89985..08f427a 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_b_abono_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_gest_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_gest_Click.dex index 229ae44..bf62fc8 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_gest_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_gest_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_abonopagare.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_abonopagare.dex index 717f16c..20fd650 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_abonopagare.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_abonopagare.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_pagare.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_pagare.dex index 07e7aa0..ee754d0 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_pagare.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente$ResumableSub_imprime_pagare.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente.dex index eed46f0..fb2c664 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_cliente.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.dex index 6952ece..3eded51 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.dex index ec9902f..33e3f82 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_ListView1_ItemClick.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.dex index 8285ed9..15d8bcc 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_b_GetDirs_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.dex index 1097f47..bd8459d 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_caculaRutaGPS.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.dex index ca7b7ac..00e0782 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_distanciaEntreCoords.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.dex index c3d901a..8e1d4db 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_generaListViewRutas.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.dex index cb73bdb..732f7ba 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes$ResumableSub_traeRutaDia.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes.dex index a549e8f..b257696 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_clientes.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalle_promo.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalle_promo.dex index af6e829..fc9edf5 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalle_promo.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalle_promo.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.dex index 47d7f3b..f3aa803 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa.dex index 69e7a27..ce260f2 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_detalleventa.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.dex index e526bf0..50f22d5 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto.dex index e110c1d..c593718 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_foto.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.dex index 1a15327..a75a35e 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico.dex index 9cd12d3..08b4cef 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_historico.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_mapas.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_mapas.dex index a6d3e6f..8303e65 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_mapas.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_mapas.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.dex index 2d3df63..3940ee6 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa$ResumableSub_B_IMP_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa.dex index 8f56878..62a94d2 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_noventa.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_nuevocliente.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_nuevocliente.dex index 71ffa42..4c3a8e5 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_nuevocliente.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_nuevocliente.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_pedidos.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_pedidos.dex index ee1254e..7e621a9 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_pedidos.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_pedidos.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.dex index a7a30aa..da39dd5 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.dex index 75c7f1a..698286f 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_imp_inventario_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.dex index 6c0c1b9..9bb6f1e 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal$ResumableSub_b_impresion_rec_Click.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal.dex index 4ffd2a3..d1cfa28 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_principal.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.dex index 1c619a7..cbad334 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos$ResumableSub_B4XPage_CloseRequest.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos.dex index 4409c62..0b85254 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_productos.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_tabulador.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_tabulador.dex index b49efc4..0c1f937 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_tabulador.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_tabulador.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_ticketsdia.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_ticketsdia.dex index 867d039..3be4bf1 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_ticketsdia.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_ticketsdia.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.dex index db9b560..ab65c66 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable$ResumableSub_B4XPage_Appear.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable.dex index bacdd77..1127a04 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/c_updateavailable.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.dex index 8df6444..a376989 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerainfoandid.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerasize.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerasize.dex index 56c7214..b71fe93 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerasize.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass$_camerasize.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass.dex index bf7ad42..3fb5f17 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cameraexclass.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.dex index 02ca065..bc3176d 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_DownloadApk.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.dex index 93c0a75..89616e1 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_IsvalidWV.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.dex index 56ff2d2..1b137f2 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_ReadWebVN.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.dex index 834d939..96d2e59 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_TryApkUpdate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.dex index 1c0b942..d72843f 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate$ResumableSub_UpdateApk.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate.dex index 9d2b6d1..4c84799 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/cl_appupdate.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.dex index d95be11..b7f9818 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbcommand.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.dex index d013ec7..5402e49 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager$_dbresult.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager.dex index f600b1c..5d9c523 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/dbrequestmanager.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter$_animage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter$_animage.dex index 788760c..58b95cc 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter$_animage.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter$_animage.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter.dex index c0edfb7..436aeed 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/escposprinter.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/fileprovider.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/fileprovider.dex index f92be16..d0b9d30 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/fileprovider.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/fileprovider.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/foto.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto.dex index 5e77a51..e1e0f81 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/foto.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/foto.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob$_multipartfiledata.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob$_multipartfiledata.dex index 750ebee..80595c3 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob$_multipartfiledata.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob$_multipartfiledata.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob.dex index 84f5859..ef9a04b 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/httpjob.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/httputils2service.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/httputils2service.dex index 1555f38..866df2f 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/httputils2service.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/httputils2service.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/madewithlove.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/madewithlove.dex index c94144c..3cfe36d 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/madewithlove.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/madewithlove.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/main.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/main.dex index 6480821..cab806a 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/main.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/main.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/manageexternalstorage.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/manageexternalstorage.dex index d23338b..0998c95 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/manageexternalstorage.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/manageexternalstorage.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.dex index d955831..152a261 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente$ResumableSub_MapFragment1_Ready.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente.dex index ebf4f40..c5a6cb9 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_cliente.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.dex index 94ad1a8..a795614 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas$ResumableSub_MapFragment1_Ready.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas.dex index 1deb4a6..193e698 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/mapa_rutas.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$newinst2_BR.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$newinst2_BR.dex index 0a031c2..0d198ae 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$newinst2_BR.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2$newinst2_BR.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2.dex index a90be0f..83690a8 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/newinst2.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/roundslider.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/roundslider.dex index e4ac71a..889fef4 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/roundslider.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/roundslider.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.dex index 2d2b7cc..93e126f 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel$ResumableSub_StartScrolling.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel.dex index c037785..56a64c1 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/scrollinglabel.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$starter_BR.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$starter_BR.dex index ccc8f21..35adec1 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$starter_BR.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter$starter_BR.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/starter.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter.dex index 3779362..abe2d07 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/starter.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/starter.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/subs.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/subs.dex index ee34c35..7001cfb 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/subs.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/subs.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/swiftbutton.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/swiftbutton.dex index 672a864..6653ce3 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/swiftbutton.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/swiftbutton.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.dex index f77d758..901f594 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.dex index af63014..cccd447 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$ResumableSub_StartFLP2Reqs.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$tracker_BR.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$tracker_BR.dex index aefb324..a2d65c8 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$tracker_BR.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker$tracker_BR.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker.dex index 2a328f3..8e25943 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/tracker.dex differ diff --git a/B4A/Objects/dexed/reparto_izca/keymon/lat/xuiviewsutils.dex b/B4A/Objects/dexed/reparto_izca/keymon/lat/xuiviewsutils.dex index c0ac252..d3fc3ac 100644 Binary files a/B4A/Objects/dexed/reparto_izca/keymon/lat/xuiviewsutils.dex and b/B4A/Objects/dexed/reparto_izca/keymon/lat/xuiviewsutils.dex differ diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/animatedcounter.java b/B4A/Objects/src/reparto_izca/keymon/lat/animatedcounter.java index 0fb4594..18111c2 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/animatedcounter.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/animatedcounter.java @@ -10,7 +10,7 @@ public class animatedcounter extends B4AClass.ImplB4AClass implements BA.SubDele private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.animatedcounter"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.animatedcounter"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class animatedcounter extends B4AClass.ImplB4AClass implements BA.SubDele ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -59,421 +52,287 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.animatedcounter __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="animatedcounter"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} +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; -RDebugUtils.currentLine=44957696; - //BA.debugLineNum = 44957696;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A"; -RDebugUtils.currentLine=44957697; - //BA.debugLineNum = 44957697;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Width"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetView((int) (0)).SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); -RDebugUtils.currentLine=44957698; - //BA.debugLineNum = 44957698;BA.debugLine="xfadeIv.SetLayoutAnimated(0, 0, 0, Width, Height)"; -__ref._xfadeiv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); -RDebugUtils.currentLine=44957699; - //BA.debugLineNum = 44957699;BA.debugLine="xfadeIv.SetBitmap(fade.Resize(Width, Height, Fals"; -__ref._xfadeiv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((android.graphics.Bitmap)(__ref._fade /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .Resize((int) (_width),(int) (_height),__c.False).getObject())); -RDebugUtils.currentLine=44957700; - //BA.debugLineNum = 44957700;BA.debugLine="DigitHeight = Height"; -__ref._digitheight /*int*/ = (int) (_height); -RDebugUtils.currentLine=44957701; - //BA.debugLineNum = 44957701;BA.debugLine="Dim Columns As Int = mdigits"; -_columns = __ref._mdigits /*int*/ ; -RDebugUtils.currentLine=44957702; - //BA.debugLineNum = 44957702;BA.debugLine="DigitWidth = Width / Columns"; -__ref._digitwidth /*int*/ = (int) (_width/(double)_columns); -RDebugUtils.currentLine=44957703; - //BA.debugLineNum = 44957703;BA.debugLine="Dim bmp As B4XBitmap = CreateBitmap(lblTemplate)"; + //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 = __ref._createbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ (null,__ref._lbltemplate /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=44957704; - //BA.debugLineNum = 44957704;BA.debugLine="Dim left As Int = Width"; +_bmp = _createbitmap(_lbltemplate); + //BA.debugLineNum = 78;BA.debugLine="Dim left As Int = Width"; _left = (int) (_width); -RDebugUtils.currentLine=44957705; - //BA.debugLineNum = 44957705;BA.debugLine="For i = 0 To ImageViews.Size - 1"; + //BA.debugLineNum = 79;BA.debugLine="For i = 0 To ImageViews.Size - 1"; { final int step9 = 1; -final int limit9 = (int) (__ref._imageviews /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1); +final int limit9 = (int) (_imageviews.getSize()-1); _i = (int) (0) ; for (;_i <= limit9 ;_i = _i + step9 ) { -RDebugUtils.currentLine=44957706; - //BA.debugLineNum = 44957706;BA.debugLine="Dim iv As B4XView = ImageViews.Get(i)"; + //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)(__ref._imageviews /*anywheresoftware.b4a.objects.collections.List*/ .Get(_i))); -RDebugUtils.currentLine=44957708; - //BA.debugLineNum = 44957708;BA.debugLine="left = left - DigitWidth"; -_left = (int) (_left-__ref._digitwidth /*int*/ ); -RDebugUtils.currentLine=44957709; - //BA.debugLineNum = 44957709;BA.debugLine="iv.SetLayoutAnimated(0, left, TopFromValue(i), D"; -_iv.SetLayoutAnimated((int) (0),_left,__ref._topfromvalue /*int*/ (null,_i),__ref._digitwidth /*int*/ ,(int) (__ref._digitheight /*int*/ *10)); -RDebugUtils.currentLine=44957710; - //BA.debugLineNum = 44957710;BA.debugLine="iv.SetBitmap(bmp)"; +_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())); } }; -RDebugUtils.currentLine=44957712; - //BA.debugLineNum = 44957712;BA.debugLine="End Sub"; + //BA.debugLineNum = 86;BA.debugLine="End Sub"; return ""; } -public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _createbitmap(reparto_izca.keymon.lat.animatedcounter __ref,anywheresoftware.b4a.objects.B4XViewWrapper _lbl) throws Exception{ -__ref = this; -RDebugUtils.currentModule="animatedcounter"; -if (Debug.shouldDelegate(ba, "createbitmap", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) Debug.delegate(ba, "createbitmap", new Object[] {_lbl}));} +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; -RDebugUtils.currentLine=45088768; - //BA.debugLineNum = 45088768;BA.debugLine="Private Sub CreateBitmap (lbl As B4XView) As B4XBi"; -RDebugUtils.currentLine=45088769; - //BA.debugLineNum = 45088769;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; + //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 = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=45088770; - //BA.debugLineNum = 45088770;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, DigitWidth, DigitHei"; -_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._digitwidth /*int*/ ,(int) (__ref._digitheight /*int*/ *10)); -RDebugUtils.currentLine=45088771; - //BA.debugLineNum = 45088771;BA.debugLine="Dim cvs As B4XCanvas"; +_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(); -RDebugUtils.currentLine=45088772; - //BA.debugLineNum = 45088772;BA.debugLine="cvs.Initialize(p)"; + //BA.debugLineNum = 97;BA.debugLine="cvs.Initialize(p)"; _cvs.Initialize(_p); -RDebugUtils.currentLine=45088773; - //BA.debugLineNum = 45088773;BA.debugLine="Dim r As B4XRect = cvs.MeasureText(\"5\", lbl.Font)"; + //BA.debugLineNum = 98;BA.debugLine="Dim r As B4XRect = cvs.MeasureText(\"5\", lbl.Font)"; _r = _cvs.MeasureText("5",_lbl.getFont()); -RDebugUtils.currentLine=45088774; - //BA.debugLineNum = 45088774;BA.debugLine="Dim BaseLine As Int = DigitHeight / 2 - r.Height"; -_baseline = (int) (__ref._digitheight /*int*/ /(double)2-_r.getHeight()/(double)2-_r.getTop()); -RDebugUtils.currentLine=45088775; - //BA.debugLineNum = 45088775;BA.debugLine="For i = 0 To 9"; + //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 ) { -RDebugUtils.currentLine=45088776; - //BA.debugLineNum = 45088776;BA.debugLine="cvs.DrawText(i, DigitWidth / 2, i * DigitHeight"; -_cvs.DrawText(ba,BA.NumberToString(_i),(float) (__ref._digitwidth /*int*/ /(double)2),(float) (_i*__ref._digitheight /*int*/ +_baseline),_lbl.getFont(),_lbl.getTextColor(),BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER")); + //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")); } }; -RDebugUtils.currentLine=45088778; - //BA.debugLineNum = 45088778;BA.debugLine="cvs.Invalidate"; + //BA.debugLineNum = 103;BA.debugLine="cvs.Invalidate"; _cvs.Invalidate(); -RDebugUtils.currentLine=45088779; - //BA.debugLineNum = 45088779;BA.debugLine="Dim res As B4XBitmap = cvs.CreateBitmap"; + //BA.debugLineNum = 104;BA.debugLine="Dim res As B4XBitmap = cvs.CreateBitmap"; _res = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); _res = _cvs.CreateBitmap(); -RDebugUtils.currentLine=45088780; - //BA.debugLineNum = 45088780;BA.debugLine="cvs.Release"; + //BA.debugLineNum = 105;BA.debugLine="cvs.Release"; _cvs.Release(); -RDebugUtils.currentLine=45088781; - //BA.debugLineNum = 45088781;BA.debugLine="Return res"; + //BA.debugLineNum = 106;BA.debugLine="Return res"; if (true) return _res; -RDebugUtils.currentLine=45088782; - //BA.debugLineNum = 45088782;BA.debugLine="End Sub"; + //BA.debugLineNum = 107;BA.debugLine="End Sub"; return null; } -public int _topfromvalue(reparto_izca.keymon.lat.animatedcounter __ref,int _digit) throws Exception{ -__ref = this; -RDebugUtils.currentModule="animatedcounter"; -if (Debug.shouldDelegate(ba, "topfromvalue", true)) - {return ((Integer) Debug.delegate(ba, "topfromvalue", new Object[] {_digit}));} -int _d = 0; -RDebugUtils.currentLine=45023232; - //BA.debugLineNum = 45023232;BA.debugLine="Private Sub TopFromValue (Digit As Int) As Int"; -RDebugUtils.currentLine=45023233; - //BA.debugLineNum = 45023233;BA.debugLine="Dim d As Int = mValue.Get(Digit)"; -_d = (int)(BA.ObjectToNumber(__ref._mvalue /*anywheresoftware.b4a.objects.collections.List*/ .Get(_digit))); -RDebugUtils.currentLine=45023234; - //BA.debugLineNum = 45023234;BA.debugLine="Return -d * DigitHeight"; -if (true) return (int) (-_d*__ref._digitheight /*int*/ ); -RDebugUtils.currentLine=45023235; - //BA.debugLineNum = 45023235;BA.debugLine="End Sub"; -return 0; -} -public String _class_globals(reparto_izca.keymon.lat.animatedcounter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="animatedcounter"; -RDebugUtils.currentLine=44695552; - //BA.debugLineNum = 44695552;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=44695553; - //BA.debugLineNum = 44695553;BA.debugLine="Private mEventName As String 'ignore"; -_meventname = ""; -RDebugUtils.currentLine=44695554; - //BA.debugLineNum = 44695554;BA.debugLine="Private mCallBack As Object 'ignore"; -_mcallback = new Object(); -RDebugUtils.currentLine=44695555; - //BA.debugLineNum = 44695555;BA.debugLine="Public mBase As B4XView 'ignore"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=44695556; - //BA.debugLineNum = 44695556;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=44695557; - //BA.debugLineNum = 44695557;BA.debugLine="Private ImageViews As List"; -_imageviews = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=44695558; - //BA.debugLineNum = 44695558;BA.debugLine="Private mdigits As Int"; -_mdigits = 0; -RDebugUtils.currentLine=44695559; - //BA.debugLineNum = 44695559;BA.debugLine="Private lblTemplate As B4XView"; -_lbltemplate = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=44695560; - //BA.debugLineNum = 44695560;BA.debugLine="Private mValue As List"; -_mvalue = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=44695561; - //BA.debugLineNum = 44695561;BA.debugLine="Private DigitHeight, DigitWidth As Int"; -_digitheight = 0; -_digitwidth = 0; -RDebugUtils.currentLine=44695562; - //BA.debugLineNum = 44695562;BA.debugLine="Private mDuration As Int"; -_mduration = 0; -RDebugUtils.currentLine=44695563; - //BA.debugLineNum = 44695563;BA.debugLine="Private fade As B4XBitmap"; -_fade = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); -RDebugUtils.currentLine=44695564; - //BA.debugLineNum = 44695564;BA.debugLine="Private xfadeIv As B4XView"; -_xfadeiv = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=44695565; - //BA.debugLineNum = 44695565;BA.debugLine="Public Tag As Object"; -_tag = new Object(); -RDebugUtils.currentLine=44695567; - //BA.debugLineNum = 44695567;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _createfadebitmap(reparto_izca.keymon.lat.animatedcounter __ref,int _clr) throws Exception{ -__ref = this; -RDebugUtils.currentModule="animatedcounter"; -if (Debug.shouldDelegate(ba, "createfadebitmap", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) Debug.delegate(ba, "createfadebitmap", new Object[] {_clr}));} +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; -RDebugUtils.currentLine=44892160; - //BA.debugLineNum = 44892160;BA.debugLine="Private Sub CreateFadeBitmap (clr As Int) As B4XBi"; -RDebugUtils.currentLine=44892161; - //BA.debugLineNum = 44892161;BA.debugLine="Dim bc As BitmapCreator"; + //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(); -RDebugUtils.currentLine=44892162; - //BA.debugLineNum = 44892162;BA.debugLine="bc.Initialize(200, 50)"; + //BA.debugLineNum = 58;BA.debugLine="bc.Initialize(200, 50)"; _bc._initialize(ba,(int) (200),(int) (50)); -RDebugUtils.currentLine=44892163; - //BA.debugLineNum = 44892163;BA.debugLine="Dim r As B4XRect"; + //BA.debugLineNum = 59;BA.debugLine="Dim r As B4XRect"; _r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect(); -RDebugUtils.currentLine=44892164; - //BA.debugLineNum = 44892164;BA.debugLine="r.Initialize(0, 0, bc.mWidth, bc.mHeight / 3)"; + //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)); -RDebugUtils.currentLine=44892165; - //BA.debugLineNum = 44892165;BA.debugLine="Dim tclr As Int = Bit.And(0x00ffffff, clr)"; + //BA.debugLineNum = 61;BA.debugLine="Dim tclr As Int = Bit.And(0x00ffffff, clr)"; _tclr = __c.Bit.And(((int)0x00ffffff),_clr); -RDebugUtils.currentLine=44892166; - //BA.debugLineNum = 44892166;BA.debugLine="bc.FillGradient(Array As Int(clr, tclr), r, \"TOP_"; + //BA.debugLineNum = 62;BA.debugLine="bc.FillGradient(Array As Int(clr, tclr), r, \"TOP_"; _bc._fillgradient(new int[]{_clr,_tclr},_r,"TOP_BOTTOM"); -RDebugUtils.currentLine=44892167; - //BA.debugLineNum = 44892167;BA.debugLine="r.Top = bc.mHeight * 2 / 3"; + //BA.debugLineNum = 63;BA.debugLine="r.Top = bc.mHeight * 2 / 3"; _r.setTop((float) (_bc._mheight*2/(double)3)); -RDebugUtils.currentLine=44892168; - //BA.debugLineNum = 44892168;BA.debugLine="r.Bottom = bc.mHeight"; + //BA.debugLineNum = 64;BA.debugLine="r.Bottom = bc.mHeight"; _r.setBottom((float) (_bc._mheight)); -RDebugUtils.currentLine=44892169; - //BA.debugLineNum = 44892169;BA.debugLine="bc.FillGradient(Array As Int(clr, tclr), r, \"BOTT"; + //BA.debugLineNum = 65;BA.debugLine="bc.FillGradient(Array As Int(clr, tclr), r, \"BOTT"; _bc._fillgradient(new int[]{_clr,_tclr},_r,"BOTTOM_TOP"); -RDebugUtils.currentLine=44892170; - //BA.debugLineNum = 44892170;BA.debugLine="Return bc.Bitmap"; + //BA.debugLineNum = 66;BA.debugLine="Return bc.Bitmap"; if (true) return _bc._getbitmap(); -RDebugUtils.currentLine=44892171; - //BA.debugLineNum = 44892171;BA.debugLine="End Sub"; + //BA.debugLineNum = 67;BA.debugLine="End Sub"; return null; } -public String _designercreateview(reparto_izca.keymon.lat.animatedcounter __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="animatedcounter"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} +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; -RDebugUtils.currentLine=44826624; - //BA.debugLineNum = 44826624;BA.debugLine="Public Sub DesignerCreateView (Base As Object, lbl"; -RDebugUtils.currentLine=44826625; - //BA.debugLineNum = 44826625;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=44826626; - //BA.debugLineNum = 44826626;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=44826626; - //BA.debugLineNum = 44826626;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=44826627; - //BA.debugLineNum = 44826627;BA.debugLine="Dim pnl As B4XView = xui.CreatePanel(\"\") 'needed"; + //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 = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=44826628; - //BA.debugLineNum = 44826628;BA.debugLine="mBase.AddView(pnl, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=44826629; - //BA.debugLineNum = 44826629;BA.debugLine="mdigits = Props.Get(\"Digits\")"; -__ref._mdigits /*int*/ = (int)(BA.ObjectToNumber(_props.Get((Object)("Digits")))); -RDebugUtils.currentLine=44826630; - //BA.debugLineNum = 44826630;BA.debugLine="mDuration = Props.Get(\"Duration\")"; -__ref._mduration /*int*/ = (int)(BA.ObjectToNumber(_props.Get((Object)("Duration")))); -RDebugUtils.currentLine=44826631; - //BA.debugLineNum = 44826631;BA.debugLine="lblTemplate = lbl"; -__ref._lbltemplate /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject())); -RDebugUtils.currentLine=44826632; - //BA.debugLineNum = 44826632;BA.debugLine="fade = CreateFadeBitmap(xui.PaintOrColorToColor(P"; -__ref._fade /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ = __ref._createfadebitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ (null,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.GetDefault((Object)("FadeColor"),(Object)(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White)))); -RDebugUtils.currentLine=44826633; - //BA.debugLineNum = 44826633;BA.debugLine="For i = 0 To mdigits - 1"; +_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) (__ref._mdigits /*int*/ -1); +final int limit10 = (int) (_mdigits-1); _i = (int) (0) ; for (;_i <= limit10 ;_i = _i + step10 ) { -RDebugUtils.currentLine=44826634; - //BA.debugLineNum = 44826634;BA.debugLine="Dim iv As ImageView"; + //BA.debugLineNum = 40;BA.debugLine="Dim iv As ImageView"; _iv = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=44826635; - //BA.debugLineNum = 44826635;BA.debugLine="iv.Initialize(\"\")"; + //BA.debugLineNum = 41;BA.debugLine="iv.Initialize(\"\")"; _iv.Initialize(ba,""); -RDebugUtils.currentLine=44826636; - //BA.debugLineNum = 44826636;BA.debugLine="ImageViews.Add(iv)"; -__ref._imageviews /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_iv.getObject())); -RDebugUtils.currentLine=44826637; - //BA.debugLineNum = 44826637;BA.debugLine="mBase.GetView(0).AddView(iv, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetView((int) (0)).AddView((android.view.View)(_iv.getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); + //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)); } }; -RDebugUtils.currentLine=44826639; - //BA.debugLineNum = 44826639;BA.debugLine="Dim fadeIv As ImageView"; + //BA.debugLineNum = 45;BA.debugLine="Dim fadeIv As ImageView"; _fadeiv = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=44826640; - //BA.debugLineNum = 44826640;BA.debugLine="fadeIv.Initialize(\"\")"; + //BA.debugLineNum = 46;BA.debugLine="fadeIv.Initialize(\"\")"; _fadeiv.Initialize(ba,""); -RDebugUtils.currentLine=44826641; - //BA.debugLineNum = 44826641;BA.debugLine="xfadeIv = fadeIv"; -__ref._xfadeiv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_fadeiv.getObject())); -RDebugUtils.currentLine=44826642; - //BA.debugLineNum = 44826642;BA.debugLine="mBase.GetView(0).AddView(fadeIv, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetView((int) (0)).AddView((android.view.View)(_fadeiv.getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=44826643; - //BA.debugLineNum = 44826643;BA.debugLine="setValue(0)"; -__ref._setvalue /*String*/ (null,(int) (0)); -RDebugUtils.currentLine=44826644; - //BA.debugLineNum = 44826644;BA.debugLine="If xui.IsB4A Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A()) { -RDebugUtils.currentLine=44826645; - //BA.debugLineNum = 44826645;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)"; -__ref._base_resize /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=44826646; - //BA.debugLineNum = 44826646;BA.debugLine="setValue(getValue)"; -__ref._setvalue /*String*/ (null,__ref._getvalue /*int*/ (null)); + //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()); }; -RDebugUtils.currentLine=44826648; - //BA.debugLineNum = 44826648;BA.debugLine="End Sub"; + //BA.debugLineNum = 54;BA.debugLine="End Sub"; return ""; } -public String _setvalue(reparto_izca.keymon.lat.animatedcounter __ref,int _v) throws Exception{ -__ref = this; -RDebugUtils.currentModule="animatedcounter"; -if (Debug.shouldDelegate(ba, "setvalue", true)) - {return ((String) Debug.delegate(ba, "setvalue", new Object[] {_v}));} -int _i = 0; -anywheresoftware.b4a.objects.B4XViewWrapper _iv = null; -RDebugUtils.currentLine=45154304; - //BA.debugLineNum = 45154304;BA.debugLine="Public Sub setValue(v As Int)"; -RDebugUtils.currentLine=45154305; - //BA.debugLineNum = 45154305;BA.debugLine="mValue.Clear"; -__ref._mvalue /*anywheresoftware.b4a.objects.collections.List*/ .Clear(); -RDebugUtils.currentLine=45154306; - //BA.debugLineNum = 45154306;BA.debugLine="For i = 0 To mdigits - 1"; -{ -final int step2 = 1; -final int limit2 = (int) (__ref._mdigits /*int*/ -1); -_i = (int) (0) ; -for (;_i <= limit2 ;_i = _i + step2 ) { -RDebugUtils.currentLine=45154307; - //BA.debugLineNum = 45154307;BA.debugLine="mValue.Add(v Mod 10)"; -__ref._mvalue /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_v%10)); -RDebugUtils.currentLine=45154308; - //BA.debugLineNum = 45154308;BA.debugLine="v = v / 10"; -_v = (int) (_v/(double)10); -RDebugUtils.currentLine=45154309; - //BA.debugLineNum = 45154309;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)(__ref._imageviews /*anywheresoftware.b4a.objects.collections.List*/ .Get(_i))); -RDebugUtils.currentLine=45154310; - //BA.debugLineNum = 45154310;BA.debugLine="iv.SetLayoutAnimated(mDuration, iv.Left, TopFrom"; -_iv.SetLayoutAnimated(__ref._mduration /*int*/ ,_iv.getLeft(),__ref._topfromvalue /*int*/ (null,_i),(int) (__c.Max(1,_iv.getWidth())),(int) (__c.Max(1,_iv.getHeight()))); - } -}; -RDebugUtils.currentLine=45154313; - //BA.debugLineNum = 45154313;BA.debugLine="End Sub"; -return ""; -} -public int _getvalue(reparto_izca.keymon.lat.animatedcounter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="animatedcounter"; -if (Debug.shouldDelegate(ba, "getvalue", true)) - {return ((Integer) Debug.delegate(ba, "getvalue", null));} +public int _getvalue() throws Exception{ int _res = 0; int _i = 0; -RDebugUtils.currentLine=45219840; - //BA.debugLineNum = 45219840;BA.debugLine="Public Sub getValue As Int"; -RDebugUtils.currentLine=45219841; - //BA.debugLineNum = 45219841;BA.debugLine="Dim res As Int"; + //BA.debugLineNum = 120;BA.debugLine="Public Sub getValue As Int"; + //BA.debugLineNum = 121;BA.debugLine="Dim res As Int"; _res = 0; -RDebugUtils.currentLine=45219842; - //BA.debugLineNum = 45219842;BA.debugLine="For i = 0 To mValue.Size - 1"; + //BA.debugLineNum = 122;BA.debugLine="For i = 0 To mValue.Size - 1"; { final int step2 = 1; -final int limit2 = (int) (__ref._mvalue /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1); +final int limit2 = (int) (_mvalue.getSize()-1); _i = (int) (0) ; for (;_i <= limit2 ;_i = _i + step2 ) { -RDebugUtils.currentLine=45219843; - //BA.debugLineNum = 45219843;BA.debugLine="res = res + mValue.Get(i) * Power(10, i)"; -_res = (int) (_res+(double)(BA.ObjectToNumber(__ref._mvalue /*anywheresoftware.b4a.objects.collections.List*/ .Get(_i)))*__c.Power(10,_i)); + //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)); } }; -RDebugUtils.currentLine=45219845; - //BA.debugLineNum = 45219845;BA.debugLine="Return res"; + //BA.debugLineNum = 125;BA.debugLine="Return res"; if (true) return _res; -RDebugUtils.currentLine=45219846; - //BA.debugLineNum = 45219846;BA.debugLine="End Sub"; + //BA.debugLineNum = 126;BA.debugLine="End Sub"; return 0; } -public String _initialize(reparto_izca.keymon.lat.animatedcounter __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="animatedcounter"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=44761088; - //BA.debugLineNum = 44761088;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=44761089; - //BA.debugLineNum = 44761089;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=44761090; - //BA.debugLineNum = 44761090;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=44761091; - //BA.debugLineNum = 44761091;BA.debugLine="ImageViews.Initialize"; -__ref._imageviews /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=44761092; - //BA.debugLineNum = 44761092;BA.debugLine="mValue.Initialize"; -__ref._mvalue /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=44761093; - //BA.debugLineNum = 44761093;BA.debugLine="End Sub"; + //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 ""; } -} \ No newline at end of file +public String _setvalue(int _v) throws Exception{ +int _i = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _iv = null; + //BA.debugLineNum = 109;BA.debugLine="Public Sub setValue(v As Int)"; + //BA.debugLineNum = 110;BA.debugLine="mValue.Clear"; +_mvalue.Clear(); + //BA.debugLineNum = 111;BA.debugLine="For i = 0 To mdigits - 1"; +{ +final int step2 = 1; +final int limit2 = (int) (_mdigits-1); +_i = (int) (0) ; +for (;_i <= limit2 ;_i = _i + step2 ) { + //BA.debugLineNum = 112;BA.debugLine="mValue.Add(v Mod 10)"; +_mvalue.Add((Object)(_v%10)); + //BA.debugLineNum = 113;BA.debugLine="v = v / 10"; +_v = (int) (_v/(double)10); + //BA.debugLineNum = 114;BA.debugLine="Dim iv As B4XView = ImageViews.Get(i)"; +_iv = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_iv = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_imageviews.Get(_i))); + //BA.debugLineNum = 115;BA.debugLine="iv.SetLayoutAnimated(mDuration, iv.Left, TopFrom"; +_iv.SetLayoutAnimated(_mduration,_iv.getLeft(),_topfromvalue(_i),(int) (__c.Max(1,_iv.getWidth())),(int) (__c.Max(1,_iv.getHeight()))); + } +}; + //BA.debugLineNum = 118;BA.debugLine="End Sub"; +return ""; +} +public int _topfromvalue(int _digit) throws Exception{ +int _d = 0; + //BA.debugLineNum = 88;BA.debugLine="Private Sub TopFromValue (Digit As Int) As Int"; + //BA.debugLineNum = 89;BA.debugLine="Dim d As Int = mValue.Get(Digit)"; +_d = (int)(BA.ObjectToNumber(_mvalue.Get(_digit))); + //BA.debugLineNum = 90;BA.debugLine="Return -d * DigitHeight"; +if (true) return (int) (-_d*_digitheight); + //BA.debugLineNum = 91;BA.debugLine="End Sub"; +return 0; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/anotherprogressbar.java b/B4A/Objects/src/reparto_izca/keymon/lat/anotherprogressbar.java index a6f7e5f..0400476 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/anotherprogressbar.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/anotherprogressbar.java @@ -10,7 +10,7 @@ public class anotherprogressbar extends B4AClass.ImplB4AClass implements BA.SubD private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.anotherprogressbar"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.anotherprogressbar"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class anotherprogressbar extends B4AClass.ImplB4AClass implements BA.SubD ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -64,142 +57,39 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.anotherprogressbar __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} +public String _base_resize(double _width,double _height) throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _v = null; -RDebugUtils.currentLine=45481984; - //BA.debugLineNum = 45481984;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A"; -RDebugUtils.currentLine=45481985; - //BA.debugLineNum = 45481985;BA.debugLine="For Each v As B4XView In mBase.GetAllViewsRecursi"; + //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 = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetAllViewsRecursive(); +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))); -RDebugUtils.currentLine=45481986; - //BA.debugLineNum = 45481986;BA.debugLine="v.SetLayoutAnimated(0, 0, 0, Width, Height)"; + //BA.debugLineNum = 51;BA.debugLine="v.SetLayoutAnimated(0, 0, 0, Width, Height)"; _v.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); } }; -RDebugUtils.currentLine=45481988; - //BA.debugLineNum = 45481988;BA.debugLine="bc.Initialize(mBase.Width / xui.Scale, mBase.Heig"; -__ref._bc /*b4a.example.bitmapcreator*/ ._initialize(ba,(int) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getScale()),(int) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getScale())); -RDebugUtils.currentLine=45481989; - //BA.debugLineNum = 45481989;BA.debugLine="Vertical = mBase.Height > mBase.Width"; -__ref._vertical /*boolean*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()>__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(); -RDebugUtils.currentLine=45481990; - //BA.debugLineNum = 45481990;BA.debugLine="UpdateGraphics"; -__ref._updategraphics /*String*/ (null); -RDebugUtils.currentLine=45481992; - //BA.debugLineNum = 45481992;BA.debugLine="End Sub"; + //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 String _updategraphics(reparto_izca.keymon.lat.anotherprogressbar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "updategraphics", true)) - {return ((String) Debug.delegate(ba, "updategraphics", null));} -int _width = 0; -b4a.example.bitmapcreator _template = null; -b4a.example.bitmapcreator._argbcolor _bcolor = null; -RDebugUtils.currentLine=45744128; - //BA.debugLineNum = 45744128;BA.debugLine="Public Sub UpdateGraphics"; -RDebugUtils.currentLine=45744129; - //BA.debugLineNum = 45744129;BA.debugLine="EmptyBrush = bc.CreateBrushFromColor(EmptyColor)"; -__ref._emptybrush /*b4a.example.bcpath._bcbrush*/ = __ref._bc /*b4a.example.bitmapcreator*/ ._createbrushfromcolor(__ref._emptycolor /*int*/ ); -RDebugUtils.currentLine=45744130; - //BA.debugLineNum = 45744130;BA.debugLine="TransparentBrush = bc.CreateBrushFromColor(xui.Co"; -__ref._transparentbrush /*b4a.example.bcpath._bcbrush*/ = __ref._bc /*b4a.example.bitmapcreator*/ ._createbrushfromcolor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); -RDebugUtils.currentLine=45744131; - //BA.debugLineNum = 45744131;BA.debugLine="Dim Width As Int = 40"; -_width = (int) (40); -RDebugUtils.currentLine=45744132; - //BA.debugLineNum = 45744132;BA.debugLine="Dim Template As BitmapCreator"; -_template = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=45744133; - //BA.debugLineNum = 45744133;BA.debugLine="Dim bcolor As ARGBColor"; -_bcolor = new b4a.example.bitmapcreator._argbcolor(); -RDebugUtils.currentLine=45744134; - //BA.debugLineNum = 45744134;BA.debugLine="bc.ColorToARGB(BackgroundColor, bcolor)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._colortoargb(__ref._backgroundcolor /*int*/ ,_bcolor); -RDebugUtils.currentLine=45744135; - //BA.debugLineNum = 45744135;BA.debugLine="bcolor.r = Min(255, bcolor.r * 1.5)"; -_bcolor.r = (int) (__c.Min(255,_bcolor.r*1.5)); -RDebugUtils.currentLine=45744136; - //BA.debugLineNum = 45744136;BA.debugLine="bcolor.g = Min(255, bcolor.g * 1.5)"; -_bcolor.g = (int) (__c.Min(255,_bcolor.g*1.5)); -RDebugUtils.currentLine=45744137; - //BA.debugLineNum = 45744137;BA.debugLine="bcolor.b = Min(255, bcolor.b * 1.5)"; -_bcolor.b = (int) (__c.Min(255,_bcolor.b*1.5)); -RDebugUtils.currentLine=45744138; - //BA.debugLineNum = 45744138;BA.debugLine="If Vertical Then"; -if (__ref._vertical /*boolean*/ ) { -RDebugUtils.currentLine=45744139; - //BA.debugLineNum = 45744139;BA.debugLine="Template.Initialize(mBase.Width / xui.Scale, mBa"; -_template._initialize(ba,(int) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getScale()),(int) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getScale()+_width)); - }else { -RDebugUtils.currentLine=45744141; - //BA.debugLineNum = 45744141;BA.debugLine="Template.Initialize(mBase.Height / xui.Scale + W"; -_template._initialize(ba,(int) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getScale()+_width),(int) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getScale())); - }; -RDebugUtils.currentLine=45744144; - //BA.debugLineNum = 45744144;BA.debugLine="Template.DrawRect(Template.TargetRect, Background"; -_template._drawrect(_template._targetrect,__ref._backgroundcolor /*int*/ ,__c.True,(int) (0)); -RDebugUtils.currentLine=45744145; - //BA.debugLineNum = 45744145;BA.debugLine="If Vertical Then"; -if (__ref._vertical /*boolean*/ ) { -RDebugUtils.currentLine=45744146; - //BA.debugLineNum = 45744146;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),__ref._bc /*b4a.example.bitmapcreator*/ ._argbtocolor(_bcolor),_width); - }else { -RDebugUtils.currentLine=45744148; - //BA.debugLineNum = 45744148;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),__ref._bc /*b4a.example.bitmapcreator*/ ._argbtocolor(_bcolor),_width); - }; -RDebugUtils.currentLine=45744150; - //BA.debugLineNum = 45744150;BA.debugLine="BusyBrush = bc.CreateBrushFromBitmapCreator(Templ"; -__ref._busybrush /*b4a.example.bcpath._bcbrush*/ = __ref._bc /*b4a.example.bitmapcreator*/ ._createbrushfrombitmapcreator(_template); -RDebugUtils.currentLine=45744151; - //BA.debugLineNum = 45744151;BA.debugLine="If mValue = 100 Then"; -if (__ref._mvalue /*int*/ ==100) { -RDebugUtils.currentLine=45744152; - //BA.debugLineNum = 45744152;BA.debugLine="bc.DrawRectRounded(bc.TargetRect, BackgroundColo"; -__ref._bc /*b4a.example.bitmapcreator*/ ._drawrectrounded(__ref._bc /*b4a.example.bitmapcreator*/ ._targetrect,__ref._backgroundcolor /*int*/ ,__c.True,(int) (0),(int) (15)); - }else { -RDebugUtils.currentLine=45744154; - //BA.debugLineNum = 45744154;BA.debugLine="bc.DrawRectRounded2(bc.TargetRect, EmptyBrush, T"; -__ref._bc /*b4a.example.bitmapcreator*/ ._drawrectrounded2(__ref._bc /*b4a.example.bitmapcreator*/ ._targetrect,__ref._emptybrush /*b4a.example.bcpath._bcbrush*/ ,__c.True,(int) (0),(int) (15)); - }; -RDebugUtils.currentLine=45744156; - //BA.debugLineNum = 45744156;BA.debugLine="bc.SetBitmapToImageView(bc.Bitmap, mIV)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._setbitmaptoimageview(__ref._bc /*b4a.example.bitmapcreator*/ ._getbitmap(),__ref._miv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=45744157; - //BA.debugLineNum = 45744157;BA.debugLine="setVisible(mBase.Visible)"; -__ref._setvisible /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getVisible()); -RDebugUtils.currentLine=45744158; - //BA.debugLineNum = 45744158;BA.debugLine="End Sub"; -return ""; -} -public void _busyloop(reparto_izca.keymon.lat.anotherprogressbar __ref) throws Exception{ -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "busyloop", true)) - {Debug.delegate(ba, "busyloop", null); return;} -ResumableSub_BusyLoop rsub = new ResumableSub_BusyLoop(this,__ref); +public void _busyloop() throws Exception{ +ResumableSub_BusyLoop rsub = new ResumableSub_BusyLoop(this); rsub.resume(ba, null); } public static class ResumableSub_BusyLoop extends BA.ResumableSub { -public ResumableSub_BusyLoop(reparto_izca.keymon.lat.anotherprogressbar parent,reparto_izca.keymon.lat.anotherprogressbar __ref) { +public ResumableSub_BusyLoop(reparto_izca.keymon.lat.anotherprogressbar parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.anotherprogressbar __ref; reparto_izca.keymon.lat.anotherprogressbar parent; int _myindex = 0; anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null; @@ -211,7 +101,6 @@ anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="anotherprogressbar"; while (true) { switch (state) { @@ -221,26 +110,21 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=45547521; - //BA.debugLineNum = 45547521;BA.debugLine="Dim MyIndex As Int = BusyIndex"; -_myindex = __ref._busyindex /*int*/ ; -RDebugUtils.currentLine=45547522; - //BA.debugLineNum = 45547522;BA.debugLine="Dim r As B4XRect"; + //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(); -RDebugUtils.currentLine=45547523; - //BA.debugLineNum = 45547523;BA.debugLine="r.Initialize(0, 0, bc.mWidth, bc.mHeight)"; -_r.Initialize((float) (0),(float) (0),(float) (__ref._bc /*b4a.example.bitmapcreator*/ ._mwidth),(float) (__ref._bc /*b4a.example.bitmapcreator*/ ._mheight)); -RDebugUtils.currentLine=45547524; - //BA.debugLineNum = 45547524;BA.debugLine="Dim LastTime As Long = DateTime.Now"; + //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(); -RDebugUtils.currentLine=45547525; - //BA.debugLineNum = 45547525;BA.debugLine="Do While MyIndex = BusyIndex"; + //BA.debugLineNum = 64;BA.debugLine="Do While MyIndex = BusyIndex"; if (true) break; case 1: //do while this.state = 37; -while (_myindex==__ref._busyindex /*int*/ ) { +while (_myindex==parent._busyindex) { this.state = 3; if (true) break; } @@ -249,14 +133,13 @@ if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=45547526; - //BA.debugLineNum = 45547526;BA.debugLine="If Vertical Then"; + //BA.debugLineNum = 65;BA.debugLine="If Vertical Then"; if (true) break; case 4: //if this.state = 9; -if (__ref._vertical /*boolean*/ ) { +if (parent._vertical) { this.state = 6; }else { this.state = 8; @@ -265,37 +148,30 @@ this.state = 8; case 6: //C this.state = 9; -RDebugUtils.currentLine=45547527; - //BA.debugLineNum = 45547527;BA.debugLine="BusyBrush.SrcOffsetY = BusyBrush.SrcOffsetY + B"; -__ref._busybrush /*b4a.example.bcpath._bcbrush*/ .SrcOffsetY = (int) (__ref._busybrush /*b4a.example.bcpath._bcbrush*/ .SrcOffsetY+__ref._brushoffsetdelta /*int*/ ); + //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; -RDebugUtils.currentLine=45547529; - //BA.debugLineNum = 45547529;BA.debugLine="BusyBrush.SrcOffsetX = BusyBrush.SrcOffsetX + B"; -__ref._busybrush /*b4a.example.bcpath._bcbrush*/ .SrcOffsetX = (int) (__ref._busybrush /*b4a.example.bcpath._bcbrush*/ .SrcOffsetX+__ref._brushoffsetdelta /*int*/ ); + //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; ; -RDebugUtils.currentLine=45547531; - //BA.debugLineNum = 45547531;BA.debugLine="Dim tasks As List"; + //BA.debugLineNum = 70;BA.debugLine="Dim tasks As List"; _tasks = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=45547532; - //BA.debugLineNum = 45547532;BA.debugLine="tasks.Initialize"; + //BA.debugLineNum = 71;BA.debugLine="tasks.Initialize"; _tasks.Initialize(); -RDebugUtils.currentLine=45547533; - //BA.debugLineNum = 45547533;BA.debugLine="tasks.Add(bc.AsyncDrawRect(bc.TargetRect, Transp"; -_tasks.Add((Object)(__ref._bc /*b4a.example.bitmapcreator*/ ._asyncdrawrect(__ref._bc /*b4a.example.bitmapcreator*/ ._targetrect,__ref._transparentbrush /*b4a.example.bcpath._bcbrush*/ ,parent.__c.True,(int) (0)))); -RDebugUtils.currentLine=45547534; - //BA.debugLineNum = 45547534;BA.debugLine="Dim delta As Float = mValue - CurrentValue"; -_delta = (float) (__ref._mvalue /*int*/ -__ref._currentvalue /*float*/ ); -RDebugUtils.currentLine=45547535; - //BA.debugLineNum = 45547535;BA.debugLine="If Abs(delta) <= 1 Then"; + //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: @@ -310,19 +186,16 @@ this.state = 14; case 12: //C this.state = 21; -RDebugUtils.currentLine=45547536; - //BA.debugLineNum = 45547536;BA.debugLine="CurrentValue = mValue"; -__ref._currentvalue /*float*/ = (float) (__ref._mvalue /*int*/ ); + //BA.debugLineNum = 75;BA.debugLine="CurrentValue = mValue"; +parent._currentvalue = (float) (parent._mvalue); if (true) break; case 14: //C this.state = 15; -RDebugUtils.currentLine=45547538; - //BA.debugLineNum = 45547538;BA.debugLine="Dim change As Float = (DateTime.Now - LastTime)"; -_change = (float) ((parent.__c.DateTime.getNow()-_lasttime)/(double)1000*__ref._valuechangepersecond /*float*/ ); -RDebugUtils.currentLine=45547539; - //BA.debugLineNum = 45547539;BA.debugLine="If delta > 0 Then"; + //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: @@ -337,17 +210,15 @@ this.state = 19; case 17: //C this.state = 20; -RDebugUtils.currentLine=45547540; - //BA.debugLineNum = 45547540;BA.debugLine="CurrentValue = CurrentValue + Min(change, mVal"; -__ref._currentvalue /*float*/ = (float) (__ref._currentvalue /*float*/ +parent.__c.Min(_change,__ref._mvalue /*int*/ -__ref._currentvalue /*float*/ )); + //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; -RDebugUtils.currentLine=45547542; - //BA.debugLineNum = 45547542;BA.debugLine="CurrentValue = CurrentValue - Min(change, Curr"; -__ref._currentvalue /*float*/ = (float) (__ref._currentvalue /*float*/ -parent.__c.Min(_change,__ref._currentvalue /*float*/ -__ref._mvalue /*int*/ )); + //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: @@ -360,35 +231,31 @@ case 21: //C this.state = 22; ; -RDebugUtils.currentLine=45547545; - //BA.debugLineNum = 45547545;BA.debugLine="LastTime = DateTime.Now"; + //BA.debugLineNum = 84;BA.debugLine="LastTime = DateTime.Now"; _lasttime = parent.__c.DateTime.getNow(); -RDebugUtils.currentLine=45547546; - //BA.debugLineNum = 45547546;BA.debugLine="If CurrentValue < 100 Then"; + //BA.debugLineNum = 85;BA.debugLine="If CurrentValue < 100 Then"; if (true) break; case 22: //if this.state = 25; -if (__ref._currentvalue /*float*/ <100) { +if (parent._currentvalue<100) { this.state = 24; }if (true) break; case 24: //C this.state = 25; -RDebugUtils.currentLine=45547547; - //BA.debugLineNum = 45547547;BA.debugLine="tasks.Add(bc.AsyncDrawRectRounded(bc.TargetRect"; -_tasks.Add((Object)(__ref._bc /*b4a.example.bitmapcreator*/ ._asyncdrawrectrounded(__ref._bc /*b4a.example.bitmapcreator*/ ._targetrect,__ref._emptybrush /*b4a.example.bcpath._bcbrush*/ ,parent.__c.True,(int) (0),__ref._cornerradius /*int*/ ))); + //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; ; -RDebugUtils.currentLine=45547549; - //BA.debugLineNum = 45547549;BA.debugLine="If Vertical Then"; + //BA.debugLineNum = 88;BA.debugLine="If Vertical Then"; case 25: //if this.state = 30; -if (__ref._vertical /*boolean*/ ) { +if (parent._vertical) { this.state = 27; }else { this.state = 29; @@ -397,66 +264,58 @@ this.state = 29; case 27: //C this.state = 30; -RDebugUtils.currentLine=45547550; - //BA.debugLineNum = 45547550;BA.debugLine="r.Bottom = Round(CurrentValue / 100 * bc.mHeigh"; -_r.setBottom((float) (parent.__c.Round(__ref._currentvalue /*float*/ /(double)100*__ref._bc /*b4a.example.bitmapcreator*/ ._mheight))); + //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; -RDebugUtils.currentLine=45547552; - //BA.debugLineNum = 45547552;BA.debugLine="r.Right = Round(CurrentValue / 100 * bc.mWidth)"; -_r.setRight((float) (parent.__c.Round(__ref._currentvalue /*float*/ /(double)100*__ref._bc /*b4a.example.bitmapcreator*/ ._mwidth))); + //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; ; -RDebugUtils.currentLine=45547555; - //BA.debugLineNum = 45547555;BA.debugLine="tasks.Add(bc.AsyncDrawRectRounded(r, BusyBrush,"; -_tasks.Add((Object)(__ref._bc /*b4a.example.bitmapcreator*/ ._asyncdrawrectrounded(_r,__ref._busybrush /*b4a.example.bcpath._bcbrush*/ ,parent.__c.True,(int) (0),__ref._cornerradius /*int*/ ))); -RDebugUtils.currentLine=45547556; - //BA.debugLineNum = 45547556;BA.debugLine="bc.DrawBitmapCreatorsAsync(Me, \"BC\", tasks)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._drawbitmapcreatorsasync(parent,"BC",_tasks); -RDebugUtils.currentLine=45547557; - //BA.debugLineNum = 45547557;BA.debugLine="Wait For BC_BitmapReady (bmp As B4XBitmap)"; -parent.__c.WaitFor("bc_bitmapready", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "anotherprogressbar", "busyloop"), null); + //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[1]; +_bmp = (anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) result[0]; ; -RDebugUtils.currentLine=45547558; - //BA.debugLineNum = 45547558;BA.debugLine="If xui.IsB4J Then bmp = bc.Bitmap"; + //BA.debugLineNum = 97;BA.debugLine="If xui.IsB4J Then bmp = bc.Bitmap"; if (true) break; case 31: //if this.state = 36; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) { +if (parent._xui.getIsB4J()) { this.state = 33; ;}if (true) break; case 33: //C this.state = 36; -_bmp = __ref._bc /*b4a.example.bitmapcreator*/ ._getbitmap(); +_bmp = parent._bc._getbitmap(); if (true) break; case 36: //C this.state = 1; ; -RDebugUtils.currentLine=45547559; - //BA.debugLineNum = 45547559;BA.debugLine="bc.SetBitmapToImageView(bmp, mIV)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._setbitmaptoimageview(_bmp,__ref._miv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=45547560; - //BA.debugLineNum = 45547560;BA.debugLine="Sleep(30)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "anotherprogressbar", "busyloop"),(int) (30)); + //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: @@ -469,267 +328,224 @@ case 37: //C this.state = -1; ; -RDebugUtils.currentLine=45547562; - //BA.debugLineNum = 45547562;BA.debugLine="End Sub"; + //BA.debugLineNum = 101;BA.debugLine="End Sub"; if (true) break; } } } } -public String _class_globals(reparto_izca.keymon.lat.anotherprogressbar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -RDebugUtils.currentLine=45285376; - //BA.debugLineNum = 45285376;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=45285377; - //BA.debugLineNum = 45285377;BA.debugLine="Private mEventName As String 'ignore"; +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 = ""; -RDebugUtils.currentLine=45285378; - //BA.debugLineNum = 45285378;BA.debugLine="Private mCallBack As Object 'ignore"; + //BA.debugLineNum = 6;BA.debugLine="Private mCallBack As Object 'ignore"; _mcallback = new Object(); -RDebugUtils.currentLine=45285379; - //BA.debugLineNum = 45285379;BA.debugLine="Public mBase As B4XView 'ignore"; + //BA.debugLineNum = 7;BA.debugLine="Public mBase As B4XView 'ignore"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=45285380; - //BA.debugLineNum = 45285380;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 8;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=45285381; - //BA.debugLineNum = 45285381;BA.debugLine="Private BusyBrush As BCBrush"; + //BA.debugLineNum = 9;BA.debugLine="Private BusyBrush As BCBrush"; _busybrush = new b4a.example.bcpath._bcbrush(); -RDebugUtils.currentLine=45285382; - //BA.debugLineNum = 45285382;BA.debugLine="Private BackgroundColor As Int"; + //BA.debugLineNum = 10;BA.debugLine="Private BackgroundColor As Int"; _backgroundcolor = 0; -RDebugUtils.currentLine=45285383; - //BA.debugLineNum = 45285383;BA.debugLine="Private BusyIndex As Int"; + //BA.debugLineNum = 11;BA.debugLine="Private BusyIndex As Int"; _busyindex = 0; -RDebugUtils.currentLine=45285384; - //BA.debugLineNum = 45285384;BA.debugLine="Private bc As BitmapCreator"; + //BA.debugLineNum = 12;BA.debugLine="Private bc As BitmapCreator"; _bc = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=45285385; - //BA.debugLineNum = 45285385;BA.debugLine="Private mIV As B4XView"; + //BA.debugLineNum = 13;BA.debugLine="Private mIV As B4XView"; _miv = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=45285386; - //BA.debugLineNum = 45285386;BA.debugLine="Private TransparentBrush As BCBrush"; + //BA.debugLineNum = 14;BA.debugLine="Private TransparentBrush As BCBrush"; _transparentbrush = new b4a.example.bcpath._bcbrush(); -RDebugUtils.currentLine=45285387; - //BA.debugLineNum = 45285387;BA.debugLine="Private Vertical As Boolean"; + //BA.debugLineNum = 15;BA.debugLine="Private Vertical As Boolean"; _vertical = false; -RDebugUtils.currentLine=45285388; - //BA.debugLineNum = 45285388;BA.debugLine="Private CurrentValue As Float"; + //BA.debugLineNum = 16;BA.debugLine="Private CurrentValue As Float"; _currentvalue = 0f; -RDebugUtils.currentLine=45285389; - //BA.debugLineNum = 45285389;BA.debugLine="Public EmptyColor As Int = xui.Color_White"; -_emptycolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -RDebugUtils.currentLine=45285390; - //BA.debugLineNum = 45285390;BA.debugLine="Private EmptyBrush As BCBrush"; + //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(); -RDebugUtils.currentLine=45285391; - //BA.debugLineNum = 45285391;BA.debugLine="Private mValue As Int"; + //BA.debugLineNum = 19;BA.debugLine="Private mValue As Int"; _mvalue = 0; -RDebugUtils.currentLine=45285392; - //BA.debugLineNum = 45285392;BA.debugLine="Public Tag As Object"; + //BA.debugLineNum = 20;BA.debugLine="Public Tag As Object"; _tag = new Object(); -RDebugUtils.currentLine=45285393; - //BA.debugLineNum = 45285393;BA.debugLine="Public ValueChangePerSecond As Float = 60"; + //BA.debugLineNum = 21;BA.debugLine="Public ValueChangePerSecond As Float = 60"; _valuechangepersecond = (float) (60); -RDebugUtils.currentLine=45285394; - //BA.debugLineNum = 45285394;BA.debugLine="Public CornerRadius As Int"; + //BA.debugLineNum = 22;BA.debugLine="Public CornerRadius As Int"; _cornerradius = 0; -RDebugUtils.currentLine=45285395; - //BA.debugLineNum = 45285395;BA.debugLine="Public BrushOffsetDelta As Int = 3"; + //BA.debugLineNum = 23;BA.debugLine="Public BrushOffsetDelta As Int = 3"; _brushoffsetdelta = (int) (3); -RDebugUtils.currentLine=45285396; - //BA.debugLineNum = 45285396;BA.debugLine="End Sub"; + //BA.debugLineNum = 24;BA.debugLine="End Sub"; return ""; } -public String _designercreateview(reparto_izca.keymon.lat.anotherprogressbar __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} +public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ anywheresoftware.b4a.objects.ImageViewWrapper _iv = null; -RDebugUtils.currentLine=45416448; - //BA.debugLineNum = 45416448;BA.debugLine="Public Sub DesignerCreateView (Base As Object, lbl"; -RDebugUtils.currentLine=45416449; - //BA.debugLineNum = 45416449;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=45416450; - //BA.debugLineNum = 45416450;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=45416450; - //BA.debugLineNum = 45416450;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=45416451; - //BA.debugLineNum = 45416451;BA.debugLine="Dim iv As ImageView"; + //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(); -RDebugUtils.currentLine=45416452; - //BA.debugLineNum = 45416452;BA.debugLine="iv.Initialize(\"\")"; + //BA.debugLineNum = 36;BA.debugLine="iv.Initialize(\"\")"; _iv.Initialize(ba,""); -RDebugUtils.currentLine=45416453; - //BA.debugLineNum = 45416453;BA.debugLine="mIV = iv"; -__ref._miv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iv.getObject())); -RDebugUtils.currentLine=45416454; - //BA.debugLineNum = 45416454;BA.debugLine="mIV.Color = xui.Color_Transparent"; -__ref._miv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); -RDebugUtils.currentLine=45416455; - //BA.debugLineNum = 45416455;BA.debugLine="setValue(Props.GetDefault(\"Value\", 100))"; -__ref._setvalue /*String*/ (null,(int)(BA.ObjectToNumber(_props.GetDefault((Object)("Value"),(Object)(100))))); -RDebugUtils.currentLine=45416456; - //BA.debugLineNum = 45416456;BA.debugLine="CurrentValue = mValue"; -__ref._currentvalue /*float*/ = (float) (__ref._mvalue /*int*/ ); -RDebugUtils.currentLine=45416457; - //BA.debugLineNum = 45416457;BA.debugLine="mBase.AddView(mIV, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._miv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=45416458; - //BA.debugLineNum = 45416458;BA.debugLine="mBase.AddView(lbl, 0, 0, mBase.Width, mBase.Heigh"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_lbl.getObject()),(int) (0),(int) (0),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=45416459; - //BA.debugLineNum = 45416459;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=45416460; - //BA.debugLineNum = 45416460;BA.debugLine="BackgroundColor = xui.PaintOrColorToColor(Props.G"; -__ref._backgroundcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("ProgressColor"))); -RDebugUtils.currentLine=45416461; - //BA.debugLineNum = 45416461;BA.debugLine="CornerRadius = Props.GetDefault(\"CornerRadius\", 1"; -__ref._cornerradius /*int*/ = (int)(BA.ObjectToNumber(_props.GetDefault((Object)("CornerRadius"),(Object)(15)))); -RDebugUtils.currentLine=45416462; - //BA.debugLineNum = 45416462;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)"; -__ref._base_resize /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=45416463; - //BA.debugLineNum = 45416463;BA.debugLine="End Sub"; + //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 String _setvalue(reparto_izca.keymon.lat.anotherprogressbar __ref,int _v) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "setvalue", true)) - {return ((String) Debug.delegate(ba, "setvalue", new Object[] {_v}));} -RDebugUtils.currentLine=46006272; - //BA.debugLineNum = 46006272;BA.debugLine="Public Sub setValue (v As Int)"; -RDebugUtils.currentLine=46006273; - //BA.debugLineNum = 46006273;BA.debugLine="mValue = Max(0, Min(100, v))"; -__ref._mvalue /*int*/ = (int) (__c.Max(0,__c.Min(100,_v))); -RDebugUtils.currentLine=46006274; - //BA.debugLineNum = 46006274;BA.debugLine="End Sub"; -return ""; -} -public int _getprogresscolor(reparto_izca.keymon.lat.anotherprogressbar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "getprogresscolor", true)) - {return ((Integer) Debug.delegate(ba, "getprogresscolor", null));} -RDebugUtils.currentLine=45613056; - //BA.debugLineNum = 45613056;BA.debugLine="Public Sub getProgressColor As Int"; -RDebugUtils.currentLine=45613057; - //BA.debugLineNum = 45613057;BA.debugLine="Return BackgroundColor"; -if (true) return __ref._backgroundcolor /*int*/ ; -RDebugUtils.currentLine=45613058; - //BA.debugLineNum = 45613058;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.anotherprogressbar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "getvalue", true)) - {return ((Integer) Debug.delegate(ba, "getvalue", null));} -RDebugUtils.currentLine=45940736; - //BA.debugLineNum = 45940736;BA.debugLine="Public Sub getValue As Int"; -RDebugUtils.currentLine=45940737; - //BA.debugLineNum = 45940737;BA.debugLine="Return mValue"; -if (true) return __ref._mvalue /*int*/ ; -RDebugUtils.currentLine=45940738; - //BA.debugLineNum = 45940738;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.anotherprogressbar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "getvisible", true)) - {return ((Boolean) Debug.delegate(ba, "getvisible", null));} -RDebugUtils.currentLine=45875200; - //BA.debugLineNum = 45875200;BA.debugLine="Public Sub getVisible As Boolean"; -RDebugUtils.currentLine=45875201; - //BA.debugLineNum = 45875201;BA.debugLine="Return mBase.Visible"; -if (true) return __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getVisible(); -RDebugUtils.currentLine=45875202; - //BA.debugLineNum = 45875202;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.anotherprogressbar __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=45350912; - //BA.debugLineNum = 45350912;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=45350913; - //BA.debugLineNum = 45350913;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=45350914; - //BA.debugLineNum = 45350914;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=45350915; - //BA.debugLineNum = 45350915;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.anotherprogressbar __ref,int _c) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "setprogresscolor", true)) - {return ((String) Debug.delegate(ba, "setprogresscolor", new Object[] {_c}));} -RDebugUtils.currentLine=45678592; - //BA.debugLineNum = 45678592;BA.debugLine="Public Sub setProgressColor (c As Int)"; -RDebugUtils.currentLine=45678593; - //BA.debugLineNum = 45678593;BA.debugLine="BackgroundColor = c"; -__ref._backgroundcolor /*int*/ = _c; -RDebugUtils.currentLine=45678594; - //BA.debugLineNum = 45678594;BA.debugLine="UpdateGraphics"; -__ref._updategraphics /*String*/ (null); -RDebugUtils.currentLine=45678595; - //BA.debugLineNum = 45678595;BA.debugLine="End Sub"; +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 _setvaluenoanimation(reparto_izca.keymon.lat.anotherprogressbar __ref,int _v) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "setvaluenoanimation", true)) - {return ((String) Debug.delegate(ba, "setvaluenoanimation", new Object[] {_v}));} -RDebugUtils.currentLine=46071808; - //BA.debugLineNum = 46071808;BA.debugLine="Public Sub SetValueNoAnimation (v As Int)"; -RDebugUtils.currentLine=46071809; - //BA.debugLineNum = 46071809;BA.debugLine="setValue(v)"; -__ref._setvalue /*String*/ (null,_v); -RDebugUtils.currentLine=46071810; - //BA.debugLineNum = 46071810;BA.debugLine="CurrentValue = mValue"; -__ref._currentvalue /*float*/ = (float) (__ref._mvalue /*int*/ ); -RDebugUtils.currentLine=46071811; - //BA.debugLineNum = 46071811;BA.debugLine="End Sub"; +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 _setvisible(reparto_izca.keymon.lat.anotherprogressbar __ref,boolean _b) throws Exception{ -__ref = this; -RDebugUtils.currentModule="anotherprogressbar"; -if (Debug.shouldDelegate(ba, "setvisible", true)) - {return ((String) Debug.delegate(ba, "setvisible", new Object[] {_b}));} -RDebugUtils.currentLine=45809664; - //BA.debugLineNum = 45809664;BA.debugLine="Public Sub setVisible(b As Boolean)"; -RDebugUtils.currentLine=45809665; - //BA.debugLineNum = 45809665;BA.debugLine="BusyIndex = BusyIndex + 1"; -__ref._busyindex /*int*/ = (int) (__ref._busyindex /*int*/ +1); -RDebugUtils.currentLine=45809666; - //BA.debugLineNum = 45809666;BA.debugLine="If b Then"; +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) { -RDebugUtils.currentLine=45809667; - //BA.debugLineNum = 45809667;BA.debugLine="BusyLoop"; -__ref._busyloop /*void*/ (null); + //BA.debugLineNum = 148;BA.debugLine="BusyLoop"; +_busyloop(); }; -RDebugUtils.currentLine=45809669; - //BA.debugLineNum = 45809669;BA.debugLine="mBase.Visible = b"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(_b); -RDebugUtils.currentLine=45809670; - //BA.debugLineNum = 45809670;BA.debugLine="End Sub"; + //BA.debugLineNum = 150;BA.debugLine="mBase.Visible = b"; +_mbase.setVisible(_b); + //BA.debugLineNum = 151;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public String _updategraphics() throws Exception{ +int _width = 0; +b4a.example.bitmapcreator _template = null; +b4a.example.bitmapcreator._argbcolor _bcolor = null; + //BA.debugLineNum = 112;BA.debugLine="Public Sub UpdateGraphics"; + //BA.debugLineNum = 113;BA.debugLine="EmptyBrush = bc.CreateBrushFromColor(EmptyColor)"; +_emptybrush = _bc._createbrushfromcolor(_emptycolor); + //BA.debugLineNum = 114;BA.debugLine="TransparentBrush = bc.CreateBrushFromColor(xui.Co"; +_transparentbrush = _bc._createbrushfromcolor(_xui.Color_Transparent); + //BA.debugLineNum = 115;BA.debugLine="Dim Width As Int = 40"; +_width = (int) (40); + //BA.debugLineNum = 116;BA.debugLine="Dim Template As BitmapCreator"; +_template = new b4a.example.bitmapcreator(); + //BA.debugLineNum = 117;BA.debugLine="Dim bcolor As ARGBColor"; +_bcolor = new b4a.example.bitmapcreator._argbcolor(); + //BA.debugLineNum = 118;BA.debugLine="bc.ColorToARGB(BackgroundColor, bcolor)"; +_bc._colortoargb(_backgroundcolor,_bcolor); + //BA.debugLineNum = 119;BA.debugLine="bcolor.r = Min(255, bcolor.r * 1.5)"; +_bcolor.r = (int) (__c.Min(255,_bcolor.r*1.5)); + //BA.debugLineNum = 120;BA.debugLine="bcolor.g = Min(255, bcolor.g * 1.5)"; +_bcolor.g = (int) (__c.Min(255,_bcolor.g*1.5)); + //BA.debugLineNum = 121;BA.debugLine="bcolor.b = Min(255, bcolor.b * 1.5)"; +_bcolor.b = (int) (__c.Min(255,_bcolor.b*1.5)); + //BA.debugLineNum = 122;BA.debugLine="If Vertical Then"; +if (_vertical) { + //BA.debugLineNum = 123;BA.debugLine="Template.Initialize(mBase.Width / xui.Scale, mBa"; +_template._initialize(ba,(int) (_mbase.getWidth()/(double)_xui.getScale()),(int) (_mbase.getWidth()/(double)_xui.getScale()+_width)); + }else { + //BA.debugLineNum = 125;BA.debugLine="Template.Initialize(mBase.Height / xui.Scale + W"; +_template._initialize(ba,(int) (_mbase.getHeight()/(double)_xui.getScale()+_width),(int) (_mbase.getHeight()/(double)_xui.getScale())); + }; + //BA.debugLineNum = 128;BA.debugLine="Template.DrawRect(Template.TargetRect, Background"; +_template._drawrect(_template._targetrect,_backgroundcolor,__c.True,(int) (0)); + //BA.debugLineNum = 129;BA.debugLine="If Vertical Then"; +if (_vertical) { + //BA.debugLineNum = 130;BA.debugLine="Template.DrawLine(-Width / 2, Width / 2, Templat"; +_template._drawline((float) (-_width/(double)2),(float) (_width/(double)2),(float) (_template._mwidth+_width/(double)2),(float) (_template._mheight-_width/(double)2),_bc._argbtocolor(_bcolor),_width); + }else { + //BA.debugLineNum = 132;BA.debugLine="Template.DrawLine(Width / 2, -Width / 2, Templat"; +_template._drawline((float) (_width/(double)2),(float) (-_width/(double)2),(float) (_template._mwidth-_width/(double)2),(float) (_template._mheight+_width/(double)2),_bc._argbtocolor(_bcolor),_width); + }; + //BA.debugLineNum = 134;BA.debugLine="BusyBrush = bc.CreateBrushFromBitmapCreator(Templ"; +_busybrush = _bc._createbrushfrombitmapcreator(_template); + //BA.debugLineNum = 135;BA.debugLine="If mValue = 100 Then"; +if (_mvalue==100) { + //BA.debugLineNum = 136;BA.debugLine="bc.DrawRectRounded(bc.TargetRect, BackgroundColo"; +_bc._drawrectrounded(_bc._targetrect,_backgroundcolor,__c.True,(int) (0),(int) (15)); + }else { + //BA.debugLineNum = 138;BA.debugLine="bc.DrawRectRounded2(bc.TargetRect, EmptyBrush, T"; +_bc._drawrectrounded2(_bc._targetrect,_emptybrush,__c.True,(int) (0),(int) (15)); + }; + //BA.debugLineNum = 140;BA.debugLine="bc.SetBitmapToImageView(bc.Bitmap, mIV)"; +_bc._setbitmaptoimageview(_bc._getbitmap(),_miv); + //BA.debugLineNum = 141;BA.debugLine="setVisible(mBase.Visible)"; +_setvisible(_mbase.getVisible()); + //BA.debugLineNum = 142;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/appupdater.java b/B4A/Objects/src/reparto_izca/keymon/lat/appupdater.java index 640cf0c..2e23a6e 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/appupdater.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/appupdater.java @@ -14,7 +14,7 @@ public class appupdater extends android.app.Service{ 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, anywheresoftware.b4a.ShellBA.class); + ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, false, BA.class); } } @@ -29,7 +29,7 @@ public class appupdater extends android.app.Service{ super.onCreate(); mostCurrent = this; if (processBA == null) { - processBA = new anywheresoftware.b4a.ShellBA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.appupdater"); + processBA = new BA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.appupdater"); if (BA.isShellModeRuntimeCheck(processBA)) { processBA.raiseEvent2(null, true, "SHELL", false); } @@ -127,31 +127,7 @@ public class appupdater extends android.app.Service{ @Override public android.os.IBinder onBind(android.content.Intent intent) { return 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 anywheresoftware.b4a.keywords.Common __c = 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; @@ -175,117 +151,95 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; +public static class _mnewversion{ +public boolean IsInitialized; +public boolean update; +public boolean nonewAPP; +public boolean notifyUser; +public String version; +public String newMsg; +public String okMsg; +public String appLink; +public void Initialize() { +IsInitialized = true; +update = false; +nonewAPP = false; +notifyUser = false; +version = ""; +newMsg = ""; +okMsg = ""; +appLink = ""; +} +@Override + public String toString() { + return BA.TypeToString(this, false); + }} public static anywheresoftware.b4a.objects.NotificationWrapper _createnotification(String _title,String _content,String _icon,Object _targetactivity,boolean _sound,boolean _vibrate) throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "createnotification", false)) - {return ((anywheresoftware.b4a.objects.NotificationWrapper) Debug.delegate(processBA, "createnotification", new Object[] {_title,_content,_icon,_targetactivity,_sound,_vibrate}));} -RDebugUtils.currentLine=851968; - //BA.debugLineNum = 851968;BA.debugLine="Private Sub CreateNotification(Title As String, Co"; -RDebugUtils.currentLine=851969; - //BA.debugLineNum = 851969;BA.debugLine="n2.Initialize"; + //BA.debugLineNum = 222;BA.debugLine="Private Sub CreateNotification(Title As String, Co"; + //BA.debugLineNum = 223;BA.debugLine="n2.Initialize"; _n2.Initialize(); -RDebugUtils.currentLine=851970; - //BA.debugLineNum = 851970;BA.debugLine="n2.Light = False"; + //BA.debugLineNum = 224;BA.debugLine="n2.Light = False"; _n2.setLight(anywheresoftware.b4a.keywords.Common.False); -RDebugUtils.currentLine=851971; - //BA.debugLineNum = 851971;BA.debugLine="n2.Vibrate = Vibrate"; + //BA.debugLineNum = 225;BA.debugLine="n2.Vibrate = Vibrate"; _n2.setVibrate(_vibrate); -RDebugUtils.currentLine=851972; - //BA.debugLineNum = 851972;BA.debugLine="n2.Sound = Sound"; + //BA.debugLineNum = 226;BA.debugLine="n2.Sound = Sound"; _n2.setSound(_sound); -RDebugUtils.currentLine=851973; - //BA.debugLineNum = 851973;BA.debugLine="n2.OnGoingEvent = True"; + //BA.debugLineNum = 227;BA.debugLine="n2.OnGoingEvent = True"; _n2.setOnGoingEvent(anywheresoftware.b4a.keywords.Common.True); -RDebugUtils.currentLine=851974; - //BA.debugLineNum = 851974;BA.debugLine="n2.Icon = Icon"; + //BA.debugLineNum = 228;BA.debugLine="n2.Icon = Icon"; _n2.setIcon(_icon); -RDebugUtils.currentLine=851975; - //BA.debugLineNum = 851975;BA.debugLine="n2.SetInfo(Title, Content, TargetActivity)"; + //BA.debugLineNum = 229;BA.debugLine="n2.SetInfo(Title, Content, TargetActivity)"; _n2.SetInfoNew(processBA,BA.ObjectToCharSequence(_title),BA.ObjectToCharSequence(_content),_targetactivity); -RDebugUtils.currentLine=851976; - //BA.debugLineNum = 851976;BA.debugLine="n2.Notify(nNewAppnID)"; + //BA.debugLineNum = 230;BA.debugLine="n2.Notify(nNewAppnID)"; _n2.Notify(_nnewappnid); -RDebugUtils.currentLine=851977; - //BA.debugLineNum = 851977;BA.debugLine="End Sub"; + //BA.debugLineNum = 231;BA.debugLine="End Sub"; return null; } public static anywheresoftware.b4a.objects.NotificationWrapper _createnotification2(String _title,String _content,String _icon,Object _targetactivity,boolean _sound,boolean _vibrate,anywheresoftware.b4a.objects.NotificationWrapper _pn,int _pnid) throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "createnotification2", false)) - {return ((anywheresoftware.b4a.objects.NotificationWrapper) Debug.delegate(processBA, "createnotification2", new Object[] {_title,_content,_icon,_targetactivity,_sound,_vibrate,_pn,_pnid}));} -RDebugUtils.currentLine=786432; - //BA.debugLineNum = 786432;BA.debugLine="Private Sub CreateNotification2(Title As String, C"; -RDebugUtils.currentLine=786435; - //BA.debugLineNum = 786435;BA.debugLine="pN.Initialize2(pN.IMPORTANCE_HIGH)"; + //BA.debugLineNum = 206;BA.debugLine="Private Sub CreateNotification2(Title As String, C"; + //BA.debugLineNum = 209;BA.debugLine="pN.Initialize2(pN.IMPORTANCE_HIGH)"; _pn.Initialize2(_pn.IMPORTANCE_HIGH); -RDebugUtils.currentLine=786438; - //BA.debugLineNum = 786438;BA.debugLine="pN.Vibrate = Vibrate"; + //BA.debugLineNum = 212;BA.debugLine="pN.Vibrate = Vibrate"; _pn.setVibrate(_vibrate); -RDebugUtils.currentLine=786439; - //BA.debugLineNum = 786439;BA.debugLine="pN.Sound = Sound"; + //BA.debugLineNum = 213;BA.debugLine="pN.Sound = Sound"; _pn.setSound(_sound); -RDebugUtils.currentLine=786441; - //BA.debugLineNum = 786441;BA.debugLine="pN.Icon = Icon"; + //BA.debugLineNum = 215;BA.debugLine="pN.Icon = Icon"; _pn.setIcon(_icon); -RDebugUtils.currentLine=786442; - //BA.debugLineNum = 786442;BA.debugLine="pN.AutoCancel = True"; + //BA.debugLineNum = 216;BA.debugLine="pN.AutoCancel = True"; _pn.setAutoCancel(anywheresoftware.b4a.keywords.Common.True); -RDebugUtils.currentLine=786443; - //BA.debugLineNum = 786443;BA.debugLine="pN.SetInfo(Title, Content, TargetActivity)"; + //BA.debugLineNum = 217;BA.debugLine="pN.SetInfo(Title, Content, TargetActivity)"; _pn.SetInfoNew(processBA,BA.ObjectToCharSequence(_title),BA.ObjectToCharSequence(_content),_targetactivity); -RDebugUtils.currentLine=786444; - //BA.debugLineNum = 786444;BA.debugLine="pN.Notify(pNID)"; + //BA.debugLineNum = 218;BA.debugLine="pN.Notify(pNID)"; _pn.Notify(_pnid); -RDebugUtils.currentLine=786445; - //BA.debugLineNum = 786445;BA.debugLine="Return pN"; + //BA.debugLineNum = 219;BA.debugLine="Return pN"; if (true) return _pn; -RDebugUtils.currentLine=786446; - //BA.debugLineNum = 786446;BA.debugLine="End Sub"; + //BA.debugLineNum = 220;BA.debugLine="End Sub"; return null; } public static reparto_izca.keymon.lat.httpjob _download(Object _callback,String _link) throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "download", false)) - {return ((reparto_izca.keymon.lat.httpjob) Debug.delegate(processBA, "download", new Object[] {_callback,_link}));} reparto_izca.keymon.lat.httpjob _j = null; -RDebugUtils.currentLine=720896; - //BA.debugLineNum = 720896;BA.debugLine="Sub Download (Callback As Object, link As String)"; -RDebugUtils.currentLine=720897; - //BA.debugLineNum = 720897;BA.debugLine="Dim j As HttpJob"; + //BA.debugLineNum = 199;BA.debugLine="Sub Download (Callback As Object, link As String)"; + //BA.debugLineNum = 200;BA.debugLine="Dim j As HttpJob"; _j = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=720898; - //BA.debugLineNum = 720898;BA.debugLine="j.Initialize(\"\", Callback)"; -_j._initialize /*String*/ (null,processBA,"",_callback); -RDebugUtils.currentLine=720899; - //BA.debugLineNum = 720899;BA.debugLine="j.Download(link)"; -_j._download /*String*/ (null,_link); -RDebugUtils.currentLine=720900; - //BA.debugLineNum = 720900;BA.debugLine="Return j"; + //BA.debugLineNum = 201;BA.debugLine="j.Initialize(\"\", Callback)"; +_j._initialize /*String*/ (processBA,"",_callback); + //BA.debugLineNum = 202;BA.debugLine="j.Download(link)"; +_j._download /*String*/ (_link); + //BA.debugLineNum = 203;BA.debugLine="Return j"; if (true) return _j; -RDebugUtils.currentLine=720901; - //BA.debugLineNum = 720901;BA.debugLine="End Sub"; + //BA.debugLineNum = 204;BA.debugLine="End Sub"; return null; } public static String _download_destroy() throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "download_destroy", false)) - {return ((String) Debug.delegate(processBA, "download_destroy", null));} -RDebugUtils.currentLine=655360; - //BA.debugLineNum = 655360;BA.debugLine="Sub download_Destroy"; -RDebugUtils.currentLine=655361; - //BA.debugLineNum = 655361;BA.debugLine="n2.Cancel(n2ID)"; + //BA.debugLineNum = 194;BA.debugLine="Sub download_Destroy"; + //BA.debugLineNum = 195;BA.debugLine="n2.Cancel(n2ID)"; _n2.Cancel(_n2id); -RDebugUtils.currentLine=655362; - //BA.debugLineNum = 655362;BA.debugLine="Service.StopForeground(n2ID)"; + //BA.debugLineNum = 196;BA.debugLine="Service.StopForeground(n2ID)"; mostCurrent._service.StopForeground(_n2id); -RDebugUtils.currentLine=655363; - //BA.debugLineNum = 655363;BA.debugLine="End Sub"; + //BA.debugLineNum = 197;BA.debugLine="End Sub"; return ""; } public static void _download_newapk() throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "download_newapk", false)) - {Debug.delegate(processBA, "download_newapk", null); return;} ResumableSub_download_newApk rsub = new ResumableSub_download_newApk(null); rsub.resume(processBA, null); } @@ -300,7 +254,6 @@ anywheresoftware.b4a.objects.IntentWrapper _in = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="appupdater"; while (true) { switch (state) { @@ -310,30 +263,22 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=589827; - //BA.debugLineNum = 589827;BA.debugLine="Log(\"Descargando actualización\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("2589827","Descargando actualización",0); -RDebugUtils.currentLine=589828; - //BA.debugLineNum = 589828;BA.debugLine="B4XPages.ShowPage(\"login\")"; + //BA.debugLineNum = 159;BA.debugLine="Log(\"Descargando actualización\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("0851971","Descargando actualización",0); + //BA.debugLineNum = 160;BA.debugLine="B4XPages.ShowPage(\"login\")"; parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"login"); -RDebugUtils.currentLine=589829; - //BA.debugLineNum = 589829;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Descargando ac"; -parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ (null,"Descargando actualización"); -RDebugUtils.currentLine=589830; - //BA.debugLineNum = 589830;BA.debugLine="Starter.muestraProgreso = 1"; + //BA.debugLineNum = 161;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Descargando ac"; +parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ ("Descargando actualización"); + //BA.debugLineNum = 162;BA.debugLine="Starter.muestraProgreso = 1"; parent.mostCurrent._starter._muestraprogreso /*String*/ = BA.NumberToString(1); -RDebugUtils.currentLine=589831; - //BA.debugLineNum = 589831;BA.debugLine="Dim job_newAPP As HttpJob"; + //BA.debugLineNum = 163;BA.debugLine="Dim job_newAPP As HttpJob"; _job_newapp = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=589832; - //BA.debugLineNum = 589832;BA.debugLine="job_newAPP.Initialize(\"job_newAPP\",Me)"; -_job_newapp._initialize /*String*/ (null,processBA,"job_newAPP",appupdater.getObject()); -RDebugUtils.currentLine=589833; - //BA.debugLineNum = 589833;BA.debugLine="job_newAPP.Download(newApp.appLink)"; -_job_newapp._download /*String*/ (null,parent._newapp.appLink /*String*/ ); -RDebugUtils.currentLine=589834; - //BA.debugLineNum = 589834;BA.debugLine="Wait for (job_newAPP) JobDone (job_newAPP As Http"; -anywheresoftware.b4a.keywords.Common.WaitFor("jobdone", processBA, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "appupdater", "download_newapk"), (Object)(_job_newapp)); + //BA.debugLineNum = 164;BA.debugLine="job_newAPP.Initialize(\"job_newAPP\",Me)"; +_job_newapp._initialize /*String*/ (processBA,"job_newAPP",appupdater.getObject()); + //BA.debugLineNum = 165;BA.debugLine="job_newAPP.Download(newApp.appLink)"; +_job_newapp._download /*String*/ (parent._newapp.appLink /*String*/ ); + //BA.debugLineNum = 166;BA.debugLine="Wait for (job_newAPP) JobDone (job_newAPP As Http"; +anywheresoftware.b4a.keywords.Common.WaitFor("jobdone", processBA, this, (Object)(_job_newapp)); this.state = 9; return; case 9: @@ -341,8 +286,7 @@ case 9: this.state = 1; _job_newapp = (reparto_izca.keymon.lat.httpjob) result[0]; ; -RDebugUtils.currentLine=589835; - //BA.debugLineNum = 589835;BA.debugLine="If job_newAPP.Success = True Then"; + //BA.debugLineNum = 167;BA.debugLine="If job_newAPP.Success = True Then"; if (true) break; case 1: @@ -355,8 +299,7 @@ this.state = 3; case 3: //C this.state = 4; -RDebugUtils.currentLine=589837; - //BA.debugLineNum = 589837;BA.debugLine="If File.Exists(SharedFolder,\"newapp.apk\") Then"; + //BA.debugLineNum = 169;BA.debugLine="If File.Exists(SharedFolder,\"newapp.apk\") Then"; if (true) break; case 4: @@ -369,8 +312,7 @@ this.state = 6; case 6: //C this.state = 7; -RDebugUtils.currentLine=589838; - //BA.debugLineNum = 589838;BA.debugLine="File.Delete(SharedFolder,\"newapp.apk\")"; + //BA.debugLineNum = 170;BA.debugLine="File.Delete(SharedFolder,\"newapp.apk\")"; anywheresoftware.b4a.keywords.Common.File.Delete(parent._sharedfolder,"newapp.apk"); if (true) break; @@ -378,233 +320,170 @@ case 7: //C this.state = 8; ; -RDebugUtils.currentLine=589841; - //BA.debugLineNum = 589841;BA.debugLine="Dim outNewAPK As OutputStream = File.OpenOutput("; + //BA.debugLineNum = 173;BA.debugLine="Dim outNewAPK As OutputStream = File.OpenOutput("; _outnewapk = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); _outnewapk = anywheresoftware.b4a.keywords.Common.File.OpenOutput(parent._sharedfolder,"newapp.apk",anywheresoftware.b4a.keywords.Common.False); -RDebugUtils.currentLine=589842; - //BA.debugLineNum = 589842;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*/ (null).getObject()),(java.io.OutputStream)(_outnewapk.getObject())); -RDebugUtils.currentLine=589843; - //BA.debugLineNum = 589843;BA.debugLine="outNewAPK.Close"; + //BA.debugLineNum = 174;BA.debugLine="File.Copy2(job_newAPP.GetInputStream, outNewAPK)"; +anywheresoftware.b4a.keywords.Common.File.Copy2((java.io.InputStream)(_job_newapp._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ ().getObject()),(java.io.OutputStream)(_outnewapk.getObject())); + //BA.debugLineNum = 175;BA.debugLine="outNewAPK.Close"; _outnewapk.Close(); -RDebugUtils.currentLine=589845; - //BA.debugLineNum = 589845;BA.debugLine="B4XPages.MainPage.ocultaProgreso"; -parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._ocultaprogreso /*String*/ (null); -RDebugUtils.currentLine=589846; - //BA.debugLineNum = 589846;BA.debugLine="Log(\"ocultamos prigreso DOWNLOAD APK\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("2589846","ocultamos prigreso DOWNLOAD APK",0); + //BA.debugLineNum = 177;BA.debugLine="B4XPages.MainPage.ocultaProgreso"; +parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._ocultaprogreso /*String*/ (); + //BA.debugLineNum = 178;BA.debugLine="Log(\"ocultamos prigreso DOWNLOAD APK\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("0851990","ocultamos prigreso DOWNLOAD APK",0); if (true) break; case 8: //C this.state = -1; ; -RDebugUtils.currentLine=589848; - //BA.debugLineNum = 589848;BA.debugLine="job_newAPP.Release"; -_job_newapp._release /*String*/ (null); -RDebugUtils.currentLine=589850; - //BA.debugLineNum = 589850;BA.debugLine="Dim in As Intent"; + //BA.debugLineNum = 180;BA.debugLine="job_newAPP.Release"; +_job_newapp._release /*String*/ (); + //BA.debugLineNum = 182;BA.debugLine="Dim in As Intent"; _in = new anywheresoftware.b4a.objects.IntentWrapper(); -RDebugUtils.currentLine=589851; - //BA.debugLineNum = 589851;BA.debugLine="in.Initialize(in.ACTION_VIEW,\"\" )"; + //BA.debugLineNum = 183;BA.debugLine="in.Initialize(in.ACTION_VIEW,\"\" )"; _in.Initialize(_in.ACTION_VIEW,""); -RDebugUtils.currentLine=589852; - //BA.debugLineNum = 589852;BA.debugLine="SetFileUriAsIntentData(in, \"newapp.apk\")"; + //BA.debugLineNum = 184;BA.debugLine="SetFileUriAsIntentData(in, \"newapp.apk\")"; _setfileuriasintentdata(_in,"newapp.apk"); -RDebugUtils.currentLine=589854; - //BA.debugLineNum = 589854;BA.debugLine="in.SetType(\"application/vnd.android.package-archi"; + //BA.debugLineNum = 186;BA.debugLine="in.SetType(\"application/vnd.android.package-archi"; _in.SetType("application/vnd.android.package-archive"); -RDebugUtils.currentLine=589855; - //BA.debugLineNum = 589855;BA.debugLine="StartActivity(in)"; + //BA.debugLineNum = 187;BA.debugLine="StartActivity(in)"; anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(_in.getObject())); -RDebugUtils.currentLine=589856; - //BA.debugLineNum = 589856;BA.debugLine="n2.Cancel(nNewAppnID)"; + //BA.debugLineNum = 188;BA.debugLine="n2.Cancel(nNewAppnID)"; parent._n2.Cancel(parent._nnewappnid); -RDebugUtils.currentLine=589858; - //BA.debugLineNum = 589858;BA.debugLine="StopService(Me)"; + //BA.debugLineNum = 190;BA.debugLine="StopService(Me)"; anywheresoftware.b4a.keywords.Common.StopService(processBA,appupdater.getObject()); -RDebugUtils.currentLine=589860; - //BA.debugLineNum = 589860;BA.debugLine="End Sub"; + //BA.debugLineNum = 192;BA.debugLine="End Sub"; if (true) break; } } } } -public static String _setfileuriasintentdata(anywheresoftware.b4a.objects.IntentWrapper _intent,String _filename) throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "setfileuriasintentdata", false)) - {return ((String) Debug.delegate(processBA, "setfileuriasintentdata", new Object[] {_intent,_filename}));} -anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=1114112; - //BA.debugLineNum = 1114112;BA.debugLine="Sub SetFileUriAsIntentData (Intent As Intent, File"; -RDebugUtils.currentLine=1114113; - //BA.debugLineNum = 1114113;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())); -RDebugUtils.currentLine=1114114; - //BA.debugLineNum = 1114114;BA.debugLine="jo.RunMethod(\"setData\", Array(GetFileUri(FileName"; -_jo.RunMethod("setData",new Object[]{_getfileuri(_filename)}); -RDebugUtils.currentLine=1114115; - //BA.debugLineNum = 1114115;BA.debugLine="Intent.Flags = Bit.Or(Intent.Flags, 1) 'FLAG_GRAN"; -_intent.setFlags(anywheresoftware.b4a.keywords.Common.Bit.Or(_intent.getFlags(),(int) (1))); -RDebugUtils.currentLine=1114116; - //BA.debugLineNum = 1114116;BA.debugLine="End Sub"; -return ""; +public static void _jobdone(reparto_izca.keymon.lat.httpjob _job_newapp) throws Exception{ } public static String _download_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "download_start", false)) - {return ((String) Debug.delegate(processBA, "download_start", new Object[] {_startingintent}));} -RDebugUtils.currentLine=524288; - //BA.debugLineNum = 524288;BA.debugLine="Sub download_Start (StartingIntent As Intent)"; -RDebugUtils.currentLine=524289; - //BA.debugLineNum = 524289;BA.debugLine="download_newApk"; + //BA.debugLineNum = 152;BA.debugLine="Sub download_Start (StartingIntent As Intent)"; + //BA.debugLineNum = 153;BA.debugLine="download_newApk"; _download_newapk(); -RDebugUtils.currentLine=524290; - //BA.debugLineNum = 524290;BA.debugLine="End Sub"; + //BA.debugLineNum = 154;BA.debugLine="End Sub"; return ""; } public static String _fileprovider_init() throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "fileprovider_init", false)) - {return ((String) Debug.delegate(processBA, "fileprovider_init", null));} anywheresoftware.b4a.phone.Phone _p = null; -RDebugUtils.currentLine=983040; - //BA.debugLineNum = 983040;BA.debugLine="Sub fileProvider_init"; -RDebugUtils.currentLine=983041; - //BA.debugLineNum = 983041;BA.debugLine="Dim p As Phone"; + //BA.debugLineNum = 237;BA.debugLine="Sub fileProvider_init"; + //BA.debugLineNum = 238;BA.debugLine="Dim p As Phone"; _p = new anywheresoftware.b4a.phone.Phone(); -RDebugUtils.currentLine=983042; - //BA.debugLineNum = 983042;BA.debugLine="If p.SdkVersion >= 24 Or File.ExternalWritable ="; + //BA.debugLineNum = 239;BA.debugLine="If p.SdkVersion >= 24 Or File.ExternalWritable ="; if (_p.getSdkVersion()>=24 || anywheresoftware.b4a.keywords.Common.File.getExternalWritable()==anywheresoftware.b4a.keywords.Common.False) { -RDebugUtils.currentLine=983043; - //BA.debugLineNum = 983043;BA.debugLine="UseFileProvider = True"; + //BA.debugLineNum = 240;BA.debugLine="UseFileProvider = True"; _usefileprovider = anywheresoftware.b4a.keywords.Common.True; -RDebugUtils.currentLine=983044; - //BA.debugLineNum = 983044;BA.debugLine="SharedFolder = File.Combine(File.DirInternal, \"s"; + //BA.debugLineNum = 241;BA.debugLine="SharedFolder = File.Combine(File.DirInternal, \"s"; _sharedfolder = anywheresoftware.b4a.keywords.Common.File.Combine(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"shared"); -RDebugUtils.currentLine=983045; - //BA.debugLineNum = 983045;BA.debugLine="If Not(File.IsDirectory(File.DirInternal,\"shared"; + //BA.debugLineNum = 242;BA.debugLine="If Not(File.IsDirectory(File.DirInternal,\"shared"; if (anywheresoftware.b4a.keywords.Common.Not(anywheresoftware.b4a.keywords.Common.File.IsDirectory(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"shared"))) { -RDebugUtils.currentLine=983046; - //BA.debugLineNum = 983046;BA.debugLine="File.MakeDir(\"\", SharedFolder)"; + //BA.debugLineNum = 243;BA.debugLine="File.MakeDir(\"\", SharedFolder)"; anywheresoftware.b4a.keywords.Common.File.MakeDir("",_sharedfolder); }; }else { -RDebugUtils.currentLine=983049; - //BA.debugLineNum = 983049;BA.debugLine="UseFileProvider = False"; + //BA.debugLineNum = 246;BA.debugLine="UseFileProvider = False"; _usefileprovider = anywheresoftware.b4a.keywords.Common.False; -RDebugUtils.currentLine=983050; - //BA.debugLineNum = 983050;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha"; + //BA.debugLineNum = 247;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha"; _sharedfolder = _rp.GetSafeDirDefaultExternal("shared"); }; -RDebugUtils.currentLine=983052; - //BA.debugLineNum = 983052;BA.debugLine="Log($\"Using FileProvider? - ${UseFileProvider}\"$)"; -anywheresoftware.b4a.keywords.Common.LogImpl("2983052",("Using FileProvider? - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_usefileprovider))+""),0); -RDebugUtils.currentLine=983053; - //BA.debugLineNum = 983053;BA.debugLine="End Sub"; + //BA.debugLineNum = 249;BA.debugLine="Log($\"Using FileProvider? - ${UseFileProvider}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("01245196",("Using FileProvider? - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_usefileprovider))+""),0); + //BA.debugLineNum = 250;BA.debugLine="End Sub"; return ""; } public static Object _getfileuri(String _filename) throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "getfileuri", false)) - {return ((Object) Debug.delegate(processBA, "getfileuri", new Object[] {_filename}));} anywheresoftware.b4j.object.JavaObject _uri = null; anywheresoftware.b4j.object.JavaObject _f = null; anywheresoftware.b4j.object.JavaObject _fp = null; anywheresoftware.b4j.object.JavaObject _context = null; -RDebugUtils.currentLine=1048576; - //BA.debugLineNum = 1048576;BA.debugLine="Sub GetFileUri (FileName As String) As Object"; -RDebugUtils.currentLine=1048577; - //BA.debugLineNum = 1048577;BA.debugLine="Try"; -try {RDebugUtils.currentLine=1048578; - //BA.debugLineNum = 1048578;BA.debugLine="If Not(UseFileProvider) Then"; + //BA.debugLineNum = 253;BA.debugLine="Sub GetFileUri (FileName As String) As Object"; + //BA.debugLineNum = 254;BA.debugLine="Try"; +try { //BA.debugLineNum = 255;BA.debugLine="If Not(UseFileProvider) Then"; if (anywheresoftware.b4a.keywords.Common.Not(_usefileprovider)) { -RDebugUtils.currentLine=1048579; - //BA.debugLineNum = 1048579;BA.debugLine="Dim uri As JavaObject"; + //BA.debugLineNum = 256;BA.debugLine="Dim uri As JavaObject"; _uri = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=1048580; - //BA.debugLineNum = 1048580;BA.debugLine="Return uri.InitializeStatic(\"android.net.Uri\")."; + //BA.debugLineNum = 257;BA.debugLine="Return uri.InitializeStatic(\"android.net.Uri\")."; if (true) return _uri.InitializeStatic("android.net.Uri").RunMethod("parse",new Object[]{(Object)("file://"+anywheresoftware.b4a.keywords.Common.File.Combine(_sharedfolder,_filename))}); }; -RDebugUtils.currentLine=1048582; - //BA.debugLineNum = 1048582;BA.debugLine="Dim f As JavaObject"; + //BA.debugLineNum = 259;BA.debugLine="Dim f As JavaObject"; _f = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=1048583; - //BA.debugLineNum = 1048583;BA.debugLine="f.InitializeNewInstance(\"java.io.File\", Array(Sh"; + //BA.debugLineNum = 260;BA.debugLine="f.InitializeNewInstance(\"java.io.File\", Array(Sh"; _f.InitializeNewInstance("java.io.File",new Object[]{(Object)(_sharedfolder),(Object)(_filename)}); -RDebugUtils.currentLine=1048584; - //BA.debugLineNum = 1048584;BA.debugLine="Dim fp As JavaObject"; + //BA.debugLineNum = 261;BA.debugLine="Dim fp As JavaObject"; _fp = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=1048585; - //BA.debugLineNum = 1048585;BA.debugLine="Dim context As JavaObject"; + //BA.debugLineNum = 262;BA.debugLine="Dim context As JavaObject"; _context = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=1048586; - //BA.debugLineNum = 1048586;BA.debugLine="context.InitializeContext"; + //BA.debugLineNum = 263;BA.debugLine="context.InitializeContext"; _context.InitializeContext(processBA); -RDebugUtils.currentLine=1048587; - //BA.debugLineNum = 1048587;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content."; + //BA.debugLineNum = 264;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content."; _fp.InitializeStatic("androidx.core.content.FileProvider"); -RDebugUtils.currentLine=1048588; - //BA.debugLineNum = 1048588;BA.debugLine="Return fp.RunMethod(\"getUriForFile\", Array(conte"; + //BA.debugLineNum = 265;BA.debugLine="Return fp.RunMethod(\"getUriForFile\", Array(conte"; if (true) return _fp.RunMethod("getUriForFile",new Object[]{(Object)(_context.getObject()),(Object)(anywheresoftware.b4a.keywords.Common.Application.getPackageName()+".provider"),(Object)(_f.getObject())}); } catch (Exception e14) { - processBA.setLastException(e14);RDebugUtils.currentLine=1048590; - //BA.debugLineNum = 1048590;BA.debugLine="Log(\"FileProvider::GetFileUri - error - \" & Last"; -anywheresoftware.b4a.keywords.Common.LogImpl("21048590","FileProvider::GetFileUri - error - "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0); -RDebugUtils.currentLine=1048591; - //BA.debugLineNum = 1048591;BA.debugLine="Return \"\""; + processBA.setLastException(e14); //BA.debugLineNum = 267;BA.debugLine="Log(\"FileProvider::GetFileUri - error - \" & Last"; +anywheresoftware.b4a.keywords.Common.LogImpl("01310734","FileProvider::GetFileUri - error - "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0); + //BA.debugLineNum = 268;BA.debugLine="Return \"\""; if (true) return (Object)(""); }; -RDebugUtils.currentLine=1048593; - //BA.debugLineNum = 1048593;BA.debugLine="End Sub"; + //BA.debugLineNum = 270;BA.debugLine="End Sub"; return null; } +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 70;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 75;BA.debugLine="Public lnk As String = \"https://keymon.net/movil/"; +_lnk = "https://keymon.net/movil/izca/izca_reparto.ver"; + //BA.debugLineNum = 85;BA.debugLine="Public nNewApp As Notification"; +_nnewapp = new anywheresoftware.b4a.objects.NotificationWrapper(); + //BA.debugLineNum = 86;BA.debugLine="Public nNewAppnID As Int = 16"; +_nnewappnid = (int) (16); + //BA.debugLineNum = 88;BA.debugLine="Dim nativeMe As JavaObject"; +_nativeme = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 89;BA.debugLine="Dim n2 As Notification"; +_n2 = new anywheresoftware.b4a.objects.NotificationWrapper(); + //BA.debugLineNum = 90;BA.debugLine="Dim n2ID As Int = 16"; +_n2id = (int) (16); + //BA.debugLineNum = 92;BA.debugLine="Public SharedFolder As String"; +_sharedfolder = ""; + //BA.debugLineNum = 93;BA.debugLine="Public UseFileProvider As Boolean"; +_usefileprovider = false; + //BA.debugLineNum = 94;BA.debugLine="Private rp As RuntimePermissions"; +_rp = new anywheresoftware.b4a.objects.RuntimePermissions(); + //BA.debugLineNum = 96;BA.debugLine="Type mNewVersion(update As Boolean, nonewAPP As B"; +; + //BA.debugLineNum = 98;BA.debugLine="Public newApp As mNewVersion"; +_newapp = new reparto_izca.keymon.lat.appupdater._mnewversion(); + //BA.debugLineNum = 99;BA.debugLine="End Sub"; +return ""; +} public static String _service_create() throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "service_create", false)) - {return ((String) Debug.delegate(processBA, "service_create", null));} -RDebugUtils.currentLine=393216; - //BA.debugLineNum = 393216;BA.debugLine="Sub Service_Create"; -RDebugUtils.currentLine=393217; - //BA.debugLineNum = 393217;BA.debugLine="Log(\"appUpdater(), Service_Create\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("2393217","appUpdater(), Service_Create",0); -RDebugUtils.currentLine=393218; - //BA.debugLineNum = 393218;BA.debugLine="newApp.Initialize"; + //BA.debugLineNum = 101;BA.debugLine="Sub Service_Create"; + //BA.debugLineNum = 102;BA.debugLine="Log(\"appUpdater(), Service_Create\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("0655361","appUpdater(), Service_Create",0); + //BA.debugLineNum = 103;BA.debugLine="newApp.Initialize"; _newapp.Initialize(); -RDebugUtils.currentLine=393219; - //BA.debugLineNum = 393219;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT"; + //BA.debugLineNum = 104;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT"; mostCurrent._service.AutomaticForegroundMode = mostCurrent._service.AUTOMATIC_FOREGROUND_NEVER; -RDebugUtils.currentLine=393220; - //BA.debugLineNum = 393220;BA.debugLine="n2.Initialize"; + //BA.debugLineNum = 105;BA.debugLine="n2.Initialize"; _n2.Initialize(); -RDebugUtils.currentLine=393221; - //BA.debugLineNum = 393221;BA.debugLine="nativeMe.InitializeContext"; + //BA.debugLineNum = 106;BA.debugLine="nativeMe.InitializeContext"; _nativeme.InitializeContext(processBA); -RDebugUtils.currentLine=393222; - //BA.debugLineNum = 393222;BA.debugLine="End Sub"; + //BA.debugLineNum = 107;BA.debugLine="End Sub"; return ""; } public static String _service_destroy() throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "service_destroy", false)) - {return ((String) Debug.delegate(processBA, "service_destroy", null));} -RDebugUtils.currentLine=917504; - //BA.debugLineNum = 917504;BA.debugLine="Sub Service_Destroy"; -RDebugUtils.currentLine=917505; - //BA.debugLineNum = 917505;BA.debugLine="Log(\"appUpdater(), Service_Destroy\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("2917505","appUpdater(), Service_Destroy",0); -RDebugUtils.currentLine=917506; - //BA.debugLineNum = 917506;BA.debugLine="End Sub"; + //BA.debugLineNum = 233;BA.debugLine="Sub Service_Destroy"; + //BA.debugLineNum = 234;BA.debugLine="Log(\"appUpdater(), Service_Destroy\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("01179649","appUpdater(), Service_Destroy",0); + //BA.debugLineNum = 235;BA.debugLine="End Sub"; return ""; } public static void _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{ -RDebugUtils.currentModule="appupdater"; -if (Debug.shouldDelegate(processBA, "service_start", false)) - {Debug.delegate(processBA, "service_start", new Object[] {_startingintent}); return;} ResumableSub_Service_Start rsub = new ResumableSub_Service_Start(null,_startingintent); rsub.resume(processBA, null); } @@ -620,7 +499,6 @@ String[] _app = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="appupdater"; while (true) { try { @@ -632,21 +510,16 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=458753; - //BA.debugLineNum = 458753;BA.debugLine="Log(\"appUpdater(), Service_Start\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("2458753","appUpdater(), Service_Start",0); -RDebugUtils.currentLine=458755; - //BA.debugLineNum = 458755;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Buscando actua"; -parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ (null,"Buscando actualización"); -RDebugUtils.currentLine=458756; - //BA.debugLineNum = 458756;BA.debugLine="Log(\"Buscando actualización\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("2458756","Buscando actualización",0); -RDebugUtils.currentLine=458757; - //BA.debugLineNum = 458757;BA.debugLine="fileProvider_init"; + //BA.debugLineNum = 110;BA.debugLine="Log(\"appUpdater(), Service_Start\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("0720897","appUpdater(), Service_Start",0); + //BA.debugLineNum = 112;BA.debugLine="B4XPages.MainPage.muestraProgreso(\"Buscando actua"; +parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._muestraprogreso /*String*/ ("Buscando actualización"); + //BA.debugLineNum = 113;BA.debugLine="Log(\"Buscando actualización\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("0720900","Buscando actualización",0); + //BA.debugLineNum = 114;BA.debugLine="fileProvider_init"; _fileprovider_init(); -RDebugUtils.currentLine=458758; - //BA.debugLineNum = 458758;BA.debugLine="Wait For (Download(Me, lnk)) JobDone (j As HttpJo"; -anywheresoftware.b4a.keywords.Common.WaitFor("jobdone", processBA, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "appupdater", "service_start"), (Object)(_download(appupdater.getObject(),parent._lnk))); + //BA.debugLineNum = 115;BA.debugLine="Wait For (Download(Me, lnk)) JobDone (j As HttpJo"; +anywheresoftware.b4a.keywords.Common.WaitFor("jobdone", processBA, this, (Object)(_download(appupdater.getObject(),parent._lnk))); this.state = 20; return; case 20: @@ -654,8 +527,7 @@ case 20: this.state = 1; _j = (reparto_izca.keymon.lat.httpjob) result[0]; ; -RDebugUtils.currentLine=458759; - //BA.debugLineNum = 458759;BA.debugLine="If j.Success Then"; + //BA.debugLineNum = 116;BA.debugLine="If j.Success Then"; if (true) break; case 1: @@ -670,8 +542,7 @@ this.state = 18; case 3: //C this.state = 4; -RDebugUtils.currentLine=458760; - //BA.debugLineNum = 458760;BA.debugLine="Try"; + //BA.debugLineNum = 117;BA.debugLine="Try"; if (true) break; case 4: @@ -685,26 +556,19 @@ case 6: //C this.state = 7; this.catchState = 15; -RDebugUtils.currentLine=458761; - //BA.debugLineNum = 458761;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*/ (null)); -RDebugUtils.currentLine=458763; - //BA.debugLineNum = 458763;BA.debugLine="newApp.appLink = app(3) 'Liga a nueva app"; + //BA.debugLineNum = 118;BA.debugLine="Dim app() As String = Regex.Split(Chr(9),j.GetS"; +_app = anywheresoftware.b4a.keywords.Common.Regex.Split(BA.ObjectToString(anywheresoftware.b4a.keywords.Common.Chr((int) (9))),_j._getstring /*String*/ ()); + //BA.debugLineNum = 120;BA.debugLine="newApp.appLink = app(3) 'Liga a nueva app"; parent._newapp.appLink /*String*/ = _app[(int) (3)]; -RDebugUtils.currentLine=458764; - //BA.debugLineNum = 458764;BA.debugLine="newApp.newMsg = app(1) 'Texto de que hay actual"; + //BA.debugLineNum = 121;BA.debugLine="newApp.newMsg = app(1) 'Texto de que hay actual"; parent._newapp.newMsg /*String*/ = _app[(int) (1)]; -RDebugUtils.currentLine=458765; - //BA.debugLineNum = 458765;BA.debugLine="newApp.okMsg = app(2) 'Texto de app al corrient"; + //BA.debugLineNum = 122;BA.debugLine="newApp.okMsg = app(2) 'Texto de app al corrient"; parent._newapp.okMsg /*String*/ = _app[(int) (2)]; -RDebugUtils.currentLine=458766; - //BA.debugLineNum = 458766;BA.debugLine="newApp.version = app(0) 'Version actual"; + //BA.debugLineNum = 123;BA.debugLine="newApp.version = app(0) 'Version actual"; parent._newapp.version /*String*/ = _app[(int) (0)]; -RDebugUtils.currentLine=458768; - //BA.debugLineNum = 458768;BA.debugLine="Log($\"Application.VersionName=${Application.Ver"; -anywheresoftware.b4a.keywords.Common.LogImpl("2458768",("Application.VersionName="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.Application.getVersionName()))+", newApp="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._newapp))+""),0); -RDebugUtils.currentLine=458771; - //BA.debugLineNum = 458771;BA.debugLine="If newApp.version = Application.VersionName Th"; + //BA.debugLineNum = 125;BA.debugLine="Log($\"Application.VersionName=${Application.Ver"; +anywheresoftware.b4a.keywords.Common.LogImpl("0720912",("Application.VersionName="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.Application.getVersionName()))+", newApp="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent._newapp))+""),0); + //BA.debugLineNum = 128;BA.debugLine="If newApp.version = Application.VersionName Th"; if (true) break; case 7: @@ -717,22 +581,17 @@ this.state = 9; case 9: //C this.state = 10; -RDebugUtils.currentLine=458772; - //BA.debugLineNum = 458772;BA.debugLine="newApp.update = False"; + //BA.debugLineNum = 129;BA.debugLine="newApp.update = False"; parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.False; -RDebugUtils.currentLine=458773; - //BA.debugLineNum = 458773;BA.debugLine="Log(\"No new app\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("2458773","No new app",0); -RDebugUtils.currentLine=458774; - //BA.debugLineNum = 458774;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")"; + //BA.debugLineNum = 130;BA.debugLine="Log(\"No new app\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("0720917","No new app",0); + //BA.debugLineNum = 131;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")"; parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable"); -RDebugUtils.currentLine=458776; - //BA.debugLineNum = 458776;BA.debugLine="CreateNotification2(\"Aplicacion al corriente\","; + //BA.debugLineNum = 133;BA.debugLine="CreateNotification2(\"Aplicacion al corriente\","; _createnotification2("Aplicacion al corriente","No hay actualizaciones disponibles","ic_file_download_white_24dp",(Object)(parent.mostCurrent._main.getObject()),anywheresoftware.b4a.keywords.Common.True,anywheresoftware.b4a.keywords.Common.True,parent._nnewapp,parent._nnewappnid); if (true) break; ; -RDebugUtils.currentLine=458778; - //BA.debugLineNum = 458778;BA.debugLine="If newApp.version <> Application.VersionName T"; + //BA.debugLineNum = 135;BA.debugLine="If newApp.version <> Application.VersionName T"; case 10: //if @@ -744,14 +603,11 @@ this.state = 12; case 12: //C this.state = 13; -RDebugUtils.currentLine=458779; - //BA.debugLineNum = 458779;BA.debugLine="newApp.update = True"; + //BA.debugLineNum = 136;BA.debugLine="newApp.update = True"; parent._newapp.update /*boolean*/ = anywheresoftware.b4a.keywords.Common.True; -RDebugUtils.currentLine=458780; - //BA.debugLineNum = 458780;BA.debugLine="Log(\"New app true\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("2458780","New app true",0); -RDebugUtils.currentLine=458781; - //BA.debugLineNum = 458781;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")"; + //BA.debugLineNum = 137;BA.debugLine="Log(\"New app true\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("0720924","New app true",0); + //BA.debugLineNum = 138;BA.debugLine="B4XPages.ShowPage(\"updateAvailable\")"; parent.mostCurrent._b4xpages._showpage /*String*/ (processBA,"updateAvailable"); if (true) break; @@ -765,9 +621,8 @@ case 15: //C this.state = 16; this.catchState = 0; -RDebugUtils.currentLine=458786; - //BA.debugLineNum = 458786;BA.debugLine="Log(\"appUpdater(), Job Failed, error \" & LastE"; -anywheresoftware.b4a.keywords.Common.LogImpl("2458786","appUpdater(), Job Failed, error "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0); + //BA.debugLineNum = 143;BA.debugLine="Log(\"appUpdater(), Job Failed, error \" & LastE"; +anywheresoftware.b4a.keywords.Common.LogImpl("0720930","appUpdater(), Job Failed, error "+anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage(),0); if (true) break; if (true) break; @@ -781,20 +636,17 @@ this.catchState = 0; case 18: //C this.state = 19; -RDebugUtils.currentLine=458789; - //BA.debugLineNum = 458789;BA.debugLine="Log(\"appUpdater(), Job Failed \" & lnk)"; -anywheresoftware.b4a.keywords.Common.LogImpl("2458789","appUpdater(), Job Failed "+parent._lnk,0); + //BA.debugLineNum = 146;BA.debugLine="Log(\"appUpdater(), Job Failed \" & lnk)"; +anywheresoftware.b4a.keywords.Common.LogImpl("0720933","appUpdater(), Job Failed "+parent._lnk,0); if (true) break; case 19: //C this.state = -1; ; -RDebugUtils.currentLine=458791; - //BA.debugLineNum = 458791;BA.debugLine="j.Release"; -_j._release /*String*/ (null); -RDebugUtils.currentLine=458793; - //BA.debugLineNum = 458793;BA.debugLine="End Sub"; + //BA.debugLineNum = 148;BA.debugLine="j.Release"; +_j._release /*String*/ (); + //BA.debugLineNum = 150;BA.debugLine="End Sub"; if (true) break; }} catch (Exception e0) { @@ -808,4 +660,17 @@ processBA.setLastException(e0);} } } } -} \ No newline at end of file +public static String _setfileuriasintentdata(anywheresoftware.b4a.objects.IntentWrapper _intent,String _filename) throws Exception{ +anywheresoftware.b4j.object.JavaObject _jo = null; + //BA.debugLineNum = 274;BA.debugLine="Sub SetFileUriAsIntentData (Intent As Intent, File"; + //BA.debugLineNum = 275;BA.debugLine="Dim jo As JavaObject = Intent"; +_jo = new anywheresoftware.b4j.object.JavaObject(); +_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_intent.getObject())); + //BA.debugLineNum = 276;BA.debugLine="jo.RunMethod(\"setData\", Array(GetFileUri(FileName"; +_jo.RunMethod("setData",new Object[]{_getfileuri(_filename)}); + //BA.debugLineNum = 277;BA.debugLine="Intent.Flags = Bit.Or(Intent.Flags, 1) 'FLAG_GRAN"; +_intent.setFlags(anywheresoftware.b4a.keywords.Common.Bit.Or(_intent.getFlags(),(int) (1))); + //BA.debugLineNum = 278;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xbitset.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbitset.java index bb2a670..f54157f 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xbitset.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbitset.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xbitset"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xbitset"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xbitset extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public int[] _data = null; public int _msize = 0; public b4a.example.dateutils _dateutils = null; @@ -47,134 +40,86 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _class_globals(reparto_izca.keymon.lat.b4xbitset __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbitset"; -RDebugUtils.currentLine=34340864; - //BA.debugLineNum = 34340864;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=34340868; - //BA.debugLineNum = 34340868;BA.debugLine="Private data() As Int"; +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)]; ; -RDebugUtils.currentLine=34340870; - //BA.debugLineNum = 34340870;BA.debugLine="Private mSize As Int"; + //BA.debugLineNum = 7;BA.debugLine="Private mSize As Int"; _msize = 0; -RDebugUtils.currentLine=34340871; - //BA.debugLineNum = 34340871;BA.debugLine="End Sub"; + //BA.debugLineNum = 8;BA.debugLine="End Sub"; return ""; } -public String _clear(reparto_izca.keymon.lat.b4xbitset __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbitset"; -if (Debug.shouldDelegate(ba, "clear", true)) - {return ((String) Debug.delegate(ba, "clear", null));} -RDebugUtils.currentLine=34668544; - //BA.debugLineNum = 34668544;BA.debugLine="Public Sub Clear"; -RDebugUtils.currentLine=34668548; - //BA.debugLineNum = 34668548;BA.debugLine="Dim data(Bit.ShiftRight(mSize, 5) + 1) As Int"; -_data = new int[(int) (__c.Bit.ShiftRight(__ref._msize /*int*/ ,(int) (5))+1)]; +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)]; ; -RDebugUtils.currentLine=34668550; - //BA.debugLineNum = 34668550;BA.debugLine="End Sub"; + //BA.debugLineNum = 60;BA.debugLine="End Sub"; return ""; } -public boolean _get(reparto_izca.keymon.lat.b4xbitset __ref,int _index) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbitset"; -if (Debug.shouldDelegate(ba, "get", true)) - {return ((Boolean) Debug.delegate(ba, "get", new Object[] {_index}));} +public boolean _get(int _index) throws Exception{ int _dindex = 0; int _offset = 0; int _blockvalue = 0; -RDebugUtils.currentLine=34537472; - //BA.debugLineNum = 34537472;BA.debugLine="Public Sub Get(Index As Int) As Boolean"; -RDebugUtils.currentLine=34537473; - //BA.debugLineNum = 34537473;BA.debugLine="Dim dindex As Int = Bit.ShiftRight(Index, 5)"; + //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)); -RDebugUtils.currentLine=34537474; - //BA.debugLineNum = 34537474;BA.debugLine="Dim offset As Int = Bit.And(0x0000001f, Index)"; + //BA.debugLineNum = 40;BA.debugLine="Dim offset As Int = Bit.And(0x0000001f, Index)"; _offset = __c.Bit.And(((int)0x0000001f),_index); -RDebugUtils.currentLine=34537478; - //BA.debugLineNum = 34537478;BA.debugLine="Dim BlockValue As Int = data(dindex)"; -_blockvalue = __ref._data /*int[]*/ [_dindex]; -RDebugUtils.currentLine=34537480; - //BA.debugLineNum = 34537480;BA.debugLine="Return Bit.And(BlockValue, Bit.ShiftLeft(1, offse"; + //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; -RDebugUtils.currentLine=34537481; - //BA.debugLineNum = 34537481;BA.debugLine="End Sub"; + //BA.debugLineNum = 47;BA.debugLine="End Sub"; return false; } -public int _getsize(reparto_izca.keymon.lat.b4xbitset __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbitset"; -if (Debug.shouldDelegate(ba, "getsize", true)) - {return ((Integer) Debug.delegate(ba, "getsize", null));} -RDebugUtils.currentLine=34603008; - //BA.debugLineNum = 34603008;BA.debugLine="Public Sub getSize As Int"; -RDebugUtils.currentLine=34603009; - //BA.debugLineNum = 34603009;BA.debugLine="Return mSize"; -if (true) return __ref._msize /*int*/ ; -RDebugUtils.currentLine=34603010; - //BA.debugLineNum = 34603010;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xbitset __ref,anywheresoftware.b4a.BA _ba,int _size) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,int _size) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xbitset"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_size}));} -RDebugUtils.currentLine=34406400; - //BA.debugLineNum = 34406400;BA.debugLine="Public Sub Initialize (Size As Int)"; -RDebugUtils.currentLine=34406401; - //BA.debugLineNum = 34406401;BA.debugLine="mSize = Size"; -__ref._msize /*int*/ = _size; -RDebugUtils.currentLine=34406402; - //BA.debugLineNum = 34406402;BA.debugLine="Clear"; -__ref._clear /*String*/ (null); -RDebugUtils.currentLine=34406403; - //BA.debugLineNum = 34406403;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xbitset __ref,int _index,boolean _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbitset"; -if (Debug.shouldDelegate(ba, "set", true)) - {return ((String) Debug.delegate(ba, "set", new Object[] {_index,_value}));} +public String _set(int _index,boolean _value) throws Exception{ int _dindex = 0; int _offset = 0; int _blockvalue = 0; int _newblockvalue = 0; -RDebugUtils.currentLine=34471936; - //BA.debugLineNum = 34471936;BA.debugLine="Public Sub Set(Index As Int, Value As Boolean)"; -RDebugUtils.currentLine=34471937; - //BA.debugLineNum = 34471937;BA.debugLine="Dim dindex As Int = Bit.ShiftRight(Index, 5)"; + //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)); -RDebugUtils.currentLine=34471938; - //BA.debugLineNum = 34471938;BA.debugLine="Dim offset As Int = Bit.And(0x0000001f, Index)"; + //BA.debugLineNum = 18;BA.debugLine="Dim offset As Int = Bit.And(0x0000001f, Index)"; _offset = __c.Bit.And(((int)0x0000001f),_index); -RDebugUtils.currentLine=34471942; - //BA.debugLineNum = 34471942;BA.debugLine="Dim BlockValue As Int = data(dindex)"; -_blockvalue = __ref._data /*int[]*/ [_dindex]; -RDebugUtils.currentLine=34471944; - //BA.debugLineNum = 34471944;BA.debugLine="Dim NewBlockValue As Int"; + //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; -RDebugUtils.currentLine=34471945; - //BA.debugLineNum = 34471945;BA.debugLine="If Value Then"; + //BA.debugLineNum = 25;BA.debugLine="If Value Then"; if (_value) { -RDebugUtils.currentLine=34471946; - //BA.debugLineNum = 34471946;BA.debugLine="NewBlockValue = Bit.Or(BlockValue, Bit.ShiftLeft"; + //BA.debugLineNum = 26;BA.debugLine="NewBlockValue = Bit.Or(BlockValue, Bit.ShiftLeft"; _newblockvalue = __c.Bit.Or(_blockvalue,__c.Bit.ShiftLeft((int) (1),_offset)); }else { -RDebugUtils.currentLine=34471948; - //BA.debugLineNum = 34471948;BA.debugLine="NewBlockValue = Bit.And(BlockValue, Bit.Not(Bit."; + //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))); }; -RDebugUtils.currentLine=34471953; - //BA.debugLineNum = 34471953;BA.debugLine="data(dindex) = NewBlockValue"; -__ref._data /*int[]*/ [_dindex] = _newblockvalue; -RDebugUtils.currentLine=34471955; - //BA.debugLineNum = 34471955;BA.debugLine="End Sub"; + //BA.debugLineNum = 33;BA.debugLine="data(dindex) = NewBlockValue"; +_data[_dindex] = _newblockvalue; + //BA.debugLineNum = 35;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xbreadcrumb.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbreadcrumb.java index e6dd38f..69c4445 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xbreadcrumb.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbreadcrumb.java @@ -10,7 +10,7 @@ public class b4xbreadcrumb extends B4AClass.ImplB4AClass implements BA.SubDelega private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xbreadcrumb"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xbreadcrumb"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xbreadcrumb extends B4AClass.ImplB4AClass implements BA.SubDelega ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -61,226 +54,85 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.b4xbreadcrumb __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbreadcrumb"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=46333952; - //BA.debugLineNum = 46333952;BA.debugLine="Public Sub Base_Resize (Width As Double, Height As"; -RDebugUtils.currentLine=46333953; - //BA.debugLineNum = 46333953;BA.debugLine="cvs.Resize(Width, Height)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Resize((float) (_width),(float) (_height)); -RDebugUtils.currentLine=46333954; - //BA.debugLineNum = 46333954;BA.debugLine="TouchPanel.SetLayoutAnimated(0, 0, 0, Width, Heig"; -__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); -RDebugUtils.currentLine=46333955; - //BA.debugLineNum = 46333955;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=46333956; - //BA.debugLineNum = 46333956;BA.debugLine="End Sub"; +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 _draw(reparto_izca.keymon.lat.b4xbreadcrumb __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbreadcrumb"; -if (Debug.shouldDelegate(ba, "draw", true)) - {return ((String) Debug.delegate(ba, "draw", null));} -b4a.example.bitmapcreator._argbcolor _bcolor = null; -int _strokecolor = 0; -int[] _clrs = null; -int _left = 0; -int _i = 0; -int _sc = 0; -int _width = 0; -RDebugUtils.currentLine=46399488; - //BA.debugLineNum = 46399488;BA.debugLine="Private Sub Draw"; -RDebugUtils.currentLine=46399489; - //BA.debugLineNum = 46399489;BA.debugLine="cvs.ClearRect(cvs.TargetRect)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=46399490; - //BA.debugLineNum = 46399490;BA.debugLine="Dim bcolor As ARGBColor"; -_bcolor = new b4a.example.bitmapcreator._argbcolor(); -RDebugUtils.currentLine=46399491; - //BA.debugLineNum = 46399491;BA.debugLine="bc.ColorToARGB(CrumbColor, bcolor)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._colortoargb(__ref._crumbcolor /*int*/ ,_bcolor); -RDebugUtils.currentLine=46399492; - //BA.debugLineNum = 46399492;BA.debugLine="bcolor.r = Min(255, bcolor.r * 2)"; -_bcolor.r = (int) (__c.Min(255,_bcolor.r*2)); -RDebugUtils.currentLine=46399493; - //BA.debugLineNum = 46399493;BA.debugLine="bcolor.g = Min(255, bcolor.g * 2)"; -_bcolor.g = (int) (__c.Min(255,_bcolor.g*2)); -RDebugUtils.currentLine=46399494; - //BA.debugLineNum = 46399494;BA.debugLine="bcolor.b = Min(255, bcolor.b * 2)"; -_bcolor.b = (int) (__c.Min(255,_bcolor.b*2)); -RDebugUtils.currentLine=46399495; - //BA.debugLineNum = 46399495;BA.debugLine="Dim strokeColor As Int = bc.ARGBToColor(bcolor)"; -_strokecolor = __ref._bc /*b4a.example.bitmapcreator*/ ._argbtocolor(_bcolor); -RDebugUtils.currentLine=46399497; - //BA.debugLineNum = 46399497;BA.debugLine="bc.ColorToARGB(CrumbColor, bcolor)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._colortoargb(__ref._crumbcolor /*int*/ ,_bcolor); -RDebugUtils.currentLine=46399498; - //BA.debugLineNum = 46399498;BA.debugLine="bcolor.r = bcolor.r * 0.8"; -_bcolor.r = (int) (_bcolor.r*0.8); -RDebugUtils.currentLine=46399499; - //BA.debugLineNum = 46399499;BA.debugLine="bcolor.g = bcolor.g * 0.8"; -_bcolor.g = (int) (_bcolor.g*0.8); -RDebugUtils.currentLine=46399500; - //BA.debugLineNum = 46399500;BA.debugLine="bcolor.b = bcolor.b * 0.8"; -_bcolor.b = (int) (_bcolor.b*0.8); -RDebugUtils.currentLine=46399501; - //BA.debugLineNum = 46399501;BA.debugLine="Dim Clrs() As Int = Array As Int(CrumbColor, bc.A"; -_clrs = new int[]{__ref._crumbcolor /*int*/ ,__ref._bc /*b4a.example.bitmapcreator*/ ._argbtocolor(_bcolor)}; -RDebugUtils.currentLine=46399503; - //BA.debugLineNum = 46399503;BA.debugLine="RightPositions.Clear"; -__ref._rightpositions /*anywheresoftware.b4a.objects.collections.List*/ .Clear(); -RDebugUtils.currentLine=46399504; - //BA.debugLineNum = 46399504;BA.debugLine="If mItems.Size = 0 Then Return"; -if (__ref._mitems /*anywheresoftware.b4a.objects.collections.List*/ .getSize()==0) { -if (true) return "";}; -RDebugUtils.currentLine=46399505; - //BA.debugLineNum = 46399505;BA.debugLine="Dim Left As Int = 0"; -_left = (int) (0); -RDebugUtils.currentLine=46399506; - //BA.debugLineNum = 46399506;BA.debugLine="For i = 0 To mItems.Size - 1"; -{ -final int step16 = 1; -final int limit16 = (int) (__ref._mitems /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1); -_i = (int) (0) ; -for (;_i <= limit16 ;_i = _i + step16 ) { -RDebugUtils.currentLine=46399507; - //BA.debugLineNum = 46399507;BA.debugLine="Dim sc As Int"; -_sc = 0; -RDebugUtils.currentLine=46399508; - //BA.debugLineNum = 46399508;BA.debugLine="If PressedItem = i Then sc = strokeColor Else sc"; -if (__ref._presseditem /*int*/ ==_i) { -_sc = _strokecolor;} -else { -_sc = (int) (0);}; -RDebugUtils.currentLine=46399509; - //BA.debugLineNum = 46399509;BA.debugLine="Dim width As Int = DrawItem(Left, mItems.Get(i),"; -_width = __ref._drawitem /*int*/ (null,_left,BA.ObjectToString(__ref._mitems /*anywheresoftware.b4a.objects.collections.List*/ .Get(_i)),_i==0,_i==__ref._mitems /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1,_clrs[(int) (_i%_clrs.length)],_sc); -RDebugUtils.currentLine=46399510; - //BA.debugLineNum = 46399510;BA.debugLine="Left = Left + width + offset + 2dip"; -_left = (int) (_left+_width+__ref._offset /*int*/ +__c.DipToCurrent((int) (2))); -RDebugUtils.currentLine=46399511; - //BA.debugLineNum = 46399511;BA.debugLine="RightPositions.Add(Left)"; -__ref._rightpositions /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_left)); - } -}; -RDebugUtils.currentLine=46399513; - //BA.debugLineNum = 46399513;BA.debugLine="cvs.Invalidate"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=46399514; - //BA.debugLineNum = 46399514;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.b4xbreadcrumb __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbreadcrumb"; -RDebugUtils.currentLine=46137344; - //BA.debugLineNum = 46137344;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=46137345; - //BA.debugLineNum = 46137345;BA.debugLine="Private mEventName As String 'ignore"; +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 = ""; -RDebugUtils.currentLine=46137346; - //BA.debugLineNum = 46137346;BA.debugLine="Private mCallBack As Object 'ignore"; + //BA.debugLineNum = 7;BA.debugLine="Private mCallBack As Object 'ignore"; _mcallback = new Object(); -RDebugUtils.currentLine=46137347; - //BA.debugLineNum = 46137347;BA.debugLine="Public mBase As B4XView 'ignore"; + //BA.debugLineNum = 8;BA.debugLine="Public mBase As B4XView 'ignore"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=46137348; - //BA.debugLineNum = 46137348;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 9;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=46137349; - //BA.debugLineNum = 46137349;BA.debugLine="Private cvs As B4XCanvas"; + //BA.debugLineNum = 10;BA.debugLine="Private cvs As B4XCanvas"; _cvs = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=46137350; - //BA.debugLineNum = 46137350;BA.debugLine="Private mItems As List"; + //BA.debugLineNum = 11;BA.debugLine="Private mItems As List"; _mitems = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=46137351; - //BA.debugLineNum = 46137351;BA.debugLine="Private RightPositions As List"; + //BA.debugLineNum = 12;BA.debugLine="Private RightPositions As List"; _rightpositions = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=46137352; - //BA.debugLineNum = 46137352;BA.debugLine="Public TextColor As Int"; + //BA.debugLineNum = 13;BA.debugLine="Public TextColor As Int"; _textcolor = 0; -RDebugUtils.currentLine=46137353; - //BA.debugLineNum = 46137353;BA.debugLine="Public fnt As B4XFont"; + //BA.debugLineNum = 14;BA.debugLine="Public fnt As B4XFont"; _fnt = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont(); -RDebugUtils.currentLine=46137354; - //BA.debugLineNum = 46137354;BA.debugLine="Private offset As Int = 10dip"; + //BA.debugLineNum = 15;BA.debugLine="Private offset As Int = 10dip"; _offset = __c.DipToCurrent((int) (10)); -RDebugUtils.currentLine=46137355; - //BA.debugLineNum = 46137355;BA.debugLine="Private bc As BitmapCreator"; + //BA.debugLineNum = 16;BA.debugLine="Private bc As BitmapCreator"; _bc = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=46137356; - //BA.debugLineNum = 46137356;BA.debugLine="Public CrumbColor As Int"; + //BA.debugLineNum = 17;BA.debugLine="Public CrumbColor As Int"; _crumbcolor = 0; -RDebugUtils.currentLine=46137357; - //BA.debugLineNum = 46137357;BA.debugLine="Private TouchPanel As B4XView"; + //BA.debugLineNum = 18;BA.debugLine="Private TouchPanel As B4XView"; _touchpanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=46137358; - //BA.debugLineNum = 46137358;BA.debugLine="Private PressedItem As Int = -1"; + //BA.debugLineNum = 19;BA.debugLine="Private PressedItem As Int = -1"; _presseditem = (int) (-1); -RDebugUtils.currentLine=46137359; - //BA.debugLineNum = 46137359;BA.debugLine="Public Tag As Object"; + //BA.debugLineNum = 20;BA.debugLine="Public Tag As Object"; _tag = new Object(); -RDebugUtils.currentLine=46137360; - //BA.debugLineNum = 46137360;BA.debugLine="Public mHaptic As Boolean"; + //BA.debugLineNum = 21;BA.debugLine="Public mHaptic As Boolean"; _mhaptic = false; -RDebugUtils.currentLine=46137361; - //BA.debugLineNum = 46137361;BA.debugLine="End Sub"; + //BA.debugLineNum = 22;BA.debugLine="End Sub"; return ""; } -public String _designercreateview(reparto_izca.keymon.lat.b4xbreadcrumb __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbreadcrumb"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} +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 = ""; -RDebugUtils.currentLine=46268416; - //BA.debugLineNum = 46268416;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=46268417; - //BA.debugLineNum = 46268417;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=46268418; - //BA.debugLineNum = 46268418;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=46268418; - //BA.debugLineNum = 46268418;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=46268419; - //BA.debugLineNum = 46268419;BA.debugLine="cvs.Initialize(mBase)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=46268420; - //BA.debugLineNum = 46268420;BA.debugLine="Dim xlbl As B4XView = Lbl"; + //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())); -RDebugUtils.currentLine=46268421; - //BA.debugLineNum = 46268421;BA.debugLine="fnt = xlbl.Font"; -__ref._fnt /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = _xlbl.getFont(); -RDebugUtils.currentLine=46268422; - //BA.debugLineNum = 46268422;BA.debugLine="TextColor = xlbl.TextColor"; -__ref._textcolor /*int*/ = _xlbl.getTextColor(); -RDebugUtils.currentLine=46268423; - //BA.debugLineNum = 46268423;BA.debugLine="CrumbColor = xui.PaintOrColorToColor(Props.Get(\"C"; -__ref._crumbcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("CrumbColor"))); -RDebugUtils.currentLine=46268424; - //BA.debugLineNum = 46268424;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals"; -__ref._mhaptic /*boolean*/ = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False))); -RDebugUtils.currentLine=46268425; - //BA.debugLineNum = 46268425;BA.debugLine="TouchPanel = xui.CreatePanel(\"Touch\")"; -__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"Touch"); -RDebugUtils.currentLine=46268426; - //BA.debugLineNum = 46268426;BA.debugLine="mBase.AddView(TouchPanel, 0, 0, mBase.Width, mBas"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=46268427; - //BA.debugLineNum = 46268427;BA.debugLine="Dim items As String = Props.Get(\"Items\")"; + //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"))); -RDebugUtils.currentLine=46268428; - //BA.debugLineNum = 46268428;BA.debugLine="For Each s As String In Regex.Split(\"\\|\", 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 @@ -288,277 +140,257 @@ final int groupLen13 = group13.length ; for (; index13 < groupLen13;index13++){ _s = group13[index13]; -RDebugUtils.currentLine=46268429; - //BA.debugLineNum = 46268429;BA.debugLine="mItems.Add(s)"; -__ref._mitems /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_s)); + //BA.debugLineNum = 46;BA.debugLine="mItems.Add(s)"; +_mitems.Add((Object)(_s)); } }; -RDebugUtils.currentLine=46268431; - //BA.debugLineNum = 46268431;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=46268432; - //BA.debugLineNum = 46268432;BA.debugLine="End Sub"; + //BA.debugLineNum = 48;BA.debugLine="Draw"; +_draw(); + //BA.debugLineNum = 49;BA.debugLine="End Sub"; return ""; } -public int _drawitem(reparto_izca.keymon.lat.b4xbreadcrumb __ref,int _left,String _text,boolean _first,boolean _last,int _clr,int _strokecolor) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbreadcrumb"; -if (Debug.shouldDelegate(ba, "drawitem", true)) - {return ((Integer) Debug.delegate(ba, "drawitem", new Object[] {_left,_text,_first,_last,_clr,_strokecolor}));} +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; -RDebugUtils.currentLine=46465024; - //BA.debugLineNum = 46465024;BA.debugLine="Private Sub DrawItem(Left As Int, Text As String,"; -RDebugUtils.currentLine=46465025; - //BA.debugLineNum = 46465025;BA.debugLine="Dim r As B4XRect = cvs.MeasureText(Text, fnt)"; -_r = __ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .MeasureText(_text,__ref._fnt /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ); -RDebugUtils.currentLine=46465026; - //BA.debugLineNum = 46465026;BA.debugLine="Dim ItemWidth As Int = r.Width + 30dip"; + //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))); -RDebugUtils.currentLine=46465027; - //BA.debugLineNum = 46465027;BA.debugLine="Dim ItemHeight As Int = cvs.TargetRect.Height"; -_itemheight = (int) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getHeight()); -RDebugUtils.currentLine=46465028; - //BA.debugLineNum = 46465028;BA.debugLine="Dim BaseLine As Int = cvs.TargetRect.CenterY - r."; -_baseline = (int) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY()-_r.getHeight()/(double)2-_r.getTop()); -RDebugUtils.currentLine=46465029; - //BA.debugLineNum = 46465029;BA.debugLine="Dim p As B4XPath"; + //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(); -RDebugUtils.currentLine=46465030; - //BA.debugLineNum = 46465030;BA.debugLine="p.Initialize(Left, 0)"; + //BA.debugLineNum = 91;BA.debugLine="p.Initialize(Left, 0)"; _p.Initialize((float) (_left),(float) (0)); -RDebugUtils.currentLine=46465031; - //BA.debugLineNum = 46465031;BA.debugLine="p.LineTo(Left + ItemWidth, 0)"; + //BA.debugLineNum = 92;BA.debugLine="p.LineTo(Left + ItemWidth, 0)"; _p.LineTo((float) (_left+_itemwidth),(float) (0)); -RDebugUtils.currentLine=46465032; - //BA.debugLineNum = 46465032;BA.debugLine="If Last = False Then"; + //BA.debugLineNum = 93;BA.debugLine="If Last = False Then"; if (_last==__c.False) { -RDebugUtils.currentLine=46465033; - //BA.debugLineNum = 46465033;BA.debugLine="p.LineTo(Left + ItemWidth + offset, ItemHeight /"; -_p.LineTo((float) (_left+_itemwidth+__ref._offset /*int*/ ),(float) (_itemheight/(double)2)); + //BA.debugLineNum = 94;BA.debugLine="p.LineTo(Left + ItemWidth + offset, ItemHeight /"; +_p.LineTo((float) (_left+_itemwidth+_offset),(float) (_itemheight/(double)2)); }; -RDebugUtils.currentLine=46465035; - //BA.debugLineNum = 46465035;BA.debugLine="p.LineTo(Left + ItemWidth, ItemHeight)"; + //BA.debugLineNum = 96;BA.debugLine="p.LineTo(Left + ItemWidth, ItemHeight)"; _p.LineTo((float) (_left+_itemwidth),(float) (_itemheight)); -RDebugUtils.currentLine=46465036; - //BA.debugLineNum = 46465036;BA.debugLine="If First = False Then"; + //BA.debugLineNum = 97;BA.debugLine="If First = False Then"; if (_first==__c.False) { -RDebugUtils.currentLine=46465037; - //BA.debugLineNum = 46465037;BA.debugLine="p.LineTo(Left - offset, ItemHeight)"; -_p.LineTo((float) (_left-__ref._offset /*int*/ ),(float) (_itemheight)); -RDebugUtils.currentLine=46465038; - //BA.debugLineNum = 46465038;BA.debugLine="p.LineTo(Left, ItemHeight / 2)"; + //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)); -RDebugUtils.currentLine=46465039; - //BA.debugLineNum = 46465039;BA.debugLine="p.LineTo(Left - offset, 0)"; -_p.LineTo((float) (_left-__ref._offset /*int*/ ),(float) (0)); + //BA.debugLineNum = 100;BA.debugLine="p.LineTo(Left - offset, 0)"; +_p.LineTo((float) (_left-_offset),(float) (0)); }else { -RDebugUtils.currentLine=46465041; - //BA.debugLineNum = 46465041;BA.debugLine="p.LineTo(Left, ItemHeight)"; + //BA.debugLineNum = 102;BA.debugLine="p.LineTo(Left, ItemHeight)"; _p.LineTo((float) (_left),(float) (_itemheight)); }; -RDebugUtils.currentLine=46465043; - //BA.debugLineNum = 46465043;BA.debugLine="p.LineTo(Left, 0)"; + //BA.debugLineNum = 104;BA.debugLine="p.LineTo(Left, 0)"; _p.LineTo((float) (_left),(float) (0)); -RDebugUtils.currentLine=46465044; - //BA.debugLineNum = 46465044;BA.debugLine="cvs.DrawPath(p, clr, True, 0)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawPath(_p,_clr,__c.True,(float) (0)); -RDebugUtils.currentLine=46465045; - //BA.debugLineNum = 46465045;BA.debugLine="If strokeColor <> 0 Then"; + //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) { -RDebugUtils.currentLine=46465046; - //BA.debugLineNum = 46465046;BA.debugLine="cvs.DrawPath(p, strokeColor, False, 3dip)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawPath(_p,_strokecolor,__c.False,(float) (__c.DipToCurrent((int) (3)))); + //BA.debugLineNum = 107;BA.debugLine="cvs.DrawPath(p, strokeColor, False, 3dip)"; +_cvs.DrawPath(_p,_strokecolor,__c.False,(float) (__c.DipToCurrent((int) (3)))); }; -RDebugUtils.currentLine=46465049; - //BA.debugLineNum = 46465049;BA.debugLine="cvs.DrawText(Text, Left + ItemWidth / 2, BaseLine"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawText(ba,_text,(float) (_left+_itemwidth/(double)2),(float) (_baseline),__ref._fnt /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ,__ref._textcolor /*int*/ ,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER")); -RDebugUtils.currentLine=46465050; - //BA.debugLineNum = 46465050;BA.debugLine="Return ItemWidth"; + //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; -RDebugUtils.currentLine=46465051; - //BA.debugLineNum = 46465051;BA.debugLine="End Sub"; + //BA.debugLineNum = 112;BA.debugLine="End Sub"; return 0; } -public int _finditem(reparto_izca.keymon.lat.b4xbreadcrumb __ref,int _x,int _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbreadcrumb"; -if (Debug.shouldDelegate(ba, "finditem", true)) - {return ((Integer) Debug.delegate(ba, "finditem", new Object[] {_x,_y}));} +public int _finditem(int _x,int _y) throws Exception{ int _r = 0; int _i = 0; -RDebugUtils.currentLine=46596096; - //BA.debugLineNum = 46596096;BA.debugLine="Private Sub FindItem (x As Int, y As Int) As Int"; -RDebugUtils.currentLine=46596097; - //BA.debugLineNum = 46596097;BA.debugLine="If RightPositions.Size = 0 Then Return -1"; -if (__ref._rightpositions /*anywheresoftware.b4a.objects.collections.List*/ .getSize()==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);}; -RDebugUtils.currentLine=46596098; - //BA.debugLineNum = 46596098;BA.debugLine="If y < 0 Or y > cvs.TargetRect.Height Then Return"; -if (_y<0 || _y>__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getHeight()) { + //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);}; -RDebugUtils.currentLine=46596099; - //BA.debugLineNum = 46596099;BA.debugLine="Dim r As Int = RightPositions.Get(RightPositions."; -_r = (int)(BA.ObjectToNumber(__ref._rightpositions /*anywheresoftware.b4a.objects.collections.List*/ .Get((int) (__ref._rightpositions /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1)))); -RDebugUtils.currentLine=46596100; - //BA.debugLineNum = 46596100;BA.debugLine="If x > r Then Return -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);}; -RDebugUtils.currentLine=46596101; - //BA.debugLineNum = 46596101;BA.debugLine="For i = RightPositions.Size - 2 To 0 Step -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) (__ref._rightpositions /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-2) ; +_i = (int) (_rightpositions.getSize()-2) ; for (;_i >= limit5 ;_i = _i + step5 ) { -RDebugUtils.currentLine=46596102; - //BA.debugLineNum = 46596102;BA.debugLine="Dim r As Int = RightPositions.Get(i)"; -_r = (int)(BA.ObjectToNumber(__ref._rightpositions /*anywheresoftware.b4a.objects.collections.List*/ .Get(_i))); -RDebugUtils.currentLine=46596103; - //BA.debugLineNum = 46596103;BA.debugLine="If x > r Then Return i + 1"; + //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);}; } }; -RDebugUtils.currentLine=46596105; - //BA.debugLineNum = 46596105;BA.debugLine="Return 0"; + //BA.debugLineNum = 145;BA.debugLine="Return 0"; if (true) return (int) (0); -RDebugUtils.currentLine=46596106; - //BA.debugLineNum = 46596106;BA.debugLine="End Sub"; + //BA.debugLineNum = 146;BA.debugLine="End Sub"; return 0; } -public anywheresoftware.b4a.objects.collections.List _getitems(reparto_izca.keymon.lat.b4xbreadcrumb __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbreadcrumb"; -if (Debug.shouldDelegate(ba, "getitems", true)) - {return ((anywheresoftware.b4a.objects.collections.List) Debug.delegate(ba, "getitems", null));} -RDebugUtils.currentLine=46727168; - //BA.debugLineNum = 46727168;BA.debugLine="Public Sub getItems As List"; -RDebugUtils.currentLine=46727169; - //BA.debugLineNum = 46727169;BA.debugLine="Return mItems"; -if (true) return __ref._mitems /*anywheresoftware.b4a.objects.collections.List*/ ; -RDebugUtils.currentLine=46727170; - //BA.debugLineNum = 46727170;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xbreadcrumb __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xbreadcrumb"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=46202880; - //BA.debugLineNum = 46202880;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=46202881; - //BA.debugLineNum = 46202881;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=46202882; - //BA.debugLineNum = 46202882;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=46202883; - //BA.debugLineNum = 46202883;BA.debugLine="mItems.Initialize"; -__ref._mitems /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=46202884; - //BA.debugLineNum = 46202884;BA.debugLine="RightPositions.Initialize"; -__ref._rightpositions /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=46202885; - //BA.debugLineNum = 46202885;BA.debugLine="bc.Initialize(1, 1)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._initialize(ba,(int) (1),(int) (1)); -RDebugUtils.currentLine=46202886; - //BA.debugLineNum = 46202886;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xbreadcrumb __ref,anywheresoftware.b4a.objects.collections.List _i) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbreadcrumb"; -if (Debug.shouldDelegate(ba, "setitems", true)) - {return ((String) Debug.delegate(ba, "setitems", new Object[] {_i}));} -RDebugUtils.currentLine=46661632; - //BA.debugLineNum = 46661632;BA.debugLine="Public Sub setItems (i As List)"; -RDebugUtils.currentLine=46661633; - //BA.debugLineNum = 46661633;BA.debugLine="mItems = i"; -__ref._mitems /*anywheresoftware.b4a.objects.collections.List*/ = _i; -RDebugUtils.currentLine=46661634; - //BA.debugLineNum = 46661634;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=46661635; - //BA.debugLineNum = 46661635;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xbreadcrumb __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbreadcrumb"; -if (Debug.shouldDelegate(ba, "touch_touch", true)) - {return ((String) Debug.delegate(ba, "touch_touch", new Object[] {_action,_x,_y}));} +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; -RDebugUtils.currentLine=46530560; - //BA.debugLineNum = 46530560;BA.debugLine="Private Sub Touch_Touch (Action As Int, X As Float"; -RDebugUtils.currentLine=46530561; - //BA.debugLineNum = 46530561;BA.debugLine="Select Action"; -switch (BA.switchObjectToInt(_action,__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_DOWN,__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_MOVE,__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_UP)) { + //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: { -RDebugUtils.currentLine=46530563; - //BA.debugLineNum = 46530563;BA.debugLine="Dim prev As Int = PressedItem"; -_prev = __ref._presseditem /*int*/ ; -RDebugUtils.currentLine=46530564; - //BA.debugLineNum = 46530564;BA.debugLine="PressedItem = FindItem(X, Y)"; -__ref._presseditem /*int*/ = __ref._finditem /*int*/ (null,(int) (_x),(int) (_y)); -RDebugUtils.currentLine=46530565; - //BA.debugLineNum = 46530565;BA.debugLine="If prev <> PressedItem Then Draw"; -if (_prev!=__ref._presseditem /*int*/ ) { -__ref._draw /*String*/ (null);}; + //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: { -RDebugUtils.currentLine=46530567; - //BA.debugLineNum = 46530567;BA.debugLine="Dim index As Int = FindItem(X, Y)"; -_index = __ref._finditem /*int*/ (null,(int) (_x),(int) (_y)); -RDebugUtils.currentLine=46530568; - //BA.debugLineNum = 46530568;BA.debugLine="If index = PressedItem And index > -1 Then"; -if (_index==__ref._presseditem /*int*/ && _index>-1) { -RDebugUtils.currentLine=46530569; - //BA.debugLineNum = 46530569;BA.debugLine="Dim Items As List"; + //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(); -RDebugUtils.currentLine=46530570; - //BA.debugLineNum = 46530570;BA.debugLine="Items.Initialize"; + //BA.debugLineNum = 124;BA.debugLine="Items.Initialize"; _items.Initialize(); -RDebugUtils.currentLine=46530571; - //BA.debugLineNum = 46530571;BA.debugLine="For i = 0 To index"; + //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 ) { -RDebugUtils.currentLine=46530572; - //BA.debugLineNum = 46530572;BA.debugLine="Items.Add(mItems.Get(i))"; -_items.Add(__ref._mitems /*anywheresoftware.b4a.objects.collections.List*/ .Get(_i)); + //BA.debugLineNum = 126;BA.debugLine="Items.Add(mItems.Get(i))"; +_items.Add(_mitems.Get(_i)); } }; -RDebugUtils.currentLine=46530574; - //BA.debugLineNum = 46530574;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFee"; -if (__ref._mhaptic /*boolean*/ ) { -_xuiviewsutils._performhapticfeedback /*String*/ (ba,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ );}; -RDebugUtils.currentLine=46530575; - //BA.debugLineNum = 46530575;BA.debugLine="CallSub2(mCallBack, mEventName & \"_CrumbClick\""; -__c.CallSubNew2(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_CrumbClick",(Object)(_items)); + //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)); }; -RDebugUtils.currentLine=46530577; - //BA.debugLineNum = 46530577;BA.debugLine="PressedItem = -1"; -__ref._presseditem /*int*/ = (int) (-1); -RDebugUtils.currentLine=46530578; - //BA.debugLineNum = 46530578;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); + //BA.debugLineNum = 131;BA.debugLine="PressedItem = -1"; +_presseditem = (int) (-1); + //BA.debugLineNum = 132;BA.debugLine="Draw"; +_draw(); break; } } ; -RDebugUtils.currentLine=46530580; - //BA.debugLineNum = 46530580;BA.debugLine="End Sub"; + //BA.debugLineNum = 134;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xbytesbuilder.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbytesbuilder.java index 589cf47..1dcf219 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xbytesbuilder.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xbytesbuilder.java @@ -10,7 +10,7 @@ public class b4xbytesbuilder extends B4AClass.ImplB4AClass implements BA.SubDele private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xbytesbuilder"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xbytesbuilder"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xbytesbuilder extends B4AClass.ImplB4AClass implements BA.SubDele ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public byte[] _mbuffer = null; public int _mlength = 0; public b4a.example.dateutils _dateutils = null; @@ -47,376 +40,230 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public reparto_izca.keymon.lat.b4xbytesbuilder _append(reparto_izca.keymon.lat.b4xbytesbuilder __ref,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "append", true)) - {return ((reparto_izca.keymon.lat.b4xbytesbuilder) Debug.delegate(ba, "append", new Object[] {_data}));} -RDebugUtils.currentLine=34930688; - //BA.debugLineNum = 34930688;BA.debugLine="Public Sub Append(Data() As Byte) As B4XBytesBuild"; -RDebugUtils.currentLine=34930689; - //BA.debugLineNum = 34930689;BA.debugLine="Return Append2(Data, 0, Data.Length)"; -if (true) return __ref._append2 /*reparto_izca.keymon.lat.b4xbytesbuilder*/ (null,_data,(int) (0),_data.length); -RDebugUtils.currentLine=34930690; - //BA.debugLineNum = 34930690;BA.debugLine="End Sub"; +public reparto_izca.keymon.lat.b4xbytesbuilder _append(byte[] _data) throws Exception{ + //BA.debugLineNum = 24;BA.debugLine="Public Sub Append(Data() As Byte) As B4XBytesBuild"; + //BA.debugLineNum = 25;BA.debugLine="Return Append2(Data, 0, Data.Length)"; +if (true) return _append2(_data,(int) (0),_data.length); + //BA.debugLineNum = 26;BA.debugLine="End Sub"; return null; } -public reparto_izca.keymon.lat.b4xbytesbuilder _append2(reparto_izca.keymon.lat.b4xbytesbuilder __ref,byte[] _data,int _startindex,int _length) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "append2", true)) - {return ((reparto_izca.keymon.lat.b4xbytesbuilder) Debug.delegate(ba, "append2", new Object[] {_data,_startindex,_length}));} +public reparto_izca.keymon.lat.b4xbytesbuilder _append2(byte[] _data,int _startindex,int _length) throws Exception{ int _oldlength = 0; -RDebugUtils.currentLine=34996224; - //BA.debugLineNum = 34996224;BA.debugLine="Public Sub Append2(Data() As Byte, StartIndex As I"; -RDebugUtils.currentLine=34996225; - //BA.debugLineNum = 34996225;BA.debugLine="Dim OldLength As Int = ChangeLength(mLength + Len"; -_oldlength = __ref._changelength /*int*/ (null,(int) (__ref._mlength /*int*/ +_length)); -RDebugUtils.currentLine=34996226; - //BA.debugLineNum = 34996226;BA.debugLine="Bit.ArrayCopy(Data, StartIndex, mBuffer, OldLengt"; -__c.Bit.ArrayCopy((Object)(_data),_startindex,(Object)(__ref._mbuffer /*byte[]*/ ),_oldlength,_length); -RDebugUtils.currentLine=34996227; - //BA.debugLineNum = 34996227;BA.debugLine="Return Me"; + //BA.debugLineNum = 31;BA.debugLine="Public Sub Append2(Data() As Byte, StartIndex As I"; + //BA.debugLineNum = 32;BA.debugLine="Dim OldLength As Int = ChangeLength(mLength + Len"; +_oldlength = _changelength((int) (_mlength+_length)); + //BA.debugLineNum = 33;BA.debugLine="Bit.ArrayCopy(Data, StartIndex, mBuffer, OldLengt"; +__c.Bit.ArrayCopy((Object)(_data),_startindex,(Object)(_mbuffer),_oldlength,_length); + //BA.debugLineNum = 34;BA.debugLine="Return Me"; if (true) return (reparto_izca.keymon.lat.b4xbytesbuilder)(this); -RDebugUtils.currentLine=34996228; - //BA.debugLineNum = 34996228;BA.debugLine="End Sub"; + //BA.debugLineNum = 35;BA.debugLine="End Sub"; return null; } -public int _changelength(reparto_izca.keymon.lat.b4xbytesbuilder __ref,int _newlength) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "changelength", true)) - {return ((Integer) Debug.delegate(ba, "changelength", new Object[] {_newlength}));} +public int _changelength(int _newlength) throws Exception{ int _oldlength = 0; byte[] _b = null; -RDebugUtils.currentLine=34865152; - //BA.debugLineNum = 34865152;BA.debugLine="Private Sub ChangeLength (NewLength As Int) As Int"; -RDebugUtils.currentLine=34865153; - //BA.debugLineNum = 34865153;BA.debugLine="Dim OldLength As Int = mLength"; -_oldlength = __ref._mlength /*int*/ ; -RDebugUtils.currentLine=34865154; - //BA.debugLineNum = 34865154;BA.debugLine="mLength = NewLength"; -__ref._mlength /*int*/ = _newlength; -RDebugUtils.currentLine=34865155; - //BA.debugLineNum = 34865155;BA.debugLine="If mBuffer.Length < mLength Then"; -if (__ref._mbuffer /*byte[]*/ .length<__ref._mlength /*int*/ ) { -RDebugUtils.currentLine=34865156; - //BA.debugLineNum = 34865156;BA.debugLine="Dim b(Max(mBuffer.Length * 2, NewLength)) As Byt"; -_b = new byte[(int) (__c.Max(__ref._mbuffer /*byte[]*/ .length*2,_newlength))]; + //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))]; ; -RDebugUtils.currentLine=34865157; - //BA.debugLineNum = 34865157;BA.debugLine="Bit.ArrayCopy(mBuffer, 0, b, 0, mBuffer.Length)"; -__c.Bit.ArrayCopy((Object)(__ref._mbuffer /*byte[]*/ ),(int) (0),(Object)(_b),(int) (0),__ref._mbuffer /*byte[]*/ .length); -RDebugUtils.currentLine=34865158; - //BA.debugLineNum = 34865158;BA.debugLine="mBuffer = b"; -__ref._mbuffer /*byte[]*/ = _b; + //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; }; -RDebugUtils.currentLine=34865160; - //BA.debugLineNum = 34865160;BA.debugLine="Return OldLength"; + //BA.debugLineNum = 20;BA.debugLine="Return OldLength"; if (true) return _oldlength; -RDebugUtils.currentLine=34865161; - //BA.debugLineNum = 34865161;BA.debugLine="End Sub"; + //BA.debugLineNum = 21;BA.debugLine="End Sub"; return 0; } -public String _class_globals(reparto_izca.keymon.lat.b4xbytesbuilder __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -RDebugUtils.currentLine=34734080; - //BA.debugLineNum = 34734080;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=34734081; - //BA.debugLineNum = 34734081;BA.debugLine="Private mBuffer() As Byte"; +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)]; ; -RDebugUtils.currentLine=34734082; - //BA.debugLineNum = 34734082;BA.debugLine="Private mLength As Int"; + //BA.debugLineNum = 3;BA.debugLine="Private mLength As Int"; _mlength = 0; -RDebugUtils.currentLine=34734083; - //BA.debugLineNum = 34734083;BA.debugLine="End Sub"; + //BA.debugLineNum = 4;BA.debugLine="End Sub"; return ""; } -public String _clear(reparto_izca.keymon.lat.b4xbytesbuilder __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "clear", true)) - {return ((String) Debug.delegate(ba, "clear", null));} -RDebugUtils.currentLine=35061760; - //BA.debugLineNum = 35061760;BA.debugLine="Public Sub Clear"; -RDebugUtils.currentLine=35061761; - //BA.debugLineNum = 35061761;BA.debugLine="ChangeLength(0)"; -__ref._changelength /*int*/ (null,(int) (0)); -RDebugUtils.currentLine=35061762; - //BA.debugLineNum = 35061762;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xbytesbuilder __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "getbuffer", true)) - {return ((byte[]) Debug.delegate(ba, "getbuffer", null));} -RDebugUtils.currentLine=35586048; - //BA.debugLineNum = 35586048;BA.debugLine="Private Sub getBuffer As Byte() 'ignore"; -RDebugUtils.currentLine=35586049; - //BA.debugLineNum = 35586049;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xbytesbuilder __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "getinternalbuffer", true)) - {return ((byte[]) Debug.delegate(ba, "getinternalbuffer", null));} -RDebugUtils.currentLine=35782656; - //BA.debugLineNum = 35782656;BA.debugLine="Public Sub getInternalBuffer As Byte()"; -RDebugUtils.currentLine=35782657; - //BA.debugLineNum = 35782657;BA.debugLine="Return mBuffer"; -if (true) return __ref._mbuffer /*byte[]*/ ; -RDebugUtils.currentLine=35782658; - //BA.debugLineNum = 35782658;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xbytesbuilder __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "getlength", true)) - {return ((Integer) Debug.delegate(ba, "getlength", null));} -RDebugUtils.currentLine=35454976; - //BA.debugLineNum = 35454976;BA.debugLine="Public Sub getLength As Int"; -RDebugUtils.currentLine=35454977; - //BA.debugLineNum = 35454977;BA.debugLine="Return mLength"; -if (true) return __ref._mlength /*int*/ ; -RDebugUtils.currentLine=35454978; - //BA.debugLineNum = 35454978;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xbytesbuilder __ref,byte[] _searchfor) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "indexof", true)) - {return ((Integer) Debug.delegate(ba, "indexof", new Object[] {_searchfor}));} -RDebugUtils.currentLine=35651584; - //BA.debugLineNum = 35651584;BA.debugLine="Public Sub IndexOf(SearchFor() As Byte) As Int"; -RDebugUtils.currentLine=35651585; - //BA.debugLineNum = 35651585;BA.debugLine="Return IndexOf2(SearchFor, 0)"; -if (true) return __ref._indexof2 /*int*/ (null,_searchfor,(int) (0)); -RDebugUtils.currentLine=35651586; - //BA.debugLineNum = 35651586;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xbytesbuilder __ref,byte[] _searchfor,int _index) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "indexof2", true)) - {return ((Integer) Debug.delegate(ba, "indexof2", new Object[] {_searchfor,_index}));} +public int _indexof2(byte[] _searchfor,int _index) throws Exception{ int _i1 = 0; int _i2 = 0; -RDebugUtils.currentLine=35717120; - //BA.debugLineNum = 35717120;BA.debugLine="Public Sub IndexOf2(SearchFor() As Byte, Index As"; -RDebugUtils.currentLine=35717121; - //BA.debugLineNum = 35717121;BA.debugLine="For i1 = Index To mLength - SearchFor.Length"; + //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) (__ref._mlength /*int*/ -_searchfor.length); +final int limit1 = (int) (_mlength-_searchfor.length); _i1 = _index ; for (;_i1 <= limit1 ;_i1 = _i1 + step1 ) { -RDebugUtils.currentLine=35717122; - //BA.debugLineNum = 35717122;BA.debugLine="For i2 = 0 To SearchFor.Length - 1"; + //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 ) { -RDebugUtils.currentLine=35717123; - //BA.debugLineNum = 35717123;BA.debugLine="If SearchFor(i2) <> mBuffer(i1 + i2) Then"; -if (_searchfor[_i2]!=__ref._mbuffer /*byte[]*/ [(int) (_i1+_i2)]) { -RDebugUtils.currentLine=35717124; - //BA.debugLineNum = 35717124;BA.debugLine="Exit"; + //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; }; } }; -RDebugUtils.currentLine=35717127; - //BA.debugLineNum = 35717127;BA.debugLine="If i2 = SearchFor.Length Then"; + //BA.debugLineNum = 119;BA.debugLine="If i2 = SearchFor.Length Then"; if (_i2==_searchfor.length) { -RDebugUtils.currentLine=35717128; - //BA.debugLineNum = 35717128;BA.debugLine="Return i1"; + //BA.debugLineNum = 120;BA.debugLine="Return i1"; if (true) return _i1; }; } }; -RDebugUtils.currentLine=35717131; - //BA.debugLineNum = 35717131;BA.debugLine="Return -1"; + //BA.debugLineNum = 123;BA.debugLine="Return -1"; if (true) return (int) (-1); -RDebugUtils.currentLine=35717132; - //BA.debugLineNum = 35717132;BA.debugLine="End Sub"; + //BA.debugLineNum = 124;BA.debugLine="End Sub"; return 0; } -public String _initialize(reparto_izca.keymon.lat.b4xbytesbuilder __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=34799616; - //BA.debugLineNum = 34799616;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=34799617; - //BA.debugLineNum = 34799617;BA.debugLine="Dim mBuffer(100) As Byte"; + //BA.debugLineNum = 6;BA.debugLine="Public Sub Initialize"; + //BA.debugLineNum = 7;BA.debugLine="Dim mBuffer(100) As Byte"; _mbuffer = new byte[(int) (100)]; ; -RDebugUtils.currentLine=34799618; - //BA.debugLineNum = 34799618;BA.debugLine="mLength = 0"; -__ref._mlength /*int*/ = (int) (0); -RDebugUtils.currentLine=34799619; - //BA.debugLineNum = 34799619;BA.debugLine="End Sub"; + //BA.debugLineNum = 8;BA.debugLine="mLength = 0"; +_mlength = (int) (0); + //BA.debugLineNum = 9;BA.debugLine="End Sub"; return ""; } -public String _insert(reparto_izca.keymon.lat.b4xbytesbuilder __ref,int _index,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "insert", true)) - {return ((String) Debug.delegate(ba, "insert", new Object[] {_index,_data}));} +public String _insert(int _index,byte[] _data) throws Exception{ byte[] _afterindex = null; -RDebugUtils.currentLine=35127296; - //BA.debugLineNum = 35127296;BA.debugLine="Public Sub Insert(Index As Int, Data() As Byte)"; -RDebugUtils.currentLine=35127297; - //BA.debugLineNum = 35127297;BA.debugLine="If Index >= mLength Then"; -if (_index>=__ref._mlength /*int*/ ) { -RDebugUtils.currentLine=35127298; - //BA.debugLineNum = 35127298;BA.debugLine="If Index > mLength Then Log(\"Index too large\")"; -if (_index>__ref._mlength /*int*/ ) { -__c.LogImpl("935127298","Index too large",0);}; -RDebugUtils.currentLine=35127299; - //BA.debugLineNum = 35127299;BA.debugLine="Append(Data)"; -__ref._append /*reparto_izca.keymon.lat.b4xbytesbuilder*/ (null,_data); + //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("943646978","Index too large",0);}; + //BA.debugLineNum = 46;BA.debugLine="Append(Data)"; +_append(_data); }else { -RDebugUtils.currentLine=35127301; - //BA.debugLineNum = 35127301;BA.debugLine="Dim AfterIndex() As Byte = SubArray(Index)"; -_afterindex = __ref._subarray /*byte[]*/ (null,_index); -RDebugUtils.currentLine=35127302; - //BA.debugLineNum = 35127302;BA.debugLine="ChangeLength(mLength + Data.Length)"; -__ref._changelength /*int*/ (null,(int) (__ref._mlength /*int*/ +_data.length)); -RDebugUtils.currentLine=35127303; - //BA.debugLineNum = 35127303;BA.debugLine="Bit.ArrayCopy(Data, 0, mBuffer, Index, Data.Leng"; -__c.Bit.ArrayCopy((Object)(_data),(int) (0),(Object)(__ref._mbuffer /*byte[]*/ ),_index,_data.length); -RDebugUtils.currentLine=35127304; - //BA.debugLineNum = 35127304;BA.debugLine="Bit.ArrayCopy(AfterIndex, 0, mBuffer, Index + Da"; -__c.Bit.ArrayCopy((Object)(_afterindex),(int) (0),(Object)(__ref._mbuffer /*byte[]*/ ),(int) (_index+_data.length),_afterindex.length); + //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); }; -RDebugUtils.currentLine=35127306; - //BA.debugLineNum = 35127306;BA.debugLine="End Sub"; + //BA.debugLineNum = 53;BA.debugLine="End Sub"; return ""; } -public byte[] _subarray(reparto_izca.keymon.lat.b4xbytesbuilder __ref,int _beginindex) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "subarray", true)) - {return ((byte[]) Debug.delegate(ba, "subarray", new Object[] {_beginindex}));} -RDebugUtils.currentLine=35323904; - //BA.debugLineNum = 35323904;BA.debugLine="Public Sub SubArray(BeginIndex As Int) As Byte()"; -RDebugUtils.currentLine=35323905; - //BA.debugLineNum = 35323905;BA.debugLine="Return SubArray2(BeginIndex, mLength)"; -if (true) return __ref._subarray2 /*byte[]*/ (null,_beginindex,__ref._mlength /*int*/ ); -RDebugUtils.currentLine=35323906; - //BA.debugLineNum = 35323906;BA.debugLine="End Sub"; -return null; -} -public byte[] _remove(reparto_izca.keymon.lat.b4xbytesbuilder __ref,int _beginindex,int _endindex) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "remove", true)) - {return ((byte[]) Debug.delegate(ba, "remove", new Object[] {_beginindex,_endindex}));} +public byte[] _remove(int _beginindex,int _endindex) throws Exception{ byte[] _res = null; byte[] _afterendindex = null; -RDebugUtils.currentLine=35258368; - //BA.debugLineNum = 35258368;BA.debugLine="Public Sub Remove(BeginIndex As Int, EndIndex As I"; -RDebugUtils.currentLine=35258369; - //BA.debugLineNum = 35258369;BA.debugLine="Dim res() As Byte = SubArray2(BeginIndex, EndInde"; -_res = __ref._subarray2 /*byte[]*/ (null,_beginindex,_endindex); -RDebugUtils.currentLine=35258370; - //BA.debugLineNum = 35258370;BA.debugLine="If EndIndex <= mLength Then"; -if (_endindex<=__ref._mlength /*int*/ ) { -RDebugUtils.currentLine=35258371; - //BA.debugLineNum = 35258371;BA.debugLine="Dim AfterEndIndex() As Byte = SubArray(EndIndex)"; -_afterendindex = __ref._subarray /*byte[]*/ (null,_endindex); -RDebugUtils.currentLine=35258372; - //BA.debugLineNum = 35258372;BA.debugLine="Bit.ArrayCopy(AfterEndIndex, 0, mBuffer, BeginIn"; -__c.Bit.ArrayCopy((Object)(_afterendindex),(int) (0),(Object)(__ref._mbuffer /*byte[]*/ ),_beginindex,_afterendindex.length); + //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); }; -RDebugUtils.currentLine=35258374; - //BA.debugLineNum = 35258374;BA.debugLine="ChangeLength(mLength - (EndIndex - BeginIndex))"; -__ref._changelength /*int*/ (null,(int) (__ref._mlength /*int*/ -(_endindex-_beginindex))); -RDebugUtils.currentLine=35258375; - //BA.debugLineNum = 35258375;BA.debugLine="Return res"; + //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; -RDebugUtils.currentLine=35258376; - //BA.debugLineNum = 35258376;BA.debugLine="End Sub"; + //BA.debugLineNum = 77;BA.debugLine="End Sub"; return null; } -public byte[] _subarray2(reparto_izca.keymon.lat.b4xbytesbuilder __ref,int _beginindex,int _endindex) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "subarray2", true)) - {return ((byte[]) Debug.delegate(ba, "subarray2", new Object[] {_beginindex,_endindex}));} -byte[] _b = null; -RDebugUtils.currentLine=35389440; - //BA.debugLineNum = 35389440;BA.debugLine="Public Sub SubArray2(BeginIndex As Int, EndIndex A"; -RDebugUtils.currentLine=35389441; - //BA.debugLineNum = 35389441;BA.debugLine="Dim b(EndIndex - BeginIndex) As Byte"; -_b = new byte[(int) (_endindex-_beginindex)]; -; -RDebugUtils.currentLine=35389442; - //BA.debugLineNum = 35389442;BA.debugLine="Bit.ArrayCopy(mBuffer, BeginIndex, b, 0, b.Length"; -__c.Bit.ArrayCopy((Object)(__ref._mbuffer /*byte[]*/ ),_beginindex,(Object)(_b),(int) (0),_b.length); -RDebugUtils.currentLine=35389443; - //BA.debugLineNum = 35389443;BA.debugLine="Return b"; -if (true) return _b; -RDebugUtils.currentLine=35389444; - //BA.debugLineNum = 35389444;BA.debugLine="End Sub"; -return null; -} -public String _set(reparto_izca.keymon.lat.b4xbytesbuilder __ref,int _index,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "set", true)) - {return ((String) Debug.delegate(ba, "set", new Object[] {_index,_data}));} -RDebugUtils.currentLine=35192832; - //BA.debugLineNum = 35192832;BA.debugLine="Public Sub Set(Index As Int, Data() As Byte)"; -RDebugUtils.currentLine=35192833; - //BA.debugLineNum = 35192833;BA.debugLine="If Index >= mLength Then"; -if (_index>=__ref._mlength /*int*/ ) { -RDebugUtils.currentLine=35192834; - //BA.debugLineNum = 35192834;BA.debugLine="If Index > mLength Then Log(\"Index too large\")"; -if (_index>__ref._mlength /*int*/ ) { -__c.LogImpl("935192834","Index too large",0);}; -RDebugUtils.currentLine=35192835; - //BA.debugLineNum = 35192835;BA.debugLine="Append(Data)"; -__ref._append /*reparto_izca.keymon.lat.b4xbytesbuilder*/ (null,_data); +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("943712514","Index too large",0);}; + //BA.debugLineNum = 59;BA.debugLine="Append(Data)"; +_append(_data); }else { -RDebugUtils.currentLine=35192837; - //BA.debugLineNum = 35192837;BA.debugLine="If Data.Length + Index > mLength Then"; -if (_data.length+_index>__ref._mlength /*int*/ ) { -RDebugUtils.currentLine=35192838; - //BA.debugLineNum = 35192838;BA.debugLine="ChangeLength(Data.Length + Index)"; -__ref._changelength /*int*/ (null,(int) (_data.length+_index)); + //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)); }; -RDebugUtils.currentLine=35192840; - //BA.debugLineNum = 35192840;BA.debugLine="Bit.ArrayCopy(Data, 0, mBuffer, Index, Data.Leng"; -__c.Bit.ArrayCopy((Object)(_data),(int) (0),(Object)(__ref._mbuffer /*byte[]*/ ),_index,_data.length); + //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); }; -RDebugUtils.currentLine=35192842; - //BA.debugLineNum = 35192842;BA.debugLine="End Sub"; + //BA.debugLineNum = 66;BA.debugLine="End Sub"; return ""; } -public byte[] _toarray(reparto_izca.keymon.lat.b4xbytesbuilder __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xbytesbuilder"; -if (Debug.shouldDelegate(ba, "toarray", true)) - {return ((byte[]) Debug.delegate(ba, "toarray", null));} -RDebugUtils.currentLine=35520512; - //BA.debugLineNum = 35520512;BA.debugLine="Public Sub ToArray() As Byte()"; -RDebugUtils.currentLine=35520513; - //BA.debugLineNum = 35520513;BA.debugLine="Return SubArray(0)"; -if (true) return __ref._subarray /*byte[]*/ (null,(int) (0)); -RDebugUtils.currentLine=35520514; - //BA.debugLineNum = 35520514;BA.debugLine="End Sub"; +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; } -} \ No newline at end of file +public byte[] _subarray2(int _beginindex,int _endindex) throws Exception{ +byte[] _b = null; + //BA.debugLineNum = 86;BA.debugLine="Public Sub SubArray2(BeginIndex As Int, EndIndex A"; + //BA.debugLineNum = 87;BA.debugLine="Dim b(EndIndex - BeginIndex) As Byte"; +_b = new byte[(int) (_endindex-_beginindex)]; +; + //BA.debugLineNum = 88;BA.debugLine="Bit.ArrayCopy(mBuffer, BeginIndex, b, 0, b.Length"; +__c.Bit.ArrayCopy((Object)(_mbuffer),_beginindex,(Object)(_b),(int) (0),_b.length); + //BA.debugLineNum = 89;BA.debugLine="Return b"; +if (true) return _b; + //BA.debugLineNum = 90;BA.debugLine="End Sub"; +return null; +} +public byte[] _toarray() throws Exception{ + //BA.debugLineNum = 97;BA.debugLine="Public Sub ToArray() As Byte()"; + //BA.debugLineNum = 98;BA.debugLine="Return SubArray(0)"; +if (true) return _subarray((int) (0)); + //BA.debugLineNum = 99;BA.debugLine="End Sub"; +return null; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcache.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcache.java index 910f4be..9cbcb12 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcache.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcache.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcache"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcache"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,31 +23,7 @@ public class b4xcache extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -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 anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public reparto_izca.keymon.lat.b4xorderedmap _data = null; public int _mmaxsize = 0; public float _removethreshold = 0f; @@ -66,299 +42,169 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _class_globals(reparto_izca.keymon.lat.b4xcache __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -RDebugUtils.currentLine=35848192; - //BA.debugLineNum = 35848192;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=35848193; - //BA.debugLineNum = 35848193;BA.debugLine="Type B4XCacheItem (Value As Object, LastAccessedT"; +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"; ; -RDebugUtils.currentLine=35848194; - //BA.debugLineNum = 35848194;BA.debugLine="Private Data As B4XOrderedMap"; + //BA.debugLineNum = 3;BA.debugLine="Private Data As B4XOrderedMap"; _data = new reparto_izca.keymon.lat.b4xorderedmap(); -RDebugUtils.currentLine=35848195; - //BA.debugLineNum = 35848195;BA.debugLine="Private mMaxSize As Int = 100"; + //BA.debugLineNum = 4;BA.debugLine="Private mMaxSize As Int = 100"; _mmaxsize = (int) (100); -RDebugUtils.currentLine=35848196; - //BA.debugLineNum = 35848196;BA.debugLine="Private RemoveThreshold As Float = 0.3"; + //BA.debugLineNum = 5;BA.debugLine="Private RemoveThreshold As Float = 0.3"; _removethreshold = (float) (0.3); -RDebugUtils.currentLine=35848197; - //BA.debugLineNum = 35848197;BA.debugLine="Private EternalCounts As Int"; + //BA.debugLineNum = 6;BA.debugLine="Private EternalCounts As Int"; _eternalcounts = 0; -RDebugUtils.currentLine=35848198; - //BA.debugLineNum = 35848198;BA.debugLine="End Sub"; + //BA.debugLineNum = 7;BA.debugLine="End Sub"; return ""; } -public boolean _containskey(reparto_izca.keymon.lat.b4xcache __ref,String _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "containskey", true)) - {return ((Boolean) Debug.delegate(ba, "containskey", new Object[] {_key}));} -RDebugUtils.currentLine=36438016; - //BA.debugLineNum = 36438016;BA.debugLine="Public Sub ContainsKey(Key As String) As Boolean"; -RDebugUtils.currentLine=36438017; - //BA.debugLineNum = 36438017;BA.debugLine="Return Data.ContainsKey(Key)"; -if (true) return __ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._containskey /*boolean*/ (null,(Object)(_key)); -RDebugUtils.currentLine=36438018; - //BA.debugLineNum = 36438018;BA.debugLine="End Sub"; +public boolean _containskey(String _key) throws Exception{ + //BA.debugLineNum = 66;BA.debugLine="Public Sub ContainsKey(Key As String) As Boolean"; + //BA.debugLineNum = 67;BA.debugLine="Return Data.ContainsKey(Key)"; +if (true) return _data._containskey /*boolean*/ ((Object)(_key)); + //BA.debugLineNum = 68;BA.debugLine="End Sub"; return false; } -public reparto_izca.keymon.lat.b4xcache._b4xcacheitem _createb4xcacheitem(reparto_izca.keymon.lat.b4xcache __ref,Object _value,String _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "createb4xcacheitem", true)) - {return ((reparto_izca.keymon.lat.b4xcache._b4xcacheitem) Debug.delegate(ba, "createb4xcacheitem", new Object[] {_value,_key}));} +public reparto_izca.keymon.lat.b4xcache._b4xcacheitem _createb4xcacheitem(Object _value,String _key) throws Exception{ reparto_izca.keymon.lat.b4xcache._b4xcacheitem _t1 = null; -RDebugUtils.currentLine=36765696; - //BA.debugLineNum = 36765696;BA.debugLine="Private Sub CreateB4XCacheItem (Value As Object, K"; -RDebugUtils.currentLine=36765697; - //BA.debugLineNum = 36765697;BA.debugLine="Dim t1 As B4XCacheItem"; + //BA.debugLineNum = 102;BA.debugLine="Private Sub CreateB4XCacheItem (Value As Object, K"; + //BA.debugLineNum = 103;BA.debugLine="Dim t1 As B4XCacheItem"; _t1 = new reparto_izca.keymon.lat.b4xcache._b4xcacheitem(); -RDebugUtils.currentLine=36765698; - //BA.debugLineNum = 36765698;BA.debugLine="t1.Initialize"; + //BA.debugLineNum = 104;BA.debugLine="t1.Initialize"; _t1.Initialize(); -RDebugUtils.currentLine=36765699; - //BA.debugLineNum = 36765699;BA.debugLine="t1.Value = Value"; + //BA.debugLineNum = 105;BA.debugLine="t1.Value = Value"; _t1.Value /*Object*/ = _value; -RDebugUtils.currentLine=36765700; - //BA.debugLineNum = 36765700;BA.debugLine="t1.LastAccessedTime = DateTime.Now"; + //BA.debugLineNum = 106;BA.debugLine="t1.LastAccessedTime = DateTime.Now"; _t1.LastAccessedTime /*long*/ = __c.DateTime.getNow(); -RDebugUtils.currentLine=36765701; - //BA.debugLineNum = 36765701;BA.debugLine="t1.Key = Key"; + //BA.debugLineNum = 107;BA.debugLine="t1.Key = Key"; _t1.Key /*String*/ = _key; -RDebugUtils.currentLine=36765702; - //BA.debugLineNum = 36765702;BA.debugLine="Return t1"; + //BA.debugLineNum = 108;BA.debugLine="Return t1"; if (true) return _t1; -RDebugUtils.currentLine=36765703; - //BA.debugLineNum = 36765703;BA.debugLine="End Sub"; + //BA.debugLineNum = 109;BA.debugLine="End Sub"; return null; } -public Object _get(reparto_izca.keymon.lat.b4xcache __ref,String _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "get", true)) - {return ((Object) Debug.delegate(ba, "get", new Object[] {_key}));} +public Object _get(String _key) throws Exception{ reparto_izca.keymon.lat.b4xcache._b4xcacheitem _ci = null; -RDebugUtils.currentLine=36110336; - //BA.debugLineNum = 36110336;BA.debugLine="Public Sub Get (Key As String) As Object"; -RDebugUtils.currentLine=36110337; - //BA.debugLineNum = 36110337;BA.debugLine="Dim ci As B4XCacheItem = Data.Get(Key)"; -_ci = (reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(__ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,(Object)(_key))); -RDebugUtils.currentLine=36110338; - //BA.debugLineNum = 36110338;BA.debugLine="If ci <> Null Then"; + //BA.debugLineNum = 24;BA.debugLine="Public Sub Get (Key As String) As Object"; + //BA.debugLineNum = 25;BA.debugLine="Dim ci As B4XCacheItem = Data.Get(Key)"; +_ci = (reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(_data._get /*Object*/ ((Object)(_key))); + //BA.debugLineNum = 26;BA.debugLine="If ci <> Null Then"; if (_ci!= null) { -RDebugUtils.currentLine=36110339; - //BA.debugLineNum = 36110339;BA.debugLine="If ci.Eternal = False Then ci.LastAccessedTime ="; + //BA.debugLineNum = 27;BA.debugLine="If ci.Eternal = False Then ci.LastAccessedTime ="; if (_ci.Eternal /*boolean*/ ==__c.False) { _ci.LastAccessedTime /*long*/ = __c.DateTime.getNow();}; -RDebugUtils.currentLine=36110340; - //BA.debugLineNum = 36110340;BA.debugLine="Return ci.Value"; + //BA.debugLineNum = 28;BA.debugLine="Return ci.Value"; if (true) return _ci.Value /*Object*/ ; }; -RDebugUtils.currentLine=36110342; - //BA.debugLineNum = 36110342;BA.debugLine="Return Null"; + //BA.debugLineNum = 30;BA.debugLine="Return Null"; if (true) return __c.Null; -RDebugUtils.currentLine=36110343; - //BA.debugLineNum = 36110343;BA.debugLine="End Sub"; + //BA.debugLineNum = 31;BA.debugLine="End Sub"; return null; } -public int _getmaxsize(reparto_izca.keymon.lat.b4xcache __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "getmaxsize", true)) - {return ((Integer) Debug.delegate(ba, "getmaxsize", null));} -RDebugUtils.currentLine=36044800; - //BA.debugLineNum = 36044800;BA.debugLine="Public Sub getMaxSize As Int"; -RDebugUtils.currentLine=36044801; - //BA.debugLineNum = 36044801;BA.debugLine="Return mMaxSize"; -if (true) return __ref._mmaxsize /*int*/ ; -RDebugUtils.currentLine=36044802; - //BA.debugLineNum = 36044802;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xcache __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=35913728; - //BA.debugLineNum = 35913728;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=35913729; - //BA.debugLineNum = 35913729;BA.debugLine="Data.Initialize"; -__ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=35913730; - //BA.debugLineNum = 35913730;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xcache __ref,String _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "iseternal", true)) - {return ((Boolean) Debug.delegate(ba, "iseternal", new Object[] {_key}));} +public boolean _iseternal(String _key) throws Exception{ reparto_izca.keymon.lat.b4xcache._b4xcacheitem _ci = null; -RDebugUtils.currentLine=36372480; - //BA.debugLineNum = 36372480;BA.debugLine="Private Sub IsEternal(Key As String) As Boolean"; -RDebugUtils.currentLine=36372481; - //BA.debugLineNum = 36372481;BA.debugLine="Dim ci As B4XCacheItem = Data.Get(Key)"; -_ci = (reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(__ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,(Object)(_key))); -RDebugUtils.currentLine=36372482; - //BA.debugLineNum = 36372482;BA.debugLine="Return IIf(ci = Null, False, ci.Eternal)"; + //BA.debugLineNum = 60;BA.debugLine="Private Sub IsEternal(Key As String) As Boolean"; + //BA.debugLineNum = 61;BA.debugLine="Dim ci As B4XCacheItem = Data.Get(Key)"; +_ci = (reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(_data._get /*Object*/ ((Object)(_key))); + //BA.debugLineNum = 62;BA.debugLine="Return IIf(ci = Null, False, ci.Eternal)"; if (true) return BA.ObjectToBoolean(((_ci== null) ? ((Object)(__c.False)) : ((Object)(_ci.Eternal /*boolean*/ )))); -RDebugUtils.currentLine=36372483; - //BA.debugLineNum = 36372483;BA.debugLine="End Sub"; + //BA.debugLineNum = 63;BA.debugLine="End Sub"; return false; } -public anywheresoftware.b4a.objects.collections.List _keys(reparto_izca.keymon.lat.b4xcache __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "keys", true)) - {return ((anywheresoftware.b4a.objects.collections.List) Debug.delegate(ba, "keys", null));} -RDebugUtils.currentLine=36700160; - //BA.debugLineNum = 36700160;BA.debugLine="Public Sub Keys As List"; -RDebugUtils.currentLine=36700161; - //BA.debugLineNum = 36700161;BA.debugLine="Return Data.Keys"; -if (true) return __ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null); -RDebugUtils.currentLine=36700162; - //BA.debugLineNum = 36700162;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xcache __ref,String _key,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "put", true)) - {return ((Object) Debug.delegate(ba, "put", new Object[] {_key,_value}));} -RDebugUtils.currentLine=36175872; - //BA.debugLineNum = 36175872;BA.debugLine="Public Sub Put (Key As String, Value As Object) As"; -RDebugUtils.currentLine=36175873; - //BA.debugLineNum = 36175873;BA.debugLine="If IsEternal(Key) Then EternalCounts = EternalCou"; -if (__ref._iseternal /*boolean*/ (null,_key)) { -__ref._eternalcounts /*int*/ = (int) (__ref._eternalcounts /*int*/ -1);}; -RDebugUtils.currentLine=36175874; - //BA.debugLineNum = 36175874;BA.debugLine="Data.Put(Key, CreateB4XCacheItem(Value, Key))"; -__ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._put /*String*/ (null,(Object)(_key),(Object)(__ref._createb4xcacheitem /*reparto_izca.keymon.lat.b4xcache._b4xcacheitem*/ (null,_value,_key))); -RDebugUtils.currentLine=36175875; - //BA.debugLineNum = 36175875;BA.debugLine="TrimIfOversize"; -__ref._trimifoversize /*String*/ (null); -RDebugUtils.currentLine=36175876; - //BA.debugLineNum = 36175876;BA.debugLine="Return Value"; +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; -RDebugUtils.currentLine=36175877; - //BA.debugLineNum = 36175877;BA.debugLine="End Sub"; + //BA.debugLineNum = 40;BA.debugLine="End Sub"; return null; } -public String _trimifoversize(reparto_izca.keymon.lat.b4xcache __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "trimifoversize", true)) - {return ((String) Debug.delegate(ba, "trimifoversize", null));} -anywheresoftware.b4a.objects.collections.List _values = null; -int _numberofitemstoremove = 0; -int _i = 0; -RDebugUtils.currentLine=36503552; - //BA.debugLineNum = 36503552;BA.debugLine="Private Sub TrimIfOversize"; -RDebugUtils.currentLine=36503553; - //BA.debugLineNum = 36503553;BA.debugLine="If Data.Size - EternalCounts > mMaxSize Then"; -if (__ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getsize /*int*/ (null)-__ref._eternalcounts /*int*/ >__ref._mmaxsize /*int*/ ) { -RDebugUtils.currentLine=36503554; - //BA.debugLineNum = 36503554;BA.debugLine="Dim values As List = Data.Values"; -_values = new anywheresoftware.b4a.objects.collections.List(); -_values = __ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getvalues /*anywheresoftware.b4a.objects.collections.List*/ (null); -RDebugUtils.currentLine=36503555; - //BA.debugLineNum = 36503555;BA.debugLine="values.SortType(\"LastAccessedTime\", True)"; -_values.SortType("LastAccessedTime",__c.True); -RDebugUtils.currentLine=36503556; - //BA.debugLineNum = 36503556;BA.debugLine="Dim NumberOfItemsToRemove As Int = Ceil(mMaxSize"; -_numberofitemstoremove = (int) (__c.Ceil(__ref._mmaxsize /*int*/ *__ref._removethreshold /*float*/ )); -RDebugUtils.currentLine=36503557; - //BA.debugLineNum = 36503557;BA.debugLine="For i = 0 To NumberOfItemsToRemove"; -{ -final int step5 = 1; -final int limit5 = _numberofitemstoremove; -_i = (int) (0) ; -for (;_i <= limit5 ;_i = _i + step5 ) { -RDebugUtils.currentLine=36503558; - //BA.debugLineNum = 36503558;BA.debugLine="Data.Remove(values.Get(i).As(B4XCacheItem).Key)"; -__ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._remove /*String*/ (null,(Object)(((reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(_values.Get(_i))).Key /*String*/ )); - } -}; - }; -RDebugUtils.currentLine=36503561; - //BA.debugLineNum = 36503561;BA.debugLine="End Sub"; -return ""; -} -public Object _puteternal(reparto_izca.keymon.lat.b4xcache __ref,String _key,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "puteternal", true)) - {return ((Object) Debug.delegate(ba, "puteternal", new Object[] {_key,_value}));} +public Object _puteternal(String _key,Object _value) throws Exception{ reparto_izca.keymon.lat.b4xcache._b4xcacheitem _ci = null; -RDebugUtils.currentLine=36241408; - //BA.debugLineNum = 36241408;BA.debugLine="Public Sub PutEternal (Key As String, Value As Obj"; -RDebugUtils.currentLine=36241409; - //BA.debugLineNum = 36241409;BA.debugLine="If IsEternal(Key) Then EternalCounts = EternalCou"; -if (__ref._iseternal /*boolean*/ (null,_key)) { -__ref._eternalcounts /*int*/ = (int) (__ref._eternalcounts /*int*/ -1);}; -RDebugUtils.currentLine=36241410; - //BA.debugLineNum = 36241410;BA.debugLine="Dim ci As B4XCacheItem = CreateB4XCacheItem(Value"; -_ci = __ref._createb4xcacheitem /*reparto_izca.keymon.lat.b4xcache._b4xcacheitem*/ (null,_value,_key); -RDebugUtils.currentLine=36241411; - //BA.debugLineNum = 36241411;BA.debugLine="ci.Eternal = True"; + //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; -RDebugUtils.currentLine=36241412; - //BA.debugLineNum = 36241412;BA.debugLine="ci.LastAccessedTime = 9223372036854775807"; + //BA.debugLineNum = 48;BA.debugLine="ci.LastAccessedTime = 9223372036854775807"; _ci.LastAccessedTime /*long*/ = (long) (9223372036854775807L); -RDebugUtils.currentLine=36241413; - //BA.debugLineNum = 36241413;BA.debugLine="EternalCounts = EternalCounts + 1"; -__ref._eternalcounts /*int*/ = (int) (__ref._eternalcounts /*int*/ +1); -RDebugUtils.currentLine=36241414; - //BA.debugLineNum = 36241414;BA.debugLine="Data.Put(Key, ci)"; -__ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._put /*String*/ (null,(Object)(_key),(Object)(_ci)); -RDebugUtils.currentLine=36241415; - //BA.debugLineNum = 36241415;BA.debugLine="Return Value"; + //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; -RDebugUtils.currentLine=36241416; - //BA.debugLineNum = 36241416;BA.debugLine="End Sub"; + //BA.debugLineNum = 52;BA.debugLine="End Sub"; return null; } -public String _remove(reparto_izca.keymon.lat.b4xcache __ref,String _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "remove", true)) - {return ((String) Debug.delegate(ba, "remove", new Object[] {_key}));} -RDebugUtils.currentLine=36306944; - //BA.debugLineNum = 36306944;BA.debugLine="Public Sub Remove (Key As String)"; -RDebugUtils.currentLine=36306945; - //BA.debugLineNum = 36306945;BA.debugLine="If IsEternal(Key) Then EternalCounts = EternalCou"; -if (__ref._iseternal /*boolean*/ (null,_key)) { -__ref._eternalcounts /*int*/ = (int) (__ref._eternalcounts /*int*/ -1);}; -RDebugUtils.currentLine=36306946; - //BA.debugLineNum = 36306946;BA.debugLine="Data.Remove(Key)"; -__ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._remove /*String*/ (null,(Object)(_key)); -RDebugUtils.currentLine=36306947; - //BA.debugLineNum = 36306947;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xcache __ref,long _agems) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "removeolditems", true)) - {return ((String) Debug.delegate(ba, "removeolditems", new Object[] {_agems}));} +public String _removeolditems(long _agems) throws Exception{ anywheresoftware.b4a.objects.collections.List _values = null; long _level = 0L; reparto_izca.keymon.lat.b4xcache._b4xcacheitem _ci = null; -RDebugUtils.currentLine=36569088; - //BA.debugLineNum = 36569088;BA.debugLine="Public Sub RemoveOldItems (AgeMs As Long)"; -RDebugUtils.currentLine=36569089; - //BA.debugLineNum = 36569089;BA.debugLine="Dim values As List = Data.Values"; + //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 = __ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getvalues /*anywheresoftware.b4a.objects.collections.List*/ (null); -RDebugUtils.currentLine=36569090; - //BA.debugLineNum = 36569090;BA.debugLine="Dim level As Long = DateTime.Now - AgeMs"; +_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); -RDebugUtils.currentLine=36569091; - //BA.debugLineNum = 36569091;BA.debugLine="For Each ci As B4XCacheItem In values"; + //BA.debugLineNum = 85;BA.debugLine="For Each ci As B4XCacheItem In values"; { final anywheresoftware.b4a.BA.IterableList group3 = _values; final int groupLen3 = group3.getSize() @@ -366,48 +212,62 @@ final int groupLen3 = group3.getSize() ; for (; index3 < groupLen3;index3++){ _ci = (reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(group3.Get(index3)); -RDebugUtils.currentLine=36569092; - //BA.debugLineNum = 36569092;BA.debugLine="If ci.LastAccessedTime <= level Then"; + //BA.debugLineNum = 86;BA.debugLine="If ci.LastAccessedTime <= level Then"; if (_ci.LastAccessedTime /*long*/ <=_level) { -RDebugUtils.currentLine=36569093; - //BA.debugLineNum = 36569093;BA.debugLine="Data.Remove(ci.Key)"; -__ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._remove /*String*/ (null,(Object)(_ci.Key /*String*/ )); + //BA.debugLineNum = 87;BA.debugLine="Data.Remove(ci.Key)"; +_data._remove /*String*/ ((Object)(_ci.Key /*String*/ )); }; } }; -RDebugUtils.currentLine=36569096; - //BA.debugLineNum = 36569096;BA.debugLine="End Sub"; + //BA.debugLineNum = 90;BA.debugLine="End Sub"; return ""; } -public String _setmaxsize(reparto_izca.keymon.lat.b4xcache __ref,int _s) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "setmaxsize", true)) - {return ((String) Debug.delegate(ba, "setmaxsize", new Object[] {_s}));} -RDebugUtils.currentLine=35979264; - //BA.debugLineNum = 35979264;BA.debugLine="Public Sub setMaxSize(s As Int)"; -RDebugUtils.currentLine=35979265; - //BA.debugLineNum = 35979265;BA.debugLine="mMaxSize = s"; -__ref._mmaxsize /*int*/ = _s; -RDebugUtils.currentLine=35979266; - //BA.debugLineNum = 35979266;BA.debugLine="TrimIfOversize"; -__ref._trimifoversize /*String*/ (null); -RDebugUtils.currentLine=35979267; - //BA.debugLineNum = 35979267;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xcache __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcache"; -if (Debug.shouldDelegate(ba, "size", true)) - {return ((Integer) Debug.delegate(ba, "size", null));} -RDebugUtils.currentLine=36634624; - //BA.debugLineNum = 36634624;BA.debugLine="Public Sub Size As Int"; -RDebugUtils.currentLine=36634625; - //BA.debugLineNum = 36634625;BA.debugLine="Return Data.Size"; -if (true) return __ref._data /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getsize /*int*/ (null); -RDebugUtils.currentLine=36634626; - //BA.debugLineNum = 36634626;BA.debugLine="End Sub"; +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; } -} \ No newline at end of file +public String _trimifoversize() throws Exception{ +anywheresoftware.b4a.objects.collections.List _values = null; +int _numberofitemstoremove = 0; +int _i = 0; + //BA.debugLineNum = 70;BA.debugLine="Private Sub TrimIfOversize"; + //BA.debugLineNum = 71;BA.debugLine="If Data.Size - EternalCounts > mMaxSize Then"; +if (_data._getsize /*int*/ ()-_eternalcounts>_mmaxsize) { + //BA.debugLineNum = 72;BA.debugLine="Dim values As List = Data.Values"; +_values = new anywheresoftware.b4a.objects.collections.List(); +_values = _data._getvalues /*anywheresoftware.b4a.objects.collections.List*/ (); + //BA.debugLineNum = 73;BA.debugLine="values.SortType(\"LastAccessedTime\", True)"; +_values.SortType("LastAccessedTime",__c.True); + //BA.debugLineNum = 74;BA.debugLine="Dim NumberOfItemsToRemove As Int = Ceil(mMaxSize"; +_numberofitemstoremove = (int) (__c.Ceil(_mmaxsize*_removethreshold)); + //BA.debugLineNum = 75;BA.debugLine="For i = 0 To NumberOfItemsToRemove"; +{ +final int step5 = 1; +final int limit5 = _numberofitemstoremove; +_i = (int) (0) ; +for (;_i <= limit5 ;_i = _i + step5 ) { + //BA.debugLineNum = 76;BA.debugLine="Data.Remove(values.Get(i).As(B4XCacheItem).Key)"; +_data._remove /*String*/ ((Object)(((reparto_izca.keymon.lat.b4xcache._b4xcacheitem)(_values.Get(_i))).Key /*String*/ )); + } +}; + }; + //BA.debugLineNum = 79;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcollections.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcollections.java index df497d0..869de8c 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcollections.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcollections.java @@ -10,8 +10,7 @@ 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 anywheresoftware.b4a.keywords.Common __c = null; public b4a.example.dateutils _dateutils = null; public reparto_izca.keymon.lat.main _main = null; public reparto_izca.keymon.lat.appupdater _appupdater = null; @@ -26,107 +25,68 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; public static reparto_izca.keymon.lat.b4xbitset _createbitset(anywheresoftware.b4a.BA _ba,int _size) throws Exception{ -RDebugUtils.currentModule="b4xcollections"; -if (Debug.shouldDelegate(null, "createbitset", true)) - {return ((reparto_izca.keymon.lat.b4xbitset) Debug.delegate(null, "createbitset", new Object[] {_ba,_size}));} reparto_izca.keymon.lat.b4xbitset _s = null; -RDebugUtils.currentLine=37158912; - //BA.debugLineNum = 37158912;BA.debugLine="Public Sub CreateBitSet (Size As Int) As B4XBitSet"; -RDebugUtils.currentLine=37158913; - //BA.debugLineNum = 37158913;BA.debugLine="Dim s As B4XBitSet"; + //BA.debugLineNum = 52;BA.debugLine="Public Sub CreateBitSet (Size As Int) As B4XBitSet"; + //BA.debugLineNum = 53;BA.debugLine="Dim s As B4XBitSet"; _s = new reparto_izca.keymon.lat.b4xbitset(); -RDebugUtils.currentLine=37158914; - //BA.debugLineNum = 37158914;BA.debugLine="s.Initialize(Size)"; -_s._initialize /*String*/ (null,(_ba.processBA == null ? _ba : _ba.processBA),_size); -RDebugUtils.currentLine=37158915; - //BA.debugLineNum = 37158915;BA.debugLine="Return s"; + //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; -RDebugUtils.currentLine=37158916; - //BA.debugLineNum = 37158916;BA.debugLine="End Sub"; + //BA.debugLineNum = 56;BA.debugLine="End Sub"; return null; } public static reparto_izca.keymon.lat.b4xorderedmap _createorderedmap(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="b4xcollections"; -if (Debug.shouldDelegate(null, "createorderedmap", true)) - {return ((reparto_izca.keymon.lat.b4xorderedmap) Debug.delegate(null, "createorderedmap", new Object[] {_ba}));} -RDebugUtils.currentLine=37027840; - //BA.debugLineNum = 37027840;BA.debugLine="Public Sub CreateOrderedMap As B4XOrderedMap"; -RDebugUtils.currentLine=37027841; - //BA.debugLineNum = 37027841;BA.debugLine="Return CreateOrderedMap2(Null, Null)"; + //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))); -RDebugUtils.currentLine=37027842; - //BA.debugLineNum = 37027842;BA.debugLine="End Sub"; + //BA.debugLineNum = 32;BA.debugLine="End Sub"; return null; } public static reparto_izca.keymon.lat.b4xorderedmap _createorderedmap2(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.List _keys,anywheresoftware.b4a.objects.collections.List _values) throws Exception{ -RDebugUtils.currentModule="b4xcollections"; -if (Debug.shouldDelegate(null, "createorderedmap2", true)) - {return ((reparto_izca.keymon.lat.b4xorderedmap) Debug.delegate(null, "createorderedmap2", new Object[] {_ba,_keys,_values}));} reparto_izca.keymon.lat.b4xorderedmap _m = null; int _i = 0; -RDebugUtils.currentLine=37093376; - //BA.debugLineNum = 37093376;BA.debugLine="Public Sub CreateOrderedMap2 (Keys As List, Values"; -RDebugUtils.currentLine=37093377; - //BA.debugLineNum = 37093377;BA.debugLine="Dim m As B4XOrderedMap"; + //BA.debugLineNum = 38;BA.debugLine="Public Sub CreateOrderedMap2 (Keys As List, Values"; + //BA.debugLineNum = 39;BA.debugLine="Dim m As B4XOrderedMap"; _m = new reparto_izca.keymon.lat.b4xorderedmap(); -RDebugUtils.currentLine=37093378; - //BA.debugLineNum = 37093378;BA.debugLine="m.Initialize"; -_m._initialize /*String*/ (null,(_ba.processBA == null ? _ba : _ba.processBA)); -RDebugUtils.currentLine=37093379; - //BA.debugLineNum = 37093379;BA.debugLine="If Keys <> Null And Values <> Null And Keys.IsIni"; + //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()) { -RDebugUtils.currentLine=37093380; - //BA.debugLineNum = 37093380;BA.debugLine="For i = 0 To Keys.Size - 1"; + //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 ) { -RDebugUtils.currentLine=37093381; - //BA.debugLineNum = 37093381;BA.debugLine="m.Put(Keys.Get(i), Values.Get(i))"; -_m._put /*String*/ (null,_keys.Get(_i),_values.Get(_i)); + //BA.debugLineNum = 43;BA.debugLine="m.Put(Keys.Get(i), Values.Get(i))"; +_m._put /*String*/ (_keys.Get(_i),_values.Get(_i)); } }; }; -RDebugUtils.currentLine=37093384; - //BA.debugLineNum = 37093384;BA.debugLine="Return m"; + //BA.debugLineNum = 46;BA.debugLine="Return m"; if (true) return _m; -RDebugUtils.currentLine=37093385; - //BA.debugLineNum = 37093385;BA.debugLine="End Sub"; + //BA.debugLineNum = 47;BA.debugLine="End Sub"; return null; } public static reparto_izca.keymon.lat.b4xset _createset(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="b4xcollections"; -if (Debug.shouldDelegate(null, "createset", true)) - {return ((reparto_izca.keymon.lat.b4xset) Debug.delegate(null, "createset", new Object[] {_ba}));} -RDebugUtils.currentLine=36896768; - //BA.debugLineNum = 36896768;BA.debugLine="Public Sub CreateSet As B4XSet"; -RDebugUtils.currentLine=36896769; - //BA.debugLineNum = 36896769;BA.debugLine="Return CreateSet2(Null)"; + //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))); -RDebugUtils.currentLine=36896770; - //BA.debugLineNum = 36896770;BA.debugLine="End Sub"; + //BA.debugLineNum = 11;BA.debugLine="End Sub"; return null; } public static reparto_izca.keymon.lat.b4xset _createset2(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.List _values) throws Exception{ -RDebugUtils.currentModule="b4xcollections"; -if (Debug.shouldDelegate(null, "createset2", true)) - {return ((reparto_izca.keymon.lat.b4xset) Debug.delegate(null, "createset2", new Object[] {_ba,_values}));} reparto_izca.keymon.lat.b4xset _s = null; Object _v = null; -RDebugUtils.currentLine=36962304; - //BA.debugLineNum = 36962304;BA.debugLine="Public Sub CreateSet2 (Values As List) As B4XSet"; -RDebugUtils.currentLine=36962305; - //BA.debugLineNum = 36962305;BA.debugLine="Dim s As B4XSet"; + //BA.debugLineNum = 16;BA.debugLine="Public Sub CreateSet2 (Values As List) As B4XSet"; + //BA.debugLineNum = 17;BA.debugLine="Dim s As B4XSet"; _s = new reparto_izca.keymon.lat.b4xset(); -RDebugUtils.currentLine=36962306; - //BA.debugLineNum = 36962306;BA.debugLine="s.Initialize"; -_s._initialize /*String*/ (null,(_ba.processBA == null ? _ba : _ba.processBA)); -RDebugUtils.currentLine=36962307; - //BA.debugLineNum = 36962307;BA.debugLine="If Values <> Null And Values.IsInitialized Then"; + //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()) { -RDebugUtils.currentLine=36962308; - //BA.debugLineNum = 36962308;BA.debugLine="For Each v As Object In Values"; + //BA.debugLineNum = 20;BA.debugLine="For Each v As Object In Values"; { final anywheresoftware.b4a.BA.IterableList group4 = _values; final int groupLen4 = group4.getSize() @@ -134,17 +94,19 @@ final int groupLen4 = group4.getSize() ; for (; index4 < groupLen4;index4++){ _v = group4.Get(index4); -RDebugUtils.currentLine=36962309; - //BA.debugLineNum = 36962309;BA.debugLine="s.Add(v)"; -_s._add /*String*/ (null,_v); + //BA.debugLineNum = 21;BA.debugLine="s.Add(v)"; +_s._add /*String*/ (_v); } }; }; -RDebugUtils.currentLine=36962312; - //BA.debugLineNum = 36962312;BA.debugLine="Return s"; + //BA.debugLineNum = 24;BA.debugLine="Return s"; if (true) return _s; -RDebugUtils.currentLine=36962313; - //BA.debugLineNum = 36962313;BA.debugLine="End Sub"; + //BA.debugLineNum = 25;BA.debugLine="End Sub"; return null; } -} \ No newline at end of file +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 2;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 4;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcolortemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcolortemplate.java index 82570e8..b78de80 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcolortemplate.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcolortemplate.java @@ -10,7 +10,7 @@ public class b4xcolortemplate extends B4AClass.ImplB4AClass implements BA.SubDel private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcolortemplate"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcolortemplate"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,33 +23,7 @@ public class b4xcolortemplate extends B4AClass.ImplB4AClass implements BA.SubDel ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -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 anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -81,428 +55,154 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _alpha_touch(reparto_izca.keymon.lat.b4xcolortemplate __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "alpha_touch", true)) - {return ((String) Debug.delegate(ba, "alpha_touch", new Object[] {_action,_x,_y}));} -RDebugUtils.currentLine=48300032; - //BA.debugLineNum = 48300032;BA.debugLine="Private Sub Alpha_Touch (Action As Int, X As Float"; -RDebugUtils.currentLine=48300033; - //BA.debugLineNum = 48300033;BA.debugLine="If Action = mBase.TOUCH_ACTION_MOVE_NOTOUCH Then"; -if (_action==__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_MOVE_NOTOUCH) { +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 "";}; -RDebugUtils.currentLine=48300034; - //BA.debugLineNum = 48300034;BA.debugLine="AlphaBarSelectedChange(x)"; -__ref._alphabarselectedchange /*String*/ (null,_x); -RDebugUtils.currentLine=48300035; - //BA.debugLineNum = 48300035;BA.debugLine="End Sub"; + //BA.debugLineNum = 265;BA.debugLine="AlphaBarSelectedChange(x)"; +_alphabarselectedchange(_x); + //BA.debugLineNum = 266;BA.debugLine="End Sub"; return ""; } -public String _alphabarselectedchange(reparto_izca.keymon.lat.b4xcolortemplate __ref,float _x) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "alphabarselectedchange", true)) - {return ((String) Debug.delegate(ba, "alphabarselectedchange", new Object[] {_x}));} +public String _alphabarselectedchange(float _x) throws Exception{ anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null; -RDebugUtils.currentLine=47382528; - //BA.debugLineNum = 47382528;BA.debugLine="Private Sub AlphaBarSelectedChange(x As Float)"; -RDebugUtils.currentLine=47382529; - //BA.debugLineNum = 47382529;BA.debugLine="SelectedAlpha = 255 * Max(0, Min(1, x / AlphaBar."; -__ref._selectedalpha /*int*/ = (int) (255*__c.Max(0,__c.Min(1,_x/(double)__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()))); -RDebugUtils.currentLine=47382530; - //BA.debugLineNum = 47382530;BA.debugLine="x = SelectedAlpha / 255 * AlphaBar.pnl.Width"; -_x = (float) (__ref._selectedalpha /*int*/ /(double)255*__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=47382531; - //BA.debugLineNum = 47382531;BA.debugLine="AlphaBar.cvs.ClearRect(AlphaBar.cvs.TargetRect)"; -__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=47382532; - //BA.debugLineNum = 47382532;BA.debugLine="Dim r As B4XRect"; + //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(); -RDebugUtils.currentLine=47382533; - //BA.debugLineNum = 47382533;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) (__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getBottom()-__c.DipToCurrent((int) (1)))); -RDebugUtils.currentLine=47382534; - //BA.debugLineNum = 47382534;BA.debugLine="AlphaBar.cvs.DrawRect(r, xui.Color_Black, True, 2"; -__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(_r,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Black,__c.True,(float) (__c.DipToCurrent((int) (2)))); -RDebugUtils.currentLine=47382535; - //BA.debugLineNum = 47382535;BA.debugLine="AlphaBar.cvs.Invalidate"; -__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=47382536; - //BA.debugLineNum = 47382536;BA.debugLine="Update"; -__ref._update /*String*/ (null); -RDebugUtils.currentLine=47382537; - //BA.debugLineNum = 47382537;BA.debugLine="End Sub"; + //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 _update(reparto_izca.keymon.lat.b4xcolortemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "update", true)) - {return ((String) Debug.delegate(ba, "update", null));} -RDebugUtils.currentLine=47448064; - //BA.debugLineNum = 47448064;BA.debugLine="Private Sub Update"; -RDebugUtils.currentLine=47448065; - //BA.debugLineNum = 47448065;BA.debugLine="DrawColors"; -__ref._drawcolors /*String*/ (null); -RDebugUtils.currentLine=47448066; - //BA.debugLineNum = 47448066;BA.debugLine="HandleSelectedColorChanged(DONT_CHANGE, DONT_CHAN"; -__ref._handleselectedcolorchanged /*String*/ (null,__ref._dont_change /*int*/ ,__ref._dont_change /*int*/ ); -RDebugUtils.currentLine=47448067; - //BA.debugLineNum = 47448067;BA.debugLine="End Sub"; -return ""; -} -public String _base_resize(reparto_izca.keymon.lat.b4xcolortemplate __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} +public String _base_resize(double _width,double _height) throws Exception{ int _r = 0; int _w = 0; reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _cpp = null; int _i = 0; -RDebugUtils.currentLine=46989312; - //BA.debugLineNum = 46989312;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A"; -RDebugUtils.currentLine=46989314; - //BA.debugLineNum = 46989314;BA.debugLine="ColorScale = Max(1, Max(Width, Height) / 100 / De"; -__ref._colorscale /*float*/ = (float) (__c.Max(1,__c.Max(_width,_height)/(double)100/(double)__ref._devicescale /*float*/ )); -RDebugUtils.currentLine=46989315; - //BA.debugLineNum = 46989315;BA.debugLine="HueBar.pnl.SetLayoutAnimated(0, 1dip, 1dip, 30dip"; -__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .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)))); -RDebugUtils.currentLine=46989316; - //BA.debugLineNum = 46989316;BA.debugLine="Dim r As Int = HueBar.pnl.Width + HueBar.pnl.Left"; -_r = (int) (__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()+__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getLeft()+__c.DipToCurrent((int) (1))); -RDebugUtils.currentLine=46989317; - //BA.debugLineNum = 46989317;BA.debugLine="Dim w As Int = Width - r - 1dip"; + //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))); -RDebugUtils.currentLine=46989318; - //BA.debugLineNum = 46989318;BA.debugLine="If xui.IsB4i Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i()) { -RDebugUtils.currentLine=46989319; - //BA.debugLineNum = 46989319;BA.debugLine="r = r - 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); -RDebugUtils.currentLine=46989320; - //BA.debugLineNum = 46989320;BA.debugLine="w = w + 1"; + //BA.debugLineNum = 59;BA.debugLine="w = w + 1"; _w = (int) (_w+1); }; -RDebugUtils.currentLine=46989322; - //BA.debugLineNum = 46989322;BA.debugLine="AlphaBar.pnl.SetLayoutAnimated(0, r, Height - 31d"; -__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),_r,(int) (_height-__c.DipToCurrent((int) (31))),_w,__c.DipToCurrent((int) (30))); -RDebugUtils.currentLine=46989323; - //BA.debugLineNum = 46989323;BA.debugLine="ColorPicker.pnl.SetLayoutAnimated(0, r, 1dip, w,"; -__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),_r,__c.DipToCurrent((int) (1)),_w,(int) (_height-__c.DipToCurrent((int) (3))-__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight())); -RDebugUtils.currentLine=46989324; - //BA.debugLineNum = 46989324;BA.debugLine="bcColors.Initialize(ColorPicker.pnl.Width / Color"; -__ref._bccolors /*b4a.example.bitmapcreator*/ ._initialize(ba,(int) (__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)__ref._colorscale /*float*/ ),(int) (__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)__ref._colorscale /*float*/ )); -RDebugUtils.currentLine=46989325; - //BA.debugLineNum = 46989325;BA.debugLine="For Each cpp As ColorPickerPart In Array(HueBar,"; + //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)(__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ ),(Object)(__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ ),(Object)(__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ )}; +final Object[] group12 = new Object[]{(Object)(_huebar),(Object)(_colorpicker),(Object)(_alphabar)}; final int groupLen12 = group12.length ;int index12 = 0; ; for (; index12 < groupLen12;index12++){ _cpp = (reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart)(group12[index12]); -RDebugUtils.currentLine=46989326; - //BA.debugLineNum = 46989326;BA.debugLine="For i = 0 To cpp.pnl.NumberOfViews - 1"; + //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 ) { -RDebugUtils.currentLine=46989327; - //BA.debugLineNum = 46989327;BA.debugLine="cpp.pnl.GetView(i).SetLayoutAnimated(0, 0, 0, c"; + //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()); } }; -RDebugUtils.currentLine=46989329; - //BA.debugLineNum = 46989329;BA.debugLine="cpp.cvs.Resize(cpp.pnl.Width, cpp.pnl.Height)"; + //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())); -RDebugUtils.currentLine=46989330; - //BA.debugLineNum = 46989330;BA.debugLine="If cpp.DrawCheckers Then"; + //BA.debugLineNum = 69;BA.debugLine="If cpp.DrawCheckers Then"; if (_cpp.DrawCheckers /*boolean*/ ) { -RDebugUtils.currentLine=46989331; - //BA.debugLineNum = 46989331;BA.debugLine="DrawCheckers(cpp)"; -__ref._drawcheckers /*String*/ (null,_cpp); + //BA.debugLineNum = 70;BA.debugLine="DrawCheckers(cpp)"; +_drawcheckers(_cpp); }; } }; -RDebugUtils.currentLine=46989334; - //BA.debugLineNum = 46989334;BA.debugLine="DrawHueBar"; -__ref._drawhuebar /*String*/ (null); -RDebugUtils.currentLine=46989335; - //BA.debugLineNum = 46989335;BA.debugLine="DrawAlphaBar"; -__ref._drawalphabar /*String*/ (null); -RDebugUtils.currentLine=46989336; - //BA.debugLineNum = 46989336;BA.debugLine="HueBarSelectedChanged (selectedH / 360 * HueBar.p"; -__ref._huebarselectedchanged /*String*/ (null,(float) (__ref._selectedh /*float*/ /(double)360*__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight())); -RDebugUtils.currentLine=46989337; - //BA.debugLineNum = 46989337;BA.debugLine="AlphaBarSelectedChange (SelectedAlpha / 255 * Alp"; -__ref._alphabarselectedchange /*String*/ (null,(float) (__ref._selectedalpha /*int*/ /(double)255*__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth())); -RDebugUtils.currentLine=46989338; - //BA.debugLineNum = 46989338;BA.debugLine="End Sub"; + //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 _drawcheckers(reparto_izca.keymon.lat.b4xcolortemplate __ref,reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _cpp) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "drawcheckers", true)) - {return ((String) Debug.delegate(ba, "drawcheckers", new Object[] {_cpp}));} -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; -RDebugUtils.currentLine=47054848; - //BA.debugLineNum = 47054848;BA.debugLine="Private Sub DrawCheckers (cpp As ColorPickerPart)"; -RDebugUtils.currentLine=47054849; - //BA.debugLineNum = 47054849;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())); -RDebugUtils.currentLine=47054850; - //BA.debugLineNum = 47054850;BA.debugLine="cpp.checkersCanvas.ClearRect(cpp.checkersCanvas.T"; -_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=47054851; - //BA.debugLineNum = 47054851;BA.debugLine="Dim size As Int = 10dip"; -_size = __c.DipToCurrent((int) (10)); -RDebugUtils.currentLine=47054852; - //BA.debugLineNum = 47054852;BA.debugLine="Dim clrs() As Int = Array As Int(0xFFC0C0C0, 0xFF"; -_clrs = new int[]{((int)0xffc0c0c0),((int)0xff757575)}; -RDebugUtils.currentLine=47054853; - //BA.debugLineNum = 47054853;BA.debugLine="Dim clr As Int = 0"; -_clr = (int) (0); -RDebugUtils.currentLine=47054854; - //BA.debugLineNum = 47054854;BA.debugLine="Dim r As B4XRect"; -_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect(); -RDebugUtils.currentLine=47054855; - //BA.debugLineNum = 47054855;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)) ) { -RDebugUtils.currentLine=47054856; - //BA.debugLineNum = 47054856;BA.debugLine="Dim xx As Int = x / size"; -_xx = (int) (_x/(double)_size); -RDebugUtils.currentLine=47054857; - //BA.debugLineNum = 47054857;BA.debugLine="clr = xx Mod 2"; -_clr = (int) (_xx%2); -RDebugUtils.currentLine=47054858; - //BA.debugLineNum = 47054858;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)) ) { -RDebugUtils.currentLine=47054859; - //BA.debugLineNum = 47054859;BA.debugLine="clr = (clr + 1) Mod 2"; -_clr = (int) ((_clr+1)%2); -RDebugUtils.currentLine=47054860; - //BA.debugLineNum = 47054860;BA.debugLine="r.Initialize(x, y, x + size, y + size)"; -_r.Initialize((float) (_x),(float) (_y),(float) (_x+_size),(float) (_y+_size)); -RDebugUtils.currentLine=47054861; - //BA.debugLineNum = 47054861;BA.debugLine="cpp.checkersCanvas.DrawRect(r, clrs(clr), True,"; -_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(_r,_clrs[_clr],__c.True,(float) (0)); - } -}; - } -}; -RDebugUtils.currentLine=47054864; - //BA.debugLineNum = 47054864;BA.debugLine="cpp.checkersCanvas.Invalidate"; -_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=47054865; - //BA.debugLineNum = 47054865;BA.debugLine="End Sub"; -return ""; -} -public String _drawhuebar(reparto_izca.keymon.lat.b4xcolortemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "drawhuebar", true)) - {return ((String) Debug.delegate(ba, "drawhuebar", null));} -b4a.example.bitmapcreator _bchue = null; -int _y = 0; -int _x = 0; -RDebugUtils.currentLine=47120384; - //BA.debugLineNum = 47120384;BA.debugLine="Private Sub DrawHueBar"; -RDebugUtils.currentLine=47120385; - //BA.debugLineNum = 47120385;BA.debugLine="Dim bcHue As BitmapCreator"; -_bchue = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=47120386; - //BA.debugLineNum = 47120386;BA.debugLine="bcHue.Initialize(HueBar.pnl.Width / DeviceScale,"; -_bchue._initialize(ba,(int) (__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)__ref._devicescale /*float*/ ),(int) (__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)__ref._devicescale /*float*/ )); -RDebugUtils.currentLine=47120387; - //BA.debugLineNum = 47120387;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 ) { -RDebugUtils.currentLine=47120388; - //BA.debugLineNum = 47120388;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 ) { -RDebugUtils.currentLine=47120389; - //BA.debugLineNum = 47120389;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)); - } -}; - } -}; -RDebugUtils.currentLine=47120392; - //BA.debugLineNum = 47120392;BA.debugLine="HueBar.iv.SetBitmap(bcHue.Bitmap)"; -__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((android.graphics.Bitmap)(_bchue._getbitmap().getObject())); -RDebugUtils.currentLine=47120393; - //BA.debugLineNum = 47120393;BA.debugLine="End Sub"; -return ""; -} -public String _drawalphabar(reparto_izca.keymon.lat.b4xcolortemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "drawalphabar", true)) - {return ((String) Debug.delegate(ba, "drawalphabar", null));} -b4a.example.bitmapcreator _bc = null; -b4a.example.bitmapcreator._argbcolor _argb = null; -int _y = 0; -int _x = 0; -RDebugUtils.currentLine=47185920; - //BA.debugLineNum = 47185920;BA.debugLine="Private Sub DrawAlphaBar"; -RDebugUtils.currentLine=47185921; - //BA.debugLineNum = 47185921;BA.debugLine="Dim bc As BitmapCreator"; -_bc = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=47185922; - //BA.debugLineNum = 47185922;BA.debugLine="bc.Initialize(AlphaBar.pnl.Width / DeviceScale, A"; -_bc._initialize(ba,(int) (__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)__ref._devicescale /*float*/ ),(int) (__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)__ref._devicescale /*float*/ )); -RDebugUtils.currentLine=47185923; - //BA.debugLineNum = 47185923;BA.debugLine="Dim argb As ARGBColor"; -_argb = new b4a.example.bitmapcreator._argbcolor(); -RDebugUtils.currentLine=47185924; - //BA.debugLineNum = 47185924;BA.debugLine="argb.r = 0xcc"; -_argb.r = ((int)0xcc); -RDebugUtils.currentLine=47185925; - //BA.debugLineNum = 47185925;BA.debugLine="argb.g = 0xcc"; -_argb.g = ((int)0xcc); -RDebugUtils.currentLine=47185926; - //BA.debugLineNum = 47185926;BA.debugLine="argb.b = 0xcc"; -_argb.b = ((int)0xcc); -RDebugUtils.currentLine=47185928; - //BA.debugLineNum = 47185928;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 ) { -RDebugUtils.currentLine=47185929; - //BA.debugLineNum = 47185929;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 ) { -RDebugUtils.currentLine=47185930; - //BA.debugLineNum = 47185930;BA.debugLine="argb.a = x / bc.mWidth * 255"; -_argb.a = (int) (_x/(double)_bc._mwidth*255); -RDebugUtils.currentLine=47185931; - //BA.debugLineNum = 47185931;BA.debugLine="bc.SetARGB(x, y, argb)"; -_bc._setargb(_x,_y,_argb); - } -}; - } -}; -RDebugUtils.currentLine=47185934; - //BA.debugLineNum = 47185934;BA.debugLine="AlphaBar.iv.SetBitmap(bc.Bitmap)"; -__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((android.graphics.Bitmap)(_bc._getbitmap().getObject())); -RDebugUtils.currentLine=47185935; - //BA.debugLineNum = 47185935;BA.debugLine="End Sub"; -return ""; -} -public String _huebarselectedchanged(reparto_izca.keymon.lat.b4xcolortemplate __ref,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "huebarselectedchanged", true)) - {return ((String) Debug.delegate(ba, "huebarselectedchanged", new Object[] {_y}));} -anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null; -RDebugUtils.currentLine=47316992; - //BA.debugLineNum = 47316992;BA.debugLine="Private Sub HueBarSelectedChanged (y As Float)"; -RDebugUtils.currentLine=47316993; - //BA.debugLineNum = 47316993;BA.debugLine="selectedH = Max(0, Min(360, 360 * y / HueBar.pnl."; -__ref._selectedh /*float*/ = (float) (__c.Max(0,__c.Min(360,360*_y/(double)__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()))); -RDebugUtils.currentLine=47316994; - //BA.debugLineNum = 47316994;BA.debugLine="y = selectedH * HueBar.pnl.Height / 360"; -_y = (float) (__ref._selectedh /*float*/ *__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)360); -RDebugUtils.currentLine=47316995; - //BA.debugLineNum = 47316995;BA.debugLine="HueBar.cvs.ClearRect(HueBar.cvs.TargetRect)"; -__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=47316996; - //BA.debugLineNum = 47316996;BA.debugLine="Dim r As B4XRect"; -_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect(); -RDebugUtils.currentLine=47316997; - //BA.debugLineNum = 47316997;BA.debugLine="r.Initialize(0, y - 3dip, HueBar.cvs.TargetRect.R"; -_r.Initialize((float) (0),(float) (_y-__c.DipToCurrent((int) (3))),__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getRight(),(float) (_y+__c.DipToCurrent((int) (3)))); -RDebugUtils.currentLine=47316998; - //BA.debugLineNum = 47316998;BA.debugLine="HueBar.cvs.DrawRect(r, xui.Color_White, False, 2d"; -__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(_r,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White,__c.False,(float) (__c.DipToCurrent((int) (2)))); -RDebugUtils.currentLine=47316999; - //BA.debugLineNum = 47316999;BA.debugLine="HueBar.cvs.Invalidate"; -__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=47317000; - //BA.debugLineNum = 47317000;BA.debugLine="Update"; -__ref._update /*String*/ (null); -RDebugUtils.currentLine=47317001; - //BA.debugLineNum = 47317001;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.b4xcolortemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -RDebugUtils.currentLine=46792704; - //BA.debugLineNum = 46792704;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=46792705; - //BA.debugLineNum = 46792705;BA.debugLine="Public mBase As B4XView 'ignore"; +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(); -RDebugUtils.currentLine=46792706; - //BA.debugLineNum = 46792706;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=46792707; - //BA.debugLineNum = 46792707;BA.debugLine="Private SelectedAlpha As Int = 255"; + //BA.debugLineNum = 4;BA.debugLine="Private SelectedAlpha As Int = 255"; _selectedalpha = (int) (255); -RDebugUtils.currentLine=46792708; - //BA.debugLineNum = 46792708;BA.debugLine="Private bcColors As BitmapCreator"; + //BA.debugLineNum = 5;BA.debugLine="Private bcColors As BitmapCreator"; _bccolors = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=46792709; - //BA.debugLineNum = 46792709;BA.debugLine="Private selectedH = 60, selectedS = 0.5, selected"; + //BA.debugLineNum = 6;BA.debugLine="Private selectedH = 60, selectedS = 0.5, selected"; _selectedh = (float) (60); _selecteds = (float) (0.5); _selectedv = (float) (0.5); -RDebugUtils.currentLine=46792710; - //BA.debugLineNum = 46792710;BA.debugLine="Private DeviceScale, ColorScale As Float"; + //BA.debugLineNum = 7;BA.debugLine="Private DeviceScale, ColorScale As Float"; _devicescale = 0f; _colorscale = 0f; -RDebugUtils.currentLine=46792711; - //BA.debugLineNum = 46792711;BA.debugLine="Private tempBC As BitmapCreator"; + //BA.debugLineNum = 8;BA.debugLine="Private tempBC As BitmapCreator"; _tempbc = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=46792712; - //BA.debugLineNum = 46792712;BA.debugLine="Private const DONT_CHANGE As Int = -999999999"; + //BA.debugLineNum = 9;BA.debugLine="Private const DONT_CHANGE As Int = -999999999"; _dont_change = (int) (-999999999); -RDebugUtils.currentLine=46792713; - //BA.debugLineNum = 46792713;BA.debugLine="Type ColorPickerPart (cvs As B4XCanvas, pnl As B4"; + //BA.debugLineNum = 10;BA.debugLine="Type ColorPickerPart (cvs As B4XCanvas, pnl As B4"; ; -RDebugUtils.currentLine=46792714; - //BA.debugLineNum = 46792714;BA.debugLine="Private HueBar, ColorPicker, AlphaBar As ColorPic"; + //BA.debugLineNum = 11;BA.debugLine="Private HueBar, ColorPicker, AlphaBar As ColorPic"; _huebar = new reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart(); _colorpicker = new reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart(); _alphabar = new reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart(); -RDebugUtils.currentLine=46792715; - //BA.debugLineNum = 46792715;BA.debugLine="Private BordersColor As Int"; + //BA.debugLineNum = 12;BA.debugLine="Private BordersColor As Int"; _borderscolor = 0; -RDebugUtils.currentLine=46792716; - //BA.debugLineNum = 46792716;BA.debugLine="Private xDialog As B4XDialog"; + //BA.debugLineNum = 13;BA.debugLine="Private xDialog As B4XDialog"; _xdialog = new reparto_izca.keymon.lat.b4xdialog(); -RDebugUtils.currentLine=46792717; - //BA.debugLineNum = 46792717;BA.debugLine="Private InitialColor() As Object"; + //BA.debugLineNum = 14;BA.debugLine="Private InitialColor() As Object"; _initialcolor = new Object[(int) (0)]; { int d0 = _initialcolor.length; @@ -511,66 +211,20 @@ _initialcolor[i0] = new Object(); } } ; -RDebugUtils.currentLine=46792718; - //BA.debugLineNum = 46792718;BA.debugLine="End Sub"; + //BA.debugLineNum = 15;BA.debugLine="End Sub"; return ""; } -public String _colors_touch(reparto_izca.keymon.lat.b4xcolortemplate __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "colors_touch", true)) - {return ((String) Debug.delegate(ba, "colors_touch", new Object[] {_action,_x,_y}));} -RDebugUtils.currentLine=48168960; - //BA.debugLineNum = 48168960;BA.debugLine="Private Sub Colors_Touch (Action As Int, X As Floa"; -RDebugUtils.currentLine=48168961; - //BA.debugLineNum = 48168961;BA.debugLine="If Action = mBase.TOUCH_ACTION_MOVE_NOTOUCH Then"; -if (_action==__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_MOVE_NOTOUCH) { +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 "";}; -RDebugUtils.currentLine=48168962; - //BA.debugLineNum = 48168962;BA.debugLine="HandleSelectedColorChanged(X, Y)"; -__ref._handleselectedcolorchanged /*String*/ (null,(int) (_x),(int) (_y)); -RDebugUtils.currentLine=48168963; - //BA.debugLineNum = 48168963;BA.debugLine="End Sub"; + //BA.debugLineNum = 255;BA.debugLine="HandleSelectedColorChanged(X, Y)"; +_handleselectedcolorchanged((int) (_x),(int) (_y)); + //BA.debugLineNum = 256;BA.debugLine="End Sub"; return ""; } -public String _handleselectedcolorchanged(reparto_izca.keymon.lat.b4xcolortemplate __ref,int _x,int _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "handleselectedcolorchanged", true)) - {return ((String) Debug.delegate(ba, "handleselectedcolorchanged", new Object[] {_x,_y}));} -RDebugUtils.currentLine=47513600; - //BA.debugLineNum = 47513600;BA.debugLine="Private Sub HandleSelectedColorChanged (x As Int,"; -RDebugUtils.currentLine=47513601; - //BA.debugLineNum = 47513601;BA.debugLine="If x <> DONT_CHANGE Then"; -if (_x!=__ref._dont_change /*int*/ ) { -RDebugUtils.currentLine=47513602; - //BA.debugLineNum = 47513602;BA.debugLine="selectedS = Max(0, Min(1, x / ColorPicker.pnl.Wi"; -__ref._selecteds /*float*/ = (float) (__c.Max(0,__c.Min(1,_x/(double)__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()))); -RDebugUtils.currentLine=47513603; - //BA.debugLineNum = 47513603;BA.debugLine="selectedV = Max(0, Min(1, (ColorPicker.pnl.Heigh"; -__ref._selectedv /*float*/ = (float) (__c.Max(0,__c.Min(1,(__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-_y)/(double)__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()))); - }; -RDebugUtils.currentLine=47513605; - //BA.debugLineNum = 47513605;BA.debugLine="ColorPicker.cvs.ClearRect(ColorPicker.cvs.TargetR"; -__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=47513606; - //BA.debugLineNum = 47513606;BA.debugLine="ColorPicker.cvs.DrawCircle(selectedS * ColorPicke"; -__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle((float) (__ref._selecteds /*float*/ *__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()),(float) (__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-__ref._selectedv /*float*/ *__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()),(float) (__c.DipToCurrent((int) (10))),__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White,__c.False,(float) (__c.DipToCurrent((int) (2)))); -RDebugUtils.currentLine=47513608; - //BA.debugLineNum = 47513608;BA.debugLine="ColorPicker.cvs.Invalidate"; -__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=47513609; - //BA.debugLineNum = 47513609;BA.debugLine="UpdateBarColor"; -__ref._updatebarcolor /*String*/ (null); -RDebugUtils.currentLine=47513610; - //BA.debugLineNum = 47513610;BA.debugLine="End Sub"; -return ""; -} -public Object[] _colortohsv(reparto_izca.keymon.lat.b4xcolortemplate __ref,int _clr) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "colortohsv", true)) - {return ((Object[]) Debug.delegate(ba, "colortohsv", new Object[] {_clr}));} +public Object[] _colortohsv(int _clr) throws Exception{ int _a = 0; int _r = 0; int _g = 0; @@ -583,404 +237,413 @@ int _cmin = 0; float _rc = 0f; float _gc = 0f; float _bc = 0f; -RDebugUtils.currentLine=47841280; - //BA.debugLineNum = 47841280;BA.debugLine="Public Sub ColorToHSV(clr As Int) As Object()"; -RDebugUtils.currentLine=47841281; - //BA.debugLineNum = 47841281;BA.debugLine="Dim a As Int = Bit.And(0xff, Bit.UnsignedShiftRig"; + //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))); -RDebugUtils.currentLine=47841282; - //BA.debugLineNum = 47841282;BA.debugLine="Dim r As Int = Bit.And(0xff, Bit.UnsignedShiftRig"; + //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))); -RDebugUtils.currentLine=47841283; - //BA.debugLineNum = 47841283;BA.debugLine="Dim g As Int = Bit.And(0xff, Bit.UnsignedShiftRig"; + //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))); -RDebugUtils.currentLine=47841284; - //BA.debugLineNum = 47841284;BA.debugLine="Dim b As Int = Bit.And(0xff, Bit.UnsignedShiftRig"; + //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))); -RDebugUtils.currentLine=47841285; - //BA.debugLineNum = 47841285;BA.debugLine="Dim h, s, v As Float"; + //BA.debugLineNum = 204;BA.debugLine="Dim h, s, v As Float"; _h = 0f; _s = 0f; _v = 0f; -RDebugUtils.currentLine=47841286; - //BA.debugLineNum = 47841286;BA.debugLine="Dim cmax As Int = Max(Max(r, g), b)"; + //BA.debugLineNum = 205;BA.debugLine="Dim cmax As Int = Max(Max(r, g), b)"; _cmax = (int) (__c.Max(__c.Max(_r,_g),_b)); -RDebugUtils.currentLine=47841287; - //BA.debugLineNum = 47841287;BA.debugLine="Dim cmin As Int = Min(Min(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)); -RDebugUtils.currentLine=47841288; - //BA.debugLineNum = 47841288;BA.debugLine="v = cmax / 255"; + //BA.debugLineNum = 207;BA.debugLine="v = cmax / 255"; _v = (float) (_cmax/(double)255); -RDebugUtils.currentLine=47841289; - //BA.debugLineNum = 47841289;BA.debugLine="If cmax <> 0 Then"; + //BA.debugLineNum = 208;BA.debugLine="If cmax <> 0 Then"; if (_cmax!=0) { -RDebugUtils.currentLine=47841290; - //BA.debugLineNum = 47841290;BA.debugLine="s = (cmax - cmin) / cmax"; + //BA.debugLineNum = 209;BA.debugLine="s = (cmax - cmin) / cmax"; _s = (float) ((_cmax-_cmin)/(double)_cmax); }; -RDebugUtils.currentLine=47841292; - //BA.debugLineNum = 47841292;BA.debugLine="If s = 0 Then"; + //BA.debugLineNum = 211;BA.debugLine="If s = 0 Then"; if (_s==0) { -RDebugUtils.currentLine=47841293; - //BA.debugLineNum = 47841293;BA.debugLine="h = 0"; + //BA.debugLineNum = 212;BA.debugLine="h = 0"; _h = (float) (0); }else { -RDebugUtils.currentLine=47841295; - //BA.debugLineNum = 47841295;BA.debugLine="Dim rc As Float = (cmax - r) / (cmax - cmin)"; + //BA.debugLineNum = 214;BA.debugLine="Dim rc As Float = (cmax - r) / (cmax - cmin)"; _rc = (float) ((_cmax-_r)/(double)(_cmax-_cmin)); -RDebugUtils.currentLine=47841296; - //BA.debugLineNum = 47841296;BA.debugLine="Dim gc As Float = (cmax - g) / (cmax - cmin)"; + //BA.debugLineNum = 215;BA.debugLine="Dim gc As Float = (cmax - g) / (cmax - cmin)"; _gc = (float) ((_cmax-_g)/(double)(_cmax-_cmin)); -RDebugUtils.currentLine=47841297; - //BA.debugLineNum = 47841297;BA.debugLine="Dim bc As Float = (cmax - b) / (cmax - cmin)"; + //BA.debugLineNum = 216;BA.debugLine="Dim bc As Float = (cmax - b) / (cmax - cmin)"; _bc = (float) ((_cmax-_b)/(double)(_cmax-_cmin)); -RDebugUtils.currentLine=47841298; - //BA.debugLineNum = 47841298;BA.debugLine="If r = cmax Then"; + //BA.debugLineNum = 217;BA.debugLine="If r = cmax Then"; if (_r==_cmax) { -RDebugUtils.currentLine=47841299; - //BA.debugLineNum = 47841299;BA.debugLine="h = bc - gc"; + //BA.debugLineNum = 218;BA.debugLine="h = bc - gc"; _h = (float) (_bc-_gc); - }else -{RDebugUtils.currentLine=47841300; - //BA.debugLineNum = 47841300;BA.debugLine="Else If g = cmax Then"; -if (_g==_cmax) { -RDebugUtils.currentLine=47841301; - //BA.debugLineNum = 47841301;BA.debugLine="h = 2 + rc - bc"; + }else if(_g==_cmax) { + //BA.debugLineNum = 220;BA.debugLine="h = 2 + rc - bc"; _h = (float) (2+_rc-_bc); }else { -RDebugUtils.currentLine=47841303; - //BA.debugLineNum = 47841303;BA.debugLine="h = 4 + gc - rc"; + //BA.debugLineNum = 222;BA.debugLine="h = 4 + gc - rc"; _h = (float) (4+_gc-_rc); - }} -; -RDebugUtils.currentLine=47841305; - //BA.debugLineNum = 47841305;BA.debugLine="h = h / 6"; + }; + //BA.debugLineNum = 224;BA.debugLine="h = h / 6"; _h = (float) (_h/(double)6); -RDebugUtils.currentLine=47841306; - //BA.debugLineNum = 47841306;BA.debugLine="If h < 0 Then h = h + 1"; + //BA.debugLineNum = 225;BA.debugLine="If h < 0 Then h = h + 1"; if (_h<0) { _h = (float) (_h+1);}; }; -RDebugUtils.currentLine=47841308; - //BA.debugLineNum = 47841308;BA.debugLine="Return Array (h * 360, s, v, a)"; + //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)}; -RDebugUtils.currentLine=47841309; - //BA.debugLineNum = 47841309;BA.debugLine="End Sub"; + //BA.debugLineNum = 228;BA.debugLine="End Sub"; return null; } -public reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _createpanelforbitmapcreator(reparto_izca.keymon.lat.b4xcolortemplate __ref,String _eventname,boolean _withcheckers) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "createpanelforbitmapcreator", true)) - {return ((reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart) Debug.delegate(ba, "createpanelforbitmapcreator", new Object[] {_eventname,_withcheckers}));} +public reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _createpanelforbitmapcreator(String _eventname,boolean _withcheckers) throws Exception{ reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _cpp = null; anywheresoftware.b4a.objects.ImageViewWrapper _iv = null; anywheresoftware.b4a.objects.B4XViewWrapper _overlay = null; -RDebugUtils.currentLine=46923776; - //BA.debugLineNum = 46923776;BA.debugLine="Private Sub CreatePanelForBitmapCreator (EventName"; -RDebugUtils.currentLine=46923777; - //BA.debugLineNum = 46923777;BA.debugLine="Dim cpp As ColorPickerPart"; + //BA.debugLineNum = 30;BA.debugLine="Private Sub CreatePanelForBitmapCreator (EventName"; + //BA.debugLineNum = 31;BA.debugLine="Dim cpp As ColorPickerPart"; _cpp = new reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart(); -RDebugUtils.currentLine=46923778; - //BA.debugLineNum = 46923778;BA.debugLine="cpp.Initialize"; + //BA.debugLineNum = 32;BA.debugLine="cpp.Initialize"; _cpp.Initialize(); -RDebugUtils.currentLine=46923779; - //BA.debugLineNum = 46923779;BA.debugLine="cpp.pnl = xui.CreatePanel(\"\")"; -_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=46923780; - //BA.debugLineNum = 46923780;BA.debugLine="cpp.pnl.SetColorAndBorder(BordersColor, 1dip, Bor"; -_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._borderscolor /*int*/ ,__c.DipToCurrent((int) (1)),__ref._borderscolor /*int*/ ,(int) (0)); -RDebugUtils.currentLine=46923781; - //BA.debugLineNum = 46923781;BA.debugLine="cpp.pnl.SetLayoutAnimated(0, 1dip, 1dip, 1dip, 1d"; + //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))); -RDebugUtils.currentLine=46923782; - //BA.debugLineNum = 46923782;BA.debugLine="If WithCheckers Then"; + //BA.debugLineNum = 36;BA.debugLine="If WithCheckers Then"; if (_withcheckers) { -RDebugUtils.currentLine=46923783; - //BA.debugLineNum = 46923783;BA.debugLine="cpp.checkersCanvas.Initialize(cpp.pnl)"; + //BA.debugLineNum = 37;BA.debugLine="cpp.checkersCanvas.Initialize(cpp.pnl)"; _cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=46923784; - //BA.debugLineNum = 46923784;BA.debugLine="cpp.DrawCheckers = True"; + //BA.debugLineNum = 38;BA.debugLine="cpp.DrawCheckers = True"; _cpp.DrawCheckers /*boolean*/ = __c.True; }; -RDebugUtils.currentLine=46923786; - //BA.debugLineNum = 46923786;BA.debugLine="Dim iv As ImageView"; + //BA.debugLineNum = 40;BA.debugLine="Dim iv As ImageView"; _iv = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=46923787; - //BA.debugLineNum = 46923787;BA.debugLine="iv.Initialize(\"\")"; + //BA.debugLineNum = 41;BA.debugLine="iv.Initialize(\"\")"; _iv.Initialize(ba,""); -RDebugUtils.currentLine=46923788; - //BA.debugLineNum = 46923788;BA.debugLine="cpp.iv = iv"; + //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())); -RDebugUtils.currentLine=46923789; - //BA.debugLineNum = 46923789;BA.debugLine="Dim overlay As B4XView = xui.CreatePanel(EventNam"; + //BA.debugLineNum = 43;BA.debugLine="Dim overlay As B4XView = xui.CreatePanel(EventNam"; _overlay = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_overlay = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,_eventname); -RDebugUtils.currentLine=46923790; - //BA.debugLineNum = 46923790;BA.debugLine="cpp.pnl.AddView(iv, 0, 0, 0, 0)"; +_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)); -RDebugUtils.currentLine=46923791; - //BA.debugLineNum = 46923791;BA.debugLine="cpp.pnl.AddView(overlay, 1dip, 1dip, 1dip, 1dip)"; + //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))); -RDebugUtils.currentLine=46923792; - //BA.debugLineNum = 46923792;BA.debugLine="cpp.cvs.Initialize(overlay)"; + //BA.debugLineNum = 46;BA.debugLine="cpp.cvs.Initialize(overlay)"; _cpp.cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(_overlay); -RDebugUtils.currentLine=46923793; - //BA.debugLineNum = 46923793;BA.debugLine="mBase.AddView(cpp.pnl, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=46923794; - //BA.debugLineNum = 46923794;BA.debugLine="Return cpp"; + //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; -RDebugUtils.currentLine=46923795; - //BA.debugLineNum = 46923795;BA.debugLine="End Sub"; + //BA.debugLineNum = 49;BA.debugLine="End Sub"; return null; } -public String _dialogclosed(reparto_izca.keymon.lat.b4xcolortemplate __ref,int _result) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "dialogclosed", true)) - {return ((String) Debug.delegate(ba, "dialogclosed", new Object[] {_result}));} -RDebugUtils.currentLine=48037888; - //BA.debugLineNum = 48037888;BA.debugLine="Private Sub DialogClosed(Result As Int)"; -RDebugUtils.currentLine=48037889; - //BA.debugLineNum = 48037889;BA.debugLine="If Result <> xui.DialogResponse_Positive Then"; -if (_result!=__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive) { -RDebugUtils.currentLine=48037890; - //BA.debugLineNum = 48037890;BA.debugLine="setSelectedHSVColor(InitialColor)"; -__ref._setselectedhsvcolor /*String*/ (null,__ref._initialcolor /*Object[]*/ ); +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); }; -RDebugUtils.currentLine=48037892; - //BA.debugLineNum = 48037892;BA.debugLine="End Sub"; + //BA.debugLineNum = 245;BA.debugLine="End Sub"; return ""; } -public String _setselectedhsvcolor(reparto_izca.keymon.lat.b4xcolortemplate __ref,Object[] _hsv) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "setselectedhsvcolor", true)) - {return ((String) Debug.delegate(ba, "setselectedhsvcolor", new Object[] {_hsv}));} -RDebugUtils.currentLine=47775744; - //BA.debugLineNum = 47775744;BA.debugLine="Public Sub setSelectedHSVColor (HSV() As Object)"; -RDebugUtils.currentLine=47775745; - //BA.debugLineNum = 47775745;BA.debugLine="selectedH = HSV(0)"; -__ref._selectedh /*float*/ = (float)(BA.ObjectToNumber(_hsv[(int) (0)])); -RDebugUtils.currentLine=47775746; - //BA.debugLineNum = 47775746;BA.debugLine="selectedS = HSV(1)"; -__ref._selecteds /*float*/ = (float)(BA.ObjectToNumber(_hsv[(int) (1)])); -RDebugUtils.currentLine=47775747; - //BA.debugLineNum = 47775747;BA.debugLine="selectedV = HSV(2)"; -__ref._selectedv /*float*/ = (float)(BA.ObjectToNumber(_hsv[(int) (2)])); -RDebugUtils.currentLine=47775748; - //BA.debugLineNum = 47775748;BA.debugLine="SelectedAlpha = HSV(3)"; -__ref._selectedalpha /*int*/ = (int)(BA.ObjectToNumber(_hsv[(int) (3)])); -RDebugUtils.currentLine=47775749; - //BA.debugLineNum = 47775749;BA.debugLine="HueBarSelectedChanged(selectedH / 360 * HueBar.pn"; -__ref._huebarselectedchanged /*String*/ (null,(float) (__ref._selectedh /*float*/ /(double)360*__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight())); -RDebugUtils.currentLine=47775750; - //BA.debugLineNum = 47775750;BA.debugLine="AlphaBarSelectedChange(SelectedAlpha / 255 * Alph"; -__ref._alphabarselectedchange /*String*/ (null,(float) (__ref._selectedalpha /*int*/ /(double)255*__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth())); -RDebugUtils.currentLine=47775751; - //BA.debugLineNum = 47775751;BA.debugLine="End Sub"; +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 _drawcolors(reparto_izca.keymon.lat.b4xcolortemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "drawcolors", true)) - {return ((String) Debug.delegate(ba, "drawcolors", null));} +public String _drawcheckers(reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart _cpp) throws Exception{ +int _size = 0; +int[] _clrs = null; +int _clr = 0; +anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null; +int _x = 0; +int _xx = 0; +int _y = 0; + //BA.debugLineNum = 79;BA.debugLine="Private Sub DrawCheckers (cpp As ColorPickerPart)"; + //BA.debugLineNum = 80;BA.debugLine="cpp.checkersCanvas.Resize(cpp.pnl.Width, cpp.pnl."; +_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .Resize((float) (_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()),(float) (_cpp.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight())); + //BA.debugLineNum = 81;BA.debugLine="cpp.checkersCanvas.ClearRect(cpp.checkersCanvas.T"; +_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); + //BA.debugLineNum = 82;BA.debugLine="Dim size As Int = 10dip"; +_size = __c.DipToCurrent((int) (10)); + //BA.debugLineNum = 83;BA.debugLine="Dim clrs() As Int = Array As Int(0xFFC0C0C0, 0xFF"; +_clrs = new int[]{((int)0xffc0c0c0),((int)0xff757575)}; + //BA.debugLineNum = 84;BA.debugLine="Dim clr As Int = 0"; +_clr = (int) (0); + //BA.debugLineNum = 85;BA.debugLine="Dim r As B4XRect"; +_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect(); + //BA.debugLineNum = 86;BA.debugLine="For x = 0 To cpp.checkersCanvas.TargetRect.Right"; +{ +final int step7 = _size; +final int limit7 = (int) (_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getRight()-__c.DipToCurrent((int) (1))); +_x = (int) (0) ; +for (;(step7 > 0 && _x <= limit7) || (step7 < 0 && _x >= limit7) ;_x = ((int)(0 + _x + step7)) ) { + //BA.debugLineNum = 87;BA.debugLine="Dim xx As Int = x / size"; +_xx = (int) (_x/(double)_size); + //BA.debugLineNum = 88;BA.debugLine="clr = xx Mod 2"; +_clr = (int) (_xx%2); + //BA.debugLineNum = 89;BA.debugLine="For y = 0 To cpp.checkersCanvas.TargetRect.Botto"; +{ +final int step10 = _size; +final int limit10 = (int) (_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getBottom()-__c.DipToCurrent((int) (1))); +_y = (int) (0) ; +for (;(step10 > 0 && _y <= limit10) || (step10 < 0 && _y >= limit10) ;_y = ((int)(0 + _y + step10)) ) { + //BA.debugLineNum = 90;BA.debugLine="clr = (clr + 1) Mod 2"; +_clr = (int) ((_clr+1)%2); + //BA.debugLineNum = 91;BA.debugLine="r.Initialize(x, y, x + size, y + size)"; +_r.Initialize((float) (_x),(float) (_y),(float) (_x+_size),(float) (_y+_size)); + //BA.debugLineNum = 92;BA.debugLine="cpp.checkersCanvas.DrawRect(r, clrs(clr), True,"; +_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(_r,_clrs[_clr],__c.True,(float) (0)); + } +}; + } +}; + //BA.debugLineNum = 95;BA.debugLine="cpp.checkersCanvas.Invalidate"; +_cpp.checkersCanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); + //BA.debugLineNum = 96;BA.debugLine="End Sub"; +return ""; +} +public String _drawcolors() throws Exception{ int _x = 0; int _y = 0; -RDebugUtils.currentLine=47251456; - //BA.debugLineNum = 47251456;BA.debugLine="Private Sub DrawColors"; -RDebugUtils.currentLine=47251457; - //BA.debugLineNum = 47251457;BA.debugLine="For x = 0 To bcColors.mWidth - 1"; + //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) (__ref._bccolors /*b4a.example.bitmapcreator*/ ._mwidth-1); +final int limit1 = (int) (_bccolors._mwidth-1); _x = (int) (0) ; for (;_x <= limit1 ;_x = _x + step1 ) { -RDebugUtils.currentLine=47251458; - //BA.debugLineNum = 47251458;BA.debugLine="For y = 0 To bcColors.mHeight - 1"; + //BA.debugLineNum = 128;BA.debugLine="For y = 0 To bcColors.mHeight - 1"; { final int step2 = 1; -final int limit2 = (int) (__ref._bccolors /*b4a.example.bitmapcreator*/ ._mheight-1); +final int limit2 = (int) (_bccolors._mheight-1); _y = (int) (0) ; for (;_y <= limit2 ;_y = _y + step2 ) { -RDebugUtils.currentLine=47251459; - //BA.debugLineNum = 47251459;BA.debugLine="bcColors.SetHSV(x, y, SelectedAlpha, selectedH,"; -__ref._bccolors /*b4a.example.bitmapcreator*/ ._sethsv(_x,_y,__ref._selectedalpha /*int*/ ,(int) (__ref._selectedh /*float*/ ),(float) (_x/(double)__ref._bccolors /*b4a.example.bitmapcreator*/ ._mwidth),(float) ((__ref._bccolors /*b4a.example.bitmapcreator*/ ._mheight-_y)/(double)__ref._bccolors /*b4a.example.bitmapcreator*/ ._mheight)); + //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)); } }; } }; -RDebugUtils.currentLine=47251463; - //BA.debugLineNum = 47251463;BA.debugLine="ColorPicker.iv.SetBitmap(bcColors.Bitmap.Resize(C"; -__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((android.graphics.Bitmap)(__ref._bccolors /*b4a.example.bitmapcreator*/ ._getbitmap().Resize(__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ .iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight(),__c.False).getObject())); -RDebugUtils.currentLine=47251464; - //BA.debugLineNum = 47251464;BA.debugLine="End Sub"; + //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 anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xcolortemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "getpanel", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "getpanel", new Object[] {_dialog}));} -RDebugUtils.currentLine=47906816; - //BA.debugLineNum = 47906816;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; -RDebugUtils.currentLine=47906817; - //BA.debugLineNum = 47906817;BA.debugLine="Return mBase"; -if (true) return __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=47906818; - //BA.debugLineNum = 47906818;BA.debugLine="End Sub"; +public String _drawhuebar() throws Exception{ +b4a.example.bitmapcreator _bchue = null; +int _y = 0; +int _x = 0; + //BA.debugLineNum = 98;BA.debugLine="Private Sub DrawHueBar"; + //BA.debugLineNum = 99;BA.debugLine="Dim bcHue As BitmapCreator"; +_bchue = new b4a.example.bitmapcreator(); + //BA.debugLineNum = 100;BA.debugLine="bcHue.Initialize(HueBar.pnl.Width / DeviceScale,"; +_bchue._initialize(ba,(int) (_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)_devicescale),(int) (_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)_devicescale)); + //BA.debugLineNum = 101;BA.debugLine="For y = 0 To bcHue.mHeight - 1"; +{ +final int step3 = 1; +final int limit3 = (int) (_bchue._mheight-1); +_y = (int) (0) ; +for (;_y <= limit3 ;_y = _y + step3 ) { + //BA.debugLineNum = 102;BA.debugLine="For x = 0 To bcHue.mWidth - 1"; +{ +final int step4 = 1; +final int limit4 = (int) (_bchue._mwidth-1); +_x = (int) (0) ; +for (;_x <= limit4 ;_x = _x + step4 ) { + //BA.debugLineNum = 103;BA.debugLine="bcHue.SetHSV(x, y, 255, 360 / bcHue.mHeight * y"; +_bchue._sethsv(_x,_y,(int) (255),(int) (360/(double)_bchue._mheight*_y),(float) (1),(float) (1)); + } +}; + } +}; + //BA.debugLineNum = 106;BA.debugLine="HueBar.iv.SetBitmap(bcHue.Bitmap)"; +_huebar.iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((android.graphics.Bitmap)(_bchue._getbitmap().getObject())); + //BA.debugLineNum = 107;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ + //BA.debugLineNum = 230;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; + //BA.debugLineNum = 231;BA.debugLine="Return mBase"; +if (true) return _mbase; + //BA.debugLineNum = 232;BA.debugLine="End Sub"; return null; } -public int _getselectedcolor(reparto_izca.keymon.lat.b4xcolortemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "getselectedcolor", true)) - {return ((Integer) Debug.delegate(ba, "getselectedcolor", null));} +public int _getselectedcolor() throws Exception{ Object[] _hsv = null; -RDebugUtils.currentLine=47579136; - //BA.debugLineNum = 47579136;BA.debugLine="Public Sub getSelectedColor As Int"; -RDebugUtils.currentLine=47579137; - //BA.debugLineNum = 47579137;BA.debugLine="Dim hsv() As Object = getSelectedHSVColor"; -_hsv = __ref._getselectedhsvcolor /*Object[]*/ (null); -RDebugUtils.currentLine=47579138; - //BA.debugLineNum = 47579138;BA.debugLine="tempBC.SetHSV(0, 0, SelectedAlpha, hsv(0), hsv(1)"; -__ref._tempbc /*b4a.example.bitmapcreator*/ ._sethsv((int) (0),(int) (0),__ref._selectedalpha /*int*/ ,(int)(BA.ObjectToNumber(_hsv[(int) (0)])),(float)(BA.ObjectToNumber(_hsv[(int) (1)])),(float)(BA.ObjectToNumber(_hsv[(int) (2)]))); -RDebugUtils.currentLine=47579139; - //BA.debugLineNum = 47579139;BA.debugLine="Return tempBC.GetColor(0, 0)"; -if (true) return __ref._tempbc /*b4a.example.bitmapcreator*/ ._getcolor((int) (0),(int) (0)); -RDebugUtils.currentLine=47579140; - //BA.debugLineNum = 47579140;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xcolortemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "getselectedhsvcolor", true)) - {return ((Object[]) Debug.delegate(ba, "getselectedhsvcolor", null));} -RDebugUtils.currentLine=47710208; - //BA.debugLineNum = 47710208;BA.debugLine="Public Sub getSelectedHSVColor As Object()"; -RDebugUtils.currentLine=47710209; - //BA.debugLineNum = 47710209;BA.debugLine="Return Array (selectedH, selectedS, selectedV, Se"; -if (true) return new Object[]{(Object)(__ref._selectedh /*float*/ ),(Object)(__ref._selecteds /*float*/ ),(Object)(__ref._selectedv /*float*/ ),(Object)(__ref._selectedalpha /*int*/ )}; -RDebugUtils.currentLine=47710210; - //BA.debugLineNum = 47710210;BA.debugLine="End Sub"; +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 _updatebarcolor(reparto_izca.keymon.lat.b4xcolortemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "updatebarcolor", true)) - {return ((String) Debug.delegate(ba, "updatebarcolor", null));} -RDebugUtils.currentLine=48103424; - //BA.debugLineNum = 48103424;BA.debugLine="Private Sub UpdateBarColor"; -RDebugUtils.currentLine=48103425; - //BA.debugLineNum = 48103425;BA.debugLine="If xDialog.IsInitialized And xDialog.TitleBar.IsI"; -if (__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ .IsInitialized /*boolean*/ () && __ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized()) { -RDebugUtils.currentLine=48103426; - //BA.debugLineNum = 48103426;BA.debugLine="xDialog.TitleBar.Color = getSelectedColor"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__ref._getselectedcolor /*int*/ (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()))); }; -RDebugUtils.currentLine=48103428; - //BA.debugLineNum = 48103428;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xcolortemplate __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "huebar_touch", true)) - {return ((String) Debug.delegate(ba, "huebar_touch", new Object[] {_action,_x,_y}));} -RDebugUtils.currentLine=48234496; - //BA.debugLineNum = 48234496;BA.debugLine="Private Sub HueBar_Touch (Action As Int, X As Floa"; -RDebugUtils.currentLine=48234497; - //BA.debugLineNum = 48234497;BA.debugLine="If Action = mBase.TOUCH_ACTION_MOVE_NOTOUCH Then"; -if (_action==__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_MOVE_NOTOUCH) { +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 "";}; -RDebugUtils.currentLine=48234498; - //BA.debugLineNum = 48234498;BA.debugLine="HueBarSelectedChanged(Y)"; -__ref._huebarselectedchanged /*String*/ (null,_y); -RDebugUtils.currentLine=48234499; - //BA.debugLineNum = 48234499;BA.debugLine="End Sub"; + //BA.debugLineNum = 260;BA.debugLine="HueBarSelectedChanged(Y)"; +_huebarselectedchanged(_y); + //BA.debugLineNum = 261;BA.debugLine="End Sub"; return ""; } -public String _initialize(reparto_izca.keymon.lat.b4xcolortemplate __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +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); -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=46858240; - //BA.debugLineNum = 46858240;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=46858241; - //BA.debugLineNum = 46858241;BA.debugLine="tempBC.Initialize(1, 1)"; -__ref._tempbc /*b4a.example.bitmapcreator*/ ._initialize(ba,(int) (1),(int) (1)); -RDebugUtils.currentLine=46858242; - //BA.debugLineNum = 46858242;BA.debugLine="DeviceScale = 100dip / 100"; -__ref._devicescale /*float*/ = (float) (__c.DipToCurrent((int) (100))/(double)100); -RDebugUtils.currentLine=46858243; - //BA.debugLineNum = 46858243;BA.debugLine="mBase = xui.CreatePanel(\"\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=46858244; - //BA.debugLineNum = 46858244;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 250dip)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (250))); -RDebugUtils.currentLine=46858245; - //BA.debugLineNum = 46858245;BA.debugLine="BordersColor = xui.Color_Black"; -__ref._borderscolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Black; -RDebugUtils.currentLine=46858246; - //BA.debugLineNum = 46858246;BA.debugLine="mBase.SetColorAndBorder(BordersColor, 1dip, Borde"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._borderscolor /*int*/ ,__c.DipToCurrent((int) (1)),__ref._borderscolor /*int*/ ,__c.DipToCurrent((int) (2))); -RDebugUtils.currentLine=46858247; - //BA.debugLineNum = 46858247;BA.debugLine="HueBar = CreatePanelForBitmapCreator(\"hueBar\", Fa"; -__ref._huebar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ = __ref._createpanelforbitmapcreator /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ (null,"hueBar",__c.False); -RDebugUtils.currentLine=46858248; - //BA.debugLineNum = 46858248;BA.debugLine="ColorPicker = CreatePanelForBitmapCreator(\"colors"; -__ref._colorpicker /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ = __ref._createpanelforbitmapcreator /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ (null,"colors",__c.True); -RDebugUtils.currentLine=46858249; - //BA.debugLineNum = 46858249;BA.debugLine="AlphaBar = CreatePanelForBitmapCreator(\"alpha\", T"; -__ref._alphabar /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ = __ref._createpanelforbitmapcreator /*reparto_izca.keymon.lat.b4xcolortemplate._colorpickerpart*/ (null,"alpha",__c.True); -RDebugUtils.currentLine=46858250; - //BA.debugLineNum = 46858250;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)"; -__ref._base_resize /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=46858251; - //BA.debugLineNum = 46858251;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xcolortemplate __ref,int _i) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "setselectedcolor", true)) - {return ((String) Debug.delegate(ba, "setselectedcolor", new Object[] {_i}));} -RDebugUtils.currentLine=47644672; - //BA.debugLineNum = 47644672;BA.debugLine="Public Sub setSelectedColor(i As Int)"; -RDebugUtils.currentLine=47644673; - //BA.debugLineNum = 47644673;BA.debugLine="setSelectedHSVColor(ColorToHSV(i))"; -__ref._setselectedhsvcolor /*String*/ (null,__ref._colortohsv /*Object[]*/ (null,_i)); -RDebugUtils.currentLine=47644674; - //BA.debugLineNum = 47644674;BA.debugLine="End Sub"; +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 void _show(reparto_izca.keymon.lat.b4xcolortemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -RDebugUtils.currentModule="b4xcolortemplate"; -if (Debug.shouldDelegate(ba, "show", true)) - {Debug.delegate(ba, "show", new Object[] {_dialog}); return;} -ResumableSub_Show rsub = new ResumableSub_Show(this,__ref,_dialog); +public String _setselectedhsvcolor(Object[] _hsv) throws Exception{ + //BA.debugLineNum = 190;BA.debugLine="Public Sub setSelectedHSVColor (HSV() As Object)"; + //BA.debugLineNum = 191;BA.debugLine="selectedH = HSV(0)"; +_selectedh = (float)(BA.ObjectToNumber(_hsv[(int) (0)])); + //BA.debugLineNum = 192;BA.debugLine="selectedS = HSV(1)"; +_selecteds = (float)(BA.ObjectToNumber(_hsv[(int) (1)])); + //BA.debugLineNum = 193;BA.debugLine="selectedV = HSV(2)"; +_selectedv = (float)(BA.ObjectToNumber(_hsv[(int) (2)])); + //BA.debugLineNum = 194;BA.debugLine="SelectedAlpha = HSV(3)"; +_selectedalpha = (int)(BA.ObjectToNumber(_hsv[(int) (3)])); + //BA.debugLineNum = 195;BA.debugLine="HueBarSelectedChanged(selectedH / 360 * HueBar.pn"; +_huebarselectedchanged((float) (_selectedh/(double)360*_huebar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight())); + //BA.debugLineNum = 196;BA.debugLine="AlphaBarSelectedChange(SelectedAlpha / 255 * Alph"; +_alphabarselectedchange((float) (_selectedalpha/(double)255*_alphabar.pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth())); + //BA.debugLineNum = 197;BA.debugLine="End Sub"; +return ""; +} +public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ +ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog); rsub.resume(ba, null); } public static class ResumableSub_Show extends BA.ResumableSub { -public ResumableSub_Show(reparto_izca.keymon.lat.b4xcolortemplate parent,reparto_izca.keymon.lat.b4xcolortemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) { +public ResumableSub_Show(reparto_izca.keymon.lat.b4xcolortemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) { this.parent = parent; -this.__ref = __ref; this._dialog = _dialog; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xcolortemplate __ref; reparto_izca.keymon.lat.b4xcolortemplate parent; reparto_izca.keymon.lat.b4xdialog _dialog; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xcolortemplate"; while (true) { switch (state) { @@ -990,30 +653,52 @@ return; case 0: //C this.state = -1; -RDebugUtils.currentLine=47972353; - //BA.debugLineNum = 47972353;BA.debugLine="InitialColor = getSelectedHSVColor"; -__ref._initialcolor /*Object[]*/ = __ref._getselectedhsvcolor /*Object[]*/ (null); -RDebugUtils.currentLine=47972354; - //BA.debugLineNum = 47972354;BA.debugLine="xDialog = Dialog"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ = _dialog; -RDebugUtils.currentLine=47972355; - //BA.debugLineNum = 47972355;BA.debugLine="Sleep(0)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xcolortemplate", "show"),(int) (0)); + //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; ; -RDebugUtils.currentLine=47972356; - //BA.debugLineNum = 47972356;BA.debugLine="UpdateBarColor"; -__ref._updatebarcolor /*String*/ (null); -RDebugUtils.currentLine=47972357; - //BA.debugLineNum = 47972357;BA.debugLine="End Sub"; + //BA.debugLineNum = 238;BA.debugLine="UpdateBarColor"; +parent._updatebarcolor(); + //BA.debugLineNum = 239;BA.debugLine="End Sub"; if (true) break; } } } } -} \ No newline at end of file +public String _update() throws Exception{ + //BA.debugLineNum = 158;BA.debugLine="Private Sub Update"; + //BA.debugLineNum = 159;BA.debugLine="DrawColors"; +_drawcolors(); + //BA.debugLineNum = 160;BA.debugLine="HandleSelectedColorChanged(DONT_CHANGE, DONT_CHAN"; +_handleselectedcolorchanged(_dont_change,_dont_change); + //BA.debugLineNum = 161;BA.debugLine="End Sub"; +return ""; +} +public String _updatebarcolor() throws Exception{ + //BA.debugLineNum = 247;BA.debugLine="Private Sub UpdateBarColor"; + //BA.debugLineNum = 248;BA.debugLine="If xDialog.IsInitialized And xDialog.TitleBar.IsI"; +if (_xdialog.IsInitialized /*boolean*/ () && _xdialog._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized()) { + //BA.debugLineNum = 249;BA.debugLine="xDialog.TitleBar.Color = getSelectedColor"; +_xdialog._titlebar /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(_getselectedcolor()); + }; + //BA.debugLineNum = 251;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "DIALOGCLOSED")) + return _dialogclosed(((Number)args[0]).intValue()); +if (BA.fastSubCompare(sub, "GETPANEL")) + return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcombobox.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcombobox.java index 5e3c76c..63734b5 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcombobox.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcombobox.java @@ -10,7 +10,7 @@ public class b4xcombobox extends B4AClass.ImplB4AClass implements BA.SubDelegato private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcombobox"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcombobox"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xcombobox extends B4AClass.ImplB4AClass implements BA.SubDelegato ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -55,154 +48,136 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _setselectedindex(reparto_izca.keymon.lat.b4xcombobox __ref,int _i) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "setselectedindex", true)) - {return ((String) Debug.delegate(ba, "setselectedindex", new Object[] {_i}));} -RDebugUtils.currentLine=48889856; - //BA.debugLineNum = 48889856;BA.debugLine="Public Sub setSelectedIndex(i As Int)"; -RDebugUtils.currentLine=48889857; - //BA.debugLineNum = 48889857;BA.debugLine="LastSelectedIndex = i"; -__ref._lastselectedindex /*int*/ = _i; -RDebugUtils.currentLine=48889859; - //BA.debugLineNum = 48889859;BA.debugLine="cmbBox.SelectedIndex = i"; -__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .setSelectedIndex(_i); -RDebugUtils.currentLine=48889868; - //BA.debugLineNum = 48889868;BA.debugLine="End Sub"; +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 _setitems(reparto_izca.keymon.lat.b4xcombobox __ref,anywheresoftware.b4a.objects.collections.List _items) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "setitems", true)) - {return ((String) Debug.delegate(ba, "setitems", new Object[] {_items}));} -RDebugUtils.currentLine=48627712; - //BA.debugLineNum = 48627712;BA.debugLine="Public Sub SetItems(Items As List)"; -RDebugUtils.currentLine=48627717; - //BA.debugLineNum = 48627717;BA.debugLine="cmbBox.Clear"; -__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .Clear(); -RDebugUtils.currentLine=48627718; - //BA.debugLineNum = 48627718;BA.debugLine="cmbBox.AddAll(Items)"; -__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .AddAll(_items); -RDebugUtils.currentLine=48627725; - //BA.debugLineNum = 48627725;BA.debugLine="If Items.Size > 0 Then setSelectedIndex(0)"; -if (_items.getSize()>0) { -__ref._setselectedindex /*String*/ (null,(int) (0));}; -RDebugUtils.currentLine=48627726; - //BA.debugLineNum = 48627726;BA.debugLine="End Sub"; +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 _getselecteditem(reparto_izca.keymon.lat.b4xcombobox __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "getselecteditem", true)) - {return ((String) Debug.delegate(ba, "getselecteditem", null));} +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; -RDebugUtils.currentLine=48955392; - //BA.debugLineNum = 48955392;BA.debugLine="Public Sub getSelectedItem As String"; -RDebugUtils.currentLine=48955393; - //BA.debugLineNum = 48955393;BA.debugLine="Dim i As Int = getSelectedIndex"; -_i = __ref._getselectedindex /*int*/ (null); -RDebugUtils.currentLine=48955394; - //BA.debugLineNum = 48955394;BA.debugLine="If i = -1 Then Return \"\""; + //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 "";}; -RDebugUtils.currentLine=48955395; - //BA.debugLineNum = 48955395;BA.debugLine="Return GetItem(i)"; -if (true) return __ref._getitem /*String*/ (null,_i); -RDebugUtils.currentLine=48955396; - //BA.debugLineNum = 48955396;BA.debugLine="End Sub"; + //BA.debugLineNum = 124;BA.debugLine="Return GetItem(i)"; +if (true) return _getitem(_i); + //BA.debugLineNum = 125;BA.debugLine="End Sub"; return ""; } -public String _base_resize(reparto_izca.keymon.lat.b4xcombobox __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=48562176; - //BA.debugLineNum = 48562176;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A"; -RDebugUtils.currentLine=48562177; - //BA.debugLineNum = 48562177;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Width"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetView((int) (0)).SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); -RDebugUtils.currentLine=48562178; - //BA.debugLineNum = 48562178;BA.debugLine="End Sub"; +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 String _class_globals(reparto_izca.keymon.lat.b4xcombobox __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -RDebugUtils.currentLine=48365568; - //BA.debugLineNum = 48365568;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=48365569; - //BA.debugLineNum = 48365569;BA.debugLine="Private mEventName As String 'ignore"; -_meventname = ""; -RDebugUtils.currentLine=48365570; - //BA.debugLineNum = 48365570;BA.debugLine="Private mCallBack As Object 'ignore"; -_mcallback = new Object(); -RDebugUtils.currentLine=48365571; - //BA.debugLineNum = 48365571;BA.debugLine="Public mBase As B4XView"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=48365572; - //BA.debugLineNum = 48365572;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=48365573; - //BA.debugLineNum = 48365573;BA.debugLine="Private LastSelectedIndex As Int"; -_lastselectedindex = 0; -RDebugUtils.currentLine=48365577; - //BA.debugLineNum = 48365577;BA.debugLine="Public cmbBox As Spinner"; -_cmbbox = new anywheresoftware.b4a.objects.SpinnerWrapper(); -RDebugUtils.currentLine=48365583; - //BA.debugLineNum = 48365583;BA.debugLine="Public DelayBeforeChangeEvent As Int"; -_delaybeforechangeevent = 0; -RDebugUtils.currentLine=48365585; - //BA.debugLineNum = 48365585;BA.debugLine="Private DelayIndex As Int"; -_delayindex = 0; -RDebugUtils.currentLine=48365586; - //BA.debugLineNum = 48365586;BA.debugLine="Public Tag As Object"; -_tag = new Object(); -RDebugUtils.currentLine=48365587; - //BA.debugLineNum = 48365587;BA.debugLine="Public B4iCancelButton As String = \"Cancel\""; -_b4icancelbutton = "Cancel"; -RDebugUtils.currentLine=48365588; - //BA.debugLineNum = 48365588;BA.debugLine="End Sub"; -return ""; -} -public String _cmbbox_itemclick(reparto_izca.keymon.lat.b4xcombobox __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "cmbbox_itemclick", true)) - {return ((String) Debug.delegate(ba, "cmbbox_itemclick", new Object[] {_position,_value}));} -RDebugUtils.currentLine=49152000; - //BA.debugLineNum = 49152000;BA.debugLine="Private Sub CmbBox_ItemClick (Position As Int, Val"; -RDebugUtils.currentLine=49152001; - //BA.debugLineNum = 49152001;BA.debugLine="RaiseEvent"; -__ref._raiseevent /*void*/ (null); -RDebugUtils.currentLine=49152002; - //BA.debugLineNum = 49152002;BA.debugLine="End Sub"; -return ""; -} -public void _raiseevent(reparto_izca.keymon.lat.b4xcombobox __ref) throws Exception{ -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "raiseevent", true)) - {Debug.delegate(ba, "raiseevent", null); return;} -ResumableSub_RaiseEvent rsub = new ResumableSub_RaiseEvent(this,__ref); +public void _raiseevent() throws Exception{ +ResumableSub_RaiseEvent rsub = new ResumableSub_RaiseEvent(this); rsub.resume(ba, null); } public static class ResumableSub_RaiseEvent extends BA.ResumableSub { -public ResumableSub_RaiseEvent(reparto_izca.keymon.lat.b4xcombobox parent,reparto_izca.keymon.lat.b4xcombobox __ref) { +public ResumableSub_RaiseEvent(reparto_izca.keymon.lat.b4xcombobox parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xcombobox __ref; reparto_izca.keymon.lat.b4xcombobox parent; int _index = 0; int _myindex = 0; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xcombobox"; while (true) { switch (state) { @@ -212,17 +187,15 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=49086465; - //BA.debugLineNum = 49086465;BA.debugLine="Dim index As Int = getSelectedIndex"; -_index = __ref._getselectedindex /*int*/ (null); -RDebugUtils.currentLine=49086466; - //BA.debugLineNum = 49086466;BA.debugLine="If LastSelectedIndex = index Then Return"; + //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 (__ref._lastselectedindex /*int*/ ==_index) { +if (parent._lastselectedindex==_index) { this.state = 3; ;}if (true) break; @@ -236,43 +209,38 @@ case 6: //C this.state = 7; ; -RDebugUtils.currentLine=49086467; - //BA.debugLineNum = 49086467;BA.debugLine="If DelayBeforeChangeEvent > 0 Then"; + //BA.debugLineNum = 140;BA.debugLine="If DelayBeforeChangeEvent > 0 Then"; if (true) break; case 7: //if this.state = 16; -if (__ref._delaybeforechangeevent /*int*/ >0) { +if (parent._delaybeforechangeevent>0) { this.state = 9; }if (true) break; case 9: //C this.state = 10; -RDebugUtils.currentLine=49086468; - //BA.debugLineNum = 49086468;BA.debugLine="DelayIndex = DelayIndex + 1"; -__ref._delayindex /*int*/ = (int) (__ref._delayindex /*int*/ +1); -RDebugUtils.currentLine=49086469; - //BA.debugLineNum = 49086469;BA.debugLine="Dim MyIndex As Int = DelayIndex"; -_myindex = __ref._delayindex /*int*/ ; -RDebugUtils.currentLine=49086470; - //BA.debugLineNum = 49086470;BA.debugLine="Sleep(DelayBeforeChangeEvent)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xcombobox", "raiseevent"),__ref._delaybeforechangeevent /*int*/ ); + //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; ; -RDebugUtils.currentLine=49086471; - //BA.debugLineNum = 49086471;BA.debugLine="If MyIndex <> DelayIndex Then Return"; + //BA.debugLineNum = 144;BA.debugLine="If MyIndex <> DelayIndex Then Return"; if (true) break; case 10: //if this.state = 15; -if (_myindex!=__ref._delayindex /*int*/ ) { +if (_myindex!=parent._delayindex) { this.state = 12; ;}if (true) break; @@ -292,153 +260,59 @@ case 16: //C this.state = 17; ; -RDebugUtils.currentLine=49086473; - //BA.debugLineNum = 49086473;BA.debugLine="LastSelectedIndex = index"; -__ref._lastselectedindex /*int*/ = _index; -RDebugUtils.currentLine=49086474; - //BA.debugLineNum = 49086474;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Select"; + //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 (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_SelectedIndexChanged",(int) (1))) { +if (parent._xui.SubExists(ba,parent._mcallback,parent._meventname+"_SelectedIndexChanged",(int) (1))) { this.state = 19; }if (true) break; case 19: //C this.state = 20; -RDebugUtils.currentLine=49086475; - //BA.debugLineNum = 49086475;BA.debugLine="CallSub2(mCallBack, mEventName & \"_SelectedIndex"; -parent.__c.CallSubNew2(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_SelectedIndexChanged",(Object)(_index)); + //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; ; -RDebugUtils.currentLine=49086477; - //BA.debugLineNum = 49086477;BA.debugLine="End Sub"; + //BA.debugLineNum = 150;BA.debugLine="End Sub"; if (true) break; } } } } -public String _designercreateview(reparto_izca.keymon.lat.b4xcombobox __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} -anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null; -RDebugUtils.currentLine=48496640; - //BA.debugLineNum = 48496640;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=48496641; - //BA.debugLineNum = 48496641;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=48496642; - //BA.debugLineNum = 48496642;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=48496642; - //BA.debugLineNum = 48496642;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=48496643; - //BA.debugLineNum = 48496643;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())); -RDebugUtils.currentLine=48496650; - //BA.debugLineNum = 48496650;BA.debugLine="cmbBox.Initialize(\"cmbBox\")"; -__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .Initialize(ba,"cmbBox"); -RDebugUtils.currentLine=48496651; - //BA.debugLineNum = 48496651;BA.debugLine="cmbBox.TextSize = xlbl.TextSize"; -__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .setTextSize(_xlbl.getTextSize()); -RDebugUtils.currentLine=48496652; - //BA.debugLineNum = 48496652;BA.debugLine="mBase.AddView(cmbBox, 0, 0, mBase.Width, mBase.He"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .getObject()),(int) (0),(int) (0),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=48496661; - //BA.debugLineNum = 48496661;BA.debugLine="End Sub"; +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 _getitem(reparto_izca.keymon.lat.b4xcombobox __ref,int _index) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "getitem", true)) - {return ((String) Debug.delegate(ba, "getitem", new Object[] {_index}));} -RDebugUtils.currentLine=49020928; - //BA.debugLineNum = 49020928;BA.debugLine="Public Sub GetItem(Index As Int) As String"; -RDebugUtils.currentLine=49020932; - //BA.debugLineNum = 49020932;BA.debugLine="Return cmbBox.GetItem(Index)"; -if (true) return __ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .GetItem(_index); -RDebugUtils.currentLine=49020936; - //BA.debugLineNum = 49020936;BA.debugLine="End Sub"; +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 int _getselectedindex(reparto_izca.keymon.lat.b4xcombobox __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "getselectedindex", true)) - {return ((Integer) Debug.delegate(ba, "getselectedindex", null));} -RDebugUtils.currentLine=48824320; - //BA.debugLineNum = 48824320;BA.debugLine="Public Sub getSelectedIndex As Int"; -RDebugUtils.currentLine=48824322; - //BA.debugLineNum = 48824322;BA.debugLine="Return cmbBox.SelectedIndex"; -if (true) return __ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .getSelectedIndex(); -RDebugUtils.currentLine=48824326; - //BA.debugLineNum = 48824326;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; } -public int _getsize(reparto_izca.keymon.lat.b4xcombobox __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "getsize", true)) - {return ((Integer) Debug.delegate(ba, "getsize", null));} -RDebugUtils.currentLine=48693248; - //BA.debugLineNum = 48693248;BA.debugLine="Public Sub getSize As Int"; -RDebugUtils.currentLine=48693252; - //BA.debugLineNum = 48693252;BA.debugLine="Return cmbBox.Size"; -if (true) return __ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .getSize(); -RDebugUtils.currentLine=48693256; - //BA.debugLineNum = 48693256;BA.debugLine="End Sub"; -return 0; } -public int _indexof(reparto_izca.keymon.lat.b4xcombobox __ref,String _item) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "indexof", true)) - {return ((Integer) Debug.delegate(ba, "indexof", new Object[] {_item}));} -RDebugUtils.currentLine=48758784; - //BA.debugLineNum = 48758784;BA.debugLine="Public Sub IndexOf(Item As String) As Int"; -RDebugUtils.currentLine=48758788; - //BA.debugLineNum = 48758788;BA.debugLine="Return cmbBox.IndexOf(Item)"; -if (true) return __ref._cmbbox /*anywheresoftware.b4a.objects.SpinnerWrapper*/ .IndexOf(_item); -RDebugUtils.currentLine=48758792; - //BA.debugLineNum = 48758792;BA.debugLine="End Sub"; -return 0; -} -public String _initialize(reparto_izca.keymon.lat.b4xcombobox __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xcombobox"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=48431104; - //BA.debugLineNum = 48431104;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=48431105; - //BA.debugLineNum = 48431105;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=48431106; - //BA.debugLineNum = 48431106;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=48431107; - //BA.debugLineNum = 48431107;BA.debugLine="LastSelectedIndex = -1"; -__ref._lastselectedindex /*int*/ = (int) (-1); -RDebugUtils.currentLine=48431108; - //BA.debugLineNum = 48431108;BA.debugLine="If xui.IsB4J Then DelayBeforeChangeEvent = 500"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) { -__ref._delaybeforechangeevent /*int*/ = (int) (500);}; -RDebugUtils.currentLine=48431109; - //BA.debugLineNum = 48431109;BA.debugLine="End Sub"; -return ""; -} -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcomparatorsort.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcomparatorsort.java index 03370c4..07e0aed 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xcomparatorsort.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xcomparatorsort.java @@ -10,7 +10,7 @@ public class b4xcomparatorsort extends B4AClass.ImplB4AClass implements BA.SubDe private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcomparatorsort"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xcomparatorsort"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xcomparatorsort extends B4AClass.ImplB4AClass implements BA.SubDe ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public b4a.example.dateutils _dateutils = null; public reparto_izca.keymon.lat.main _main = null; public reparto_izca.keymon.lat.appupdater _appupdater = null; @@ -45,137 +38,89 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _class_globals(reparto_izca.keymon.lat.b4xcomparatorsort __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcomparatorsort"; -RDebugUtils.currentLine=37224448; - //BA.debugLineNum = 37224448;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=37224449; - //BA.debugLineNum = 37224449;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xcomparatorsort __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xcomparatorsort"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=37289984; - //BA.debugLineNum = 37289984;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=37289985; - //BA.debugLineNum = 37289985;BA.debugLine="End Sub"; + //BA.debugLineNum = 4;BA.debugLine="Public Sub Initialize"; + //BA.debugLineNum = 5;BA.debugLine="End Sub"; return ""; } -public int _partition(reparto_izca.keymon.lat.b4xcomparatorsort __ref,anywheresoftware.b4a.objects.collections.List _data,int _startindex,int _length,int _pivotindex,Object _comparator) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcomparatorsort"; -if (Debug.shouldDelegate(ba, "partition", true)) - {return ((Integer) Debug.delegate(ba, "partition", new Object[] {_data,_startindex,_length,_pivotindex,_comparator}));} +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; -RDebugUtils.currentLine=37486592; - //BA.debugLineNum = 37486592;BA.debugLine="Private Sub Partition(Data As List, StartIndex As"; -RDebugUtils.currentLine=37486593; - //BA.debugLineNum = 37486593;BA.debugLine="Dim PivotValue As Object = Data.Get(StartIndex +"; + //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)); -RDebugUtils.currentLine=37486594; - //BA.debugLineNum = 37486594;BA.debugLine="Swap(Data, StartIndex, PivotIndex, Length - 1)"; -__ref._swap /*String*/ (null,_data,_startindex,_pivotindex,(int) (_length-1)); -RDebugUtils.currentLine=37486595; - //BA.debugLineNum = 37486595;BA.debugLine="Dim L As Int = 0"; + //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); -RDebugUtils.currentLine=37486596; - //BA.debugLineNum = 37486596;BA.debugLine="For i = 0 To Length - 2"; + //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 ) { -RDebugUtils.currentLine=37486597; - //BA.debugLineNum = 37486597;BA.debugLine="If CallSub3(Comparator, \"Compare\", Data.Get(Star"; -if (((int)(BA.ObjectToNumber(__c.CallSubDebug3(ba,_comparator,"Compare",_data.Get((int) (_startindex+_i)),_pivotvalue))))<0) { -RDebugUtils.currentLine=37486598; - //BA.debugLineNum = 37486598;BA.debugLine="L = L + 1"; + //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); -RDebugUtils.currentLine=37486599; - //BA.debugLineNum = 37486599;BA.debugLine="Swap(Data, StartIndex, L - 1, i)"; -__ref._swap /*String*/ (null,_data,_startindex,(int) (_l-1),_i); + //BA.debugLineNum = 37;BA.debugLine="Swap(Data, StartIndex, L - 1, i)"; +_swap(_data,_startindex,(int) (_l-1),_i); }; } }; -RDebugUtils.currentLine=37486602; - //BA.debugLineNum = 37486602;BA.debugLine="Swap(Data, StartIndex, Length - 1, L)"; -__ref._swap /*String*/ (null,_data,_startindex,(int) (_length-1),_l); -RDebugUtils.currentLine=37486603; - //BA.debugLineNum = 37486603;BA.debugLine="Return L"; + //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; -RDebugUtils.currentLine=37486604; - //BA.debugLineNum = 37486604;BA.debugLine="End Sub"; + //BA.debugLineNum = 42;BA.debugLine="End Sub"; return 0; } -public String _swap(reparto_izca.keymon.lat.b4xcomparatorsort __ref,anywheresoftware.b4a.objects.collections.List _data,int _startindex,int _i1,int _i2) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcomparatorsort"; -if (Debug.shouldDelegate(ba, "swap", true)) - {return ((String) Debug.delegate(ba, "swap", new Object[] {_data,_startindex,_i1,_i2}));} -Object _o = null; -RDebugUtils.currentLine=37552128; - //BA.debugLineNum = 37552128;BA.debugLine="Private Sub Swap (Data As List, StartIndex As Int,"; -RDebugUtils.currentLine=37552129; - //BA.debugLineNum = 37552129;BA.debugLine="Dim o As Object = Data.Get(StartIndex + i1)"; -_o = _data.Get((int) (_startindex+_i1)); -RDebugUtils.currentLine=37552130; - //BA.debugLineNum = 37552130;BA.debugLine="Data.Set(StartIndex + i1, Data.Get(StartIndex + i"; -_data.Set((int) (_startindex+_i1),_data.Get((int) (_startindex+_i2))); -RDebugUtils.currentLine=37552131; - //BA.debugLineNum = 37552131;BA.debugLine="Data.Set(StartIndex + i2, o)"; -_data.Set((int) (_startindex+_i2),_o); -RDebugUtils.currentLine=37552132; - //BA.debugLineNum = 37552132;BA.debugLine="End Sub"; -return ""; -} -public String _quicksort(reparto_izca.keymon.lat.b4xcomparatorsort __ref,anywheresoftware.b4a.objects.collections.List _data,int _startindex,int _length,Object _comparator) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcomparatorsort"; -if (Debug.shouldDelegate(ba, "quicksort", true)) - {return ((String) Debug.delegate(ba, "quicksort", new Object[] {_data,_startindex,_length,_comparator}));} +public String _quicksort(anywheresoftware.b4a.objects.collections.List _data,int _startindex,int _length,Object _comparator) throws Exception{ int _pivotindex = 0; int _r = 0; -RDebugUtils.currentLine=37421056; - //BA.debugLineNum = 37421056;BA.debugLine="Private Sub QuickSort (Data As List, StartIndex As"; -RDebugUtils.currentLine=37421057; - //BA.debugLineNum = 37421057;BA.debugLine="If Length > 1 Then"; + //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) { -RDebugUtils.currentLine=37421058; - //BA.debugLineNum = 37421058;BA.debugLine="Dim PivotIndex As Int = Rnd(0, Length)"; + //BA.debugLineNum = 23;BA.debugLine="Dim PivotIndex As Int = Rnd(0, Length)"; _pivotindex = __c.Rnd((int) (0),_length); -RDebugUtils.currentLine=37421059; - //BA.debugLineNum = 37421059;BA.debugLine="Dim r As Int = Partition(Data, StartIndex, Lengt"; -_r = __ref._partition /*int*/ (null,_data,_startindex,_length,_pivotindex,_comparator); -RDebugUtils.currentLine=37421060; - //BA.debugLineNum = 37421060;BA.debugLine="QuickSort(Data, StartIndex, r, Comparator)"; -__ref._quicksort /*String*/ (null,_data,_startindex,_r,_comparator); -RDebugUtils.currentLine=37421061; - //BA.debugLineNum = 37421061;BA.debugLine="QuickSort(Data, StartIndex + r + 1, Length - r -"; -__ref._quicksort /*String*/ (null,_data,(int) (_startindex+_r+1),(int) (_length-_r-1),_comparator); + //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); }; -RDebugUtils.currentLine=37421063; - //BA.debugLineNum = 37421063;BA.debugLine="End Sub"; + //BA.debugLineNum = 28;BA.debugLine="End Sub"; return ""; } -public String _sort(reparto_izca.keymon.lat.b4xcomparatorsort __ref,anywheresoftware.b4a.objects.collections.List _data,Object _comparator) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xcomparatorsort"; -if (Debug.shouldDelegate(ba, "sort", true)) - {return ((String) Debug.delegate(ba, "sort", new Object[] {_data,_comparator}));} -RDebugUtils.currentLine=37355520; - //BA.debugLineNum = 37355520;BA.debugLine="Public Sub Sort (Data As List, Comparator As Objec"; -RDebugUtils.currentLine=37355522; - //BA.debugLineNum = 37355522;BA.debugLine="QuickSort(Data, 0, Data.Size, Comparator)"; -__ref._quicksort /*String*/ (null,_data,(int) (0),_data.getSize(),_comparator); -RDebugUtils.currentLine=37355526; - //BA.debugLineNum = 37355526;BA.debugLine="End Sub"; +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 ""; } -} \ No newline at end of file +public String _swap(anywheresoftware.b4a.objects.collections.List _data,int _startindex,int _i1,int _i2) throws Exception{ +Object _o = null; + //BA.debugLineNum = 44;BA.debugLine="Private Sub Swap (Data As List, StartIndex As Int,"; + //BA.debugLineNum = 45;BA.debugLine="Dim o As Object = Data.Get(StartIndex + i1)"; +_o = _data.Get((int) (_startindex+_i1)); + //BA.debugLineNum = 46;BA.debugLine="Data.Set(StartIndex + i1, Data.Get(StartIndex + i"; +_data.Set((int) (_startindex+_i1),_data.Get((int) (_startindex+_i2))); + //BA.debugLineNum = 47;BA.debugLine="Data.Set(StartIndex + i2, o)"; +_data.Set((int) (_startindex+_i2),_o); + //BA.debugLineNum = 48;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xdatetemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xdatetemplate.java index d730a9e..acc244c 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xdatetemplate.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xdatetemplate.java @@ -10,7 +10,7 @@ public class b4xdatetemplate extends B4AClass.ImplB4AClass implements BA.SubDele private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xdatetemplate"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xdatetemplate"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xdatetemplate extends B4AClass.ImplB4AClass implements BA.SubDele ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; public int _month = 0; public int _year = 0; @@ -83,562 +76,355 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _btnmonth_click(reparto_izca.keymon.lat.b4xdatetemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "btnmonth_click", true)) - {return ((String) Debug.delegate(ba, "btnmonth_click", null));} +public String _btnmonth_click() throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _btn = null; int _m = 0; -RDebugUtils.currentLine=49938432; - //BA.debugLineNum = 49938432;BA.debugLine="Private Sub btnMonth_Click"; -RDebugUtils.currentLine=49938433; - //BA.debugLineNum = 49938433;BA.debugLine="Dim btn As B4XView = Sender"; + //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))); -RDebugUtils.currentLine=49938434; - //BA.debugLineNum = 49938434;BA.debugLine="Dim m As Int = 12 + month - 1 + btn.Tag"; -_m = (int) (12+__ref._month /*int*/ -1+(double)(BA.ObjectToNumber(_btn.getTag()))); -RDebugUtils.currentLine=49938435; - //BA.debugLineNum = 49938435;BA.debugLine="month = (m Mod 12) + 1"; -__ref._month /*int*/ = (int) ((_m%12)+1); -RDebugUtils.currentLine=49938436; - //BA.debugLineNum = 49938436;BA.debugLine="DrawDays"; -__ref._drawdays /*String*/ (null); -RDebugUtils.currentLine=49938437; - //BA.debugLineNum = 49938437;BA.debugLine="End Sub"; + //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 _drawdays(reparto_izca.keymon.lat.b4xdatetemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "drawdays", true)) - {return ((String) Debug.delegate(ba, "drawdays", null));} +public String _btnyear_click() throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _btn = null; + //BA.debugLineNum = 154;BA.debugLine="Private Sub btnYear_Click"; + //BA.debugLineNum = 155;BA.debugLine="Dim btn As B4XView = Sender"; +_btn = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_btn = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))); + //BA.debugLineNum = 156;BA.debugLine="year = year + btn.Tag"; +_year = (int) (_year+(double)(BA.ObjectToNumber(_btn.getTag()))); + //BA.debugLineNum = 157;BA.debugLine="DrawDays"; +_drawdays(); + //BA.debugLineNum = 158;BA.debugLine="End Sub"; +return ""; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 3;BA.debugLine="Private month, year As Int"; +_month = 0; +_year = 0; + //BA.debugLineNum = 4;BA.debugLine="Private boxW, boxH As Float"; +_boxw = 0f; +_boxh = 0f; + //BA.debugLineNum = 5;BA.debugLine="Private vCorrection As Float"; +_vcorrection = 0f; + //BA.debugLineNum = 6;BA.debugLine="Private tempSelectedDay As Int"; +_tempselectedday = 0; + //BA.debugLineNum = 7;BA.debugLine="Private dayOfWeekOffset As Int"; +_dayofweekoffset = 0; + //BA.debugLineNum = 8;BA.debugLine="Private daysInMonth As Int"; +_daysinmonth = 0; + //BA.debugLineNum = 9;BA.debugLine="Private DaysPaneBg As B4XView"; +_dayspanebg = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 10;BA.debugLine="Private DaysPaneFg As B4XView"; +_dayspanefg = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Private cvs As B4XCanvas"; +_cvs = new anywheresoftware.b4a.objects.B4XCanvas(); + //BA.debugLineNum = 12;BA.debugLine="Private cvsBackground As B4XCanvas"; +_cvsbackground = new anywheresoftware.b4a.objects.B4XCanvas(); + //BA.debugLineNum = 13;BA.debugLine="Private selectedDate As Long"; +_selecteddate = 0L; + //BA.debugLineNum = 14;BA.debugLine="Private PreviousSelectedDate As Long"; +_previousselecteddate = 0L; + //BA.debugLineNum = 15;BA.debugLine="Private selectedYear, selectedMonth, selectedDay"; +_selectedyear = 0; +_selectedmonth = 0; +_selectedday = 0; + //BA.debugLineNum = 16;BA.debugLine="Public HighlightedColor As Int = 0xFF001BBD"; +_highlightedcolor = ((int)0xff001bbd); + //BA.debugLineNum = 17;BA.debugLine="Public SelectedColor As Int = 0xFF0BA29B"; +_selectedcolor = ((int)0xff0ba29b); + //BA.debugLineNum = 18;BA.debugLine="Public DaysInMonthColor As Int = xui.Color_White"; +_daysinmonthcolor = _xui.Color_White; + //BA.debugLineNum = 19;BA.debugLine="Public DaysInWeekColor As Int = xui.Color_Gray"; +_daysinweekcolor = _xui.Color_Gray; + //BA.debugLineNum = 20;BA.debugLine="Private cvsDays As B4XCanvas"; +_cvsdays = new anywheresoftware.b4a.objects.B4XCanvas(); + //BA.debugLineNum = 21;BA.debugLine="Private DaysTitlesPane As B4XView"; +_daystitlespane = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 22;BA.debugLine="Public FirstDay As Int = 0"; +_firstday = (int) (0); + //BA.debugLineNum = 23;BA.debugLine="Public MinYear = 1970, MaxYear = 2030 As Int"; +_minyear = (int) (1970); +_maxyear = (int) (2030); + //BA.debugLineNum = 24;BA.debugLine="Public btnMonthLeft As B4XView"; +_btnmonthleft = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 25;BA.debugLine="Public btnMonthRight As B4XView"; +_btnmonthright = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Public btnYearLeft As B4XView"; +_btnyearleft = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 27;BA.debugLine="Public btnYearRight As B4XView"; +_btnyearright = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 28;BA.debugLine="Public lblMonth As B4XView"; +_lblmonth = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 29;BA.debugLine="Public lblYear As B4XView"; +_lblyear = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 30;BA.debugLine="Private pnlDialog As B4XView"; +_pnldialog = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 31;BA.debugLine="Private months As List"; +_months = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 32;BA.debugLine="Private mDialog As B4XDialog"; +_mdialog = new reparto_izca.keymon.lat.b4xdialog(); + //BA.debugLineNum = 33;BA.debugLine="Public CloseOnSelection As Boolean = True"; +_closeonselection = __c.True; + //BA.debugLineNum = 34;BA.debugLine="Public DaysOfWeekNames As List"; +_daysofweeknames = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 35;BA.debugLine="End Sub"; +return ""; +} +public String _dayspanefg_touch(int _action,float _x,float _y) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; + //BA.debugLineNum = 167;BA.debugLine="Private Sub DaysPaneFg_Touch (Action As Int, X As"; + //BA.debugLineNum = 168;BA.debugLine="Dim p As B4XView = DaysPaneFg"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _dayspanefg; + //BA.debugLineNum = 169;BA.debugLine="HandleMouse(X, Y, Action <> p.TOUCH_ACTION_UP)"; +_handlemouse(_x,_y,_action!=_p.TOUCH_ACTION_UP); + //BA.debugLineNum = 170;BA.debugLine="End Sub"; +return ""; +} +public String _dialogclosed(int _result) throws Exception{ + //BA.debugLineNum = 193;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore"; + //BA.debugLineNum = 194;BA.debugLine="If Result <> xui.DialogResponse_Positive Then"; +if (_result!=_xui.DialogResponse_Positive) { + //BA.debugLineNum = 195;BA.debugLine="setDate(PreviousSelectedDate)"; +_setdate(_previousselecteddate); + }; + //BA.debugLineNum = 197;BA.debugLine="End Sub"; +return ""; +} +public String _drawbox(anywheresoftware.b4a.objects.B4XCanvas _c,int _clr,int _x,int _y) throws Exception{ +anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null; + //BA.debugLineNum = 91;BA.debugLine="Private Sub DrawBox(c As B4XCanvas, clr As Int, x"; + //BA.debugLineNum = 92;BA.debugLine="Dim r As B4XRect"; +_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect(); + //BA.debugLineNum = 93;BA.debugLine="r.Initialize(x * boxW, y * boxH, x * boxW + boxW,"; +_r.Initialize((float) (_x*_boxw),(float) (_y*_boxh),(float) (_x*_boxw+_boxw),(float) (_y*_boxh+_boxh)); + //BA.debugLineNum = 94;BA.debugLine="c.DrawRect(r, clr, True, 1dip)"; +_c.DrawRect(_r,_clr,__c.True,(float) (__c.DipToCurrent((int) (1)))); + //BA.debugLineNum = 95;BA.debugLine="End Sub"; +return ""; +} +public String _drawdays() throws Exception{ long _firstdayofmonth = 0L; anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _daysfont = null; int _day = 0; int _row = 0; -RDebugUtils.currentLine=49348608; - //BA.debugLineNum = 49348608;BA.debugLine="Private Sub DrawDays"; -RDebugUtils.currentLine=49348609; - //BA.debugLineNum = 49348609;BA.debugLine="lblMonth.Text = months.Get(month - 1)"; -__ref._lblmonth /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(__ref._months /*anywheresoftware.b4a.objects.collections.List*/ .Get((int) (__ref._month /*int*/ -1)))); -RDebugUtils.currentLine=49348610; - //BA.debugLineNum = 49348610;BA.debugLine="lblYear.Text = year"; -__ref._lblyear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(__ref._year /*int*/ )); -RDebugUtils.currentLine=49348611; - //BA.debugLineNum = 49348611;BA.debugLine="SetYearsButtonState"; -__ref._setyearsbuttonstate /*String*/ (null); -RDebugUtils.currentLine=49348612; - //BA.debugLineNum = 49348612;BA.debugLine="cvs.ClearRect(cvs.TargetRect)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=49348613; - //BA.debugLineNum = 49348613;BA.debugLine="cvsBackground.ClearRect(cvsBackground.TargetRect)"; -__ref._cvsbackground /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._cvsbackground /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=49348614; - //BA.debugLineNum = 49348614;BA.debugLine="Dim firstDayOfMonth As Long = DateUtils.setDate(y"; -_firstdayofmonth = (long) (_dateutils._setdate(ba,__ref._year /*int*/ ,__ref._month /*int*/ ,(int) (1))-1); -RDebugUtils.currentLine=49348615; - //BA.debugLineNum = 49348615;BA.debugLine="dayOfWeekOffset = (7 + DateTime.GetDayOfWeek(firs"; -__ref._dayofweekoffset /*int*/ = (int) ((7+__c.DateTime.GetDayOfWeek(_firstdayofmonth)-__ref._firstday /*int*/ )%7); -RDebugUtils.currentLine=49348616; - //BA.debugLineNum = 49348616;BA.debugLine="daysInMonth = DateUtils.NumberOfDaysInMonth(month"; -__ref._daysinmonth /*int*/ = _dateutils._numberofdaysinmonth(ba,__ref._month /*int*/ ,__ref._year /*int*/ ); -RDebugUtils.currentLine=49348617; - //BA.debugLineNum = 49348617;BA.debugLine="If year = selectedYear And month = selectedMonth"; -if (__ref._year /*int*/ ==__ref._selectedyear /*int*/ && __ref._month /*int*/ ==__ref._selectedmonth /*int*/ ) { -RDebugUtils.currentLine=49348619; - //BA.debugLineNum = 49348619;BA.debugLine="DrawBox(cvs, SelectedColor, (selectedDay - 1 + d"; -__ref._drawbox /*String*/ (null,__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ ,__ref._selectedcolor /*int*/ ,(int) ((__ref._selectedday /*int*/ -1+__ref._dayofweekoffset /*int*/ )%7),(int) ((__ref._selectedday /*int*/ -1+__ref._dayofweekoffset /*int*/ )/(double)7)); + //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)); }; -RDebugUtils.currentLine=49348622; - //BA.debugLineNum = 49348622;BA.debugLine="Dim daysFont As B4XFont = xui.CreateDefaultBoldFo"; -_daysfont = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateDefaultBoldFont((float) (14)); -RDebugUtils.currentLine=49348623; - //BA.debugLineNum = 49348623;BA.debugLine="For day = 1 To daysInMonth"; + //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 = __ref._daysinmonth /*int*/ ; +final int limit13 = _daysinmonth; _day = (int) (1) ; for (;_day <= limit13 ;_day = _day + step13 ) { -RDebugUtils.currentLine=49348624; - //BA.debugLineNum = 49348624;BA.debugLine="Dim row As Int = (day - 1 + dayOfWeekOffset) / 7"; -_row = (int) ((_day-1+__ref._dayofweekoffset /*int*/ )/(double)7); -RDebugUtils.currentLine=49348625; - //BA.debugLineNum = 49348625;BA.debugLine="cvs.DrawText(day, (((dayOfWeekOffset + day - 1)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawText(ba,BA.NumberToString(_day),(float) ((((__ref._dayofweekoffset /*int*/ +_day-1)%7)+0.5)*__ref._boxw /*float*/ ),(float) ((_row+0.5)*__ref._boxh /*float*/ +__ref._vcorrection /*float*/ ),_daysfont,__ref._daysinmonthcolor /*int*/ ,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER")); + //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")); } }; -RDebugUtils.currentLine=49348628; - //BA.debugLineNum = 49348628;BA.debugLine="cvsBackground.Invalidate"; -__ref._cvsbackground /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=49348629; - //BA.debugLineNum = 49348629;BA.debugLine="cvs.Invalidate"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=49348630; - //BA.debugLineNum = 49348630;BA.debugLine="End Sub"; + //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 String _btnyear_click(reparto_izca.keymon.lat.b4xdatetemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "btnyear_click", true)) - {return ((String) Debug.delegate(ba, "btnyear_click", null));} -anywheresoftware.b4a.objects.B4XViewWrapper _btn = null; -RDebugUtils.currentLine=49872896; - //BA.debugLineNum = 49872896;BA.debugLine="Private Sub btnYear_Click"; -RDebugUtils.currentLine=49872897; - //BA.debugLineNum = 49872897;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))); -RDebugUtils.currentLine=49872898; - //BA.debugLineNum = 49872898;BA.debugLine="year = year + btn.Tag"; -__ref._year /*int*/ = (int) (__ref._year /*int*/ +(double)(BA.ObjectToNumber(_btn.getTag()))); -RDebugUtils.currentLine=49872899; - //BA.debugLineNum = 49872899;BA.debugLine="DrawDays"; -__ref._drawdays /*String*/ (null); -RDebugUtils.currentLine=49872900; - //BA.debugLineNum = 49872900;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 String _class_globals(reparto_izca.keymon.lat.b4xdatetemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -RDebugUtils.currentLine=49217536; - //BA.debugLineNum = 49217536;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=49217537; - //BA.debugLineNum = 49217537;BA.debugLine="Private xui As XUI"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=49217538; - //BA.debugLineNum = 49217538;BA.debugLine="Private month, year As Int"; -_month = 0; -_year = 0; -RDebugUtils.currentLine=49217539; - //BA.debugLineNum = 49217539;BA.debugLine="Private boxW, boxH As Float"; -_boxw = 0f; -_boxh = 0f; -RDebugUtils.currentLine=49217540; - //BA.debugLineNum = 49217540;BA.debugLine="Private vCorrection As Float"; -_vcorrection = 0f; -RDebugUtils.currentLine=49217541; - //BA.debugLineNum = 49217541;BA.debugLine="Private tempSelectedDay As Int"; -_tempselectedday = 0; -RDebugUtils.currentLine=49217542; - //BA.debugLineNum = 49217542;BA.debugLine="Private dayOfWeekOffset As Int"; -_dayofweekoffset = 0; -RDebugUtils.currentLine=49217543; - //BA.debugLineNum = 49217543;BA.debugLine="Private daysInMonth As Int"; -_daysinmonth = 0; -RDebugUtils.currentLine=49217544; - //BA.debugLineNum = 49217544;BA.debugLine="Private DaysPaneBg As B4XView"; -_dayspanebg = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=49217545; - //BA.debugLineNum = 49217545;BA.debugLine="Private DaysPaneFg As B4XView"; -_dayspanefg = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=49217546; - //BA.debugLineNum = 49217546;BA.debugLine="Private cvs As B4XCanvas"; -_cvs = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=49217547; - //BA.debugLineNum = 49217547;BA.debugLine="Private cvsBackground As B4XCanvas"; -_cvsbackground = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=49217548; - //BA.debugLineNum = 49217548;BA.debugLine="Private selectedDate As Long"; -_selecteddate = 0L; -RDebugUtils.currentLine=49217549; - //BA.debugLineNum = 49217549;BA.debugLine="Private PreviousSelectedDate As Long"; -_previousselecteddate = 0L; -RDebugUtils.currentLine=49217550; - //BA.debugLineNum = 49217550;BA.debugLine="Private selectedYear, selectedMonth, selectedDay"; -_selectedyear = 0; -_selectedmonth = 0; -_selectedday = 0; -RDebugUtils.currentLine=49217551; - //BA.debugLineNum = 49217551;BA.debugLine="Public HighlightedColor As Int = 0xFF001BBD"; -_highlightedcolor = ((int)0xff001bbd); -RDebugUtils.currentLine=49217552; - //BA.debugLineNum = 49217552;BA.debugLine="Public SelectedColor As Int = 0xFF0BA29B"; -_selectedcolor = ((int)0xff0ba29b); -RDebugUtils.currentLine=49217553; - //BA.debugLineNum = 49217553;BA.debugLine="Public DaysInMonthColor As Int = xui.Color_White"; -_daysinmonthcolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -RDebugUtils.currentLine=49217554; - //BA.debugLineNum = 49217554;BA.debugLine="Public DaysInWeekColor As Int = xui.Color_Gray"; -_daysinweekcolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Gray; -RDebugUtils.currentLine=49217555; - //BA.debugLineNum = 49217555;BA.debugLine="Private cvsDays As B4XCanvas"; -_cvsdays = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=49217556; - //BA.debugLineNum = 49217556;BA.debugLine="Private DaysTitlesPane As B4XView"; -_daystitlespane = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=49217557; - //BA.debugLineNum = 49217557;BA.debugLine="Public FirstDay As Int = 0"; -_firstday = (int) (0); -RDebugUtils.currentLine=49217558; - //BA.debugLineNum = 49217558;BA.debugLine="Public MinYear = 1970, MaxYear = 2030 As Int"; -_minyear = (int) (1970); -_maxyear = (int) (2030); -RDebugUtils.currentLine=49217559; - //BA.debugLineNum = 49217559;BA.debugLine="Public btnMonthLeft As B4XView"; -_btnmonthleft = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=49217560; - //BA.debugLineNum = 49217560;BA.debugLine="Public btnMonthRight As B4XView"; -_btnmonthright = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=49217561; - //BA.debugLineNum = 49217561;BA.debugLine="Public btnYearLeft As B4XView"; -_btnyearleft = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=49217562; - //BA.debugLineNum = 49217562;BA.debugLine="Public btnYearRight As B4XView"; -_btnyearright = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=49217563; - //BA.debugLineNum = 49217563;BA.debugLine="Public lblMonth As B4XView"; -_lblmonth = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=49217564; - //BA.debugLineNum = 49217564;BA.debugLine="Public lblYear As B4XView"; -_lblyear = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=49217565; - //BA.debugLineNum = 49217565;BA.debugLine="Private pnlDialog As B4XView"; -_pnldialog = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=49217566; - //BA.debugLineNum = 49217566;BA.debugLine="Private months As List"; -_months = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=49217567; - //BA.debugLineNum = 49217567;BA.debugLine="Private mDialog As B4XDialog"; -_mdialog = new reparto_izca.keymon.lat.b4xdialog(); -RDebugUtils.currentLine=49217568; - //BA.debugLineNum = 49217568;BA.debugLine="Public CloseOnSelection As Boolean = True"; -_closeonselection = __c.True; -RDebugUtils.currentLine=49217569; - //BA.debugLineNum = 49217569;BA.debugLine="Public DaysOfWeekNames As List"; -_daysofweeknames = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=49217570; - //BA.debugLineNum = 49217570;BA.debugLine="End Sub"; -return ""; +public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ + //BA.debugLineNum = 172;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; + //BA.debugLineNum = 173;BA.debugLine="Return pnlDialog"; +if (true) return _pnldialog; + //BA.debugLineNum = 174;BA.debugLine="End Sub"; +return null; } -public String _dayspanefg_touch(reparto_izca.keymon.lat.b4xdatetemplate __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "dayspanefg_touch", true)) - {return ((String) Debug.delegate(ba, "dayspanefg_touch", new Object[] {_action,_x,_y}));} -anywheresoftware.b4a.objects.B4XViewWrapper _p = null; -RDebugUtils.currentLine=50003968; - //BA.debugLineNum = 50003968;BA.debugLine="Private Sub DaysPaneFg_Touch (Action As Int, X As"; -RDebugUtils.currentLine=50003969; - //BA.debugLineNum = 50003969;BA.debugLine="Dim p As B4XView = DaysPaneFg"; -_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._dayspanefg /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=50003970; - //BA.debugLineNum = 50003970;BA.debugLine="HandleMouse(X, Y, Action <> p.TOUCH_ACTION_UP)"; -__ref._handlemouse /*String*/ (null,_x,_y,_action!=_p.TOUCH_ACTION_UP); -RDebugUtils.currentLine=50003971; - //BA.debugLineNum = 50003971;BA.debugLine="End Sub"; -return ""; -} -public String _handlemouse(reparto_izca.keymon.lat.b4xdatetemplate __ref,double _x,double _y,boolean _move) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "handlemouse", true)) - {return ((String) Debug.delegate(ba, "handlemouse", new Object[] {_x,_y,_move}));} +public String _handlemouse(double _x,double _y,boolean _move) throws Exception{ int _boxx = 0; int _boxy = 0; int _newselectedday = 0; boolean _validday = false; -RDebugUtils.currentLine=49741824; - //BA.debugLineNum = 49741824;BA.debugLine="Private Sub HandleMouse(x As Double, y As Double,"; -RDebugUtils.currentLine=49741825; - //BA.debugLineNum = 49741825;BA.debugLine="Dim boxX = x / boxW, boxY = y / boxH As Int"; -_boxx = (int) (_x/(double)__ref._boxw /*float*/ ); -_boxy = (int) (_y/(double)__ref._boxh /*float*/ ); -RDebugUtils.currentLine=49741826; - //BA.debugLineNum = 49741826;BA.debugLine="Dim newSelectedDay As Int = boxY * 7 + boxX + 1 -"; -_newselectedday = (int) (_boxy*7+_boxx+1-__ref._dayofweekoffset /*int*/ ); -RDebugUtils.currentLine=49741827; - //BA.debugLineNum = 49741827;BA.debugLine="Dim validDay As Boolean = newSelectedDay > 0 And"; -_validday = _newselectedday>0 && _newselectedday<=__ref._daysinmonth /*int*/ ; -RDebugUtils.currentLine=49741828; - //BA.debugLineNum = 49741828;BA.debugLine="If move Then"; + //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) { -RDebugUtils.currentLine=49741829; - //BA.debugLineNum = 49741829;BA.debugLine="If newSelectedDay = tempSelectedDay Then Return"; -if (_newselectedday==__ref._tempselectedday /*int*/ ) { + //BA.debugLineNum = 128;BA.debugLine="If newSelectedDay = tempSelectedDay Then Return"; +if (_newselectedday==_tempselectedday) { if (true) return "";}; -RDebugUtils.currentLine=49741830; - //BA.debugLineNum = 49741830;BA.debugLine="cvsBackground.ClearRect(cvsBackground.TargetRect"; -__ref._cvsbackground /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._cvsbackground /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=49741831; - //BA.debugLineNum = 49741831;BA.debugLine="tempSelectedDay = newSelectedDay"; -__ref._tempselectedday /*int*/ = _newselectedday; -RDebugUtils.currentLine=49741832; - //BA.debugLineNum = 49741832;BA.debugLine="If validDay Then"; + //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) { -RDebugUtils.currentLine=49741833; - //BA.debugLineNum = 49741833;BA.debugLine="DrawBox(cvsBackground, HighlightedColor, boxX,"; -__ref._drawbox /*String*/ (null,__ref._cvsbackground /*anywheresoftware.b4a.objects.B4XCanvas*/ ,__ref._highlightedcolor /*int*/ ,_boxx,_boxy); + //BA.debugLineNum = 132;BA.debugLine="DrawBox(cvsBackground, HighlightedColor, boxX,"; +_drawbox(_cvsbackground,_highlightedcolor,_boxx,_boxy); }; }else { -RDebugUtils.currentLine=49741836; - //BA.debugLineNum = 49741836;BA.debugLine="cvsBackground.ClearRect(cvsBackground.TargetRect"; -__ref._cvsbackground /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._cvsbackground /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=49741837; - //BA.debugLineNum = 49741837;BA.debugLine="If validDay Then"; + //BA.debugLineNum = 135;BA.debugLine="cvsBackground.ClearRect(cvsBackground.TargetRect"; +_cvsbackground.ClearRect(_cvsbackground.getTargetRect()); + //BA.debugLineNum = 136;BA.debugLine="If validDay Then"; if (_validday) { -RDebugUtils.currentLine=49741838; - //BA.debugLineNum = 49741838;BA.debugLine="SelectDay(newSelectedDay)"; -__ref._selectday /*String*/ (null,_newselectedday); -RDebugUtils.currentLine=49741839; - //BA.debugLineNum = 49741839;BA.debugLine="If CloseOnSelection Then"; -if (__ref._closeonselection /*boolean*/ ) { -RDebugUtils.currentLine=49741840; - //BA.debugLineNum = 49741840;BA.debugLine="Hide"; -__ref._hide /*String*/ (null); + //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 { -RDebugUtils.currentLine=49741842; - //BA.debugLineNum = 49741842;BA.debugLine="DrawDays"; -__ref._drawdays /*String*/ (null); + //BA.debugLineNum = 141;BA.debugLine="DrawDays"; +_drawdays(); }; }; }; -RDebugUtils.currentLine=49741847; - //BA.debugLineNum = 49741847;BA.debugLine="cvsBackground.Invalidate"; -__ref._cvsbackground /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=49741848; - //BA.debugLineNum = 49741848;BA.debugLine="End Sub"; + //BA.debugLineNum = 146;BA.debugLine="cvsBackground.Invalidate"; +_cvsbackground.Invalidate(); + //BA.debugLineNum = 147;BA.debugLine="End Sub"; return ""; } -public String _dialogclosed(reparto_izca.keymon.lat.b4xdatetemplate __ref,int _result) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "dialogclosed", true)) - {return ((String) Debug.delegate(ba, "dialogclosed", new Object[] {_result}));} -RDebugUtils.currentLine=50200576; - //BA.debugLineNum = 50200576;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore"; -RDebugUtils.currentLine=50200577; - //BA.debugLineNum = 50200577;BA.debugLine="If Result <> xui.DialogResponse_Positive Then"; -if (_result!=__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive) { -RDebugUtils.currentLine=50200578; - //BA.debugLineNum = 50200578;BA.debugLine="setDate(PreviousSelectedDate)"; -__ref._setdate /*String*/ (null,__ref._previousselecteddate /*long*/ ); - }; -RDebugUtils.currentLine=50200580; - //BA.debugLineNum = 50200580;BA.debugLine="End Sub"; +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 _setdate(reparto_izca.keymon.lat.b4xdatetemplate __ref,long _date) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "setdate", true)) - {return ((String) Debug.delegate(ba, "setdate", new Object[] {_date}));} -RDebugUtils.currentLine=49610752; - //BA.debugLineNum = 49610752;BA.debugLine="Public Sub setDate(date As Long)"; -RDebugUtils.currentLine=49610754; - //BA.debugLineNum = 49610754;BA.debugLine="If lblYear.IsInitialized = False Then"; -if (__ref._lblyear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized()==__c.False) { -RDebugUtils.currentLine=49610755; - //BA.debugLineNum = 49610755;BA.debugLine="selectedDate = date"; -__ref._selecteddate /*long*/ = _date; -RDebugUtils.currentLine=49610756; - //BA.debugLineNum = 49610756;BA.debugLine="Return 'the date will be set after the layout is"; +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 ""; }; -RDebugUtils.currentLine=49610758; - //BA.debugLineNum = 49610758;BA.debugLine="year = DateTime.GetYear(date)"; -__ref._year /*int*/ = __c.DateTime.GetYear(_date); -RDebugUtils.currentLine=49610759; - //BA.debugLineNum = 49610759;BA.debugLine="month = DateTime.GetMonth(date)"; -__ref._month /*int*/ = __c.DateTime.GetMonth(_date); -RDebugUtils.currentLine=49610760; - //BA.debugLineNum = 49610760;BA.debugLine="SelectDay(DateTime.GetDayOfMonth(date))"; -__ref._selectday /*String*/ (null,__c.DateTime.GetDayOfMonth(_date)); -RDebugUtils.currentLine=49610761; - //BA.debugLineNum = 49610761;BA.debugLine="lblYear.Text = year"; -__ref._lblyear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(__ref._year /*int*/ )); -RDebugUtils.currentLine=49610762; - //BA.debugLineNum = 49610762;BA.debugLine="lblMonth.Text = months.Get(month - 1)"; -__ref._lblmonth /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(__ref._months /*anywheresoftware.b4a.objects.collections.List*/ .Get((int) (__ref._month /*int*/ -1)))); -RDebugUtils.currentLine=49610763; - //BA.debugLineNum = 49610763;BA.debugLine="End Sub"; + //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 _drawbox(reparto_izca.keymon.lat.b4xdatetemplate __ref,anywheresoftware.b4a.objects.B4XCanvas _c,int _clr,int _x,int _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "drawbox", true)) - {return ((String) Debug.delegate(ba, "drawbox", new Object[] {_c,_clr,_x,_y}));} -anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null; -RDebugUtils.currentLine=49479680; - //BA.debugLineNum = 49479680;BA.debugLine="Private Sub DrawBox(c As B4XCanvas, clr As Int, x"; -RDebugUtils.currentLine=49479681; - //BA.debugLineNum = 49479681;BA.debugLine="Dim r As B4XRect"; -_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect(); -RDebugUtils.currentLine=49479682; - //BA.debugLineNum = 49479682;BA.debugLine="r.Initialize(x * boxW, y * boxH, x * boxW + boxW,"; -_r.Initialize((float) (_x*__ref._boxw /*float*/ ),(float) (_y*__ref._boxh /*float*/ ),(float) (_x*__ref._boxw /*float*/ +__ref._boxw /*float*/ ),(float) (_y*__ref._boxh /*float*/ +__ref._boxh /*float*/ )); -RDebugUtils.currentLine=49479683; - //BA.debugLineNum = 49479683;BA.debugLine="c.DrawRect(r, clr, True, 1dip)"; -_c.DrawRect(_r,_clr,__c.True,(float) (__c.DipToCurrent((int) (1)))); -RDebugUtils.currentLine=49479684; - //BA.debugLineNum = 49479684;BA.debugLine="End Sub"; +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 String _setyearsbuttonstate(reparto_izca.keymon.lat.b4xdatetemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "setyearsbuttonstate", true)) - {return ((String) Debug.delegate(ba, "setyearsbuttonstate", null));} -RDebugUtils.currentLine=49414144; - //BA.debugLineNum = 49414144;BA.debugLine="Private Sub SetYearsButtonState"; -RDebugUtils.currentLine=49414145; - //BA.debugLineNum = 49414145;BA.debugLine="btnYearLeft.Enabled = year > MinYear"; -__ref._btnyearleft /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setEnabled(__ref._year /*int*/ >__ref._minyear /*int*/ ); -RDebugUtils.currentLine=49414146; - //BA.debugLineNum = 49414146;BA.debugLine="btnYearRight.Enabled = year < MaxYear"; -__ref._btnyearright /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setEnabled(__ref._year /*int*/ <__ref._maxyear /*int*/ ); -RDebugUtils.currentLine=49414147; - //BA.debugLineNum = 49414147;BA.debugLine="End Sub"; -return ""; -} -public long _getdate(reparto_izca.keymon.lat.b4xdatetemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "getdate", true)) - {return ((Long) Debug.delegate(ba, "getdate", null));} -RDebugUtils.currentLine=49545216; - //BA.debugLineNum = 49545216;BA.debugLine="Public Sub getDate As Long"; -RDebugUtils.currentLine=49545217; - //BA.debugLineNum = 49545217;BA.debugLine="Return selectedDate"; -if (true) return __ref._selecteddate /*long*/ ; -RDebugUtils.currentLine=49545218; - //BA.debugLineNum = 49545218;BA.debugLine="End Sub"; -return 0L; -} -public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdatetemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "getpanel", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "getpanel", new Object[] {_dialog}));} -RDebugUtils.currentLine=50069504; - //BA.debugLineNum = 50069504;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; -RDebugUtils.currentLine=50069505; - //BA.debugLineNum = 50069505;BA.debugLine="Return pnlDialog"; -if (true) return __ref._pnldialog /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=50069506; - //BA.debugLineNum = 50069506;BA.debugLine="End Sub"; -return null; -} -public String _selectday(reparto_izca.keymon.lat.b4xdatetemplate __ref,int _day) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "selectday", true)) - {return ((String) Debug.delegate(ba, "selectday", new Object[] {_day}));} -RDebugUtils.currentLine=49676288; - //BA.debugLineNum = 49676288;BA.debugLine="Private Sub SelectDay(day As Int)"; -RDebugUtils.currentLine=49676289; - //BA.debugLineNum = 49676289;BA.debugLine="selectedDate = DateUtils.setDate(year, month, day"; -__ref._selecteddate /*long*/ = _dateutils._setdate(ba,__ref._year /*int*/ ,__ref._month /*int*/ ,_day); -RDebugUtils.currentLine=49676290; - //BA.debugLineNum = 49676290;BA.debugLine="selectedDay = day"; -__ref._selectedday /*int*/ = _day; -RDebugUtils.currentLine=49676291; - //BA.debugLineNum = 49676291;BA.debugLine="selectedMonth = month"; -__ref._selectedmonth /*int*/ = __ref._month /*int*/ ; -RDebugUtils.currentLine=49676292; - //BA.debugLineNum = 49676292;BA.debugLine="selectedYear = year"; -__ref._selectedyear /*int*/ = __ref._year /*int*/ ; -RDebugUtils.currentLine=49676293; - //BA.debugLineNum = 49676293;BA.debugLine="End Sub"; -return ""; -} -public String _hide(reparto_izca.keymon.lat.b4xdatetemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "hide", true)) - {return ((String) Debug.delegate(ba, "hide", null));} -RDebugUtils.currentLine=49807360; - //BA.debugLineNum = 49807360;BA.debugLine="Private Sub Hide"; -RDebugUtils.currentLine=49807361; - //BA.debugLineNum = 49807361;BA.debugLine="mDialog.Close(xui.DialogResponse_Positive)"; -__ref._mdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._close /*boolean*/ (null,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive); -RDebugUtils.currentLine=49807362; - //BA.debugLineNum = 49807362;BA.debugLine="End Sub"; -return ""; -} -public String _initialize(reparto_izca.keymon.lat.b4xdatetemplate __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=49283072; - //BA.debugLineNum = 49283072;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=49283073; - //BA.debugLineNum = 49283073;BA.debugLine="pnlDialog = xui.CreatePanel(\"\")"; -__ref._pnldialog /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=49283074; - //BA.debugLineNum = 49283074;BA.debugLine="pnlDialog.SetLayoutAnimated(0, 0, 0, 320dip,300di"; -__ref._pnldialog /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (320)),__c.DipToCurrent((int) (300))); -RDebugUtils.currentLine=49283075; - //BA.debugLineNum = 49283075;BA.debugLine="pnlDialog.LoadLayout(\"DateTemplate\")"; -__ref._pnldialog /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("DateTemplate",ba); -RDebugUtils.currentLine=49283076; - //BA.debugLineNum = 49283076;BA.debugLine="pnlDialog.Tag = Me"; -__ref._pnldialog /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=49283077; - //BA.debugLineNum = 49283077;BA.debugLine="month = DateTime.GetMonth(DateTime.Now)"; -__ref._month /*int*/ = __c.DateTime.GetMonth(__c.DateTime.getNow()); -RDebugUtils.currentLine=49283078; - //BA.debugLineNum = 49283078;BA.debugLine="year = DateTime.GetYear(DateTime.Now)"; -__ref._year /*int*/ = __c.DateTime.GetYear(__c.DateTime.getNow()); -RDebugUtils.currentLine=49283079; - //BA.debugLineNum = 49283079;BA.debugLine="months = DateUtils.GetMonthsNames"; -__ref._months /*anywheresoftware.b4a.objects.collections.List*/ = _dateutils._getmonthsnames(ba); -RDebugUtils.currentLine=49283080; - //BA.debugLineNum = 49283080;BA.debugLine="selectedDate = DateTime.Now"; -__ref._selecteddate /*long*/ = __c.DateTime.getNow(); -RDebugUtils.currentLine=49283081; - //BA.debugLineNum = 49283081;BA.debugLine="setDate(selectedDate)"; -__ref._setdate /*String*/ (null,__ref._selecteddate /*long*/ ); -RDebugUtils.currentLine=49283082; - //BA.debugLineNum = 49283082;BA.debugLine="cvs.Initialize(DaysPaneFg)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(__ref._dayspanefg /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=49283083; - //BA.debugLineNum = 49283083;BA.debugLine="cvsBackground.Initialize(DaysPaneBg)"; -__ref._cvsbackground /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(__ref._dayspanebg /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=49283084; - //BA.debugLineNum = 49283084;BA.debugLine="boxW = cvs.TargetRect.Width / 7"; -__ref._boxw /*float*/ = (float) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getWidth()/(double)7); -RDebugUtils.currentLine=49283085; - //BA.debugLineNum = 49283085;BA.debugLine="boxH = cvs.TargetRect.Height / 6"; -__ref._boxh /*float*/ = (float) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getHeight()/(double)6); -RDebugUtils.currentLine=49283086; - //BA.debugLineNum = 49283086;BA.debugLine="vCorrection = 5dip"; -__ref._vcorrection /*float*/ = (float) (__c.DipToCurrent((int) (5))); -RDebugUtils.currentLine=49283087; - //BA.debugLineNum = 49283087;BA.debugLine="cvsDays.Initialize(DaysTitlesPane)"; -__ref._cvsdays /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(__ref._daystitlespane /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=49283093; - //BA.debugLineNum = 49283093;BA.debugLine="DaysOfWeekNames.Initialize"; -__ref._daysofweeknames /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=49283094; - //BA.debugLineNum = 49283094;BA.debugLine="DaysOfWeekNames.AddAll(DateUtils.GetDaysNames)"; -__ref._daysofweeknames /*anywheresoftware.b4a.objects.collections.List*/ .AddAll(_dateutils._getdaysnames(ba)); -RDebugUtils.currentLine=49283095; - //BA.debugLineNum = 49283095;BA.debugLine="End Sub"; -return ""; -} -public void _show(reparto_izca.keymon.lat.b4xdatetemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -RDebugUtils.currentModule="b4xdatetemplate"; -if (Debug.shouldDelegate(ba, "show", true)) - {Debug.delegate(ba, "show", new Object[] {_dialog}); return;} -ResumableSub_Show rsub = new ResumableSub_Show(this,__ref,_dialog); +public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ +ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog); rsub.resume(ba, null); } public static class ResumableSub_Show extends BA.ResumableSub { -public ResumableSub_Show(reparto_izca.keymon.lat.b4xdatetemplate parent,reparto_izca.keymon.lat.b4xdatetemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) { +public ResumableSub_Show(reparto_izca.keymon.lat.b4xdatetemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) { this.parent = parent; -this.__ref = __ref; this._dialog = _dialog; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xdatetemplate __ref; reparto_izca.keymon.lat.b4xdatetemplate parent; reparto_izca.keymon.lat.b4xdialog _dialog; anywheresoftware.b4a.objects.collections.List _days = null; @@ -650,7 +436,6 @@ int limit4; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xdatetemplate"; while (true) { switch (state) { @@ -660,26 +445,22 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=50135041; - //BA.debugLineNum = 50135041;BA.debugLine="Dim days As List = DaysOfWeekNames"; + //BA.debugLineNum = 177;BA.debugLine="Dim days As List = DaysOfWeekNames"; _days = new anywheresoftware.b4a.objects.collections.List(); -_days = __ref._daysofweeknames /*anywheresoftware.b4a.objects.collections.List*/ ; -RDebugUtils.currentLine=50135042; - //BA.debugLineNum = 50135042;BA.debugLine="Dim daysFont As B4XFont = xui.CreateDefaultBoldFo"; -_daysfont = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateDefaultBoldFont((float) (14)); -RDebugUtils.currentLine=50135043; - //BA.debugLineNum = 50135043;BA.debugLine="cvsDays.ClearRect(cvsDays.TargetRect)"; -__ref._cvsdays /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._cvsdays /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=50135044; - //BA.debugLineNum = 50135044;BA.debugLine="For i = FirstDay To FirstDay + 7 - 1"; +_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) (__ref._firstday /*int*/ +7-1); -_i = __ref._firstday /*int*/ ; +limit4 = (int) (parent._firstday+7-1); +_i = parent._firstday ; this.state = 11; if (true) break; @@ -698,11 +479,9 @@ if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=50135045; - //BA.debugLineNum = 50135045;BA.debugLine="Dim d As String = days.Get(i Mod 7)"; + //BA.debugLineNum = 181;BA.debugLine="Dim d As String = days.Get(i Mod 7)"; _d = BA.ObjectToString(_days.Get((int) (_i%7))); -RDebugUtils.currentLine=50135046; - //BA.debugLineNum = 50135046;BA.debugLine="If d.Length > 2 Then d = d.SubString2(0, 2)"; + //BA.debugLineNum = 182;BA.debugLine="If d.Length > 2 Then d = d.SubString2(0, 2)"; if (true) break; case 4: @@ -722,9 +501,8 @@ case 9: //C this.state = 12; ; -RDebugUtils.currentLine=50135047; - //BA.debugLineNum = 50135047;BA.debugLine="cvsDays.DrawText(d, (i - FirstDay + 0.5) * boxW,"; -__ref._cvsdays /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawText(ba,_d,(float) ((_i-__ref._firstday /*int*/ +0.5)*__ref._boxw /*float*/ ),(float) (parent.__c.DipToCurrent((int) (20))),_daysfont,__ref._daysinweekcolor /*int*/ ,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER")); + //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; @@ -732,36 +510,37 @@ case 10: //C this.state = -1; ; -RDebugUtils.currentLine=50135049; - //BA.debugLineNum = 50135049;BA.debugLine="cvsDays.Invalidate"; -__ref._cvsdays /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=50135050; - //BA.debugLineNum = 50135050;BA.debugLine="mDialog = Dialog"; -__ref._mdialog /*reparto_izca.keymon.lat.b4xdialog*/ = _dialog; -RDebugUtils.currentLine=50135051; - //BA.debugLineNum = 50135051;BA.debugLine="DrawDays"; -__ref._drawdays /*String*/ (null); -RDebugUtils.currentLine=50135052; - //BA.debugLineNum = 50135052;BA.debugLine="PreviousSelectedDate = selectedDate"; -__ref._previousselecteddate /*long*/ = __ref._selecteddate /*long*/ ; -RDebugUtils.currentLine=50135053; - //BA.debugLineNum = 50135053;BA.debugLine="Sleep(0)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xdatetemplate", "show"),(int) (0)); + //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; ; -RDebugUtils.currentLine=50135054; - //BA.debugLineNum = 50135054;BA.debugLine="SetYearsButtonState"; -__ref._setyearsbuttonstate /*String*/ (null); -RDebugUtils.currentLine=50135055; - //BA.debugLineNum = 50135055;BA.debugLine="End Sub"; + //BA.debugLineNum = 190;BA.debugLine="SetYearsButtonState"; +parent._setyearsbuttonstate(); + //BA.debugLineNum = 191;BA.debugLine="End Sub"; if (true) break; } } } } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "DIALOGCLOSED")) + return _dialogclosed(((Number)args[0]).intValue()); +if (BA.fastSubCompare(sub, "GETPANEL")) + return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xdialog.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xdialog.java index 51dfbb8..670f4cf 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xdialog.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xdialog.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xdialog"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xdialog"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xdialog extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; public int _buttonsheight = 0; public int _titlebarheight = 0; @@ -74,57 +67,17 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public boolean _close(reparto_izca.keymon.lat.b4xdialog __ref,int _result) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "close", true)) - {return ((Boolean) Debug.delegate(ba, "close", new Object[] {_result}));} -RDebugUtils.currentLine=50921472; - //BA.debugLineNum = 50921472;BA.debugLine="Public Sub Close (Result As Int) As Boolean"; -RDebugUtils.currentLine=50921473; - //BA.debugLineNum = 50921473;BA.debugLine="If getVisible Then"; -if (__ref._getvisible /*boolean*/ (null)) { -RDebugUtils.currentLine=50921474; - //BA.debugLineNum = 50921474;BA.debugLine="CallSubDelayed2(Me, \"CloseMessage\", Result)"; -__c.CallSubDelayed2(ba,this,"CloseMessage",(Object)(_result)); -RDebugUtils.currentLine=50921475; - //BA.debugLineNum = 50921475;BA.debugLine="Return True"; -if (true) return __c.True; - }; -RDebugUtils.currentLine=50921477; - //BA.debugLineNum = 50921477;BA.debugLine="Return False"; -if (true) return __c.False; -RDebugUtils.currentLine=50921478; - //BA.debugLineNum = 50921478;BA.debugLine="End Sub"; -return false; -} -public String _background_click(reparto_izca.keymon.lat.b4xdialog __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "background_click", true)) - {return ((String) Debug.delegate(ba, "background_click", null));} -RDebugUtils.currentLine=51052544; - //BA.debugLineNum = 51052544;BA.debugLine="Private Sub Background_Click"; -RDebugUtils.currentLine=51052546; - //BA.debugLineNum = 51052546;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xdialog __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "background_touch", true)) - {return ((String) Debug.delegate(ba, "background_touch", new Object[] {_action,_x,_y}));} -RDebugUtils.currentLine=50987008; - //BA.debugLineNum = 50987008;BA.debugLine="Private Sub Background_Touch (Action As Int, X As"; -RDebugUtils.currentLine=50987010; - //BA.debugLineNum = 50987010;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xdialog __ref,anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "blur", true)) - {return ((b4a.example.bitmapcreator) Debug.delegate(ba, "blur", new Object[] {_bmp}));} +public b4a.example.bitmapcreator _blur(anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp) throws Exception{ b4a.example.bitmapcreator _bc = null; int _reducescale = 0; int _count = 0; @@ -134,25 +87,18 @@ int _m = 0; int _steps = 0; int _y = 0; int _x = 0; -RDebugUtils.currentLine=51249152; - //BA.debugLineNum = 51249152;BA.debugLine="Private Sub Blur (bmp As B4XBitmap) As BitmapCreat"; -RDebugUtils.currentLine=51249153; - //BA.debugLineNum = 51249153;BA.debugLine="Dim bc As BitmapCreator"; + //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(); -RDebugUtils.currentLine=51249154; - //BA.debugLineNum = 51249154;BA.debugLine="Dim ReduceScale As Int = BlurReduceScale"; -_reducescale = __ref._blurreducescale /*int*/ ; -RDebugUtils.currentLine=51249155; - //BA.debugLineNum = 51249155;BA.debugLine="bc.Initialize(bmp.Width / ReduceScale / bmp.Scale"; + //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())); -RDebugUtils.currentLine=51249156; - //BA.debugLineNum = 51249156;BA.debugLine="bc.CopyPixelsFromBitmap(bmp)"; + //BA.debugLineNum = 291;BA.debugLine="bc.CopyPixelsFromBitmap(bmp)"; _bc._copypixelsfrombitmap(_bmp); -RDebugUtils.currentLine=51249157; - //BA.debugLineNum = 51249157;BA.debugLine="Dim count As Int = 2"; + //BA.debugLineNum = 292;BA.debugLine="Dim count As Int = 2"; _count = (int) (2); -RDebugUtils.currentLine=51249158; - //BA.debugLineNum = 51249158;BA.debugLine="Dim clrs(3) As ARGBColor"; + //BA.debugLineNum = 293;BA.debugLine="Dim clrs(3) As ARGBColor"; _clrs = new b4a.example.bitmapcreator._argbcolor[(int) (3)]; { int d0 = _clrs.length; @@ -161,131 +107,321 @@ _clrs[i0] = new b4a.example.bitmapcreator._argbcolor(); } } ; -RDebugUtils.currentLine=51249159; - //BA.debugLineNum = 51249159;BA.debugLine="Dim temp As ARGBColor"; + //BA.debugLineNum = 294;BA.debugLine="Dim temp As ARGBColor"; _temp = new b4a.example.bitmapcreator._argbcolor(); -RDebugUtils.currentLine=51249160; - //BA.debugLineNum = 51249160;BA.debugLine="Dim m As Int"; + //BA.debugLineNum = 295;BA.debugLine="Dim m As Int"; _m = 0; -RDebugUtils.currentLine=51249161; - //BA.debugLineNum = 51249161;BA.debugLine="For steps = 1 To count"; + //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 ) { -RDebugUtils.currentLine=51249162; - //BA.debugLineNum = 51249162;BA.debugLine="For y = 0 To bc.mHeight - 1"; + //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 ) { -RDebugUtils.currentLine=51249163; - //BA.debugLineNum = 51249163;BA.debugLine="For x = 0 To 2"; + //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 ) { -RDebugUtils.currentLine=51249164; - //BA.debugLineNum = 51249164;BA.debugLine="bc.GetARGB(x, y, clrs(x))"; + //BA.debugLineNum = 299;BA.debugLine="bc.GetARGB(x, y, clrs(x))"; _bc._getargb(_x,_y,_clrs[_x]); } }; -RDebugUtils.currentLine=51249166; - //BA.debugLineNum = 51249166;BA.debugLine="SetAvg(bc, 1, y, clrs, temp)"; -__ref._setavg /*String*/ (null,_bc,(int) (1),_y,_clrs,_temp); -RDebugUtils.currentLine=51249167; - //BA.debugLineNum = 51249167;BA.debugLine="m = 0"; + //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); -RDebugUtils.currentLine=51249168; - //BA.debugLineNum = 51249168;BA.debugLine="For x = 2 To bc.mWidth - 2"; + //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 ) { -RDebugUtils.currentLine=51249169; - //BA.debugLineNum = 51249169;BA.debugLine="bc.GetARGB(x + 1, y, clrs(m))"; + //BA.debugLineNum = 304;BA.debugLine="bc.GetARGB(x + 1, y, clrs(m))"; _bc._getargb((int) (_x+1),_y,_clrs[_m]); -RDebugUtils.currentLine=51249170; - //BA.debugLineNum = 51249170;BA.debugLine="m = (m + 1) Mod 3"; + //BA.debugLineNum = 305;BA.debugLine="m = (m + 1) Mod 3"; _m = (int) ((_m+1)%3); -RDebugUtils.currentLine=51249171; - //BA.debugLineNum = 51249171;BA.debugLine="SetAvg(bc, x, y, clrs, temp)"; -__ref._setavg /*String*/ (null,_bc,_x,_y,_clrs,_temp); + //BA.debugLineNum = 306;BA.debugLine="SetAvg(bc, x, y, clrs, temp)"; +_setavg(_bc,_x,_y,_clrs,_temp); } }; } }; -RDebugUtils.currentLine=51249174; - //BA.debugLineNum = 51249174;BA.debugLine="For x = 0 To bc.mWidth - 1"; + //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 ) { -RDebugUtils.currentLine=51249175; - //BA.debugLineNum = 51249175;BA.debugLine="For y = 0 To 2"; + //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 ) { -RDebugUtils.currentLine=51249176; - //BA.debugLineNum = 51249176;BA.debugLine="bc.GetARGB(x, y, clrs(y))"; + //BA.debugLineNum = 311;BA.debugLine="bc.GetARGB(x, y, clrs(y))"; _bc._getargb(_x,_y,_clrs[_y]); } }; -RDebugUtils.currentLine=51249178; - //BA.debugLineNum = 51249178;BA.debugLine="SetAvg(bc, x, 1, clrs, temp)"; -__ref._setavg /*String*/ (null,_bc,_x,(int) (1),_clrs,_temp); -RDebugUtils.currentLine=51249179; - //BA.debugLineNum = 51249179;BA.debugLine="m = 0"; + //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); -RDebugUtils.currentLine=51249180; - //BA.debugLineNum = 51249180;BA.debugLine="For y = 2 To bc.mHeight - 2"; + //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 ) { -RDebugUtils.currentLine=51249181; - //BA.debugLineNum = 51249181;BA.debugLine="bc.GetARGB(x, y + 1, clrs(m))"; + //BA.debugLineNum = 316;BA.debugLine="bc.GetARGB(x, y + 1, clrs(m))"; _bc._getargb(_x,(int) (_y+1),_clrs[_m]); -RDebugUtils.currentLine=51249182; - //BA.debugLineNum = 51249182;BA.debugLine="m = (m + 1) Mod 3"; + //BA.debugLineNum = 317;BA.debugLine="m = (m + 1) Mod 3"; _m = (int) ((_m+1)%3); -RDebugUtils.currentLine=51249183; - //BA.debugLineNum = 51249183;BA.debugLine="SetAvg(bc, x, y, clrs, temp)"; -__ref._setavg /*String*/ (null,_bc,_x,_y,_clrs,_temp); + //BA.debugLineNum = 318;BA.debugLine="SetAvg(bc, x, y, clrs, temp)"; +_setavg(_bc,_x,_y,_clrs,_temp); } }; } }; } }; -RDebugUtils.currentLine=51249187; - //BA.debugLineNum = 51249187;BA.debugLine="Return bc"; + //BA.debugLineNum = 322;BA.debugLine="Return bc"; if (true) return _bc; -RDebugUtils.currentLine=51249188; - //BA.debugLineNum = 51249188;BA.debugLine="End Sub"; + //BA.debugLineNum = 323;BA.debugLine="End Sub"; return null; } -public String _setavg(reparto_izca.keymon.lat.b4xdialog __ref,b4a.example.bitmapcreator _bc,int _x,int _y,b4a.example.bitmapcreator._argbcolor[] _clrs,b4a.example.bitmapcreator._argbcolor _temp) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "setavg", true)) - {return ((String) Debug.delegate(ba, "setavg", new Object[] {_bc,_x,_y,_clrs,_temp}));} +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; -RDebugUtils.currentLine=51314688; - //BA.debugLineNum = 51314688;BA.debugLine="Private Sub SetAvg(bc As BitmapCreator, x As Int,"; -RDebugUtils.currentLine=51314689; - //BA.debugLineNum = 51314689;BA.debugLine="temp.Initialize"; + //BA.debugLineNum = 325;BA.debugLine="Private Sub SetAvg(bc As BitmapCreator, x As Int,"; + //BA.debugLineNum = 326;BA.debugLine="temp.Initialize"; _temp.Initialize(); -RDebugUtils.currentLine=51314690; - //BA.debugLineNum = 51314690;BA.debugLine="For Each c As ARGBColor In clrs"; + //BA.debugLineNum = 327;BA.debugLine="For Each c As ARGBColor In clrs"; { final b4a.example.bitmapcreator._argbcolor[] group2 = _clrs; final int groupLen2 = group2.length @@ -293,462 +429,61 @@ final int groupLen2 = group2.length ; for (; index2 < groupLen2;index2++){ _c = group2[index2]; -RDebugUtils.currentLine=51314691; - //BA.debugLineNum = 51314691;BA.debugLine="temp.r = temp.r + c.r"; + //BA.debugLineNum = 328;BA.debugLine="temp.r = temp.r + c.r"; _temp.r = (int) (_temp.r+_c.r); -RDebugUtils.currentLine=51314692; - //BA.debugLineNum = 51314692;BA.debugLine="temp.g = temp.g + c.g"; + //BA.debugLineNum = 329;BA.debugLine="temp.g = temp.g + c.g"; _temp.g = (int) (_temp.g+_c.g); -RDebugUtils.currentLine=51314693; - //BA.debugLineNum = 51314693;BA.debugLine="temp.b = temp.b + c.b"; + //BA.debugLineNum = 330;BA.debugLine="temp.b = temp.b + c.b"; _temp.b = (int) (_temp.b+_c.b); } }; -RDebugUtils.currentLine=51314695; - //BA.debugLineNum = 51314695;BA.debugLine="temp.a = 255"; + //BA.debugLineNum = 332;BA.debugLine="temp.a = 255"; _temp.a = (int) (255); -RDebugUtils.currentLine=51314696; - //BA.debugLineNum = 51314696;BA.debugLine="temp.r = temp.r / 3"; + //BA.debugLineNum = 333;BA.debugLine="temp.r = temp.r / 3"; _temp.r = (int) (_temp.r/(double)3); -RDebugUtils.currentLine=51314697; - //BA.debugLineNum = 51314697;BA.debugLine="temp.g = temp.g / 3"; + //BA.debugLineNum = 334;BA.debugLine="temp.g = temp.g / 3"; _temp.g = (int) (_temp.g/(double)3); -RDebugUtils.currentLine=51314698; - //BA.debugLineNum = 51314698;BA.debugLine="temp.b = temp.b / 3"; + //BA.debugLineNum = 335;BA.debugLine="temp.b = temp.b / 3"; _temp.b = (int) (_temp.b/(double)3); -RDebugUtils.currentLine=51314699; - //BA.debugLineNum = 51314699;BA.debugLine="bc.SetARGB(x, y, temp)"; + //BA.debugLineNum = 336;BA.debugLine="bc.SetARGB(x, y, temp)"; _bc._setargb(_x,_y,_temp); -RDebugUtils.currentLine=51314700; - //BA.debugLineNum = 51314700;BA.debugLine="End Sub"; + //BA.debugLineNum = 337;BA.debugLine="End Sub"; return ""; } -public String _button_click(reparto_izca.keymon.lat.b4xdialog __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "button_click", true)) - {return ((String) Debug.delegate(ba, "button_click", null));} +public String _setbuttonstate(int _resultcode,boolean _enabled) throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _b = null; -RDebugUtils.currentLine=50855936; - //BA.debugLineNum = 50855936;BA.debugLine="Private Sub Button_Click"; -RDebugUtils.currentLine=50855937; - //BA.debugLineNum = 50855937;BA.debugLine="Dim b As B4XView = Sender"; + //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 = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba))); -RDebugUtils.currentLine=50855938; - //BA.debugLineNum = 50855938;BA.debugLine="If ButtonsState.GetDefault(b.Tag, True) = False T"; -if ((__ref._buttonsstate /*anywheresoftware.b4a.objects.collections.Map*/ .GetDefault(_b.getTag(),(Object)(__c.True))).equals((Object)(__c.False))) { -if (true) return "";}; -RDebugUtils.currentLine=50855939; - //BA.debugLineNum = 50855939;BA.debugLine="Close(b.Tag)"; -__ref._close /*boolean*/ (null,(int)(BA.ObjectToNumber(_b.getTag()))); -RDebugUtils.currentLine=50855940; - //BA.debugLineNum = 50855940;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.b4xdialog __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -RDebugUtils.currentLine=50266112; - //BA.debugLineNum = 50266112;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=50266113; - //BA.debugLineNum = 50266113;BA.debugLine="Private xui As XUI"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=50266114; - //BA.debugLineNum = 50266114;BA.debugLine="Public ButtonsHeight As Int = 40dip"; -_buttonsheight = __c.DipToCurrent((int) (40)); -RDebugUtils.currentLine=50266115; - //BA.debugLineNum = 50266115;BA.debugLine="Public TitleBarHeight As Int = 30dip"; -_titlebarheight = __c.DipToCurrent((int) (30)); -RDebugUtils.currentLine=50266116; - //BA.debugLineNum = 50266116;BA.debugLine="Private ButtonWidth As Int = 80dip"; -_buttonwidth = __c.DipToCurrent((int) (80)); -RDebugUtils.currentLine=50266117; - //BA.debugLineNum = 50266117;BA.debugLine="Public Base As B4XView"; -_base = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=50266118; - //BA.debugLineNum = 50266118;BA.debugLine="Public BackgroundColor As Int = 0xFF555555 'base"; -_backgroundcolor = ((int)0xff555555); -RDebugUtils.currentLine=50266119; - //BA.debugLineNum = 50266119;BA.debugLine="Public OverlayColor As Int = 0xaa000000"; -_overlaycolor = ((int)0xaa000000); -RDebugUtils.currentLine=50266120; - //BA.debugLineNum = 50266120;BA.debugLine="Public BorderColor As Int = 0xff000000"; -_bordercolor = ((int)0xff000000); -RDebugUtils.currentLine=50266121; - //BA.debugLineNum = 50266121;BA.debugLine="Public BorderCornersRadius As Int = 2dip"; -_bordercornersradius = __c.DipToCurrent((int) (2)); -RDebugUtils.currentLine=50266122; - //BA.debugLineNum = 50266122;BA.debugLine="Public BorderWidth As Int = 2dip"; -_borderwidth = __c.DipToCurrent((int) (2)); -RDebugUtils.currentLine=50266123; - //BA.debugLineNum = 50266123;BA.debugLine="Public ButtonsColor As Int = 0xFF555555"; -_buttonscolor = ((int)0xff555555); -RDebugUtils.currentLine=50266124; - //BA.debugLineNum = 50266124;BA.debugLine="Public ButtonsTextColor As Int = 0xFF89D5FF"; -_buttonstextcolor = ((int)0xff89d5ff); -RDebugUtils.currentLine=50266125; - //BA.debugLineNum = 50266125;BA.debugLine="Private Background As B4XView"; -_background = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=50266126; - //BA.debugLineNum = 50266126;BA.debugLine="Private BlurImageView As B4XView"; -_blurimageview = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=50266127; - //BA.debugLineNum = 50266127;BA.debugLine="Public BlurBackground As Boolean"; -_blurbackground = false; -RDebugUtils.currentLine=50266128; - //BA.debugLineNum = 50266128;BA.debugLine="Private BlurReduceScale As Int"; -_blurreducescale = 0; -RDebugUtils.currentLine=50266129; - //BA.debugLineNum = 50266129;BA.debugLine="Public mParent As B4XView"; -_mparent = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=50266130; - //BA.debugLineNum = 50266130;BA.debugLine="Public Title As Object = \"\""; -_title = (Object)(""); -RDebugUtils.currentLine=50266131; - //BA.debugLineNum = 50266131;BA.debugLine="Public TitleBarColor As Int = 0xFF0083B8"; -_titlebarcolor = ((int)0xff0083b8); -RDebugUtils.currentLine=50266132; - //BA.debugLineNum = 50266132;BA.debugLine="Public TitleBarTextColor As Int"; -_titlebartextcolor = 0; -RDebugUtils.currentLine=50266133; - //BA.debugLineNum = 50266133;BA.debugLine="Public BodyTextColor As Int = xui.Color_White"; -_bodytextcolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -RDebugUtils.currentLine=50266134; - //BA.debugLineNum = 50266134;BA.debugLine="Public TitleBar As B4XView"; -_titlebar = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=50266135; - //BA.debugLineNum = 50266135;BA.debugLine="Public PutAtTop As Boolean"; -_putattop = false; -RDebugUtils.currentLine=50266136; - //BA.debugLineNum = 50266136;BA.debugLine="Public TitleBarFont As B4XFont"; -_titlebarfont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont(); -RDebugUtils.currentLine=50266137; - //BA.debugLineNum = 50266137;BA.debugLine="Public ButtonsFont As B4XFont"; -_buttonsfont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont(); -RDebugUtils.currentLine=50266138; - //BA.debugLineNum = 50266138;BA.debugLine="Public ButtonsTextColorDisabled As Int = 0xFF8080"; -_buttonstextcolordisabled = ((int)0xff808080); -RDebugUtils.currentLine=50266139; - //BA.debugLineNum = 50266139;BA.debugLine="Public VisibleAnimationDuration As Int = 100"; -_visibleanimationduration = (int) (100); -RDebugUtils.currentLine=50266140; - //BA.debugLineNum = 50266140;BA.debugLine="Public ButtonsOrder() As Int = Array As Int(xui.D"; -_buttonsorder = new int[]{__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Negative,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Cancel}; -RDebugUtils.currentLine=50266141; - //BA.debugLineNum = 50266141;BA.debugLine="Public ButtonsState As Map"; -_buttonsstate = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=50266142; - //BA.debugLineNum = 50266142;BA.debugLine="End Sub"; -return ""; -} -public boolean _getvisible(reparto_izca.keymon.lat.b4xdialog __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "getvisible", true)) - {return ((Boolean) Debug.delegate(ba, "getvisible", null));} -RDebugUtils.currentLine=50593792; - //BA.debugLineNum = 50593792;BA.debugLine="Public Sub getVisible As Boolean"; -RDebugUtils.currentLine=50593793; - //BA.debugLineNum = 50593793;BA.debugLine="Return Background.IsInitialized And Background.Pa"; -if (true) return __ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized() && __ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getParent().IsInitialized(); -RDebugUtils.currentLine=50593794; - //BA.debugLineNum = 50593794;BA.debugLine="End Sub"; -return false; -} -public String _createbutton(reparto_izca.keymon.lat.b4xdialog __ref,Object _text,int _code) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "createbutton", true)) - {return ((String) Debug.delegate(ba, "createbutton", new Object[] {_text,_code}));} -anywheresoftware.b4a.objects.LabelWrapper _btn = null; -anywheresoftware.b4a.objects.B4XViewWrapper _xbtn = null; -int _numberofbuttons = 0; -RDebugUtils.currentLine=50659328; - //BA.debugLineNum = 50659328;BA.debugLine="Private Sub CreateButton (Text As Object, Code As"; -RDebugUtils.currentLine=50659329; - //BA.debugLineNum = 50659329;BA.debugLine="If Text = \"\" Then Return"; -if ((_text).equals((Object)(""))) { -if (true) return "";}; -RDebugUtils.currentLine=50659333; - //BA.debugLineNum = 50659333;BA.debugLine="Dim btn As Label"; -_btn = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=50659335; - //BA.debugLineNum = 50659335;BA.debugLine="btn.Initialize(\"Button\")"; -_btn.Initialize(ba,"Button"); -RDebugUtils.currentLine=50659336; - //BA.debugLineNum = 50659336;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())); -RDebugUtils.currentLine=50659337; - //BA.debugLineNum = 50659337;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xbtn, Tex"; -_xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_xbtn,_text); -RDebugUtils.currentLine=50659338; - //BA.debugLineNum = 50659338;BA.debugLine="xbtn.Tag = Code"; -_xbtn.setTag((Object)(_code)); -RDebugUtils.currentLine=50659339; - //BA.debugLineNum = 50659339;BA.debugLine="xbtn.SetColorAndBorder(ButtonsColor, 0dip, Border"; -_xbtn.SetColorAndBorder(__ref._buttonscolor /*int*/ ,__c.DipToCurrent((int) (0)),__ref._bordercolor /*int*/ ,__c.DipToCurrent((int) (5))); -RDebugUtils.currentLine=50659340; - //BA.debugLineNum = 50659340;BA.debugLine="xbtn.SetTextAlignment(\"CENTER\", \"CENTER\")"; -_xbtn.SetTextAlignment("CENTER","CENTER"); -RDebugUtils.currentLine=50659341; - //BA.debugLineNum = 50659341;BA.debugLine="xbtn.TextColor = ButtonsTextColor"; -_xbtn.setTextColor(__ref._buttonstextcolor /*int*/ ); -RDebugUtils.currentLine=50659342; - //BA.debugLineNum = 50659342;BA.debugLine="xbtn.Font = ButtonsFont"; -_xbtn.setFont(__ref._buttonsfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ); -RDebugUtils.currentLine=50659343; - //BA.debugLineNum = 50659343;BA.debugLine="Dim numberOfButtons As Int = Base.NumberOfViews '"; -_numberofbuttons = __ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getNumberOfViews(); -RDebugUtils.currentLine=50659344; - //BA.debugLineNum = 50659344;BA.debugLine="Base.AddView(xbtn, Base.Width - 4dip - numberOfBu"; -__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_xbtn.getObject()),(int) (__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-__c.DipToCurrent((int) (4))-_numberofbuttons*(__ref._buttonwidth /*int*/ +__c.DipToCurrent((int) (5)))-__ref._buttonwidth /*int*/ ),(int) (__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-__ref._buttonsheight /*int*/ -__c.DipToCurrent((int) (4))),__ref._buttonwidth /*int*/ ,__ref._buttonsheight /*int*/ ); -RDebugUtils.currentLine=50659346; - //BA.debugLineNum = 50659346;BA.debugLine="If Code = xui.DialogResponse_Cancel Then xbtn.Req"; -if (_code==__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Cancel) { -_xbtn.RequestFocus();}; -RDebugUtils.currentLine=50659347; - //BA.debugLineNum = 50659347;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.B4XViewWrapper _getbutton(reparto_izca.keymon.lat.b4xdialog __ref,int _resultcode) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "getbutton", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "getbutton", new Object[] {_resultcode}));} -anywheresoftware.b4a.objects.B4XViewWrapper _b = null; -RDebugUtils.currentLine=50724864; - //BA.debugLineNum = 50724864;BA.debugLine="Public Sub GetButton (ResultCode As Int) As B4XVie"; -RDebugUtils.currentLine=50724865; - //BA.debugLineNum = 50724865;BA.debugLine="For Each b As B4XView In Base.GetAllViewsRecursiv"; -_b = new anywheresoftware.b4a.objects.B4XViewWrapper(); -{ -final anywheresoftware.b4a.BA.IterableList group1 = __ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .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))); -RDebugUtils.currentLine=50724866; - //BA.debugLineNum = 50724866;BA.debugLine="If b.Tag = ResultCode Then Return b 'ignore"; -if ((_b.getTag()).equals((Object)(_resultcode))) { -if (true) return _b;}; - } -}; -RDebugUtils.currentLine=50724868; - //BA.debugLineNum = 50724868;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)); -RDebugUtils.currentLine=50724869; - //BA.debugLineNum = 50724869;BA.debugLine="End Sub"; -return null; -} -public String _initialize(reparto_izca.keymon.lat.b4xdialog __ref,anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.B4XViewWrapper _parent) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_parent}));} -RDebugUtils.currentLine=50331648; - //BA.debugLineNum = 50331648;BA.debugLine="Public Sub Initialize (Parent As B4XView)"; -RDebugUtils.currentLine=50331649; - //BA.debugLineNum = 50331649;BA.debugLine="BlurBackground = False"; -__ref._blurbackground /*boolean*/ = __c.False; -RDebugUtils.currentLine=50331650; - //BA.debugLineNum = 50331650;BA.debugLine="If xui.IsB4i Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i()) { -RDebugUtils.currentLine=50331651; - //BA.debugLineNum = 50331651;BA.debugLine="BlurReduceScale = 3"; -__ref._blurreducescale /*int*/ = (int) (3); - }else -{RDebugUtils.currentLine=50331652; - //BA.debugLineNum = 50331652;BA.debugLine="Else If xui.IsB4J Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) { -RDebugUtils.currentLine=50331653; - //BA.debugLineNum = 50331653;BA.debugLine="BlurReduceScale = 1"; -__ref._blurreducescale /*int*/ = (int) (1); - }else -{RDebugUtils.currentLine=50331654; - //BA.debugLineNum = 50331654;BA.debugLine="Else if xui.IsB4A Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A()) { -RDebugUtils.currentLine=50331655; - //BA.debugLineNum = 50331655;BA.debugLine="BlurReduceScale = 3"; -__ref._blurreducescale /*int*/ = (int) (3); - }}} -; -RDebugUtils.currentLine=50331657; - //BA.debugLineNum = 50331657;BA.debugLine="mParent = Parent"; -__ref._mparent /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _parent; -RDebugUtils.currentLine=50331663; - //BA.debugLineNum = 50331663;BA.debugLine="TitleBarFont = xui.CreateDefaultBoldFont(16)"; -__ref._titlebarfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateDefaultBoldFont((float) (16)); -RDebugUtils.currentLine=50331664; - //BA.debugLineNum = 50331664;BA.debugLine="ButtonsFont = xui.CreateDefaultBoldFont(15)"; -__ref._buttonsfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateDefaultBoldFont((float) (15)); -RDebugUtils.currentLine=50331665; - //BA.debugLineNum = 50331665;BA.debugLine="TitleBarTextColor = xui.Color_White"; -__ref._titlebartextcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -RDebugUtils.currentLine=50331666; - //BA.debugLineNum = 50331666;BA.debugLine="ButtonsState.Initialize"; -__ref._buttonsstate /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); -RDebugUtils.currentLine=50331667; - //BA.debugLineNum = 50331667;BA.debugLine="End Sub"; -return ""; -} -public String _internaladdstubtoclvifneeded(reparto_izca.keymon.lat.b4xdialog __ref,b4a.example3.customlistview _customlistview1,int _color) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "internaladdstubtoclvifneeded", true)) - {return ((String) Debug.delegate(ba, "internaladdstubtoclvifneeded", new Object[] {_customlistview1,_color}));} -RDebugUtils.currentLine=51445760; - //BA.debugLineNum = 51445760;BA.debugLine="Public Sub InternalAddStubToCLVIfNeeded(CustomList"; -RDebugUtils.currentLine=51445761; - //BA.debugLineNum = 51445761;BA.debugLine="XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView"; -_xuiviewsutils._addstubtoclvifneeded /*String*/ (ba,_customlistview1,_color); -RDebugUtils.currentLine=51445762; - //BA.debugLineNum = 51445762;BA.debugLine="End Sub"; -return ""; -} -public String _internalsettextorcsbuildertolabel(reparto_izca.keymon.lat.b4xdialog __ref,anywheresoftware.b4a.objects.B4XViewWrapper _xlbl,Object _text) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "internalsettextorcsbuildertolabel", true)) - {return ((String) Debug.delegate(ba, "internalsettextorcsbuildertolabel", new Object[] {_xlbl,_text}));} -RDebugUtils.currentLine=51380224; - //BA.debugLineNum = 51380224;BA.debugLine="Public Sub InternalSetTextOrCSBuilderToLabel(xlbl"; -RDebugUtils.currentLine=51380225; - //BA.debugLineNum = 51380225;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xlbl, Tex"; -_xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_xlbl,_text); -RDebugUtils.currentLine=51380226; - //BA.debugLineNum = 51380226;BA.debugLine="End Sub"; -return ""; -} -public String _resize(reparto_izca.keymon.lat.b4xdialog __ref,int _width,int _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "resize", true)) - {return ((String) Debug.delegate(ba, "resize", new Object[] {_width,_height}));} -int _top = 0; -RDebugUtils.currentLine=51118080; - //BA.debugLineNum = 51118080;BA.debugLine="Public Sub Resize (Width As Int, Height As Int)"; -RDebugUtils.currentLine=51118082; - //BA.debugLineNum = 51118082;BA.debugLine="Dim Top As Int = Round(Background.Height / 2 - Ba"; -_top = (int) (__c.Round(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2-__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2)); -RDebugUtils.currentLine=51118083; - //BA.debugLineNum = 51118083;BA.debugLine="If PutAtTop Then Top = 20dip"; -if (__ref._putattop /*boolean*/ ) { -_top = __c.DipToCurrent((int) (20));}; -RDebugUtils.currentLine=51118084; - //BA.debugLineNum = 51118084;BA.debugLine="Background.SetLayoutAnimated(0, 0, 0, Width, Heig"; -__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=51118085; - //BA.debugLineNum = 51118085;BA.debugLine="Base.SetLayoutAnimated(200, Round(Background.Widt"; -__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (200),(int) (__c.Round(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2-__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2)),_top,__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=51118086; - //BA.debugLineNum = 51118086;BA.debugLine="If xui.IsB4J Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) { -RDebugUtils.currentLine=51118087; - //BA.debugLineNum = 51118087;BA.debugLine="UpdateBlur"; -__ref._updateblur /*String*/ (null); - }; -RDebugUtils.currentLine=51118089; - //BA.debugLineNum = 51118089;BA.debugLine="End Sub"; -return ""; -} -public String _updateblur(reparto_izca.keymon.lat.b4xdialog __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "updateblur", true)) - {return ((String) Debug.delegate(ba, "updateblur", null));} -anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _source = null; -b4a.example.bitmapcreator _blurred = null; -RDebugUtils.currentLine=51183616; - //BA.debugLineNum = 51183616;BA.debugLine="Private Sub UpdateBlur"; -RDebugUtils.currentLine=51183617; - //BA.debugLineNum = 51183617;BA.debugLine="If BlurBackground = False Then Return"; -if (__ref._blurbackground /*boolean*/ ==__c.False) { -if (true) return "";}; -RDebugUtils.currentLine=51183618; - //BA.debugLineNum = 51183618;BA.debugLine="Background.Visible = False"; -__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=51183619; - //BA.debugLineNum = 51183619;BA.debugLine="Dim source As B4XBitmap = Background.Parent.Snaps"; -_source = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); -_source = __ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getParent().Snapshot(); -RDebugUtils.currentLine=51183620; - //BA.debugLineNum = 51183620;BA.debugLine="If source.Width > Background.Width Or source.Heig"; -if (_source.getWidth()>__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth() || _source.getHeight()>__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()) { -RDebugUtils.currentLine=51183621; - //BA.debugLineNum = 51183621;BA.debugLine="source = source.Crop(0, 0, Background.Width, Bac"; -_source = _source.Crop((int) (0),(int) (0),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); - }; -RDebugUtils.currentLine=51183623; - //BA.debugLineNum = 51183623;BA.debugLine="Background.Visible = True"; -__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=51183624; - //BA.debugLineNum = 51183624;BA.debugLine="BlurImageView.SetLayoutAnimated(0, 0, 0, Backgrou"; -__ref._blurimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=51183625; - //BA.debugLineNum = 51183625;BA.debugLine="Dim blurred As BitmapCreator = Blur(source)"; -_blurred = __ref._blur /*b4a.example.bitmapcreator*/ (null,_source); -RDebugUtils.currentLine=51183626; - //BA.debugLineNum = 51183626;BA.debugLine="blurred.SetBitmapToImageView(blurred.Bitmap, Blur"; -_blurred._setbitmaptoimageview(_blurred._getbitmap(),__ref._blurimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=51183627; - //BA.debugLineNum = 51183627;BA.debugLine="End Sub"; -return ""; -} -public String _setbuttonstate(reparto_izca.keymon.lat.b4xdialog __ref,int _resultcode,boolean _enabled) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "setbuttonstate", true)) - {return ((String) Debug.delegate(ba, "setbuttonstate", new Object[] {_resultcode,_enabled}));} -anywheresoftware.b4a.objects.B4XViewWrapper _b = null; -RDebugUtils.currentLine=50790400; - //BA.debugLineNum = 50790400;BA.debugLine="Public Sub SetButtonState (ResultCode As Int, Enab"; -RDebugUtils.currentLine=50790401; - //BA.debugLineNum = 50790401;BA.debugLine="Dim b As B4XView = GetButton(ResultCode)"; -_b = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_b = __ref._getbutton /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null,_resultcode); -RDebugUtils.currentLine=50790402; - //BA.debugLineNum = 50790402;BA.debugLine="If b.IsInitialized Then"; +_b = _getbutton(_resultcode); + //BA.debugLineNum = 225;BA.debugLine="If b.IsInitialized Then"; if (_b.IsInitialized()) { -RDebugUtils.currentLine=50790403; - //BA.debugLineNum = 50790403;BA.debugLine="b.Enabled = Enabled"; + //BA.debugLineNum = 226;BA.debugLine="b.Enabled = Enabled"; _b.setEnabled(_enabled); -RDebugUtils.currentLine=50790404; - //BA.debugLineNum = 50790404;BA.debugLine="If Enabled Then b.TextColor = ButtonsTextColor E"; + //BA.debugLineNum = 227;BA.debugLine="If Enabled Then b.TextColor = ButtonsTextColor E"; if (_enabled) { -_b.setTextColor(__ref._buttonstextcolor /*int*/ );} +_b.setTextColor(_buttonstextcolor);} else { -_b.setTextColor(__ref._buttonstextcolordisabled /*int*/ );}; -RDebugUtils.currentLine=50790405; - //BA.debugLineNum = 50790405;BA.debugLine="ButtonsState.Put(ResultCode, Enabled)"; -__ref._buttonsstate /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)(_resultcode),(Object)(_enabled)); +_b.setTextColor(_buttonstextcolordisabled);}; + //BA.debugLineNum = 228;BA.debugLine="ButtonsState.Put(ResultCode, Enabled)"; +_buttonsstate.Put((Object)(_resultcode),(Object)(_enabled)); }; -RDebugUtils.currentLine=50790407; - //BA.debugLineNum = 50790407;BA.debugLine="End Sub"; + //BA.debugLineNum = 230;BA.debugLine="End Sub"; return ""; } -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _show(reparto_izca.keymon.lat.b4xdialog __ref,Object _text,Object _yes,Object _no,Object _cancel) throws Exception{ -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "show", true)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "show", new Object[] {_text,_yes,_no,_cancel}));} -ResumableSub_Show rsub = new ResumableSub_Show(this,__ref,_text,_yes,_no,_cancel); +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _show(Object _text,Object _yes,Object _no,Object _cancel) throws Exception{ +ResumableSub_Show rsub = new ResumableSub_Show(this,_text,_yes,_no,_cancel); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_Show extends BA.ResumableSub { -public ResumableSub_Show(reparto_izca.keymon.lat.b4xdialog parent,reparto_izca.keymon.lat.b4xdialog __ref,Object _text,Object _yes,Object _no,Object _cancel) { +public ResumableSub_Show(reparto_izca.keymon.lat.b4xdialog parent,Object _text,Object _yes,Object _no,Object _cancel) { this.parent = parent; -this.__ref = __ref; this._text = _text; this._yes = _yes; this._no = _no; this._cancel = _cancel; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xdialog __ref; reparto_izca.keymon.lat.b4xdialog parent; Object _text; Object _yes; @@ -761,7 +496,6 @@ int _result = 0; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xdialog"; while (true) { switch (state) { @@ -771,84 +505,65 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = -1; -RDebugUtils.currentLine=50462721; - //BA.debugLineNum = 50462721;BA.debugLine="Dim p As B4XView"; + //BA.debugLineNum = 75;BA.debugLine="Dim p As B4XView"; _p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=50462722; - //BA.debugLineNum = 50462722;BA.debugLine="p = xui.CreatePanel(\"\")"; -_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=50462723; - //BA.debugLineNum = 50462723;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 300dip, 100dip)"; + //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))); -RDebugUtils.currentLine=50462724; - //BA.debugLineNum = 50462724;BA.debugLine="Dim lbl As Label"; + //BA.debugLineNum = 78;BA.debugLine="Dim lbl As Label"; _lbl = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=50462725; - //BA.debugLineNum = 50462725;BA.debugLine="lbl.Initialize(\"\")"; + //BA.debugLineNum = 79;BA.debugLine="lbl.Initialize(\"\")"; _lbl.Initialize(ba,""); -RDebugUtils.currentLine=50462729; - //BA.debugLineNum = 50462729;BA.debugLine="lbl.SingleLine = False"; + //BA.debugLineNum = 83;BA.debugLine="lbl.SingleLine = False"; _lbl.setSingleLine(parent.__c.False); -RDebugUtils.currentLine=50462733; - //BA.debugLineNum = 50462733;BA.debugLine="Dim xlbl As B4XView = lbl"; + //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())); -RDebugUtils.currentLine=50462734; - //BA.debugLineNum = 50462734;BA.debugLine="p.AddView(xlbl, 5dip, 0, p.Width - 10dip, p.Heigh"; + //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()); -RDebugUtils.currentLine=50462735; - //BA.debugLineNum = 50462735;BA.debugLine="xlbl.TextColor = BodyTextColor"; -_xlbl.setTextColor(__ref._bodytextcolor /*int*/ ); -RDebugUtils.currentLine=50462736; - //BA.debugLineNum = 50462736;BA.debugLine="xlbl.Font = TitleBarFont"; -_xlbl.setFont(__ref._titlebarfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ); -RDebugUtils.currentLine=50462737; - //BA.debugLineNum = 50462737;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(xlbl, Tex"; + //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); -RDebugUtils.currentLine=50462738; - //BA.debugLineNum = 50462738;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"LEFT\")"; + //BA.debugLineNum = 92;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"LEFT\")"; _xlbl.SetTextAlignment("CENTER","LEFT"); -RDebugUtils.currentLine=50462739; - //BA.debugLineNum = 50462739;BA.debugLine="Wait For (ShowCustom(p, Yes, No, Cancel)) Complet"; -parent.__c.WaitFor("complete", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xdialog", "show"), __ref._showcustom /*anywheresoftware.b4a.keywords.Common.ResumableSubWrapper*/ (null,_p,_yes,_no,_cancel)); + //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[1]; +_result = (Integer) result[0]; ; -RDebugUtils.currentLine=50462740; - //BA.debugLineNum = 50462740;BA.debugLine="Return Result"; + //BA.debugLineNum = 94;BA.debugLine="Return Result"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(_result));return;}; -RDebugUtils.currentLine=50462741; - //BA.debugLineNum = 50462741;BA.debugLine="End Sub"; + //BA.debugLineNum = 95;BA.debugLine="End Sub"; if (true) break; } } } } -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _showcustom(reparto_izca.keymon.lat.b4xdialog __ref,anywheresoftware.b4a.objects.B4XViewWrapper _content,Object _yes,Object _no,Object _cancel) throws Exception{ -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "showcustom", true)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "showcustom", new Object[] {_content,_yes,_no,_cancel}));} -ResumableSub_ShowCustom rsub = new ResumableSub_ShowCustom(this,__ref,_content,_yes,_no,_cancel); +public void _complete(int _result) throws Exception{ +} +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _showcustom(anywheresoftware.b4a.objects.B4XViewWrapper _content,Object _yes,Object _no,Object _cancel) throws Exception{ +ResumableSub_ShowCustom rsub = new ResumableSub_ShowCustom(this,_content,_yes,_no,_cancel); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_ShowCustom extends BA.ResumableSub { -public ResumableSub_ShowCustom(reparto_izca.keymon.lat.b4xdialog parent,reparto_izca.keymon.lat.b4xdialog __ref,anywheresoftware.b4a.objects.B4XViewWrapper _content,Object _yes,Object _no,Object _cancel) { +public ResumableSub_ShowCustom(reparto_izca.keymon.lat.b4xdialog parent,anywheresoftware.b4a.objects.B4XViewWrapper _content,Object _yes,Object _no,Object _cancel) { this.parent = parent; -this.__ref = __ref; this._content = _content; this._yes = _yes; this._no = _no; this._cancel = _cancel; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xdialog __ref; reparto_izca.keymon.lat.b4xdialog parent; anywheresoftware.b4a.objects.B4XViewWrapper _content; Object _yes; @@ -882,7 +597,6 @@ int groupLen78; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xdialog"; while (true) { switch (state) { @@ -892,15 +606,14 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = 1; -RDebugUtils.currentLine=50528257; - //BA.debugLineNum = 50528257;BA.debugLine="For Each v As B4XView In mParent.GetAllViewsRecur"; + //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 = __ref._mparent /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetAllViewsRecursive(); +group1 = parent._mparent.GetAllViewsRecursive(); index1 = 0; groupLen1 = group1.getSize(); this.state = 60; @@ -923,8 +636,7 @@ if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=50528258; - //BA.debugLineNum = 50528258;BA.debugLine="If v.Tag <> Null And v.Tag = \"b4xdialog_backgrou"; + //BA.debugLineNum = 99;BA.debugLine="If v.Tag <> Null And v.Tag = \"b4xdialog_backgrou"; if (true) break; case 4: @@ -937,11 +649,9 @@ this.state = 6; case 6: //C this.state = 7; -RDebugUtils.currentLine=50528259; - //BA.debugLineNum = 50528259;BA.debugLine="v.RemoveViewFromParent"; + //BA.debugLineNum = 100;BA.debugLine="v.RemoveViewFromParent"; _v.RemoveViewFromParent(); -RDebugUtils.currentLine=50528260; - //BA.debugLineNum = 50528260;BA.debugLine="Exit"; + //BA.debugLineNum = 101;BA.debugLine="Exit"; this.state = 8; if (true) break; if (true) break; @@ -957,24 +667,20 @@ case 8: //C this.state = 9; ; -RDebugUtils.currentLine=50528263; - //BA.debugLineNum = 50528263;BA.debugLine="ButtonsState.Clear"; -__ref._buttonsstate /*anywheresoftware.b4a.objects.collections.Map*/ .Clear(); -RDebugUtils.currentLine=50528264; - //BA.debugLineNum = 50528264;BA.debugLine="Dim Background As B4XView = xui.CreatePanel(\"back"; + //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 = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"background"); -RDebugUtils.currentLine=50528265; - //BA.debugLineNum = 50528265;BA.debugLine="Background.Tag = \"b4xdialog_background\""; -__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag((Object)("b4xdialog_background")); -RDebugUtils.currentLine=50528266; - //BA.debugLineNum = 50528266;BA.debugLine="If BlurBackground Then"; +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 (__ref._blurbackground /*boolean*/ ) { +if (parent._blurbackground) { this.state = 11; }else { this.state = 13; @@ -983,65 +689,49 @@ this.state = 13; case 11: //C this.state = 14; -RDebugUtils.currentLine=50528267; - //BA.debugLineNum = 50528267;BA.debugLine="Dim iv As ImageView"; + //BA.debugLineNum = 108;BA.debugLine="Dim iv As ImageView"; _iv = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=50528268; - //BA.debugLineNum = 50528268;BA.debugLine="iv.Initialize(\"\")"; + //BA.debugLineNum = 109;BA.debugLine="iv.Initialize(\"\")"; _iv.Initialize(ba,""); -RDebugUtils.currentLine=50528269; - //BA.debugLineNum = 50528269;BA.debugLine="BlurImageView = iv"; -__ref._blurimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iv.getObject())); -RDebugUtils.currentLine=50528270; - //BA.debugLineNum = 50528270;BA.debugLine="Background.AddView(BlurImageView, 0, 0, Backgrou"; -__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._blurimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=50528271; - //BA.debugLineNum = 50528271;BA.debugLine="Background.Color = xui.Color_Transparent"; -__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); + //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; -RDebugUtils.currentLine=50528273; - //BA.debugLineNum = 50528273;BA.debugLine="Background.Color = OverlayColor"; -__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__ref._overlaycolor /*int*/ ); + //BA.debugLineNum = 114;BA.debugLine="Background.Color = OverlayColor"; +parent._background.setColor(parent._overlaycolor); if (true) break; case 14: //C this.state = 15; ; -RDebugUtils.currentLine=50528276; - //BA.debugLineNum = 50528276;BA.debugLine="Dim p As Panel = Background"; + //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)(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject())); -RDebugUtils.currentLine=50528277; - //BA.debugLineNum = 50528277;BA.debugLine="p.Elevation = 4dip"; +_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)))); -RDebugUtils.currentLine=50528279; - //BA.debugLineNum = 50528279;BA.debugLine="mParent.AddView(Background, 0, 0, mParent.Width,"; -__ref._mparent /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),__ref._mparent /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mparent /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=50528280; - //BA.debugLineNum = 50528280;BA.debugLine="UpdateBlur"; -__ref._updateblur /*String*/ (null); -RDebugUtils.currentLine=50528281; - //BA.debugLineNum = 50528281;BA.debugLine="Base = xui.CreatePanel(\"\")"; -__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=50528282; - //BA.debugLineNum = 50528282;BA.debugLine="Base.SetColorAndBorder(BackgroundColor, BorderWid"; -__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._backgroundcolor /*int*/ ,__ref._borderwidth /*int*/ ,__ref._bordercolor /*int*/ ,__ref._bordercornersradius /*int*/ ); -RDebugUtils.currentLine=50528283; - //BA.debugLineNum = 50528283;BA.debugLine="Base.RequestFocus"; -__ref._base /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RequestFocus(); -RDebugUtils.currentLine=50528284; - //BA.debugLineNum = 50528284;BA.debugLine="Dim IncludeTitle As Boolean = Title <> \"\""; -_includetitle = (__ref._title /*Object*/ ).equals((Object)("")) == false; -RDebugUtils.currentLine=50528285; - //BA.debugLineNum = 50528285;BA.debugLine="Dim TempTitleBarHeight As Int = 0"; + //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); -RDebugUtils.currentLine=50528286; - //BA.debugLineNum = 50528286;BA.debugLine="If IncludeTitle Then"; + //BA.debugLineNum = 127;BA.debugLine="If IncludeTitle Then"; if (true) break; case 15: @@ -1054,52 +744,44 @@ this.state = 17; case 17: //C this.state = 18; -RDebugUtils.currentLine=50528287; - //BA.debugLineNum = 50528287;BA.debugLine="TempTitleBarHeight = TitleBarHeight"; -_temptitlebarheight = __ref._titlebarheight /*int*/ ; + //BA.debugLineNum = 128;BA.debugLine="TempTitleBarHeight = TitleBarHeight"; +_temptitlebarheight = parent._titlebarheight; if (true) break; case 18: //C this.state = 19; ; -RDebugUtils.currentLine=50528289; - //BA.debugLineNum = 50528289;BA.debugLine="Dim height As Int = Content.Height + ButtonsHeigh"; -_height = (int) (_content.getHeight()+__ref._buttonsheight /*int*/ +parent.__c.DipToCurrent((int) (3))+parent.__c.DipToCurrent((int) (3))+_temptitlebarheight); -RDebugUtils.currentLine=50528290; - //BA.debugLineNum = 50528290;BA.debugLine="Dim width As Int = Content.Width + 4dip"; + //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))); -RDebugUtils.currentLine=50528291; - //BA.debugLineNum = 50528291;BA.debugLine="Dim Top As Int = Round(Background.Height / 2 - he"; -_top = (int) (parent.__c.Round(__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2-_height/(double)2)); -RDebugUtils.currentLine=50528292; - //BA.debugLineNum = 50528292;BA.debugLine="Dim RemoveTitle As Boolean"; + //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; -RDebugUtils.currentLine=50528293; - //BA.debugLineNum = 50528293;BA.debugLine="If PutAtTop Then"; + //BA.debugLineNum = 134;BA.debugLine="If PutAtTop Then"; if (true) break; case 19: //if this.state = 28; -if (__ref._putattop /*boolean*/ ) { +if (parent._putattop) { this.state = 21; }if (true) break; case 21: //C this.state = 22; -RDebugUtils.currentLine=50528294; - //BA.debugLineNum = 50528294;BA.debugLine="Top = 20dip"; + //BA.debugLineNum = 135;BA.debugLine="Top = 20dip"; _top = parent.__c.DipToCurrent((int) (20)); -RDebugUtils.currentLine=50528295; - //BA.debugLineNum = 50528295;BA.debugLine="If Background.Height - Top - height < 200dip The"; + //BA.debugLineNum = 136;BA.debugLine="If Background.Height - Top - height < 200dip The"; if (true) break; case 22: //if this.state = 27; -if (__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-_top-_height 0 Then"; + //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 (__ref._visibleanimationduration /*int*/ >0) { +if (parent._visibleanimationduration>0) { this.state = 58; }if (true) break; case 58: //C this.state = 59; -RDebugUtils.currentLine=50528342; - //BA.debugLineNum = 50528342;BA.debugLine="Sleep(VisibleAnimationDuration)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xdialog", "showcustom"),__ref._visibleanimationduration /*int*/ ); + //BA.debugLineNum = 183;BA.debugLine="Sleep(VisibleAnimationDuration)"; +parent.__c.Sleep(ba,this,parent._visibleanimationduration); this.state = 69; return; case 69: @@ -1428,40 +1074,33 @@ case 59: //C this.state = -1; ; -RDebugUtils.currentLine=50528344; - //BA.debugLineNum = 50528344;BA.debugLine="Background.RemoveViewFromParent"; -__ref._background /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent(); -RDebugUtils.currentLine=50528345; - //BA.debugLineNum = 50528345;BA.debugLine="Return Result"; + //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;}; -RDebugUtils.currentLine=50528346; - //BA.debugLineNum = 50528346;BA.debugLine="End Sub"; + //BA.debugLineNum = 187;BA.debugLine="End Sub"; if (true) break; } } } } -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _showtemplate(reparto_izca.keymon.lat.b4xdialog __ref,Object _dialogtemplate,Object _yes,Object _no,Object _cancel) throws Exception{ -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "showtemplate", true)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "showtemplate", new Object[] {_dialogtemplate,_yes,_no,_cancel}));} -ResumableSub_ShowTemplate rsub = new ResumableSub_ShowTemplate(this,__ref,_dialogtemplate,_yes,_no,_cancel); +public void _closemessage(int _result) throws Exception{ +} +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _showtemplate(Object _dialogtemplate,Object _yes,Object _no,Object _cancel) throws Exception{ +ResumableSub_ShowTemplate rsub = new ResumableSub_ShowTemplate(this,_dialogtemplate,_yes,_no,_cancel); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_ShowTemplate extends BA.ResumableSub { -public ResumableSub_ShowTemplate(reparto_izca.keymon.lat.b4xdialog parent,reparto_izca.keymon.lat.b4xdialog __ref,Object _dialogtemplate,Object _yes,Object _no,Object _cancel) { +public ResumableSub_ShowTemplate(reparto_izca.keymon.lat.b4xdialog parent,Object _dialogtemplate,Object _yes,Object _no,Object _cancel) { this.parent = parent; -this.__ref = __ref; this._dialogtemplate = _dialogtemplate; this._yes = _yes; this._no = _no; this._cancel = _cancel; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xdialog __ref; reparto_izca.keymon.lat.b4xdialog parent; Object _dialogtemplate; Object _yes; @@ -1472,7 +1111,6 @@ int _result = 0; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xdialog"; while (true) { switch (state) { @@ -1482,50 +1120,69 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = -1; -RDebugUtils.currentLine=50397185; - //BA.debugLineNum = 50397185;BA.debugLine="Dim content As B4XView = CallSub2(DialogTemplate,"; + //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.CallSubDebug2(ba,_dialogtemplate,"GetPanel",parent))); -RDebugUtils.currentLine=50397186; - //BA.debugLineNum = 50397186;BA.debugLine="CallSub2(DialogTemplate, \"Show\", Me)"; -parent.__c.CallSubDebug2(ba,_dialogtemplate,"Show",parent); -RDebugUtils.currentLine=50397187; - //BA.debugLineNum = 50397187;BA.debugLine="Wait For (ShowCustom(content , Yes, No, Cancel))"; -parent.__c.WaitFor("complete", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xdialog", "showtemplate"), __ref._showcustom /*anywheresoftware.b4a.keywords.Common.ResumableSubWrapper*/ (null,_content,_yes,_no,_cancel)); +_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[1]; +_result = (Integer) result[0]; ; -RDebugUtils.currentLine=50397188; - //BA.debugLineNum = 50397188;BA.debugLine="CallSub2(DialogTemplate, \"DialogClosed\", Result)"; -parent.__c.CallSubDebug2(ba,_dialogtemplate,"DialogClosed",(Object)(_result)); -RDebugUtils.currentLine=50397189; - //BA.debugLineNum = 50397189;BA.debugLine="PutAtTop = False"; -__ref._putattop /*boolean*/ = parent.__c.False; -RDebugUtils.currentLine=50397190; - //BA.debugLineNum = 50397190;BA.debugLine="Return Result"; + //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;}; -RDebugUtils.currentLine=50397191; - //BA.debugLineNum = 50397191;BA.debugLine="End Sub"; + //BA.debugLineNum = 72;BA.debugLine="End Sub"; if (true) break; } } } } -public String _stub_click(reparto_izca.keymon.lat.b4xdialog __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xdialog"; -if (Debug.shouldDelegate(ba, "stub_click", true)) - {return ((String) Debug.delegate(ba, "stub_click", null));} -RDebugUtils.currentLine=51511296; - //BA.debugLineNum = 51511296;BA.debugLine="Private Sub Stub_Click"; -RDebugUtils.currentLine=51511298; - //BA.debugLineNum = 51511298;BA.debugLine="End Sub"; +public String _stub_click() throws Exception{ + //BA.debugLineNum = 349;BA.debugLine="Private Sub Stub_Click"; + //BA.debugLineNum = 351;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public String _updateblur() throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _source = null; +b4a.example.bitmapcreator _blurred = null; + //BA.debugLineNum = 274;BA.debugLine="Private Sub UpdateBlur"; + //BA.debugLineNum = 275;BA.debugLine="If BlurBackground = False Then Return"; +if (_blurbackground==__c.False) { +if (true) return "";}; + //BA.debugLineNum = 276;BA.debugLine="Background.Visible = False"; +_background.setVisible(__c.False); + //BA.debugLineNum = 277;BA.debugLine="Dim source As B4XBitmap = Background.Parent.Snaps"; +_source = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); +_source = _background.getParent().Snapshot(); + //BA.debugLineNum = 278;BA.debugLine="If source.Width > Background.Width Or source.Heig"; +if (_source.getWidth()>_background.getWidth() || _source.getHeight()>_background.getHeight()) { + //BA.debugLineNum = 279;BA.debugLine="source = source.Crop(0, 0, Background.Width, Bac"; +_source = _source.Crop((int) (0),(int) (0),_background.getWidth(),_background.getHeight()); + }; + //BA.debugLineNum = 281;BA.debugLine="Background.Visible = True"; +_background.setVisible(__c.True); + //BA.debugLineNum = 282;BA.debugLine="BlurImageView.SetLayoutAnimated(0, 0, 0, Backgrou"; +_blurimageview.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_background.getWidth(),_background.getHeight()); + //BA.debugLineNum = 283;BA.debugLine="Dim blurred As BitmapCreator = Blur(source)"; +_blurred = _blur(_source); + //BA.debugLineNum = 284;BA.debugLine="blurred.SetBitmapToImageView(blurred.Bitmap, Blur"; +_blurred._setbitmaptoimageview(_blurred._getbitmap(),_blurimageview); + //BA.debugLineNum = 285;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xfloattextfield.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xfloattextfield.java index 01964ea..91c3122 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xfloattextfield.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xfloattextfield.java @@ -10,7 +10,7 @@ public class b4xfloattextfield extends B4AClass.ImplB4AClass implements BA.SubDe private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xfloattextfield"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xfloattextfield"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xfloattextfield extends B4AClass.ImplB4AClass implements BA.SubDe ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -77,844 +70,465 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.b4xfloattextfield __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} +public String _base_resize(double _width,double _height) throws Exception{ int _firstdistance = 0; -RDebugUtils.currentLine=52166656; - //BA.debugLineNum = 52166656;BA.debugLine="Public Sub Base_Resize (Width As Double, Height As"; -RDebugUtils.currentLine=52166657; - //BA.debugLineNum = 52166657;BA.debugLine="mTextField.SetLayoutAnimated(0, 0, 0, Width, Heig"; -__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); -RDebugUtils.currentLine=52166658; - //BA.debugLineNum = 52166658;BA.debugLine="Dim FirstDistance As Int = 2dip"; + //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)); -RDebugUtils.currentLine=52166659; - //BA.debugLineNum = 52166659;BA.debugLine="If Multiline And xui.IsB4J Then FirstDistance = 2"; -if (__ref._multiline /*boolean*/ && __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) { + //BA.debugLineNum = 199;BA.debugLine="If Multiline And xui.IsB4J Then FirstDistance = 2"; +if (_multiline && _xui.getIsB4J()) { _firstdistance = __c.DipToCurrent((int) (22));}; -RDebugUtils.currentLine=52166660; - //BA.debugLineNum = 52166660;BA.debugLine="If lblV.IsInitialized Then"; -if (__ref._lblv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized()) { -RDebugUtils.currentLine=52166661; - //BA.debugLineNum = 52166661;BA.debugLine="lblV.SetLayoutAnimated(0, Width - lblV.Width - F"; -__ref._lblv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (_width-__ref._lblv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-_firstdistance),(int) (0),__ref._lblv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),(int) (_height)); -RDebugUtils.currentLine=52166662; - //BA.debugLineNum = 52166662;BA.debugLine="FirstDistance = FirstDistance + lblV.Width + 2di"; -_firstdistance = (int) (_firstdistance+__ref._lblv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()+__c.DipToCurrent((int) (2))); + //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))); }; -RDebugUtils.currentLine=52166664; - //BA.debugLineNum = 52166664;BA.debugLine="If lblClear.IsInitialized Then"; -if (__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized()) { -RDebugUtils.currentLine=52166665; - //BA.debugLineNum = 52166665;BA.debugLine="lblClear.SetLayoutAnimated(0, Width - lblClear.W"; -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (_width-__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-_firstdistance),(int) (0),__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),(int) (_height)); + //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)); }; -RDebugUtils.currentLine=52166667; - //BA.debugLineNum = 52166667;BA.debugLine="UpdateLabel(mTextField.Text, True)"; -__ref._updatelabel /*String*/ (null,__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getText(),__c.True); -RDebugUtils.currentLine=52166668; - //BA.debugLineNum = 52166668;BA.debugLine="End Sub"; + //BA.debugLineNum = 207;BA.debugLine="UpdateLabel(mTextField.Text, True)"; +_updatelabel(_mtextfield.getText(),__c.True); + //BA.debugLineNum = 208;BA.debugLine="End Sub"; return ""; } -public String _updatelabel(reparto_izca.keymon.lat.b4xfloattextfield __ref,String _txt,boolean _force) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "updatelabel", true)) - {return ((String) Debug.delegate(ba, "updatelabel", new Object[] {_txt,_force}));} -anywheresoftware.b4a.objects.B4XViewWrapper _lbl = null; -boolean _goingtolarge = false; -anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _b = null; -RDebugUtils.currentLine=52232192; - //BA.debugLineNum = 52232192;BA.debugLine="Private Sub UpdateLabel (txt As String, force As B"; -RDebugUtils.currentLine=52232193; - //BA.debugLineNum = 52232193;BA.debugLine="For Each lbl As B4XView In Array As B4XView(lblCl"; -{ -final anywheresoftware.b4a.objects.B4XViewWrapper[] group1 = new anywheresoftware.b4a.objects.B4XViewWrapper[]{__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ,__ref._lblv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ }; -final int groupLen1 = group1.length -;int index1 = 0; -; -for (; index1 < groupLen1;index1++){ -_lbl = group1[index1]; -RDebugUtils.currentLine=52232194; - //BA.debugLineNum = 52232194;BA.debugLine="If lbl.IsInitialized Then lbl.Visible = Focused"; -if (_lbl.IsInitialized()) { -_lbl.setVisible(__ref._focused /*boolean*/ && _txt.length()>0);}; - } -}; -RDebugUtils.currentLine=52232197; - //BA.debugLineNum = 52232197;BA.debugLine="Dim GoingToLarge As Boolean = txt.Length = 0"; -_goingtolarge = _txt.length()==0; -RDebugUtils.currentLine=52232198; - //BA.debugLineNum = 52232198;BA.debugLine="If GoingToLarge = LargeLabel And force = False Th"; -if (_goingtolarge==__ref._largelabel /*boolean*/ && _force==__c.False) { -if (true) return "";}; -RDebugUtils.currentLine=52232199; - //BA.debugLineNum = 52232199;BA.debugLine="Dim b As B4XBitmap"; -_b = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); -RDebugUtils.currentLine=52232200; - //BA.debugLineNum = 52232200;BA.debugLine="If Focused Then"; -if (__ref._focused /*boolean*/ ) { -RDebugUtils.currentLine=52232201; - //BA.debugLineNum = 52232201;BA.debugLine="If GoingToLarge Then b = LargeFocused Else b = S"; -if (_goingtolarge) { -_b = __ref._largefocused /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ ;} -else { -_b = __ref._smallfocused /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ ;}; - }else { -RDebugUtils.currentLine=52232203; - //BA.debugLineNum = 52232203;BA.debugLine="If GoingToLarge Then b = LargeNotFocused Else b"; -if (_goingtolarge) { -_b = __ref._largenotfocused /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ ;} -else { -_b = __ref._smallnotfocused /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ ;}; - }; -RDebugUtils.currentLine=52232205; - //BA.debugLineNum = 52232205;BA.debugLine="If b.IsInitialized = False Then Return"; -if (_b.IsInitialized()==__c.False) { -if (true) return "";}; -RDebugUtils.currentLine=52232206; - //BA.debugLineNum = 52232206;BA.debugLine="HintImageView.SetBitmap(b)"; -__ref._hintimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((android.graphics.Bitmap)(_b.getObject())); -RDebugUtils.currentLine=52232207; - //BA.debugLineNum = 52232207;BA.debugLine="If GoingToLarge Then"; -if (_goingtolarge) { -RDebugUtils.currentLine=52232208; - //BA.debugLineNum = 52232208;BA.debugLine="HintImageView.SetLayoutAnimated (AnimationDurati"; -__ref._hintimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated(__ref._animationduration /*int*/ ,__ref._hintlabellargeoffsetx /*int*/ ,(int) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2-_b.getHeight()/(double)2),(int) (_b.getWidth()),(int) (_b.getHeight())); -RDebugUtils.currentLine=52232209; - //BA.debugLineNum = 52232209;BA.debugLine="LargeLabel = True"; -__ref._largelabel /*boolean*/ = __c.True; - }else { -RDebugUtils.currentLine=52232211; - //BA.debugLineNum = 52232211;BA.debugLine="HintImageView.SetLayoutAnimated(AnimationDuratio"; -__ref._hintimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated(__ref._animationduration /*int*/ ,__ref._hintlabelsmalloffsetx /*int*/ ,__ref._hintlabelsmalloffsety /*int*/ ,(int) (_b.getWidth()),(int) (_b.getHeight())); -RDebugUtils.currentLine=52232212; - //BA.debugLineNum = 52232212;BA.debugLine="LargeLabel = False"; -__ref._largelabel /*boolean*/ = __c.False; - }; -RDebugUtils.currentLine=52232214; - //BA.debugLineNum = 52232214;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -RDebugUtils.currentLine=51576832; - //BA.debugLineNum = 51576832;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=51576833; - //BA.debugLineNum = 51576833;BA.debugLine="Private mEventName As String 'ignore"; +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 = ""; -RDebugUtils.currentLine=51576834; - //BA.debugLineNum = 51576834;BA.debugLine="Private mCallBack As Object 'ignore"; + //BA.debugLineNum = 18;BA.debugLine="Private mCallBack As Object 'ignore"; _mcallback = new Object(); -RDebugUtils.currentLine=51576835; - //BA.debugLineNum = 51576835;BA.debugLine="Public mBase As B4XView 'ignore"; + //BA.debugLineNum = 19;BA.debugLine="Public mBase As B4XView 'ignore"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=51576836; - //BA.debugLineNum = 51576836;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 20;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=51576837; - //BA.debugLineNum = 51576837;BA.debugLine="Private mTextField As B4XView"; + //BA.debugLineNum = 21;BA.debugLine="Private mTextField As B4XView"; _mtextfield = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=51576838; - //BA.debugLineNum = 51576838;BA.debugLine="Public AnimationDuration As Int = 200"; + //BA.debugLineNum = 22;BA.debugLine="Public AnimationDuration As Int = 200"; _animationduration = (int) (200); -RDebugUtils.currentLine=51576839; - //BA.debugLineNum = 51576839;BA.debugLine="Public LargeLabelTextSize = 18, SmallLabelTextSiz"; + //BA.debugLineNum = 23;BA.debugLine="Public LargeLabelTextSize = 18, SmallLabelTextSiz"; _largelabeltextsize = (float) (18); _smalllabeltextsize = (float) (14); -RDebugUtils.currentLine=51576840; - //BA.debugLineNum = 51576840;BA.debugLine="Private LargeLabel As Boolean"; + //BA.debugLineNum = 24;BA.debugLine="Private LargeLabel As Boolean"; _largelabel = false; -RDebugUtils.currentLine=51576841; - //BA.debugLineNum = 51576841;BA.debugLine="Private MeasuringCanvas As B4XCanvas"; + //BA.debugLineNum = 25;BA.debugLine="Private MeasuringCanvas As B4XCanvas"; _measuringcanvas = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=51576842; - //BA.debugLineNum = 51576842;BA.debugLine="Public HintColor As Int"; + //BA.debugLineNum = 26;BA.debugLine="Public HintColor As Int"; _hintcolor = 0; -RDebugUtils.currentLine=51576843; - //BA.debugLineNum = 51576843;BA.debugLine="Public NonFocusedHintColor As Int"; + //BA.debugLineNum = 27;BA.debugLine="Public NonFocusedHintColor As Int"; _nonfocusedhintcolor = 0; -RDebugUtils.currentLine=51576844; - //BA.debugLineNum = 51576844;BA.debugLine="Private HintImageView As B4XView"; + //BA.debugLineNum = 28;BA.debugLine="Private HintImageView As B4XView"; _hintimageview = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=51576845; - //BA.debugLineNum = 51576845;BA.debugLine="Public HintText As String"; + //BA.debugLineNum = 29;BA.debugLine="Public HintText As String"; _hinttext = ""; -RDebugUtils.currentLine=51576846; - //BA.debugLineNum = 51576846;BA.debugLine="Public HintFont As B4XFont"; + //BA.debugLineNum = 30;BA.debugLine="Public HintFont As B4XFont"; _hintfont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont(); -RDebugUtils.currentLine=51576847; - //BA.debugLineNum = 51576847;BA.debugLine="Private LargeFocused, LargeNotFocused, SmallFocus"; + //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(); -RDebugUtils.currentLine=51576848; - //BA.debugLineNum = 51576848;BA.debugLine="Public Focused As Boolean"; + //BA.debugLineNum = 32;BA.debugLine="Public Focused As Boolean"; _focused = false; -RDebugUtils.currentLine=51576849; - //BA.debugLineNum = 51576849;BA.debugLine="Public lblClear As B4XView"; + //BA.debugLineNum = 33;BA.debugLine="Public lblClear As B4XView"; _lblclear = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=51576850; - //BA.debugLineNum = 51576850;BA.debugLine="Public lblV As B4XView"; + //BA.debugLineNum = 34;BA.debugLine="Public lblV As B4XView"; _lblv = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=51576851; - //BA.debugLineNum = 51576851;BA.debugLine="Private mProps As Map"; + //BA.debugLineNum = 35;BA.debugLine="Private mProps As Map"; _mprops = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=51576852; - //BA.debugLineNum = 51576852;BA.debugLine="Public Tag As Object"; + //BA.debugLineNum = 36;BA.debugLine="Public Tag As Object"; _tag = new Object(); -RDebugUtils.currentLine=51576853; - //BA.debugLineNum = 51576853;BA.debugLine="Private KeyboardType As String 'ignore"; + //BA.debugLineNum = 37;BA.debugLine="Private KeyboardType As String 'ignore"; _keyboardtype = ""; -RDebugUtils.currentLine=51576854; - //BA.debugLineNum = 51576854;BA.debugLine="Private Multiline As Boolean"; + //BA.debugLineNum = 38;BA.debugLine="Private Multiline As Boolean"; _multiline = false; -RDebugUtils.currentLine=51576855; - //BA.debugLineNum = 51576855;BA.debugLine="Private mNextTextField As B4XFloatTextField"; + //BA.debugLineNum = 39;BA.debugLine="Private mNextTextField As B4XFloatTextField"; _mnexttextfield = new reparto_izca.keymon.lat.b4xfloattextfield(); -RDebugUtils.currentLine=51576857; - //BA.debugLineNum = 51576857;BA.debugLine="Private IME As IME"; + //BA.debugLineNum = 41;BA.debugLine="Private IME As IME"; _ime = new anywheresoftware.b4a.objects.IME(); -RDebugUtils.currentLine=51576862; - //BA.debugLineNum = 51576862;BA.debugLine="Public HintLabelLargeOffsetX, HintLabelSmallOffse"; + //BA.debugLineNum = 46;BA.debugLine="Public HintLabelLargeOffsetX, HintLabelSmallOffse"; _hintlabellargeoffsetx = 0; _hintlabelsmalloffsety = __c.DipToCurrent((int) (2)); _hintlabelsmalloffsetx = __c.DipToCurrent((int) (2)); -RDebugUtils.currentLine=51576863; - //BA.debugLineNum = 51576863;BA.debugLine="Private LastSwitchTextFieldTime As Long"; + //BA.debugLineNum = 47;BA.debugLine="Private LastSwitchTextFieldTime As Long"; _lastswitchtextfieldtime = 0L; -RDebugUtils.currentLine=51576864; - //BA.debugLineNum = 51576864;BA.debugLine="End Sub"; + //BA.debugLineNum = 48;BA.debugLine="End Sub"; return ""; } -public String _createacceptbutton(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "createacceptbutton", true)) - {return ((String) Debug.delegate(ba, "createacceptbutton", null));} -RDebugUtils.currentLine=51904512; - //BA.debugLineNum = 51904512;BA.debugLine="Private Sub CreateAcceptButton"; -RDebugUtils.currentLine=51904513; - //BA.debugLineNum = 51904513;BA.debugLine="If mProps.GetDefault(\"ShowAccept\", True) = False"; -if ((__ref._mprops /*anywheresoftware.b4a.objects.collections.Map*/ .GetDefault((Object)("ShowAccept"),(Object)(__c.True))).equals((Object)(__c.False))) { +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 "";}; -RDebugUtils.currentLine=51904514; - //BA.debugLineNum = 51904514;BA.debugLine="lblV = CreateButton(Chr(0xE5CA))"; -__ref._lblv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._createbutton /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null,BA.ObjectToString(__c.Chr(((int)0xe5ca)))); -RDebugUtils.currentLine=51904515; - //BA.debugLineNum = 51904515;BA.debugLine="lblV.Tag = \"v\""; -__ref._lblv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag((Object)("v")); -RDebugUtils.currentLine=51904516; - //BA.debugLineNum = 51904516;BA.debugLine="End Sub"; + //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 _createbutton(reparto_izca.keymon.lat.b4xfloattextfield __ref,String _text) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "createbutton", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "createbutton", new Object[] {_text}));} -anywheresoftware.b4a.objects.LabelWrapper _lc = null; -anywheresoftware.b4a.objects.B4XViewWrapper _x = null; -RDebugUtils.currentLine=52101120; - //BA.debugLineNum = 52101120;BA.debugLine="Private Sub CreateButton (Text As String) As B4XVi"; -RDebugUtils.currentLine=52101121; - //BA.debugLineNum = 52101121;BA.debugLine="Dim lc As Label"; -_lc = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=52101122; - //BA.debugLineNum = 52101122;BA.debugLine="lc.Initialize(\"lc\")"; -_lc.Initialize(ba,"lc"); -RDebugUtils.currentLine=52101123; - //BA.debugLineNum = 52101123;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())); -RDebugUtils.currentLine=52101124; - //BA.debugLineNum = 52101124;BA.debugLine="x = lc"; -_x = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lc.getObject())); -RDebugUtils.currentLine=52101125; - //BA.debugLineNum = 52101125;BA.debugLine="x.Font = xui.CreateMaterialIcons(20)"; -_x.setFont(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateMaterialIcons((float) (20))); -RDebugUtils.currentLine=52101126; - //BA.debugLineNum = 52101126;BA.debugLine="x.Text = Text"; -_x.setText(BA.ObjectToCharSequence(_text)); -RDebugUtils.currentLine=52101127; - //BA.debugLineNum = 52101127;BA.debugLine="x.TextColor = mTextField.TextColor"; -_x.setTextColor(__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTextColor()); -RDebugUtils.currentLine=52101128; - //BA.debugLineNum = 52101128;BA.debugLine="x.Visible = False"; -_x.setVisible(__c.False); -RDebugUtils.currentLine=52101129; - //BA.debugLineNum = 52101129;BA.debugLine="x.SetTextAlignment(\"CENTER\", \"CENTER\")"; -_x.SetTextAlignment("CENTER","CENTER"); -RDebugUtils.currentLine=52101130; - //BA.debugLineNum = 52101130;BA.debugLine="mBase.AddView(x, 0, 0, 30dip, 30dip)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_x.getObject()),(int) (0),(int) (0),__c.DipToCurrent((int) (30)),__c.DipToCurrent((int) (30))); -RDebugUtils.currentLine=52101131; - //BA.debugLineNum = 52101131;BA.debugLine="Return x"; -if (true) return _x; -RDebugUtils.currentLine=52101132; - //BA.debugLineNum = 52101132;BA.debugLine="End Sub"; -return null; -} -public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _createbitmap(reparto_izca.keymon.lat.b4xfloattextfield __ref,anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r,int _color,anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _fnt) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "createbitmap", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) Debug.delegate(ba, "createbitmap", new Object[] {_r,_color,_fnt}));} +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; -RDebugUtils.currentLine=52428800; - //BA.debugLineNum = 52428800;BA.debugLine="Private Sub CreateBitmap(r As B4XRect, Color As In"; -RDebugUtils.currentLine=52428801; - //BA.debugLineNum = 52428801;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; + //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 = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=52428802; - //BA.debugLineNum = 52428802;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Max(1, r.Width + 2di"; +_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))))); -RDebugUtils.currentLine=52428803; - //BA.debugLineNum = 52428803;BA.debugLine="Dim c As B4XCanvas"; + //BA.debugLineNum = 260;BA.debugLine="Dim c As B4XCanvas"; _c = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=52428804; - //BA.debugLineNum = 52428804;BA.debugLine="c.Initialize(p)"; + //BA.debugLineNum = 261;BA.debugLine="c.Initialize(p)"; _c.Initialize(_p); -RDebugUtils.currentLine=52428805; - //BA.debugLineNum = 52428805;BA.debugLine="Dim BaseLine As Int = p.Height / 2 - r.Height / 2"; + //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()); -RDebugUtils.currentLine=52428806; - //BA.debugLineNum = 52428806;BA.debugLine="c.DrawText(HintText, p.Width / 2, BaseLine, Fnt,"; -_c.DrawText(ba,__ref._hinttext /*String*/ ,(float) (_p.getWidth()/(double)2),(float) (_baseline),_fnt,_color,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER")); -RDebugUtils.currentLine=52428807; - //BA.debugLineNum = 52428807;BA.debugLine="Dim bmp As B4XBitmap = c.CreateBitmap"; + //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(); -RDebugUtils.currentLine=52428808; - //BA.debugLineNum = 52428808;BA.debugLine="c.Release"; + //BA.debugLineNum = 265;BA.debugLine="c.Release"; _c.Release(); -RDebugUtils.currentLine=52428809; - //BA.debugLineNum = 52428809;BA.debugLine="Return bmp"; + //BA.debugLineNum = 266;BA.debugLine="Return bmp"; if (true) return _bmp; -RDebugUtils.currentLine=52428810; - //BA.debugLineNum = 52428810;BA.debugLine="End Sub"; + //BA.debugLineNum = 267;BA.debugLine="End Sub"; return null; } -public String _createclearbutton(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "createclearbutton", true)) - {return ((String) Debug.delegate(ba, "createclearbutton", null));} -RDebugUtils.currentLine=51838976; - //BA.debugLineNum = 51838976;BA.debugLine="Private Sub CreateClearButton"; -RDebugUtils.currentLine=51838977; - //BA.debugLineNum = 51838977;BA.debugLine="If mProps.GetDefault(\"ShowClear\", True) = False T"; -if ((__ref._mprops /*anywheresoftware.b4a.objects.collections.Map*/ .GetDefault((Object)("ShowClear"),(Object)(__c.True))).equals((Object)(__c.False))) { +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 "";}; -RDebugUtils.currentLine=51838978; - //BA.debugLineNum = 51838978;BA.debugLine="If lblClear.IsInitialized And lblClear.Parent.IsI"; -if (__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized() && __ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getParent().IsInitialized()) { -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent();}; -RDebugUtils.currentLine=51838979; - //BA.debugLineNum = 51838979;BA.debugLine="lblClear = CreateButton(Chr(0xE14C))"; -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._createbutton /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null,BA.ObjectToString(__c.Chr(((int)0xe14c)))); -RDebugUtils.currentLine=51838980; - //BA.debugLineNum = 51838980;BA.debugLine="lblClear.Tag = \"clear\""; -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag((Object)("clear")); -RDebugUtils.currentLine=51838982; - //BA.debugLineNum = 51838982;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "createrevealbutton", true)) - {return ((String) Debug.delegate(ba, "createrevealbutton", null));} -RDebugUtils.currentLine=51970048; - //BA.debugLineNum = 51970048;BA.debugLine="Private Sub CreateRevealButton"; -RDebugUtils.currentLine=51970049; - //BA.debugLineNum = 51970049;BA.debugLine="lblClear = CreateButton(Chr(0xE8F4))"; -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._createbutton /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null,BA.ObjectToString(__c.Chr(((int)0xe8f4)))); -RDebugUtils.currentLine=51970050; - //BA.debugLineNum = 51970050;BA.debugLine="lblClear.Tag = \"reveal\""; -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag((Object)("reveal")); -RDebugUtils.currentLine=51970051; - //BA.debugLineNum = 51970051;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xfloattextfield __ref,boolean _password) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "createtextfield", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "createtextfield", new Object[] {_password}));} +public anywheresoftware.b4a.objects.B4XViewWrapper _createtextfield(boolean _password) throws Exception{ anywheresoftware.b4a.objects.EditTextWrapper _tf = null; -RDebugUtils.currentLine=53018624; - //BA.debugLineNum = 53018624;BA.debugLine="Private Sub CreateTextField (Password As Boolean)"; -RDebugUtils.currentLine=53018640; - //BA.debugLineNum = 53018640;BA.debugLine="Dim tf As EditText"; + //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(); -RDebugUtils.currentLine=53018641; - //BA.debugLineNum = 53018641;BA.debugLine="tf.Initialize(\"tf\")"; + //BA.debugLineNum = 345;BA.debugLine="tf.Initialize(\"tf\")"; _tf.Initialize(ba,"tf"); -RDebugUtils.currentLine=53018642; - //BA.debugLineNum = 53018642;BA.debugLine="tf.SingleLine = Not(Multiline)"; -_tf.setSingleLine(__c.Not(__ref._multiline /*boolean*/ )); -RDebugUtils.currentLine=53018643; - //BA.debugLineNum = 53018643;BA.debugLine="tf.PasswordMode = Password"; + //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); -RDebugUtils.currentLine=53018644; - //BA.debugLineNum = 53018644;BA.debugLine="If Password Then"; + //BA.debugLineNum = 348;BA.debugLine="If Password Then"; if (_password) { -RDebugUtils.currentLine=53018645; - //BA.debugLineNum = 53018645;BA.debugLine="If KeyboardType <> \"Text\" Then"; -if ((__ref._keyboardtype /*String*/ ).equals("Text") == false) { -RDebugUtils.currentLine=53018646; - //BA.debugLineNum = 53018646;BA.debugLine="tf.InputType = Bit.Or(tf.INPUT_TYPE_NUMBERS, 16"; + //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 { -RDebugUtils.currentLine=53018648; - //BA.debugLineNum = 53018648;BA.debugLine="tf.InputType = Bit.Or(0x00000080, 0x00080000) '"; + //BA.debugLineNum = 352;BA.debugLine="tf.InputType = Bit.Or(0x00000080, 0x00080000) '"; _tf.setInputType(__c.Bit.Or(((int)0x00000080),((int)0x00080000))); }; }else { -RDebugUtils.currentLine=53018651; - //BA.debugLineNum = 53018651;BA.debugLine="Select KeyboardType"; -switch (BA.switchObjectToInt(__ref._keyboardtype /*String*/ ,"Numbers","Decimal")) { + //BA.debugLineNum = 355;BA.debugLine="Select KeyboardType"; +switch (BA.switchObjectToInt(_keyboardtype,"Numbers","Decimal")) { case 0: { -RDebugUtils.currentLine=53018653; - //BA.debugLineNum = 53018653;BA.debugLine="tf.InputType = tf.INPUT_TYPE_NUMBERS"; + //BA.debugLineNum = 357;BA.debugLine="tf.InputType = tf.INPUT_TYPE_NUMBERS"; _tf.setInputType(_tf.INPUT_TYPE_NUMBERS); break; } case 1: { -RDebugUtils.currentLine=53018655; - //BA.debugLineNum = 53018655;BA.debugLine="tf.InputType = tf.INPUT_TYPE_DECIMAL_NUMBERS"; + //BA.debugLineNum = 359;BA.debugLine="tf.InputType = tf.INPUT_TYPE_DECIMAL_NUMBERS"; _tf.setInputType(_tf.INPUT_TYPE_DECIMAL_NUMBERS); break; } } ; }; -RDebugUtils.currentLine=53018658; - //BA.debugLineNum = 53018658;BA.debugLine="Return tf"; + //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())); -RDebugUtils.currentLine=53018682; - //BA.debugLineNum = 53018682;BA.debugLine="End Sub"; + //BA.debugLineNum = 386;BA.debugLine="End Sub"; return null; } -public String _createtextfieldall(reparto_izca.keymon.lat.b4xfloattextfield __ref,boolean _passwordmode,anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _font1,int _textcolor) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "createtextfieldall", true)) - {return ((String) Debug.delegate(ba, "createtextfieldall", new Object[] {_passwordmode,_font1,_textcolor}));} -RDebugUtils.currentLine=51773440; - //BA.debugLineNum = 51773440;BA.debugLine="Private Sub CreateTextFieldAll (PasswordMode As Bo"; -RDebugUtils.currentLine=51773441; - //BA.debugLineNum = 51773441;BA.debugLine="mTextField = CreateTextField (PasswordMode)"; -__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._createtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null,_passwordmode); -RDebugUtils.currentLine=51773442; - //BA.debugLineNum = 51773442;BA.debugLine="mTextField.Font = Font1"; -__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setFont(_font1); -RDebugUtils.currentLine=51773443; - //BA.debugLineNum = 51773443;BA.debugLine="mTextField.TextColor = TextColor"; -__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTextColor(_textcolor); -RDebugUtils.currentLine=51773444; - //BA.debugLineNum = 51773444;BA.debugLine="setNextField(mNextTextField)"; -__ref._setnextfield /*String*/ (null,__ref._mnexttextfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ ); -RDebugUtils.currentLine=51773445; - //BA.debugLineNum = 51773445;BA.debugLine="mBase.AddView(mTextField, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=51773446; - //BA.debugLineNum = 51773446;BA.debugLine="End Sub"; +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 _setnextfield(reparto_izca.keymon.lat.b4xfloattextfield __ref,reparto_izca.keymon.lat.b4xfloattextfield _field) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "setnextfield", true)) - {return ((String) Debug.delegate(ba, "setnextfield", new Object[] {_field}));} -anywheresoftware.b4a.objects.EditTextWrapper _et = null; -Object _o = null; -RDebugUtils.currentLine=52822016; - //BA.debugLineNum = 52822016;BA.debugLine="Public Sub setNextField (Field As B4XFloatTextFiel"; -RDebugUtils.currentLine=52822017; - //BA.debugLineNum = 52822017;BA.debugLine="If Field.IsInitialized = False Then Return"; -if (_field.IsInitialized /*boolean*/ ()==__c.False) { -if (true) return "";}; -RDebugUtils.currentLine=52822019; - //BA.debugLineNum = 52822019;BA.debugLine="If Multiline = False Then"; -if (__ref._multiline /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=52822020; - //BA.debugLineNum = 52822020;BA.debugLine="If Field <> Me Then"; -if ((_field).equals((reparto_izca.keymon.lat.b4xfloattextfield)(this)) == false) { -RDebugUtils.currentLine=52822021; - //BA.debugLineNum = 52822021;BA.debugLine="IME.AddHandleActionEvent(mTextField)"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .AddHandleActionEvent((android.widget.EditText)(__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),ba); - }; -RDebugUtils.currentLine=52822023; - //BA.debugLineNum = 52822023;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)(__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject())); -RDebugUtils.currentLine=52822024; - //BA.debugLineNum = 52822024;BA.debugLine="et.ForceDoneButton = True"; -_et.setForceDoneButton(__c.True); - }; -RDebugUtils.currentLine=52822027; - //BA.debugLineNum = 52822027;BA.debugLine="Dim o As Object = Field"; -_o = (Object)(_field); -RDebugUtils.currentLine=52822028; - //BA.debugLineNum = 52822028;BA.debugLine="mNextTextField = o"; -__ref._mnexttextfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ = (reparto_izca.keymon.lat.b4xfloattextfield)(_o); -RDebugUtils.currentLine=52822029; - //BA.debugLineNum = 52822029;BA.debugLine="End Sub"; -return ""; -} -public String _designercreateview(reparto_izca.keymon.lat.b4xfloattextfield __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} +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; -RDebugUtils.currentLine=51707904; - //BA.debugLineNum = 51707904;BA.debugLine="Public Sub DesignerCreateView (Base As Object, lbl"; -RDebugUtils.currentLine=51707905; - //BA.debugLineNum = 51707905;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=51707906; - //BA.debugLineNum = 51707906;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=51707906; - //BA.debugLineNum = 51707906;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=51707907; - //BA.debugLineNum = 51707907;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=51707908; - //BA.debugLineNum = 51707908;BA.debugLine="mProps = Props"; -__ref._mprops /*anywheresoftware.b4a.objects.collections.Map*/ = _props; -RDebugUtils.currentLine=51707909; - //BA.debugLineNum = 51707909;BA.debugLine="Dim PassedLabel As B4XView = lbl"; + //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())); -RDebugUtils.currentLine=51707910; - //BA.debugLineNum = 51707910;BA.debugLine="Dim iv As ImageView"; + //BA.debugLineNum = 73;BA.debugLine="Dim iv As ImageView"; _iv = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=51707911; - //BA.debugLineNum = 51707911;BA.debugLine="iv.Initialize(\"HintImageView\")"; + //BA.debugLineNum = 74;BA.debugLine="iv.Initialize(\"HintImageView\")"; _iv.Initialize(ba,"HintImageView"); -RDebugUtils.currentLine=51707912; - //BA.debugLineNum = 51707912;BA.debugLine="HintImageView = iv"; -__ref._hintimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iv.getObject())); -RDebugUtils.currentLine=51707913; - //BA.debugLineNum = 51707913;BA.debugLine="KeyboardType = Props.GetDefault(\"KeyboardType\", \""; -__ref._keyboardtype /*String*/ = BA.ObjectToString(_props.GetDefault((Object)("KeyboardType"),(Object)("Text"))); -RDebugUtils.currentLine=51707919; - //BA.debugLineNum = 51707919;BA.debugLine="HintColor = xui.PaintOrColorToColor(Props.Get(\"Hi"; -__ref._hintcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("HintColor"))); -RDebugUtils.currentLine=51707920; - //BA.debugLineNum = 51707920;BA.debugLine="NonFocusedHintColor = xui.PaintOrColorToColor(Pro"; -__ref._nonfocusedhintcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("NonFocusedHintColor"))); -RDebugUtils.currentLine=51707922; - //BA.debugLineNum = 51707922;BA.debugLine="HintText = Props.Get(\"Hint\")"; -__ref._hinttext /*String*/ = BA.ObjectToString(_props.Get((Object)("Hint"))); -RDebugUtils.currentLine=51707923; - //BA.debugLineNum = 51707923;BA.debugLine="HintFont = PassedLabel.Font"; -__ref._hintfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = _passedlabel.getFont(); -RDebugUtils.currentLine=51707924; - //BA.debugLineNum = 51707924;BA.debugLine="Dim PasswordMode As Boolean = Props.GetDefault(\"P"; + //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))); -RDebugUtils.currentLine=51707925; - //BA.debugLineNum = 51707925;BA.debugLine="Multiline = Props.GetDefault(\"Multiline\", False)"; -__ref._multiline /*boolean*/ = BA.ObjectToBoolean(_props.GetDefault((Object)("Multiline"),(Object)(__c.False))); -RDebugUtils.currentLine=51707926; - //BA.debugLineNum = 51707926;BA.debugLine="If PasswordMode And Multiline Then"; -if (_passwordmode && __ref._multiline /*boolean*/ ) { -RDebugUtils.currentLine=51707927; - //BA.debugLineNum = 51707927;BA.debugLine="Multiline = False"; -__ref._multiline /*boolean*/ = __c.False; -RDebugUtils.currentLine=51707928; - //BA.debugLineNum = 51707928;BA.debugLine="Log(\"Multiline not supported with password mode."; -__c.LogImpl("951707928","Multiline not supported with password mode.",0); + //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("960227608","Multiline not supported with password mode.",0); }; -RDebugUtils.currentLine=51707930; - //BA.debugLineNum = 51707930;BA.debugLine="CreateTextFieldAll(PasswordMode, PassedLabel.Font"; -__ref._createtextfieldall /*String*/ (null,_passwordmode,_passedlabel.getFont(),__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor((Object)(_lbl.getTextColor()))); -RDebugUtils.currentLine=51707932; - //BA.debugLineNum = 51707932;BA.debugLine="mBase.AddView(HintImageView, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._hintimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=51707933; - //BA.debugLineNum = 51707933;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; + //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 = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=51707934; - //BA.debugLineNum = 51707934;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 2dip, 2dip)"; +_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))); -RDebugUtils.currentLine=51707935; - //BA.debugLineNum = 51707935;BA.debugLine="MeasuringCanvas.Initialize(p)"; -__ref._measuringcanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(_p); -RDebugUtils.currentLine=51707936; - //BA.debugLineNum = 51707936;BA.debugLine="Update"; -__ref._update /*String*/ (null); -RDebugUtils.currentLine=51707937; - //BA.debugLineNum = 51707937;BA.debugLine="If PasswordMode And Props.GetDefault(\"ShowRevealB"; + //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)))) { -RDebugUtils.currentLine=51707938; - //BA.debugLineNum = 51707938;BA.debugLine="CreateRevealButton"; -__ref._createrevealbutton /*String*/ (null); + //BA.debugLineNum = 101;BA.debugLine="CreateRevealButton"; +_createrevealbutton(); }else { -RDebugUtils.currentLine=51707940; - //BA.debugLineNum = 51707940;BA.debugLine="CreateClearButton"; -__ref._createclearbutton /*String*/ (null); + //BA.debugLineNum = 103;BA.debugLine="CreateClearButton"; +_createclearbutton(); }; -RDebugUtils.currentLine=51707942; - //BA.debugLineNum = 51707942;BA.debugLine="CreateAcceptButton"; -__ref._createacceptbutton /*String*/ (null); -RDebugUtils.currentLine=51707943; - //BA.debugLineNum = 51707943;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)"; -__ref._base_resize /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=51707944; - //BA.debugLineNum = 51707944;BA.debugLine="End Sub"; + //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 String _update(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "update", true)) - {return ((String) Debug.delegate(ba, "update", null));} -anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _f = null; -anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null; -RDebugUtils.currentLine=52363264; - //BA.debugLineNum = 52363264;BA.debugLine="Public Sub Update"; -RDebugUtils.currentLine=52363265; - //BA.debugLineNum = 52363265;BA.debugLine="Dim f As B4XFont = xui.CreateFont2(HintFont, Lar"; -_f = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateFont2(__ref._hintfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ,__ref._largelabeltextsize /*float*/ ); -RDebugUtils.currentLine=52363266; - //BA.debugLineNum = 52363266;BA.debugLine="Dim r As B4XRect = MeasuringCanvas.MeasureText(Hi"; -_r = __ref._measuringcanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .MeasureText(__ref._hinttext /*String*/ ,_f); -RDebugUtils.currentLine=52363267; - //BA.debugLineNum = 52363267;BA.debugLine="LargeFocused = CreateBitmap(r, HintColor, f)"; -__ref._largefocused /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ = __ref._createbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ (null,_r,__ref._hintcolor /*int*/ ,_f); -RDebugUtils.currentLine=52363268; - //BA.debugLineNum = 52363268;BA.debugLine="LargeNotFocused = CreateBitmap(r, NonFocusedHintC"; -__ref._largenotfocused /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ = __ref._createbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ (null,_r,__ref._nonfocusedhintcolor /*int*/ ,_f); -RDebugUtils.currentLine=52363269; - //BA.debugLineNum = 52363269;BA.debugLine="f = xui.CreateFont2(HintFont, SmallLabelTextSize)"; -_f = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateFont2(__ref._hintfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ,__ref._smalllabeltextsize /*float*/ ); -RDebugUtils.currentLine=52363270; - //BA.debugLineNum = 52363270;BA.debugLine="Dim r As B4XRect = MeasuringCanvas.MeasureText(Hi"; -_r = __ref._measuringcanvas /*anywheresoftware.b4a.objects.B4XCanvas*/ .MeasureText(__ref._hinttext /*String*/ ,_f); -RDebugUtils.currentLine=52363271; - //BA.debugLineNum = 52363271;BA.debugLine="SmallFocused = CreateBitmap(r, HintColor, f)"; -__ref._smallfocused /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ = __ref._createbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ (null,_r,__ref._hintcolor /*int*/ ,_f); -RDebugUtils.currentLine=52363272; - //BA.debugLineNum = 52363272;BA.debugLine="SmallNotFocused = CreateBitmap(r, NonFocusedHintC"; -__ref._smallnotfocused /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ = __ref._createbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ (null,_r,__ref._nonfocusedhintcolor /*int*/ ,_f); -RDebugUtils.currentLine=52363273; - //BA.debugLineNum = 52363273;BA.debugLine="UpdateLabel(mTextField.Text, True)"; -__ref._updatelabel /*String*/ (null,__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getText(),__c.True); -RDebugUtils.currentLine=52363274; - //BA.debugLineNum = 52363274;BA.debugLine="End Sub"; -return ""; -} -public reparto_izca.keymon.lat.b4xfloattextfield _getnextfield(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "getnextfield", true)) - {return ((reparto_izca.keymon.lat.b4xfloattextfield) Debug.delegate(ba, "getnextfield", null));} -RDebugUtils.currentLine=52756480; - //BA.debugLineNum = 52756480;BA.debugLine="Public Sub getNextField As B4XFloatTextField"; -RDebugUtils.currentLine=52756481; - //BA.debugLineNum = 52756481;BA.debugLine="Return mNextTextField"; -if (true) return __ref._mnexttextfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ ; -RDebugUtils.currentLine=52756482; - //BA.debugLineNum = 52756482;BA.debugLine="End Sub"; +public reparto_izca.keymon.lat.b4xfloattextfield _getnextfield() throws Exception{ + //BA.debugLineNum = 295;BA.debugLine="Public Sub getNextField As B4XFloatTextField"; + //BA.debugLineNum = 296;BA.debugLine="Return mNextTextField"; +if (true) return _mnexttextfield; + //BA.debugLineNum = 297;BA.debugLine="End Sub"; return null; } -public String _gettext(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "gettext", true)) - {return ((String) Debug.delegate(ba, "gettext", null));} -RDebugUtils.currentLine=53084160; - //BA.debugLineNum = 53084160;BA.debugLine="Public Sub getText As String"; -RDebugUtils.currentLine=53084161; - //BA.debugLineNum = 53084161;BA.debugLine="Return mTextField.Text"; -if (true) return __ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getText(); -RDebugUtils.currentLine=53084162; - //BA.debugLineNum = 53084162;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "gettextfield", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "gettextfield", null));} -RDebugUtils.currentLine=53280768; - //BA.debugLineNum = 53280768;BA.debugLine="Public Sub getTextField As B4XView"; -RDebugUtils.currentLine=53280769; - //BA.debugLineNum = 53280769;BA.debugLine="Return mTextField"; -if (true) return __ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=53280770; - //BA.debugLineNum = 53280770;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "ime_handleaction", true)) - {return ((Boolean) Debug.delegate(ba, "ime_handleaction", null));} -RDebugUtils.currentLine=52887552; - //BA.debugLineNum = 52887552;BA.debugLine="Private Sub ime_HandleAction As Boolean"; -RDebugUtils.currentLine=52887553; - //BA.debugLineNum = 52887553;BA.debugLine="tf_EnterPressed"; -__ref._tf_enterpressed /*String*/ (null); -RDebugUtils.currentLine=52887554; - //BA.debugLineNum = 52887554;BA.debugLine="If mNextTextField.IsInitialized Then Return True"; -if (__ref._mnexttextfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ .IsInitialized /*boolean*/ ()) { +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;}; -RDebugUtils.currentLine=52887555; - //BA.debugLineNum = 52887555;BA.debugLine="Return False"; + //BA.debugLineNum = 317;BA.debugLine="Return False"; if (true) return __c.False; -RDebugUtils.currentLine=52887556; - //BA.debugLineNum = 52887556;BA.debugLine="End Sub"; + //BA.debugLineNum = 318;BA.debugLine="End Sub"; return false; } -public String _tf_enterpressed(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "tf_enterpressed", true)) - {return ((String) Debug.delegate(ba, "tf_enterpressed", null));} -RDebugUtils.currentLine=52953088; - //BA.debugLineNum = 52953088;BA.debugLine="Private Sub tf_EnterPressed"; -RDebugUtils.currentLine=52953089; - //BA.debugLineNum = 52953089;BA.debugLine="tf_Action"; -__ref._tf_action /*String*/ (null); -RDebugUtils.currentLine=52953094; - //BA.debugLineNum = 52953094;BA.debugLine="End Sub"; -return ""; -} -public String _initialize(reparto_izca.keymon.lat.b4xfloattextfield __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=51642368; - //BA.debugLineNum = 51642368;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=51642369; - //BA.debugLineNum = 51642369;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=51642370; - //BA.debugLineNum = 51642370;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=51642371; - //BA.debugLineNum = 51642371;BA.debugLine="If xui.IsB4A Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A()) { -RDebugUtils.currentLine=51642372; - //BA.debugLineNum = 51642372;BA.debugLine="HintLabelLargeOffsetX = 6dip"; -__ref._hintlabellargeoffsetx /*int*/ = __c.DipToCurrent((int) (6)); + //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 { -RDebugUtils.currentLine=51642374; - //BA.debugLineNum = 51642374;BA.debugLine="HintLabelLargeOffsetX = 12dip"; -__ref._hintlabellargeoffsetx /*int*/ = __c.DipToCurrent((int) (12)); + //BA.debugLineNum = 56;BA.debugLine="HintLabelLargeOffsetX = 12dip"; +_hintlabellargeoffsetx = __c.DipToCurrent((int) (12)); }; -RDebugUtils.currentLine=51642377; - //BA.debugLineNum = 51642377;BA.debugLine="IME.Initialize(\"ime\")"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .Initialize("ime"); -RDebugUtils.currentLine=51642383; - //BA.debugLineNum = 51642383;BA.debugLine="End Sub"; + //BA.debugLineNum = 59;BA.debugLine="IME.Initialize(\"ime\")"; +_ime.Initialize("ime"); + //BA.debugLineNum = 65;BA.debugLine="End Sub"; return ""; } -public String _lc_click(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "lc_click", true)) - {return ((String) Debug.delegate(ba, "lc_click", null));} +public String _lc_click() throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _btn = null; -RDebugUtils.currentLine=53215232; - //BA.debugLineNum = 53215232;BA.debugLine="Private Sub lc_Click"; -RDebugUtils.currentLine=53215233; - //BA.debugLineNum = 53215233;BA.debugLine="Dim btn As B4XView = Sender"; + //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))); -RDebugUtils.currentLine=53215234; - //BA.debugLineNum = 53215234;BA.debugLine="Select btn.Tag"; + //BA.debugLineNum = 405;BA.debugLine="Select btn.Tag"; switch (BA.switchObjectToInt(_btn.getTag(),(Object)("clear"),(Object)("reveal"),(Object)("hide"),(Object)("v"))) { case 0: { -RDebugUtils.currentLine=53215236; - //BA.debugLineNum = 53215236;BA.debugLine="setText(\"\")"; -__ref._settext /*String*/ (null,""); + //BA.debugLineNum = 407;BA.debugLine="setText(\"\")"; +_settext(""); break; } case 1: { -RDebugUtils.currentLine=53215238; - //BA.debugLineNum = 53215238;BA.debugLine="SwitchFromPasswordToRegular (True)"; -__ref._switchfrompasswordtoregular /*void*/ (null,__c.True); + //BA.debugLineNum = 409;BA.debugLine="SwitchFromPasswordToRegular (True)"; +_switchfrompasswordtoregular(__c.True); break; } case 2: { -RDebugUtils.currentLine=53215240; - //BA.debugLineNum = 53215240;BA.debugLine="SwitchFromPasswordToRegular(False)"; -__ref._switchfrompasswordtoregular /*void*/ (null,__c.False); + //BA.debugLineNum = 411;BA.debugLine="SwitchFromPasswordToRegular(False)"; +_switchfrompasswordtoregular(__c.False); break; } case 3: { -RDebugUtils.currentLine=53215242; - //BA.debugLineNum = 53215242;BA.debugLine="tf_EnterPressed"; -__ref._tf_enterpressed /*String*/ (null); -RDebugUtils.currentLine=53215243; - //BA.debugLineNum = 53215243;BA.debugLine="If mNextTextField.IsInitialized = False Or mNex"; -if (__ref._mnexttextfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ .IsInitialized /*boolean*/ ()==__c.False || (__ref._mnexttextfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ ).equals((reparto_izca.keymon.lat.b4xfloattextfield)(this))) { -RDebugUtils.currentLine=53215245; - //BA.debugLineNum = 53215245;BA.debugLine="IME.HideKeyboard"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba); + //BA.debugLineNum = 413;BA.debugLine="tf_EnterPressed"; +_tf_enterpressed(); + //BA.debugLineNum = 414;BA.debugLine="If mNextTextField.IsInitialized = False Or mNex"; +if (_mnexttextfield.IsInitialized /*boolean*/ ()==__c.False || (_mnexttextfield).equals((reparto_izca.keymon.lat.b4xfloattextfield)(this))) { + //BA.debugLineNum = 416;BA.debugLine="IME.HideKeyboard"; +_ime.HideKeyboard(ba); }; break; } } ; -RDebugUtils.currentLine=53215251; - //BA.debugLineNum = 53215251;BA.debugLine="End Sub"; + //BA.debugLineNum = 422;BA.debugLine="End Sub"; return ""; } -public String _settext(reparto_izca.keymon.lat.b4xfloattextfield __ref,String _s) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "settext", true)) - {return ((String) Debug.delegate(ba, "settext", new Object[] {_s}));} +public String _requestfocusandshowkeyboard() throws Exception{ + //BA.debugLineNum = 450;BA.debugLine="Public Sub RequestFocusAndShowKeyboard"; + //BA.debugLineNum = 451;BA.debugLine="mTextField.RequestFocus"; +_mtextfield.RequestFocus(); + //BA.debugLineNum = 453;BA.debugLine="IME.ShowKeyboard(mTextField)"; +_ime.ShowKeyboard((android.view.View)(_mtextfield.getObject())); + //BA.debugLineNum = 455;BA.debugLine="End Sub"; +return ""; +} +public String _setnextfield(reparto_izca.keymon.lat.b4xfloattextfield _field) throws Exception{ +anywheresoftware.b4a.objects.EditTextWrapper _et = null; +Object _o = null; + //BA.debugLineNum = 299;BA.debugLine="Public Sub setNextField (Field As B4XFloatTextFiel"; + //BA.debugLineNum = 300;BA.debugLine="If Field.IsInitialized = False Then Return"; +if (_field.IsInitialized /*boolean*/ ()==__c.False) { +if (true) return "";}; + //BA.debugLineNum = 302;BA.debugLine="If Multiline = False Then"; +if (_multiline==__c.False) { + //BA.debugLineNum = 303;BA.debugLine="If Field <> Me Then"; +if ((_field).equals((reparto_izca.keymon.lat.b4xfloattextfield)(this)) == false) { + //BA.debugLineNum = 304;BA.debugLine="IME.AddHandleActionEvent(mTextField)"; +_ime.AddHandleActionEvent((android.widget.EditText)(_mtextfield.getObject()),ba); + }; + //BA.debugLineNum = 306;BA.debugLine="Dim et As EditText = mTextField"; +_et = new anywheresoftware.b4a.objects.EditTextWrapper(); +_et = (anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_mtextfield.getObject())); + //BA.debugLineNum = 307;BA.debugLine="et.ForceDoneButton = True"; +_et.setForceDoneButton(__c.True); + }; + //BA.debugLineNum = 310;BA.debugLine="Dim o As Object = Field"; +_o = (Object)(_field); + //BA.debugLineNum = 311;BA.debugLine="mNextTextField = o"; +_mnexttextfield = (reparto_izca.keymon.lat.b4xfloattextfield)(_o); + //BA.debugLineNum = 312;BA.debugLine="End Sub"; +return ""; +} +public String _settext(String _s) throws Exception{ String _old = ""; -RDebugUtils.currentLine=53149696; - //BA.debugLineNum = 53149696;BA.debugLine="Public Sub setText(s As String)"; -RDebugUtils.currentLine=53149697; - //BA.debugLineNum = 53149697;BA.debugLine="Dim old As String = mTextField.Text 'ignore"; -_old = __ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getText(); -RDebugUtils.currentLine=53149698; - //BA.debugLineNum = 53149698;BA.debugLine="mTextField.Text = s"; -__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(_s)); -RDebugUtils.currentLine=53149700; - //BA.debugLineNum = 53149700;BA.debugLine="If IsPaused(Me) Then tf_TextChanged(old, s)"; + //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)) { -__ref._tf_textchanged /*String*/ (null,_old,_s);}; -RDebugUtils.currentLine=53149704; - //BA.debugLineNum = 53149704;BA.debugLine="End Sub"; +_tf_textchanged(_old,_s);}; + //BA.debugLineNum = 400;BA.debugLine="End Sub"; return ""; } -public void _switchfrompasswordtoregular(reparto_izca.keymon.lat.b4xfloattextfield __ref,boolean _toregular) throws Exception{ -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "switchfrompasswordtoregular", true)) - {Debug.delegate(ba, "switchfrompasswordtoregular", new Object[] {_toregular}); return;} -ResumableSub_SwitchFromPasswordToRegular rsub = new ResumableSub_SwitchFromPasswordToRegular(this,__ref,_toregular); +public void _switchfrompasswordtoregular(boolean _toregular) throws Exception{ +ResumableSub_SwitchFromPasswordToRegular rsub = new ResumableSub_SwitchFromPasswordToRegular(this,_toregular); rsub.resume(ba, null); } public static class ResumableSub_SwitchFromPasswordToRegular extends BA.ResumableSub { -public ResumableSub_SwitchFromPasswordToRegular(reparto_izca.keymon.lat.b4xfloattextfield parent,reparto_izca.keymon.lat.b4xfloattextfield __ref,boolean _toregular) { +public ResumableSub_SwitchFromPasswordToRegular(reparto_izca.keymon.lat.b4xfloattextfield parent,boolean _toregular) { this.parent = parent; -this.__ref = __ref; this._toregular = _toregular; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xfloattextfield __ref; reparto_izca.keymon.lat.b4xfloattextfield parent; boolean _toregular; String _text = ""; @@ -925,7 +539,6 @@ anywheresoftware.b4a.objects.EditTextWrapper _et = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xfloattextfield"; while (true) { switch (state) { @@ -935,41 +548,33 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=52035585; - //BA.debugLineNum = 52035585;BA.debugLine="Dim text As String = mTextField.Text"; -_text = __ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getText(); -RDebugUtils.currentLine=52035586; - //BA.debugLineNum = 52035586;BA.debugLine="Dim textcolor As Int = mTextField.TextColor"; -_textcolor = __ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTextColor(); -RDebugUtils.currentLine=52035587; - //BA.debugLineNum = 52035587;BA.debugLine="Dim Font1 As B4XFont = mTextField.Font"; -_font1 = __ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getFont(); -RDebugUtils.currentLine=52035588; - //BA.debugLineNum = 52035588;BA.debugLine="Dim oldfield As B4XView = mTextField"; + //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 = __ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=52035590; - //BA.debugLineNum = 52035590;BA.debugLine="CreateTextFieldAll(Not(ToRegular), Font1, textcol"; -__ref._createtextfieldall /*String*/ (null,parent.__c.Not(_toregular),_font1,_textcolor); -RDebugUtils.currentLine=52035591; - //BA.debugLineNum = 52035591;BA.debugLine="mTextField.Text = text"; -__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(_text)); -RDebugUtils.currentLine=52035592; - //BA.debugLineNum = 52035592;BA.debugLine="If lblClear.IsInitialized Then"; +_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 (__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized()) { +if (parent._lblclear.IsInitialized()) { this.state = 3; }if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=52035593; - //BA.debugLineNum = 52035593;BA.debugLine="If ToRegular = False Then"; + //BA.debugLineNum = 146;BA.debugLine="If ToRegular = False Then"; if (true) break; case 4: @@ -984,268 +589,268 @@ this.state = 8; case 6: //C this.state = 9; -RDebugUtils.currentLine=52035594; - //BA.debugLineNum = 52035594;BA.debugLine="lblClear.Text = Chr(0xE8F4)"; -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(parent.__c.Chr(((int)0xe8f4)))); -RDebugUtils.currentLine=52035595; - //BA.debugLineNum = 52035595;BA.debugLine="lblClear.Tag = \"reveal\""; -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag((Object)("reveal")); + //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; -RDebugUtils.currentLine=52035597; - //BA.debugLineNum = 52035597;BA.debugLine="lblClear.Tag = \"hide\""; -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag((Object)("hide")); -RDebugUtils.currentLine=52035598; - //BA.debugLineNum = 52035598;BA.debugLine="lblClear.Text = Chr(0xE8F5)"; -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(parent.__c.Chr(((int)0xe8f5)))); + //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; ; -RDebugUtils.currentLine=52035600; - //BA.debugLineNum = 52035600;BA.debugLine="lblClear.BringToFront"; -__ref._lblclear /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .BringToFront(); + //BA.debugLineNum = 153;BA.debugLine="lblClear.BringToFront"; +parent._lblclear.BringToFront(); if (true) break; ; -RDebugUtils.currentLine=52035602; - //BA.debugLineNum = 52035602;BA.debugLine="If lblV.IsInitialized Then lblV.BringToFront"; + //BA.debugLineNum = 155;BA.debugLine="If lblV.IsInitialized Then lblV.BringToFront"; case 10: //if this.state = 15; -if (__ref._lblv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized()) { +if (parent._lblv.IsInitialized()) { this.state = 12; ;}if (true) break; case 12: //C this.state = 15; -__ref._lblv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .BringToFront(); +parent._lblv.BringToFront(); if (true) break; case 15: //C this.state = 16; ; -RDebugUtils.currentLine=52035603; - //BA.debugLineNum = 52035603;BA.debugLine="HintImageView.BringToFront"; -__ref._hintimageview /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .BringToFront(); -RDebugUtils.currentLine=52035604; - //BA.debugLineNum = 52035604;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)"; -__ref._base_resize /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=52035609; - //BA.debugLineNum = 52035609;BA.debugLine="Dim et As EditText = mTextField"; + //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)(__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject())); -RDebugUtils.currentLine=52035610; - //BA.debugLineNum = 52035610;BA.debugLine="et.SelectionStart = mTextField.Text.Length"; -_et.setSelectionStart(__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getText().length()); -RDebugUtils.currentLine=52035612; - //BA.debugLineNum = 52035612;BA.debugLine="LastSwitchTextFieldTime = DateTime.Now"; -__ref._lastswitchtextfieldtime /*long*/ = parent.__c.DateTime.getNow(); -RDebugUtils.currentLine=52035613; - //BA.debugLineNum = 52035613;BA.debugLine="mTextField.RequestFocus"; -__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RequestFocus(); -RDebugUtils.currentLine=52035614; - //BA.debugLineNum = 52035614;BA.debugLine="oldfield.RemoveViewFromParent"; +_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(); -RDebugUtils.currentLine=52035616; - //BA.debugLineNum = 52035616;BA.debugLine="LastSwitchTextFieldTime = DateTime.Now + 200"; -__ref._lastswitchtextfieldtime /*long*/ = (long) (parent.__c.DateTime.getNow()+200); -RDebugUtils.currentLine=52035617; - //BA.debugLineNum = 52035617;BA.debugLine="et.Enabled = False"; + //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); -RDebugUtils.currentLine=52035618; - //BA.debugLineNum = 52035618;BA.debugLine="Sleep(50)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xfloattextfield", "switchfrompasswordtoregular"),(int) (50)); + //BA.debugLineNum = 171;BA.debugLine="Sleep(50)"; +parent.__c.Sleep(ba,this,(int) (50)); this.state = 20; return; case 20: //C this.state = 16; ; -RDebugUtils.currentLine=52035619; - //BA.debugLineNum = 52035619;BA.debugLine="et.Enabled = True"; + //BA.debugLineNum = 172;BA.debugLine="et.Enabled = True"; _et.setEnabled(parent.__c.True); -RDebugUtils.currentLine=52035620; - //BA.debugLineNum = 52035620;BA.debugLine="Sleep(50)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xfloattextfield", "switchfrompasswordtoregular"),(int) (50)); + //BA.debugLineNum = 173;BA.debugLine="Sleep(50)"; +parent.__c.Sleep(ba,this,(int) (50)); this.state = 21; return; case 21: //C this.state = 16; ; -RDebugUtils.currentLine=52035621; - //BA.debugLineNum = 52035621;BA.debugLine="et.RequestFocus"; + //BA.debugLineNum = 174;BA.debugLine="et.RequestFocus"; _et.RequestFocus(); -RDebugUtils.currentLine=52035622; - //BA.debugLineNum = 52035622;BA.debugLine="IME.ShowKeyboard(mTextField)"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .ShowKeyboard((android.view.View)(__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject())); -RDebugUtils.currentLine=52035624; - //BA.debugLineNum = 52035624;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Passwo"; + //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 (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_PasswordRevealChanged",(int) (1))) { +if (parent._xui.SubExists(ba,parent._mcallback,parent._meventname+"_PasswordRevealChanged",(int) (1))) { this.state = 18; }if (true) break; case 18: //C this.state = 19; -RDebugUtils.currentLine=52035625; - //BA.debugLineNum = 52035625;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_Passwo"; -parent.__c.CallSubDelayed2(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_PasswordRevealChanged",(Object)(_toregular)); + //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; ; -RDebugUtils.currentLine=52035627; - //BA.debugLineNum = 52035627;BA.debugLine="End Sub"; + //BA.debugLineNum = 180;BA.debugLine="End Sub"; if (true) break; } } } } -public String _requestfocusandshowkeyboard(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "requestfocusandshowkeyboard", true)) - {return ((String) Debug.delegate(ba, "requestfocusandshowkeyboard", null));} -RDebugUtils.currentLine=53346304; - //BA.debugLineNum = 53346304;BA.debugLine="Public Sub RequestFocusAndShowKeyboard"; -RDebugUtils.currentLine=53346305; - //BA.debugLineNum = 53346305;BA.debugLine="mTextField.RequestFocus"; -__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RequestFocus(); -RDebugUtils.currentLine=53346307; - //BA.debugLineNum = 53346307;BA.debugLine="IME.ShowKeyboard(mTextField)"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .ShowKeyboard((android.view.View)(__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject())); -RDebugUtils.currentLine=53346309; - //BA.debugLineNum = 53346309;BA.debugLine="End Sub"; -return ""; -} -public String _tf_textchanged(reparto_izca.keymon.lat.b4xfloattextfield __ref,String _old,String _new) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "tf_textchanged", true)) - {return ((String) Debug.delegate(ba, "tf_textchanged", new Object[] {_old,_new}));} -RDebugUtils.currentLine=52690944; - //BA.debugLineNum = 52690944;BA.debugLine="Private Sub tf_TextChanged (Old As String, New As"; -RDebugUtils.currentLine=52690945; - //BA.debugLineNum = 52690945;BA.debugLine="UpdateLabel(New, False)"; -__ref._updatelabel /*String*/ (null,_new,__c.False); -RDebugUtils.currentLine=52690946; - //BA.debugLineNum = 52690946;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_TextCh"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_TextChanged",(int) (2)) && __ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .IsInitialized()) { -RDebugUtils.currentLine=52690947; - //BA.debugLineNum = 52690947;BA.debugLine="CallSub3(mCallBack, mEventName & \"_TextChanged\","; -__c.CallSubNew3(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_TextChanged",(Object)(_old),(Object)(_new)); +public String _tf_action() throws Exception{ + //BA.debugLineNum = 277;BA.debugLine="Private Sub tf_Action"; + //BA.debugLineNum = 278;BA.debugLine="If mNextTextField.IsInitialized And mNextTextFiel"; +if (_mnexttextfield.IsInitialized /*boolean*/ () && (_mnexttextfield).equals((reparto_izca.keymon.lat.b4xfloattextfield)(this)) == false) { + //BA.debugLineNum = 279;BA.debugLine="mNextTextField.TextField.RequestFocus"; +_mnexttextfield._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ().RequestFocus(); }; -RDebugUtils.currentLine=52690949; - //BA.debugLineNum = 52690949;BA.debugLine="End Sub"; -return ""; -} -public String _tf_action(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "tf_action", true)) - {return ((String) Debug.delegate(ba, "tf_action", null));} -RDebugUtils.currentLine=52625408; - //BA.debugLineNum = 52625408;BA.debugLine="Private Sub tf_Action"; -RDebugUtils.currentLine=52625409; - //BA.debugLineNum = 52625409;BA.debugLine="If mNextTextField.IsInitialized And mNextTextFiel"; -if (__ref._mnexttextfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ .IsInitialized /*boolean*/ () && (__ref._mnexttextfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ ).equals((reparto_izca.keymon.lat.b4xfloattextfield)(this)) == false) { -RDebugUtils.currentLine=52625410; - //BA.debugLineNum = 52625410;BA.debugLine="mNextTextField.TextField.RequestFocus"; -__ref._mnexttextfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ ._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null).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"); }; -RDebugUtils.currentLine=52625412; - //BA.debugLineNum = 52625412;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_EnterP"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_EnterPressed",(int) (0))) { -RDebugUtils.currentLine=52625413; - //BA.debugLineNum = 52625413;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_EnterPr"; -__c.CallSubDelayed(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_EnterPressed"); - }; -RDebugUtils.currentLine=52625415; - //BA.debugLineNum = 52625415;BA.debugLine="End Sub"; + //BA.debugLineNum = 284;BA.debugLine="End Sub"; return ""; } -public String _tf_beginedit(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "tf_beginedit", true)) - {return ((String) Debug.delegate(ba, "tf_beginedit", null));} -RDebugUtils.currentLine=52494336; - //BA.debugLineNum = 52494336;BA.debugLine="Private Sub tf_BeginEdit"; -RDebugUtils.currentLine=52494337; - //BA.debugLineNum = 52494337;BA.debugLine="tf_FocusChanged(True)"; -__ref._tf_focuschanged /*String*/ (null,__c.True); -RDebugUtils.currentLine=52494338; - //BA.debugLineNum = 52494338;BA.debugLine="End Sub"; +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_focuschanged(reparto_izca.keymon.lat.b4xfloattextfield __ref,boolean _hasfocus) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "tf_focuschanged", true)) - {return ((String) Debug.delegate(ba, "tf_focuschanged", new Object[] {_hasfocus}));} -RDebugUtils.currentLine=52297728; - //BA.debugLineNum = 52297728;BA.debugLine="Private Sub tf_FocusChanged (HasFocus As Boolean)"; -RDebugUtils.currentLine=52297729; - //BA.debugLineNum = 52297729;BA.debugLine="Focused = HasFocus"; -__ref._focused /*boolean*/ = _hasfocus; -RDebugUtils.currentLine=52297730; - //BA.debugLineNum = 52297730;BA.debugLine="UpdateLabel(mTextField.Text, True)"; -__ref._updatelabel /*String*/ (null,__ref._mtextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getText(),__c.True); -RDebugUtils.currentLine=52297731; - //BA.debugLineNum = 52297731;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_FocusC"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_FocusChanged",(int) (1))) { -RDebugUtils.currentLine=52297732; - //BA.debugLineNum = 52297732;BA.debugLine="If LastSwitchTextFieldTime + 100 < DateTime.Now"; -if (__ref._lastswitchtextfieldtime /*long*/ +100<__c.DateTime.getNow()) { -RDebugUtils.currentLine=52297733; - //BA.debugLineNum = 52297733;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_Focus"; -__c.CallSubDelayed2(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_FocusChanged",(Object)(__ref._focused /*boolean*/ )); +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)); }; }; -RDebugUtils.currentLine=52297736; - //BA.debugLineNum = 52297736;BA.debugLine="End Sub"; + //BA.debugLineNum = 242;BA.debugLine="End Sub"; return ""; } -public String _tf_endedit(reparto_izca.keymon.lat.b4xfloattextfield __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xfloattextfield"; -if (Debug.shouldDelegate(ba, "tf_endedit", true)) - {return ((String) Debug.delegate(ba, "tf_endedit", null));} -RDebugUtils.currentLine=52559872; - //BA.debugLineNum = 52559872;BA.debugLine="Private Sub tf_EndEdit"; -RDebugUtils.currentLine=52559873; - //BA.debugLineNum = 52559873;BA.debugLine="tf_FocusChanged(False)"; -__ref._tf_focuschanged /*String*/ (null,__c.False); -RDebugUtils.currentLine=52559874; - //BA.debugLineNum = 52559874;BA.debugLine="End Sub"; +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 void RemoveWarning() throws Exception{ - anywheresoftware.b4a.shell.Shell s = anywheresoftware.b4a.shell.Shell.INSTANCE; - java.lang.reflect.Field f = s.getClass().getDeclaredField("errorMessagesForSyncEvents"); - f.setAccessible(true); - java.util.HashSet h = (java.util.HashSet)f.get(s); - if (h == null) { - h = new java.util.HashSet(); - f.set(s, h); - } - h.add("tf_focuschanged"); +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; +} } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xformatter.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xformatter.java index 53107a9..298d318 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xformatter.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xformatter.java @@ -10,7 +10,7 @@ public class b4xformatter extends B4AClass.ImplB4AClass implements BA.SubDelegat private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xformatter"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xformatter"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,13 +23,25 @@ public class b4xformatter extends B4AClass.ImplB4AClass implements BA.SubDelegat ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } + public anywheresoftware.b4a.keywords.Common __c = null; +public anywheresoftware.b4a.objects.collections.List _formats = null; +public int _max_value = 0; +public int _min_value = 0; +public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; +public b4a.example.dateutils _dateutils = null; +public reparto_izca.keymon.lat.main _main = null; +public reparto_izca.keymon.lat.appupdater _appupdater = null; +public reparto_izca.keymon.lat.foto _foto = null; +public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null; +public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null; +public reparto_izca.keymon.lat.starter _starter = null; +public reparto_izca.keymon.lat.subs _subs = null; +public reparto_izca.keymon.lat.tracker _tracker = null; +public reparto_izca.keymon.lat.newinst2 _newinst2 = null; +public reparto_izca.keymon.lat.b4xpages _b4xpages = null; +public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; +public reparto_izca.keymon.lat.httputils2service _httputils2service = null; +public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; public static class _b4xformatdata{ public boolean IsInitialized; public String Prefix; @@ -67,44 +79,113 @@ FractionPaddingChar = ""; public String toString() { return BA.TypeToString(this, false); }} -public anywheresoftware.b4a.keywords.Common __c = null; -public anywheresoftware.b4a.objects.collections.List _formats = null; -public int _max_value = 0; -public int _min_value = 0; -public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; -public b4a.example.dateutils _dateutils = null; -public reparto_izca.keymon.lat.main _main = null; -public reparto_izca.keymon.lat.appupdater _appupdater = null; -public reparto_izca.keymon.lat.foto _foto = null; -public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null; -public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null; -public reparto_izca.keymon.lat.starter _starter = null; -public reparto_izca.keymon.lat.subs _subs = null; -public reparto_izca.keymon.lat.tracker _tracker = null; -public reparto_izca.keymon.lat.newinst2 _newinst2 = null; -public reparto_izca.keymon.lat.b4xpages _b4xpages = null; -public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; -public reparto_izca.keymon.lat.httputils2service _httputils2service = null; -public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _getdefaultformat(reparto_izca.keymon.lat.b4xformatter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xformatter"; -if (Debug.shouldDelegate(ba, "getdefaultformat", true)) - {return ((reparto_izca.keymon.lat.b4xformatter._b4xformatdata) Debug.delegate(ba, "getdefaultformat", null));} -RDebugUtils.currentLine=62914560; - //BA.debugLineNum = 62914560;BA.debugLine="Public Sub GetDefaultFormat As B4XFormatData"; -RDebugUtils.currentLine=62914561; - //BA.debugLineNum = 62914561;BA.debugLine="Return formats.Get(0)"; -if (true) return (reparto_izca.keymon.lat.b4xformatter._b4xformatdata)(__ref._formats /*anywheresoftware.b4a.objects.collections.List*/ .Get((int) (0))); -RDebugUtils.currentLine=62914562; - //BA.debugLineNum = 62914562;BA.debugLine="End Sub"; +public String _addformatdata(reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data,double _rangestart,double _rangeend,boolean _includeedges) throws Exception{ +double _factor = 0; + //BA.debugLineNum = 65;BA.debugLine="Public Sub AddFormatData (Data As B4XFormatData, R"; + //BA.debugLineNum = 66;BA.debugLine="Dim factor As Double = Power(10, -Data.MaximumFra"; +_factor = __c.Power(10,-_data.MaximumFractions /*int*/ ); + //BA.debugLineNum = 67;BA.debugLine="If IncludeEdges = False Then"; +if (_includeedges==__c.False) { + //BA.debugLineNum = 68;BA.debugLine="RangeStart = RangeStart + factor"; +_rangestart = _rangestart+_factor; + //BA.debugLineNum = 69;BA.debugLine="RangeEnd = RangeEnd - factor"; +_rangeend = _rangeend-_factor; + }; + //BA.debugLineNum = 71;BA.debugLine="RangeStart = RangeStart - factor / 2"; +_rangestart = _rangestart-_factor/(double)2; + //BA.debugLineNum = 72;BA.debugLine="RangeEnd = RangeEnd + factor / 2"; +_rangeend = _rangeend+_factor/(double)2; + //BA.debugLineNum = 73;BA.debugLine="Data.RangeStart = RangeStart"; +_data.RangeStart /*double*/ = _rangestart; + //BA.debugLineNum = 74;BA.debugLine="Data.RangeEnd = RangeEnd"; +_data.RangeEnd /*double*/ = _rangeend; + //BA.debugLineNum = 75;BA.debugLine="formats.Add(Data)"; +_formats.Add((Object)(_data)); + //BA.debugLineNum = 76;BA.debugLine="End Sub"; +return ""; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Type B4XFormatData (Prefix As String, Postfix As"; +; + //BA.debugLineNum = 6;BA.debugLine="Private formats As List"; +_formats = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 7;BA.debugLine="Public Const MAX_VALUE = 0x7fffffff, MIN_VALUE ="; +_max_value = ((int)0x7fffffff); +_min_value = ((int)0x80000000); + //BA.debugLineNum = 9;BA.debugLine="Private xui As XUI"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 11;BA.debugLine="End Sub"; +return ""; +} +public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _copyformatdata(reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data) throws Exception{ +reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null; + //BA.debugLineNum = 38;BA.debugLine="Public Sub CopyFormatData (Data As B4XFormatData)"; + //BA.debugLineNum = 39;BA.debugLine="Dim d As B4XFormatData"; +_d = new reparto_izca.keymon.lat.b4xformatter._b4xformatdata(); + //BA.debugLineNum = 40;BA.debugLine="d.Initialize"; +_d.Initialize(); + //BA.debugLineNum = 41;BA.debugLine="d.DecimalPoint = Data.DecimalPoint"; +_d.DecimalPoint /*String*/ = _data.DecimalPoint /*String*/ ; + //BA.debugLineNum = 42;BA.debugLine="If Data.FormatFont.IsInitialized Then"; +if (_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ .getIsInitialized()) { + //BA.debugLineNum = 44;BA.debugLine="d.FormatFont = xui.CreateFont(Data.FormatFont.To"; +_d.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = _xui.CreateFont((android.graphics.Typeface)(_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ .ToNativeFont().getObject()),_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ .getSize()); + }; + //BA.debugLineNum = 47;BA.debugLine="d.GroupingCharacter = Data.GroupingCharacter"; +_d.GroupingCharacter /*String*/ = _data.GroupingCharacter /*String*/ ; + //BA.debugLineNum = 48;BA.debugLine="d.MaximumFractions = Data.MaximumFractions"; +_d.MaximumFractions /*int*/ = _data.MaximumFractions /*int*/ ; + //BA.debugLineNum = 49;BA.debugLine="d.MinimumFractions = Data.MinimumFractions"; +_d.MinimumFractions /*int*/ = _data.MinimumFractions /*int*/ ; + //BA.debugLineNum = 50;BA.debugLine="d.MinimumIntegers = Data.MinimumIntegers"; +_d.MinimumIntegers /*int*/ = _data.MinimumIntegers /*int*/ ; + //BA.debugLineNum = 51;BA.debugLine="d.Postfix = Data.Postfix"; +_d.Postfix /*String*/ = _data.Postfix /*String*/ ; + //BA.debugLineNum = 52;BA.debugLine="d.Prefix = Data.Prefix"; +_d.Prefix /*String*/ = _data.Prefix /*String*/ ; + //BA.debugLineNum = 53;BA.debugLine="d.RangeEnd = Data.RangeEnd"; +_d.RangeEnd /*double*/ = _data.RangeEnd /*double*/ ; + //BA.debugLineNum = 54;BA.debugLine="d.RangeStart = Data.RangeStart"; +_d.RangeStart /*double*/ = _data.RangeStart /*double*/ ; + //BA.debugLineNum = 55;BA.debugLine="d.RemoveMinusSign = Data.RemoveMinusSign"; +_d.RemoveMinusSign /*boolean*/ = _data.RemoveMinusSign /*boolean*/ ; + //BA.debugLineNum = 56;BA.debugLine="d.TextColor = Data.TextColor"; +_d.TextColor /*int*/ = _data.TextColor /*int*/ ; + //BA.debugLineNum = 57;BA.debugLine="d.FractionPaddingChar = Data.FractionPaddingChar"; +_d.FractionPaddingChar /*String*/ = _data.FractionPaddingChar /*String*/ ; + //BA.debugLineNum = 58;BA.debugLine="d.IntegerPaddingChar = Data.IntegerPaddingChar"; +_d.IntegerPaddingChar /*String*/ = _data.IntegerPaddingChar /*String*/ ; + //BA.debugLineNum = 59;BA.debugLine="Return d"; +if (true) return _d; + //BA.debugLineNum = 60;BA.debugLine="End Sub"; return null; } -public String _format(reparto_izca.keymon.lat.b4xformatter __ref,double _number) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xformatter"; -if (Debug.shouldDelegate(ba, "format", true)) - {return ((String) Debug.delegate(ba, "format", new Object[] {_number}));} +public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _createdefaultformat() throws Exception{ +reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null; + //BA.debugLineNum = 19;BA.debugLine="Private Sub CreateDefaultFormat As B4XFormatData"; + //BA.debugLineNum = 20;BA.debugLine="Dim d As B4XFormatData"; +_d = new reparto_izca.keymon.lat.b4xformatter._b4xformatdata(); + //BA.debugLineNum = 21;BA.debugLine="d.Initialize"; +_d.Initialize(); + //BA.debugLineNum = 22;BA.debugLine="d.GroupingCharacter = \",\""; +_d.GroupingCharacter /*String*/ = ","; + //BA.debugLineNum = 23;BA.debugLine="d.DecimalPoint = \".\""; +_d.DecimalPoint /*String*/ = "."; + //BA.debugLineNum = 24;BA.debugLine="d.MaximumFractions = 3"; +_d.MaximumFractions /*int*/ = (int) (3); + //BA.debugLineNum = 25;BA.debugLine="d.MinimumIntegers = 1"; +_d.MinimumIntegers /*int*/ = (int) (1); + //BA.debugLineNum = 26;BA.debugLine="d.IntegerPaddingChar = \"0\""; +_d.IntegerPaddingChar /*String*/ = "0"; + //BA.debugLineNum = 27;BA.debugLine="d.FractionPaddingChar = \"0\""; +_d.FractionPaddingChar /*String*/ = "0"; + //BA.debugLineNum = 28;BA.debugLine="Return d"; +if (true) return _d; + //BA.debugLineNum = 29;BA.debugLine="End Sub"; +return null; +} +public String _format(double _number) throws Exception{ reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data = null; anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null; int _numberstartindex = 0; @@ -116,422 +197,183 @@ int _fracstartindex = 0; int _lastzerocount = 0; int _multipler = 0; int _w = 0; -RDebugUtils.currentLine=63045632; - //BA.debugLineNum = 63045632;BA.debugLine="Public Sub Format (Number As Double) As String"; -RDebugUtils.currentLine=63045633; - //BA.debugLineNum = 63045633;BA.debugLine="If Number < MIN_VALUE Or Number > MAX_VALUE Then"; -if (_number<__ref._min_value /*int*/ || _number>__ref._max_value /*int*/ ) { + //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";}; -RDebugUtils.currentLine=63045634; - //BA.debugLineNum = 63045634;BA.debugLine="Dim data As B4XFormatData = GetFormatData (Number"; -_data = __ref._getformatdata /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ (null,_number); -RDebugUtils.currentLine=63045635; - //BA.debugLineNum = 63045635;BA.debugLine="Dim sb As StringBuilder"; + //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(); -RDebugUtils.currentLine=63045636; - //BA.debugLineNum = 63045636;BA.debugLine="sb.Initialize"; + //BA.debugLineNum = 96;BA.debugLine="sb.Initialize"; _sb.Initialize(); -RDebugUtils.currentLine=63045637; - //BA.debugLineNum = 63045637;BA.debugLine="sb.Append(data.Prefix)"; + //BA.debugLineNum = 97;BA.debugLine="sb.Append(data.Prefix)"; _sb.Append(_data.Prefix /*String*/ ); -RDebugUtils.currentLine=63045638; - //BA.debugLineNum = 63045638;BA.debugLine="Dim NumberStartIndex As Int = sb.Length"; + //BA.debugLineNum = 98;BA.debugLine="Dim NumberStartIndex As Int = sb.Length"; _numberstartindex = _sb.getLength(); -RDebugUtils.currentLine=63045639; - //BA.debugLineNum = 63045639;BA.debugLine="Dim factor As Double = Power(10, -data.MaximumFra"; + //BA.debugLineNum = 99;BA.debugLine="Dim factor As Double = Power(10, -data.MaximumFra"; _factor = __c.Power(10,-_data.MaximumFractions /*int*/ -1)*5; -RDebugUtils.currentLine=63045640; - //BA.debugLineNum = 63045640;BA.debugLine="If Number < -factor And data.RemoveMinusSign = Fa"; + //BA.debugLineNum = 100;BA.debugLine="If Number < -factor And data.RemoveMinusSign = Fa"; if (_number<-_factor && _data.RemoveMinusSign /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=63045641; - //BA.debugLineNum = 63045641;BA.debugLine="sb.Append(\"-\")"; + //BA.debugLineNum = 101;BA.debugLine="sb.Append(\"-\")"; _sb.Append("-"); -RDebugUtils.currentLine=63045642; - //BA.debugLineNum = 63045642;BA.debugLine="NumberStartIndex = NumberStartIndex + 1"; + //BA.debugLineNum = 102;BA.debugLine="NumberStartIndex = NumberStartIndex + 1"; _numberstartindex = (int) (_numberstartindex+1); }; -RDebugUtils.currentLine=63045644; - //BA.debugLineNum = 63045644;BA.debugLine="Number = Abs(Number) + factor"; + //BA.debugLineNum = 104;BA.debugLine="Number = Abs(Number) + factor"; _number = __c.Abs(_number)+_factor; -RDebugUtils.currentLine=63045645; - //BA.debugLineNum = 63045645;BA.debugLine="Dim whole As Int = Number"; + //BA.debugLineNum = 105;BA.debugLine="Dim whole As Int = Number"; _whole = (int) (_number); -RDebugUtils.currentLine=63045646; - //BA.debugLineNum = 63045646;BA.debugLine="Dim frac As Double = Number - whole"; + //BA.debugLineNum = 106;BA.debugLine="Dim frac As Double = Number - whole"; _frac = _number-_whole; -RDebugUtils.currentLine=63045647; - //BA.debugLineNum = 63045647;BA.debugLine="Dim g As Int"; + //BA.debugLineNum = 107;BA.debugLine="Dim g As Int"; _g = 0; -RDebugUtils.currentLine=63045648; - //BA.debugLineNum = 63045648;BA.debugLine="Do While whole > 0"; + //BA.debugLineNum = 108;BA.debugLine="Do While whole > 0"; while (_whole>0) { -RDebugUtils.currentLine=63045649; - //BA.debugLineNum = 63045649;BA.debugLine="If g > 0 And g Mod 3 = 0 And data.GroupingCharac"; + //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) { -RDebugUtils.currentLine=63045650; - //BA.debugLineNum = 63045650;BA.debugLine="sb.Insert(NumberStartIndex, data.GroupingCharac"; + //BA.debugLineNum = 110;BA.debugLine="sb.Insert(NumberStartIndex, data.GroupingCharac"; _sb.Insert(_numberstartindex,_data.GroupingCharacter /*String*/ ); }; -RDebugUtils.currentLine=63045652; - //BA.debugLineNum = 63045652;BA.debugLine="g = g + 1"; + //BA.debugLineNum = 112;BA.debugLine="g = g + 1"; _g = (int) (_g+1); -RDebugUtils.currentLine=63045653; - //BA.debugLineNum = 63045653;BA.debugLine="sb.Insert(NumberStartIndex, whole Mod 10)"; + //BA.debugLineNum = 113;BA.debugLine="sb.Insert(NumberStartIndex, whole Mod 10)"; _sb.Insert(_numberstartindex,BA.NumberToString(_whole%10)); -RDebugUtils.currentLine=63045654; - //BA.debugLineNum = 63045654;BA.debugLine="whole = whole / 10"; + //BA.debugLineNum = 114;BA.debugLine="whole = whole / 10"; _whole = (int) (_whole/(double)10); } ; -RDebugUtils.currentLine=63045656; - //BA.debugLineNum = 63045656;BA.debugLine="Do While sb.Length - NumberStartIndex < data.Mini"; + //BA.debugLineNum = 116;BA.debugLine="Do While sb.Length - NumberStartIndex < data.Mini"; while (_sb.getLength()-_numberstartindex<_data.MinimumIntegers /*int*/ ) { -RDebugUtils.currentLine=63045657; - //BA.debugLineNum = 63045657;BA.debugLine="sb.Insert(NumberStartIndex, data.IntegerPaddingC"; + //BA.debugLineNum = 117;BA.debugLine="sb.Insert(NumberStartIndex, data.IntegerPaddingC"; _sb.Insert(_numberstartindex,_data.IntegerPaddingChar /*String*/ ); } ; -RDebugUtils.currentLine=63045659; - //BA.debugLineNum = 63045659;BA.debugLine="If data.MaximumFractions > 0 And (data.MinimumFra"; + //BA.debugLineNum = 119;BA.debugLine="If data.MaximumFractions > 0 And (data.MinimumFra"; if (_data.MaximumFractions /*int*/ >0 && (_data.MinimumFractions /*int*/ >0 || _frac>0)) { -RDebugUtils.currentLine=63045660; - //BA.debugLineNum = 63045660;BA.debugLine="Dim FracStartIndex As Int = sb.Length"; + //BA.debugLineNum = 120;BA.debugLine="Dim FracStartIndex As Int = sb.Length"; _fracstartindex = _sb.getLength(); -RDebugUtils.currentLine=63045661; - //BA.debugLineNum = 63045661;BA.debugLine="Dim LastZeroCount As Int"; + //BA.debugLineNum = 121;BA.debugLine="Dim LastZeroCount As Int"; _lastzerocount = 0; -RDebugUtils.currentLine=63045662; - //BA.debugLineNum = 63045662;BA.debugLine="Dim Multipler As Int = 10"; + //BA.debugLineNum = 122;BA.debugLine="Dim Multipler As Int = 10"; _multipler = (int) (10); -RDebugUtils.currentLine=63045663; - //BA.debugLineNum = 63045663;BA.debugLine="Do While frac >= 2 * factor And sb.Length - Frac"; + //BA.debugLineNum = 123;BA.debugLine="Do While frac >= 2 * factor And sb.Length - Frac"; while (_frac>=2*_factor && _sb.getLength()-_fracstartindex<_data.MaximumFractions /*int*/ ) { -RDebugUtils.currentLine=63045664; - //BA.debugLineNum = 63045664;BA.debugLine="Dim w As Int = (frac * Multipler)"; + //BA.debugLineNum = 124;BA.debugLine="Dim w As Int = (frac * Multipler)"; _w = (int) ((_frac*_multipler)); -RDebugUtils.currentLine=63045665; - //BA.debugLineNum = 63045665;BA.debugLine="w = w Mod 10"; + //BA.debugLineNum = 125;BA.debugLine="w = w Mod 10"; _w = (int) (_w%10); -RDebugUtils.currentLine=63045666; - //BA.debugLineNum = 63045666;BA.debugLine="If w = 0 Then LastZeroCount = LastZeroCount + 1"; + //BA.debugLineNum = 126;BA.debugLine="If w = 0 Then LastZeroCount = LastZeroCount + 1"; if (_w==0) { _lastzerocount = (int) (_lastzerocount+1);} else { _lastzerocount = (int) (0);}; -RDebugUtils.currentLine=63045667; - //BA.debugLineNum = 63045667;BA.debugLine="sb.Append(w)"; + //BA.debugLineNum = 127;BA.debugLine="sb.Append(w)"; _sb.Append(BA.NumberToString(_w)); -RDebugUtils.currentLine=63045668; - //BA.debugLineNum = 63045668;BA.debugLine="Multipler = Multipler * 10"; + //BA.debugLineNum = 128;BA.debugLine="Multipler = Multipler * 10"; _multipler = (int) (_multipler*10); } ; -RDebugUtils.currentLine=63045670; - //BA.debugLineNum = 63045670;BA.debugLine="If data.FractionPaddingChar <> \"0\" And LastZeroC"; + //BA.debugLineNum = 130;BA.debugLine="If data.FractionPaddingChar <> \"0\" And LastZeroC"; if ((_data.FractionPaddingChar /*String*/ ).equals("0") == false && _lastzerocount>0) { -RDebugUtils.currentLine=63045671; - //BA.debugLineNum = 63045671;BA.debugLine="sb.Remove(sb.Length - LastZeroCount, sb.Length)"; + //BA.debugLineNum = 131;BA.debugLine="sb.Remove(sb.Length - LastZeroCount, sb.Length)"; _sb.Remove((int) (_sb.getLength()-_lastzerocount),_sb.getLength()); -RDebugUtils.currentLine=63045672; - //BA.debugLineNum = 63045672;BA.debugLine="LastZeroCount = 0"; + //BA.debugLineNum = 132;BA.debugLine="LastZeroCount = 0"; _lastzerocount = (int) (0); }; -RDebugUtils.currentLine=63045674; - //BA.debugLineNum = 63045674;BA.debugLine="Do While sb.Length - FracStartIndex < data.Minim"; + //BA.debugLineNum = 134;BA.debugLine="Do While sb.Length - FracStartIndex < data.Minim"; while (_sb.getLength()-_fracstartindex<_data.MinimumFractions /*int*/ ) { -RDebugUtils.currentLine=63045675; - //BA.debugLineNum = 63045675;BA.debugLine="sb.Append(data.FractionPaddingChar)"; + //BA.debugLineNum = 135;BA.debugLine="sb.Append(data.FractionPaddingChar)"; _sb.Append(_data.FractionPaddingChar /*String*/ ); -RDebugUtils.currentLine=63045676; - //BA.debugLineNum = 63045676;BA.debugLine="LastZeroCount = 0"; + //BA.debugLineNum = 136;BA.debugLine="LastZeroCount = 0"; _lastzerocount = (int) (0); } ; -RDebugUtils.currentLine=63045678; - //BA.debugLineNum = 63045678;BA.debugLine="LastZeroCount = Min(LastZeroCount, sb.Length - F"; + //BA.debugLineNum = 138;BA.debugLine="LastZeroCount = Min(LastZeroCount, sb.Length - F"; _lastzerocount = (int) (__c.Min(_lastzerocount,_sb.getLength()-_fracstartindex-_data.MinimumFractions /*int*/ )); -RDebugUtils.currentLine=63045679; - //BA.debugLineNum = 63045679;BA.debugLine="If LastZeroCount > 0 Then"; + //BA.debugLineNum = 139;BA.debugLine="If LastZeroCount > 0 Then"; if (_lastzerocount>0) { -RDebugUtils.currentLine=63045680; - //BA.debugLineNum = 63045680;BA.debugLine="sb.Remove(sb.Length - LastZeroCount, sb.Length)"; + //BA.debugLineNum = 140;BA.debugLine="sb.Remove(sb.Length - LastZeroCount, sb.Length)"; _sb.Remove((int) (_sb.getLength()-_lastzerocount),_sb.getLength()); }; -RDebugUtils.currentLine=63045682; - //BA.debugLineNum = 63045682;BA.debugLine="If sb.Length > FracStartIndex Then sb.Insert(Fra"; + //BA.debugLineNum = 142;BA.debugLine="If sb.Length > FracStartIndex Then sb.Insert(Fra"; if (_sb.getLength()>_fracstartindex) { _sb.Insert(_fracstartindex,_data.DecimalPoint /*String*/ );}; }; -RDebugUtils.currentLine=63045684; - //BA.debugLineNum = 63045684;BA.debugLine="sb.Append(data.Postfix)"; + //BA.debugLineNum = 144;BA.debugLine="sb.Append(data.Postfix)"; _sb.Append(_data.Postfix /*String*/ ); -RDebugUtils.currentLine=63045685; - //BA.debugLineNum = 63045685;BA.debugLine="Return sb.ToString"; + //BA.debugLineNum = 145;BA.debugLine="Return sb.ToString"; if (true) return _sb.ToString(); -RDebugUtils.currentLine=63045686; - //BA.debugLineNum = 63045686;BA.debugLine="End Sub"; + //BA.debugLineNum = 146;BA.debugLine="End Sub"; return ""; } -public String _initialize(reparto_izca.keymon.lat.b4xformatter __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xformatter"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null; -RDebugUtils.currentLine=62586880; - //BA.debugLineNum = 62586880;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=62586881; - //BA.debugLineNum = 62586881;BA.debugLine="formats.Initialize"; -__ref._formats /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=62586882; - //BA.debugLineNum = 62586882;BA.debugLine="Dim d As B4XFormatData = CreateDefaultFormat"; -_d = __ref._createdefaultformat /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ (null); -RDebugUtils.currentLine=62586883; - //BA.debugLineNum = 62586883;BA.debugLine="AddFormatData(d, MIN_VALUE, MAX_VALUE, True)"; -__ref._addformatdata /*String*/ (null,_d,__ref._min_value /*int*/ ,__ref._max_value /*int*/ ,__c.True); -RDebugUtils.currentLine=62586884; - //BA.debugLineNum = 62586884;BA.debugLine="End Sub"; -return ""; -} -public String _addformatdata(reparto_izca.keymon.lat.b4xformatter __ref,reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data,double _rangestart,double _rangeend,boolean _includeedges) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xformatter"; -if (Debug.shouldDelegate(ba, "addformatdata", true)) - {return ((String) Debug.delegate(ba, "addformatdata", new Object[] {_data,_rangestart,_rangeend,_includeedges}));} -double _factor = 0; -RDebugUtils.currentLine=62849024; - //BA.debugLineNum = 62849024;BA.debugLine="Public Sub AddFormatData (Data As B4XFormatData, R"; -RDebugUtils.currentLine=62849025; - //BA.debugLineNum = 62849025;BA.debugLine="Dim factor As Double = Power(10, -Data.MaximumFra"; -_factor = __c.Power(10,-_data.MaximumFractions /*int*/ ); -RDebugUtils.currentLine=62849026; - //BA.debugLineNum = 62849026;BA.debugLine="If IncludeEdges = False Then"; -if (_includeedges==__c.False) { -RDebugUtils.currentLine=62849027; - //BA.debugLineNum = 62849027;BA.debugLine="RangeStart = RangeStart + factor"; -_rangestart = _rangestart+_factor; -RDebugUtils.currentLine=62849028; - //BA.debugLineNum = 62849028;BA.debugLine="RangeEnd = RangeEnd - factor"; -_rangeend = _rangeend-_factor; - }; -RDebugUtils.currentLine=62849030; - //BA.debugLineNum = 62849030;BA.debugLine="RangeStart = RangeStart - factor / 2"; -_rangestart = _rangestart-_factor/(double)2; -RDebugUtils.currentLine=62849031; - //BA.debugLineNum = 62849031;BA.debugLine="RangeEnd = RangeEnd + factor / 2"; -_rangeend = _rangeend+_factor/(double)2; -RDebugUtils.currentLine=62849032; - //BA.debugLineNum = 62849032;BA.debugLine="Data.RangeStart = RangeStart"; -_data.RangeStart /*double*/ = _rangestart; -RDebugUtils.currentLine=62849033; - //BA.debugLineNum = 62849033;BA.debugLine="Data.RangeEnd = RangeEnd"; -_data.RangeEnd /*double*/ = _rangeend; -RDebugUtils.currentLine=62849034; - //BA.debugLineNum = 62849034;BA.debugLine="formats.Add(Data)"; -__ref._formats /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_data)); -RDebugUtils.currentLine=62849035; - //BA.debugLineNum = 62849035;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.b4xformatter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xformatter"; -RDebugUtils.currentLine=62521344; - //BA.debugLineNum = 62521344;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=62521345; - //BA.debugLineNum = 62521345;BA.debugLine="Type B4XFormatData (Prefix As String, Postfix As"; -; -RDebugUtils.currentLine=62521349; - //BA.debugLineNum = 62521349;BA.debugLine="Private formats As List"; -_formats = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=62521350; - //BA.debugLineNum = 62521350;BA.debugLine="Public Const MAX_VALUE = 0x7fffffff, MIN_VALUE ="; -_max_value = ((int)0x7fffffff); -_min_value = ((int)0x80000000); -RDebugUtils.currentLine=62521352; - //BA.debugLineNum = 62521352;BA.debugLine="Private xui As XUI"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=62521354; - //BA.debugLineNum = 62521354;BA.debugLine="End Sub"; -return ""; -} -public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _copyformatdata(reparto_izca.keymon.lat.b4xformatter __ref,reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xformatter"; -if (Debug.shouldDelegate(ba, "copyformatdata", true)) - {return ((reparto_izca.keymon.lat.b4xformatter._b4xformatdata) Debug.delegate(ba, "copyformatdata", new Object[] {_data}));} -reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null; -RDebugUtils.currentLine=62783488; - //BA.debugLineNum = 62783488;BA.debugLine="Public Sub CopyFormatData (Data As B4XFormatData)"; -RDebugUtils.currentLine=62783489; - //BA.debugLineNum = 62783489;BA.debugLine="Dim d As B4XFormatData"; -_d = new reparto_izca.keymon.lat.b4xformatter._b4xformatdata(); -RDebugUtils.currentLine=62783490; - //BA.debugLineNum = 62783490;BA.debugLine="d.Initialize"; -_d.Initialize(); -RDebugUtils.currentLine=62783491; - //BA.debugLineNum = 62783491;BA.debugLine="d.DecimalPoint = Data.DecimalPoint"; -_d.DecimalPoint /*String*/ = _data.DecimalPoint /*String*/ ; -RDebugUtils.currentLine=62783492; - //BA.debugLineNum = 62783492;BA.debugLine="If Data.FormatFont.IsInitialized Then"; +public String _formatlabel(double _number,anywheresoftware.b4a.objects.B4XViewWrapper _label) throws Exception{ +reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data = null; + //BA.debugLineNum = 150;BA.debugLine="Public Sub FormatLabel (Number As Double, Label As"; + //BA.debugLineNum = 151;BA.debugLine="Label.Text = Format(Number)"; +_label.setText(BA.ObjectToCharSequence(_format(_number))); + //BA.debugLineNum = 152;BA.debugLine="Dim data As B4XFormatData = GetFormatData(Number)"; +_data = _getformatdata(_number); + //BA.debugLineNum = 153;BA.debugLine="If data.TextColor <> 0 Then Label.TextColor = dat"; +if (_data.TextColor /*int*/ !=0) { +_label.setTextColor(_data.TextColor /*int*/ );}; + //BA.debugLineNum = 154;BA.debugLine="If data.FormatFont.IsInitialized Then Label.Font"; if (_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ .getIsInitialized()) { -RDebugUtils.currentLine=62783494; - //BA.debugLineNum = 62783494;BA.debugLine="d.FormatFont = xui.CreateFont(Data.FormatFont.To"; -_d.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateFont((android.graphics.Typeface)(_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ .ToNativeFont().getObject()),_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ .getSize()); - }; -RDebugUtils.currentLine=62783497; - //BA.debugLineNum = 62783497;BA.debugLine="d.GroupingCharacter = Data.GroupingCharacter"; -_d.GroupingCharacter /*String*/ = _data.GroupingCharacter /*String*/ ; -RDebugUtils.currentLine=62783498; - //BA.debugLineNum = 62783498;BA.debugLine="d.MaximumFractions = Data.MaximumFractions"; -_d.MaximumFractions /*int*/ = _data.MaximumFractions /*int*/ ; -RDebugUtils.currentLine=62783499; - //BA.debugLineNum = 62783499;BA.debugLine="d.MinimumFractions = Data.MinimumFractions"; -_d.MinimumFractions /*int*/ = _data.MinimumFractions /*int*/ ; -RDebugUtils.currentLine=62783500; - //BA.debugLineNum = 62783500;BA.debugLine="d.MinimumIntegers = Data.MinimumIntegers"; -_d.MinimumIntegers /*int*/ = _data.MinimumIntegers /*int*/ ; -RDebugUtils.currentLine=62783501; - //BA.debugLineNum = 62783501;BA.debugLine="d.Postfix = Data.Postfix"; -_d.Postfix /*String*/ = _data.Postfix /*String*/ ; -RDebugUtils.currentLine=62783502; - //BA.debugLineNum = 62783502;BA.debugLine="d.Prefix = Data.Prefix"; -_d.Prefix /*String*/ = _data.Prefix /*String*/ ; -RDebugUtils.currentLine=62783503; - //BA.debugLineNum = 62783503;BA.debugLine="d.RangeEnd = Data.RangeEnd"; -_d.RangeEnd /*double*/ = _data.RangeEnd /*double*/ ; -RDebugUtils.currentLine=62783504; - //BA.debugLineNum = 62783504;BA.debugLine="d.RangeStart = Data.RangeStart"; -_d.RangeStart /*double*/ = _data.RangeStart /*double*/ ; -RDebugUtils.currentLine=62783505; - //BA.debugLineNum = 62783505;BA.debugLine="d.RemoveMinusSign = Data.RemoveMinusSign"; -_d.RemoveMinusSign /*boolean*/ = _data.RemoveMinusSign /*boolean*/ ; -RDebugUtils.currentLine=62783506; - //BA.debugLineNum = 62783506;BA.debugLine="d.TextColor = Data.TextColor"; -_d.TextColor /*int*/ = _data.TextColor /*int*/ ; -RDebugUtils.currentLine=62783507; - //BA.debugLineNum = 62783507;BA.debugLine="d.FractionPaddingChar = Data.FractionPaddingChar"; -_d.FractionPaddingChar /*String*/ = _data.FractionPaddingChar /*String*/ ; -RDebugUtils.currentLine=62783508; - //BA.debugLineNum = 62783508;BA.debugLine="d.IntegerPaddingChar = Data.IntegerPaddingChar"; -_d.IntegerPaddingChar /*String*/ = _data.IntegerPaddingChar /*String*/ ; -RDebugUtils.currentLine=62783509; - //BA.debugLineNum = 62783509;BA.debugLine="Return d"; -if (true) return _d; -RDebugUtils.currentLine=62783510; - //BA.debugLineNum = 62783510;BA.debugLine="End Sub"; +_label.setFont(_data.FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ );}; + //BA.debugLineNum = 155;BA.debugLine="End Sub"; +return ""; +} +public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _getdefaultformat() throws Exception{ + //BA.debugLineNum = 78;BA.debugLine="Public Sub GetDefaultFormat As B4XFormatData"; + //BA.debugLineNum = 79;BA.debugLine="Return formats.Get(0)"; +if (true) return (reparto_izca.keymon.lat.b4xformatter._b4xformatdata)(_formats.Get((int) (0))); + //BA.debugLineNum = 80;BA.debugLine="End Sub"; return null; } -public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _createdefaultformat(reparto_izca.keymon.lat.b4xformatter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xformatter"; -if (Debug.shouldDelegate(ba, "createdefaultformat", true)) - {return ((reparto_izca.keymon.lat.b4xformatter._b4xformatdata) Debug.delegate(ba, "createdefaultformat", null));} -reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null; -RDebugUtils.currentLine=62652416; - //BA.debugLineNum = 62652416;BA.debugLine="Private Sub CreateDefaultFormat As B4XFormatData"; -RDebugUtils.currentLine=62652417; - //BA.debugLineNum = 62652417;BA.debugLine="Dim d As B4XFormatData"; -_d = new reparto_izca.keymon.lat.b4xformatter._b4xformatdata(); -RDebugUtils.currentLine=62652418; - //BA.debugLineNum = 62652418;BA.debugLine="d.Initialize"; -_d.Initialize(); -RDebugUtils.currentLine=62652419; - //BA.debugLineNum = 62652419;BA.debugLine="d.GroupingCharacter = \",\""; -_d.GroupingCharacter /*String*/ = ","; -RDebugUtils.currentLine=62652420; - //BA.debugLineNum = 62652420;BA.debugLine="d.DecimalPoint = \".\""; -_d.DecimalPoint /*String*/ = "."; -RDebugUtils.currentLine=62652421; - //BA.debugLineNum = 62652421;BA.debugLine="d.MaximumFractions = 3"; -_d.MaximumFractions /*int*/ = (int) (3); -RDebugUtils.currentLine=62652422; - //BA.debugLineNum = 62652422;BA.debugLine="d.MinimumIntegers = 1"; -_d.MinimumIntegers /*int*/ = (int) (1); -RDebugUtils.currentLine=62652423; - //BA.debugLineNum = 62652423;BA.debugLine="d.IntegerPaddingChar = \"0\""; -_d.IntegerPaddingChar /*String*/ = "0"; -RDebugUtils.currentLine=62652424; - //BA.debugLineNum = 62652424;BA.debugLine="d.FractionPaddingChar = \"0\""; -_d.FractionPaddingChar /*String*/ = "0"; -RDebugUtils.currentLine=62652425; - //BA.debugLineNum = 62652425;BA.debugLine="Return d"; -if (true) return _d; -RDebugUtils.currentLine=62652426; - //BA.debugLineNum = 62652426;BA.debugLine="End Sub"; -return null; -} -public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _getformatdata(reparto_izca.keymon.lat.b4xformatter __ref,double _number) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xformatter"; -if (Debug.shouldDelegate(ba, "getformatdata", true)) - {return ((reparto_izca.keymon.lat.b4xformatter._b4xformatdata) Debug.delegate(ba, "getformatdata", new Object[] {_number}));} +public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _getformatdata(double _number) throws Exception{ int _i = 0; reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null; -RDebugUtils.currentLine=62980096; - //BA.debugLineNum = 62980096;BA.debugLine="Public Sub GetFormatData (Number As Double) As B4X"; -RDebugUtils.currentLine=62980097; - //BA.debugLineNum = 62980097;BA.debugLine="For i = formats.Size - 1 To 1 Step - 1"; + //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) (__ref._formats /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1) ; +_i = (int) (_formats.getSize()-1) ; for (;_i >= limit1 ;_i = _i + step1 ) { -RDebugUtils.currentLine=62980098; - //BA.debugLineNum = 62980098;BA.debugLine="Dim d As B4XFormatData = formats.Get(i)"; -_d = (reparto_izca.keymon.lat.b4xformatter._b4xformatdata)(__ref._formats /*anywheresoftware.b4a.objects.collections.List*/ .Get(_i)); -RDebugUtils.currentLine=62980099; - //BA.debugLineNum = 62980099;BA.debugLine="If Number <= d.RangeEnd And Number >= d.RangeSta"; + //BA.debugLineNum = 85;BA.debugLine="Dim d As B4XFormatData = formats.Get(i)"; +_d = (reparto_izca.keymon.lat.b4xformatter._b4xformatdata)(_formats.Get(_i)); + //BA.debugLineNum = 86;BA.debugLine="If Number <= d.RangeEnd And Number >= d.RangeSta"; if (_number<=_d.RangeEnd /*double*/ && _number>=_d.RangeStart /*double*/ ) { if (true) return _d;}; } }; -RDebugUtils.currentLine=62980101; - //BA.debugLineNum = 62980101;BA.debugLine="Return formats.Get(0)"; -if (true) return (reparto_izca.keymon.lat.b4xformatter._b4xformatdata)(__ref._formats /*anywheresoftware.b4a.objects.collections.List*/ .Get((int) (0))); -RDebugUtils.currentLine=62980102; - //BA.debugLineNum = 62980102;BA.debugLine="End Sub"; + //BA.debugLineNum = 88;BA.debugLine="Return formats.Get(0)"; +if (true) return (reparto_izca.keymon.lat.b4xformatter._b4xformatdata)(_formats.Get((int) (0))); + //BA.debugLineNum = 89;BA.debugLine="End Sub"; return null; } -public String _formatlabel(reparto_izca.keymon.lat.b4xformatter __ref,double _number,anywheresoftware.b4a.objects.B4XViewWrapper _label) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xformatter"; -if (Debug.shouldDelegate(ba, "formatlabel", true)) - {return ((String) Debug.delegate(ba, "formatlabel", new Object[] {_number,_label}));} -reparto_izca.keymon.lat.b4xformatter._b4xformatdata _data = null; -RDebugUtils.currentLine=63111168; - //BA.debugLineNum = 63111168;BA.debugLine="Public Sub FormatLabel (Number As Double, Label As"; -RDebugUtils.currentLine=63111169; - //BA.debugLineNum = 63111169;BA.debugLine="Label.Text = Format(Number)"; -_label.setText(BA.ObjectToCharSequence(__ref._format /*String*/ (null,_number))); -RDebugUtils.currentLine=63111170; - //BA.debugLineNum = 63111170;BA.debugLine="Dim data As B4XFormatData = GetFormatData(Number)"; -_data = __ref._getformatdata /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ (null,_number); -RDebugUtils.currentLine=63111171; - //BA.debugLineNum = 63111171;BA.debugLine="If data.TextColor <> 0 Then Label.TextColor = dat"; -if (_data.TextColor /*int*/ !=0) { -_label.setTextColor(_data.TextColor /*int*/ );}; -RDebugUtils.currentLine=63111172; - //BA.debugLineNum = 63111172;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*/ );}; -RDebugUtils.currentLine=63111173; - //BA.debugLineNum = 63111173;BA.debugLine="End Sub"; +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); +reparto_izca.keymon.lat.b4xformatter._b4xformatdata _d = null; + //BA.debugLineNum = 13;BA.debugLine="Public Sub Initialize"; + //BA.debugLineNum = 14;BA.debugLine="formats.Initialize"; +_formats.Initialize(); + //BA.debugLineNum = 15;BA.debugLine="Dim d As B4XFormatData = CreateDefaultFormat"; +_d = _createdefaultformat(); + //BA.debugLineNum = 16;BA.debugLine="AddFormatData(d, MIN_VALUE, MAX_VALUE, True)"; +_addformatdata(_d,_min_value,_max_value,__c.True); + //BA.debugLineNum = 17;BA.debugLine="End Sub"; return ""; } -public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _newformatdata(reparto_izca.keymon.lat.b4xformatter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xformatter"; -if (Debug.shouldDelegate(ba, "newformatdata", true)) - {return ((reparto_izca.keymon.lat.b4xformatter._b4xformatdata) Debug.delegate(ba, "newformatdata", null));} -RDebugUtils.currentLine=62717952; - //BA.debugLineNum = 62717952;BA.debugLine="Public Sub NewFormatData As B4XFormatData"; -RDebugUtils.currentLine=62717953; - //BA.debugLineNum = 62717953;BA.debugLine="Return CopyFormatData(GetDefaultFormat)"; -if (true) return __ref._copyformatdata /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ (null,__ref._getdefaultformat /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ (null)); -RDebugUtils.currentLine=62717954; - //BA.debugLineNum = 62717954;BA.debugLine="End Sub"; +public reparto_izca.keymon.lat.b4xformatter._b4xformatdata _newformatdata() throws Exception{ + //BA.debugLineNum = 32;BA.debugLine="Public Sub NewFormatData As B4XFormatData"; + //BA.debugLineNum = 33;BA.debugLine="Return CopyFormatData(GetDefaultFormat)"; +if (true) return _copyformatdata(_getdefaultformat()); + //BA.debugLineNum = 34;BA.debugLine="End Sub"; return null; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4ximageview.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4ximageview.java index edc592d..387363b 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4ximageview.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4ximageview.java @@ -10,7 +10,7 @@ public class b4ximageview extends B4AClass.ImplB4AClass implements BA.SubDelegat private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4ximageview"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4ximageview"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4ximageview extends B4AClass.ImplB4AClass implements BA.SubDelegat ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -56,418 +49,258 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.b4ximageview __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=53608448; - //BA.debugLineNum = 53608448;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A"; -RDebugUtils.currentLine=53608449; - //BA.debugLineNum = 53608449;BA.debugLine="Update"; -__ref._update /*String*/ (null); -RDebugUtils.currentLine=53608450; - //BA.debugLineNum = 53608450;BA.debugLine="End Sub"; +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 _update(reparto_izca.keymon.lat.b4ximageview __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "update", true)) - {return ((String) Debug.delegate(ba, "update", null));} +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; -RDebugUtils.currentLine=54067200; - //BA.debugLineNum = 54067200;BA.debugLine="Public Sub Update"; -RDebugUtils.currentLine=54067201; - //BA.debugLineNum = 54067201;BA.debugLine="If mBitmap.IsInitialized = False Then Return"; -if (__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .IsInitialized()==__c.False) { + //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 "";}; -RDebugUtils.currentLine=54067202; - //BA.debugLineNum = 54067202;BA.debugLine="UpdateClip"; -__ref._updateclip /*String*/ (null); -RDebugUtils.currentLine=54067203; - //BA.debugLineNum = 54067203;BA.debugLine="Dim ImageViewWidth, ImageViewHeight As Float"; + //BA.debugLineNum = 79;BA.debugLine="UpdateClip"; +_updateclip(); + //BA.debugLineNum = 80;BA.debugLine="Dim ImageViewWidth, ImageViewHeight As Float"; _imageviewwidth = 0f; _imageviewheight = 0f; -RDebugUtils.currentLine=54067204; - //BA.debugLineNum = 54067204;BA.debugLine="Dim bmpRatio As Float = mBitmap.Width / mBitmap.H"; -_bmpratio = (float) (__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getWidth()/(double)__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getHeight()); -RDebugUtils.currentLine=54067205; - //BA.debugLineNum = 54067205;BA.debugLine="Select mResizeMode"; -switch (BA.switchObjectToInt(__ref._mresizemode /*String*/ ,"FILL","FIT","FILL_WIDTH","FILL_HEIGHT","FILL_NO_DISTORTIONS","NONE")) { + //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: { -RDebugUtils.currentLine=54067207; - //BA.debugLineNum = 54067207;BA.debugLine="ImageViewWidth = mBase.Width"; -_imageviewwidth = (float) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=54067208; - //BA.debugLineNum = 54067208;BA.debugLine="ImageViewHeight = mBase.Height"; -_imageviewheight = (float) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); + //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: { -RDebugUtils.currentLine=54067210; - //BA.debugLineNum = 54067210;BA.debugLine="Dim r As Float = Min(mBase.Width / mBitmap.Widt"; -_r = (float) (__c.Min(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getHeight())); -RDebugUtils.currentLine=54067211; - //BA.debugLineNum = 54067211;BA.debugLine="ImageViewWidth = mBitmap.Width * r"; -_imageviewwidth = (float) (__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getWidth()*_r); -RDebugUtils.currentLine=54067212; - //BA.debugLineNum = 54067212;BA.debugLine="ImageViewHeight = mBitmap.Height * r"; -_imageviewheight = (float) (__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getHeight()*_r); + //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: { -RDebugUtils.currentLine=54067214; - //BA.debugLineNum = 54067214;BA.debugLine="ImageViewWidth = mBase.Width"; -_imageviewwidth = (float) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=54067215; - //BA.debugLineNum = 54067215;BA.debugLine="ImageViewHeight = ImageViewWidth / bmpRatio"; + //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: { -RDebugUtils.currentLine=54067217; - //BA.debugLineNum = 54067217;BA.debugLine="ImageViewHeight = mBase.Height"; -_imageviewheight = (float) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=54067218; - //BA.debugLineNum = 54067218;BA.debugLine="ImageViewWidth = ImageViewHeight * bmpRatio"; + //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: { -RDebugUtils.currentLine=54067220; - //BA.debugLineNum = 54067220;BA.debugLine="Dim r As Float = Max(mBase.Width / mBitmap.Widt"; -_r = (float) (__c.Max(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getHeight())); -RDebugUtils.currentLine=54067221; - //BA.debugLineNum = 54067221;BA.debugLine="ImageViewWidth = mBitmap.Width * r"; -_imageviewwidth = (float) (__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getWidth()*_r); -RDebugUtils.currentLine=54067222; - //BA.debugLineNum = 54067222;BA.debugLine="ImageViewHeight = mBitmap.Height * r"; -_imageviewheight = (float) (__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getHeight()*_r); + //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: { -RDebugUtils.currentLine=54067224; - //BA.debugLineNum = 54067224;BA.debugLine="ImageViewWidth = mBitmap.Width"; -_imageviewwidth = (float) (__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getWidth()); -RDebugUtils.currentLine=54067225; - //BA.debugLineNum = 54067225;BA.debugLine="ImageViewHeight = mBitmap.Height"; -_imageviewheight = (float) (__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getHeight()); + //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: { -RDebugUtils.currentLine=54067227; - //BA.debugLineNum = 54067227;BA.debugLine="Log(\"Invalid resize mode: \" & mResizeMode)"; -__c.LogImpl("954067227","Invalid resize mode: "+__ref._mresizemode /*String*/ ,0); + //BA.debugLineNum = 104;BA.debugLine="Log(\"Invalid resize mode: \" & mResizeMode)"; +__c.LogImpl("962586907","Invalid resize mode: "+_mresizemode,0); break; } } ; -RDebugUtils.currentLine=54067229; - //BA.debugLineNum = 54067229;BA.debugLine="iv.SetLayoutAnimated(0, Round(mBase.Width / 2 - I"; -__ref._iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (__c.Round(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2-_imageviewwidth/(double)2)),(int) (__c.Round(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2-_imageviewheight/(double)2)),(int) (__c.Round(_imageviewwidth)),(int) (__c.Round(_imageviewheight))); -RDebugUtils.currentLine=54067230; - //BA.debugLineNum = 54067230;BA.debugLine="End Sub"; + //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 _class_globals(reparto_izca.keymon.lat.b4ximageview __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -RDebugUtils.currentLine=53411840; - //BA.debugLineNum = 53411840;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=53411841; - //BA.debugLineNum = 53411841;BA.debugLine="Private mEventName As String 'ignore"; -_meventname = ""; -RDebugUtils.currentLine=53411842; - //BA.debugLineNum = 53411842;BA.debugLine="Private mCallBack As Object 'ignore"; -_mcallback = new Object(); -RDebugUtils.currentLine=53411843; - //BA.debugLineNum = 53411843;BA.debugLine="Public mBase As B4XView"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=53411844; - //BA.debugLineNum = 53411844;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=53411845; - //BA.debugLineNum = 53411845;BA.debugLine="Public Tag As Object"; -_tag = new Object(); -RDebugUtils.currentLine=53411846; - //BA.debugLineNum = 53411846;BA.debugLine="Private iv As B4XView"; -_iv = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=53411847; - //BA.debugLineNum = 53411847;BA.debugLine="Private mResizeMode As String"; -_mresizemode = ""; -RDebugUtils.currentLine=53411848; - //BA.debugLineNum = 53411848;BA.debugLine="Private mRound As Boolean"; -_mround = false; -RDebugUtils.currentLine=53411849; - //BA.debugLineNum = 53411849;BA.debugLine="Private mBitmap As B4XBitmap"; -_mbitmap = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); -RDebugUtils.currentLine=53411850; - //BA.debugLineNum = 53411850;BA.debugLine="Public mBackgroundColor As Int"; -_mbackgroundcolor = 0; -RDebugUtils.currentLine=53411851; - //BA.debugLineNum = 53411851;BA.debugLine="Private mCornersRadius As Int"; -_mcornersradius = 0; -RDebugUtils.currentLine=53411852; - //BA.debugLineNum = 53411852;BA.debugLine="End Sub"; -return ""; -} -public String _clear(reparto_izca.keymon.lat.b4ximageview __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "clear", true)) - {return ((String) Debug.delegate(ba, "clear", null));} -RDebugUtils.currentLine=54198272; - //BA.debugLineNum = 54198272;BA.debugLine="Public Sub Clear"; -RDebugUtils.currentLine=54198273; - //BA.debugLineNum = 54198273;BA.debugLine="mBitmap = Null"; -__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(), (android.graphics.Bitmap)(__c.Null)); -RDebugUtils.currentLine=54198274; - //BA.debugLineNum = 54198274;BA.debugLine="iv.SetBitmap(Null)"; -__ref._iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetBitmap((android.graphics.Bitmap)(__c.Null)); -RDebugUtils.currentLine=54198275; - //BA.debugLineNum = 54198275;BA.debugLine="End Sub"; -return ""; -} -public String _designercreateview(reparto_izca.keymon.lat.b4ximageview __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} -anywheresoftware.b4a.objects.ImageViewWrapper _iiv = null; -RDebugUtils.currentLine=53542912; - //BA.debugLineNum = 53542912;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=53542913; - //BA.debugLineNum = 53542913;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=53542914; - //BA.debugLineNum = 53542914;BA.debugLine="Tag = mBase.Tag"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=53542915; - //BA.debugLineNum = 53542915;BA.debugLine="mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=53542916; - //BA.debugLineNum = 53542916;BA.debugLine="Dim iiv As ImageView"; -_iiv = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=53542917; - //BA.debugLineNum = 53542917;BA.debugLine="iiv.Initialize(\"\")"; -_iiv.Initialize(ba,""); -RDebugUtils.currentLine=53542918; - //BA.debugLineNum = 53542918;BA.debugLine="iv = iiv"; -__ref._iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iiv.getObject())); -RDebugUtils.currentLine=53542919; - //BA.debugLineNum = 53542919;BA.debugLine="mRound =Props.Get(\"Round\")"; -__ref._mround /*boolean*/ = BA.ObjectToBoolean(_props.Get((Object)("Round"))); -RDebugUtils.currentLine=53542920; - //BA.debugLineNum = 53542920;BA.debugLine="mResizeMode = Props.Get(\"ResizeMode\")"; -__ref._mresizemode /*String*/ = BA.ObjectToString(_props.Get((Object)("ResizeMode"))); -RDebugUtils.currentLine=53542921; - //BA.debugLineNum = 53542921;BA.debugLine="mBackgroundColor = xui.PaintOrColorToColor(Props."; -__ref._mbackgroundcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("BackgroundColor"))); -RDebugUtils.currentLine=53542922; - //BA.debugLineNum = 53542922;BA.debugLine="mCornersRadius = DipToCurrent(Props.GetDefault(\"C"; -__ref._mcornersradius /*int*/ = __c.DipToCurrent((int)(BA.ObjectToNumber(_props.GetDefault((Object)("CornersRadius"),(Object)(0))))); -RDebugUtils.currentLine=53542923; - //BA.debugLineNum = 53542923;BA.debugLine="mBase.AddView(iv, 0, 0, mBase.Width, mBase.Height"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=53542924; - //BA.debugLineNum = 53542924;BA.debugLine="Update"; -__ref._update /*String*/ (null); -RDebugUtils.currentLine=53542925; - //BA.debugLineNum = 53542925;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _getbitmap(reparto_izca.keymon.lat.b4ximageview __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "getbitmap", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) Debug.delegate(ba, "getbitmap", null));} -RDebugUtils.currentLine=54329344; - //BA.debugLineNum = 54329344;BA.debugLine="Public Sub getBitmap As B4XBitmap"; -RDebugUtils.currentLine=54329345; - //BA.debugLineNum = 54329345;BA.debugLine="Return mBitmap"; -if (true) return __ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ ; -RDebugUtils.currentLine=54329346; - //BA.debugLineNum = 54329346;BA.debugLine="End Sub"; -return null; -} -public int _getcornersradius(reparto_izca.keymon.lat.b4ximageview __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "getcornersradius", true)) - {return ((Integer) Debug.delegate(ba, "getcornersradius", null));} -RDebugUtils.currentLine=53805056; - //BA.debugLineNum = 53805056;BA.debugLine="Public Sub getCornersRadius As Int"; -RDebugUtils.currentLine=53805057; - //BA.debugLineNum = 53805057;BA.debugLine="Return mCornersRadius"; -if (true) return __ref._mcornersradius /*int*/ ; -RDebugUtils.currentLine=53805058; - //BA.debugLineNum = 53805058;BA.debugLine="End Sub"; -return 0; -} -public String _getresizemode(reparto_izca.keymon.lat.b4ximageview __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "getresizemode", true)) - {return ((String) Debug.delegate(ba, "getresizemode", null));} -RDebugUtils.currentLine=53936128; - //BA.debugLineNum = 53936128;BA.debugLine="Public Sub getResizeMode As String"; -RDebugUtils.currentLine=53936129; - //BA.debugLineNum = 53936129;BA.debugLine="Return mResizeMode"; -if (true) return __ref._mresizemode /*String*/ ; -RDebugUtils.currentLine=53936130; - //BA.debugLineNum = 53936130;BA.debugLine="End Sub"; -return ""; -} -public boolean _getroundedimage(reparto_izca.keymon.lat.b4ximageview __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "getroundedimage", true)) - {return ((Boolean) Debug.delegate(ba, "getroundedimage", null));} -RDebugUtils.currentLine=53673984; - //BA.debugLineNum = 53673984;BA.debugLine="Public Sub getRoundedImage As Boolean"; -RDebugUtils.currentLine=53673985; - //BA.debugLineNum = 53673985;BA.debugLine="Return mRound"; -if (true) return __ref._mround /*boolean*/ ; -RDebugUtils.currentLine=53673986; - //BA.debugLineNum = 53673986;BA.debugLine="End Sub"; -return false; -} -public String _initialize(reparto_izca.keymon.lat.b4ximageview __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=53477376; - //BA.debugLineNum = 53477376;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=53477377; - //BA.debugLineNum = 53477377;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=53477378; - //BA.debugLineNum = 53477378;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=53477379; - //BA.debugLineNum = 53477379;BA.debugLine="End Sub"; -return ""; -} -public String _load(reparto_izca.keymon.lat.b4ximageview __ref,String _dir,String _filename) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "load", true)) - {return ((String) Debug.delegate(ba, "load", new Object[] {_dir,_filename}));} -RDebugUtils.currentLine=54132736; - //BA.debugLineNum = 54132736;BA.debugLine="Public Sub Load (Dir As String, FileName As String"; -RDebugUtils.currentLine=54132738; - //BA.debugLineNum = 54132738;BA.debugLine="setBitmap(LoadBitmapSample(Dir, FileName, mBase.W"; -__ref._setbitmap /*String*/ (null,(anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(), (android.graphics.Bitmap)(__c.LoadBitmapSample(_dir,_filename,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()).getObject()))); -RDebugUtils.currentLine=54132742; - //BA.debugLineNum = 54132742;BA.debugLine="End Sub"; -return ""; -} -public String _setbitmap(reparto_izca.keymon.lat.b4ximageview __ref,anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _bmp) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "setbitmap", true)) - {return ((String) Debug.delegate(ba, "setbitmap", new Object[] {_bmp}));} -RDebugUtils.currentLine=54263808; - //BA.debugLineNum = 54263808;BA.debugLine="Public Sub setBitmap(Bmp As B4XBitmap)"; -RDebugUtils.currentLine=54263809; - //BA.debugLineNum = 54263809;BA.debugLine="mBitmap = Bmp"; -__ref._mbitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ = _bmp; -RDebugUtils.currentLine=54263810; - //BA.debugLineNum = 54263810;BA.debugLine="XUIViewsUtils.SetBitmapAndFill(iv, Bmp)"; -_xuiviewsutils._setbitmapandfill /*String*/ (ba,__ref._iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ,_bmp); -RDebugUtils.currentLine=54263811; - //BA.debugLineNum = 54263811;BA.debugLine="Update"; -__ref._update /*String*/ (null); -RDebugUtils.currentLine=54263812; - //BA.debugLineNum = 54263812;BA.debugLine="End Sub"; -return ""; -} -public String _setcornersradius(reparto_izca.keymon.lat.b4ximageview __ref,int _i) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "setcornersradius", true)) - {return ((String) Debug.delegate(ba, "setcornersradius", new Object[] {_i}));} -RDebugUtils.currentLine=53870592; - //BA.debugLineNum = 53870592;BA.debugLine="Public Sub setCornersRadius (i As Int)"; -RDebugUtils.currentLine=53870593; - //BA.debugLineNum = 53870593;BA.debugLine="mCornersRadius = i"; -__ref._mcornersradius /*int*/ = _i; -RDebugUtils.currentLine=53870594; - //BA.debugLineNum = 53870594;BA.debugLine="UpdateClip"; -__ref._updateclip /*String*/ (null); -RDebugUtils.currentLine=53870595; - //BA.debugLineNum = 53870595;BA.debugLine="End Sub"; -return ""; -} -public String _updateclip(reparto_izca.keymon.lat.b4ximageview __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "updateclip", true)) - {return ((String) Debug.delegate(ba, "updateclip", null));} +public String _updateclip() throws Exception{ anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=54394880; - //BA.debugLineNum = 54394880;BA.debugLine="Private Sub UpdateClip"; -RDebugUtils.currentLine=54394881; - //BA.debugLineNum = 54394881;BA.debugLine="If mRound Then"; -if (__ref._mround /*boolean*/ ) { -RDebugUtils.currentLine=54394882; - //BA.debugLineNum = 54394882;BA.debugLine="mBase.SetColorAndBorder(mBackgroundColor, 0, 0,"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._mbackgroundcolor /*int*/ ,(int) (0),(int) (0),(int) (__c.Min(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2))); + //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 { -RDebugUtils.currentLine=54394884; - //BA.debugLineNum = 54394884;BA.debugLine="mBase.SetColorAndBorder(mBackgroundColor, 0, 0,"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._mbackgroundcolor /*int*/ ,(int) (0),(int) (0),__ref._mcornersradius /*int*/ ); + //BA.debugLineNum = 139;BA.debugLine="mBase.SetColorAndBorder(mBackgroundColor, 0, 0,"; +_mbase.SetColorAndBorder(_mbackgroundcolor,(int) (0),(int) (0),_mcornersradius); }; -RDebugUtils.currentLine=54394906; - //BA.debugLineNum = 54394906;BA.debugLine="Dim jo As JavaObject = mBase"; + //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)(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject())); -RDebugUtils.currentLine=54394907; - //BA.debugLineNum = 54394907;BA.debugLine="jo.RunMethod(\"setClipToOutline\", Array(mRound Or"; -_jo.RunMethod("setClipToOutline",new Object[]{(Object)(__ref._mround /*boolean*/ || __ref._mcornersradius /*int*/ >0)}); -RDebugUtils.currentLine=54394909; - //BA.debugLineNum = 54394909;BA.debugLine="End Sub"; +_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 String _setresizemode(reparto_izca.keymon.lat.b4ximageview __ref,String _s) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "setresizemode", true)) - {return ((String) Debug.delegate(ba, "setresizemode", new Object[] {_s}));} -RDebugUtils.currentLine=54001664; - //BA.debugLineNum = 54001664;BA.debugLine="Public Sub setResizeMode(s As String)"; -RDebugUtils.currentLine=54001665; - //BA.debugLineNum = 54001665;BA.debugLine="If s = mResizeMode Then Return"; -if ((_s).equals(__ref._mresizemode /*String*/ )) { -if (true) return "";}; -RDebugUtils.currentLine=54001666; - //BA.debugLineNum = 54001666;BA.debugLine="mResizeMode = s"; -__ref._mresizemode /*String*/ = _s; -RDebugUtils.currentLine=54001667; - //BA.debugLineNum = 54001667;BA.debugLine="Update"; -__ref._update /*String*/ (null); -RDebugUtils.currentLine=54001668; - //BA.debugLineNum = 54001668;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 String _setroundedimage(reparto_izca.keymon.lat.b4ximageview __ref,boolean _b) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4ximageview"; -if (Debug.shouldDelegate(ba, "setroundedimage", true)) - {return ((String) Debug.delegate(ba, "setroundedimage", new Object[] {_b}));} -RDebugUtils.currentLine=53739520; - //BA.debugLineNum = 53739520;BA.debugLine="Public Sub setRoundedImage (b As Boolean)"; -RDebugUtils.currentLine=53739521; - //BA.debugLineNum = 53739521;BA.debugLine="If b = mRound Then Return"; -if (_b==__ref._mround /*boolean*/ ) { -if (true) return "";}; -RDebugUtils.currentLine=53739522; - //BA.debugLineNum = 53739522;BA.debugLine="mRound = b"; -__ref._mround /*boolean*/ = _b; -RDebugUtils.currentLine=53739523; - //BA.debugLineNum = 53739523;BA.debugLine="UpdateClip"; -__ref._updateclip /*String*/ (null); -RDebugUtils.currentLine=53739524; - //BA.debugLineNum = 53739524;BA.debugLine="End Sub"; -return ""; } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xinputtemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xinputtemplate.java index 0e4f762..49b543e 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xinputtemplate.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xinputtemplate.java @@ -10,7 +10,7 @@ public class b4xinputtemplate extends B4AClass.ImplB4AClass implements BA.SubDel private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xinputtemplate"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xinputtemplate"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xinputtemplate extends B4AClass.ImplB4AClass implements BA.SubDel ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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 = ""; @@ -56,42 +49,146 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xinputtemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "getpanel", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "getpanel", new Object[] {_dialog}));} -RDebugUtils.currentLine=55115776; - //BA.debugLineNum = 55115776;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; -RDebugUtils.currentLine=55115777; - //BA.debugLineNum = 55115777;BA.debugLine="Return mBase"; -if (true) return __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=55115778; - //BA.debugLineNum = 55115778;BA.debugLine="End Sub"; +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView"; +_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 4;BA.debugLine="Public Text As String"; +_text = ""; + //BA.debugLineNum = 5;BA.debugLine="Private xDialog As B4XDialog"; +_xdialog = new reparto_izca.keymon.lat.b4xdialog(); + //BA.debugLineNum = 6;BA.debugLine="Public RegexPattern As String"; +_regexpattern = ""; + //BA.debugLineNum = 7;BA.debugLine="Public TextField1 As B4XView"; +_textfield1 = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 8;BA.debugLine="Public lblTitle As B4XView"; +_lbltitle = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 10;BA.debugLine="Private IME As IME"; +_ime = new anywheresoftware.b4a.objects.IME(); + //BA.debugLineNum = 12;BA.debugLine="Private mAllowDecimals As Boolean"; +_mallowdecimals = false; + //BA.debugLineNum = 13;BA.debugLine="Private BorderColor = xui.Color_White, BorderColo"; +_bordercolor = _xui.Color_White; +_bordercolorinvalid = _xui.Color_Red; + //BA.debugLineNum = 14;BA.debugLine="End Sub"; +return ""; +} +public String _configurefornumbers(boolean _allowdecimals,boolean _allownegative) throws Exception{ +anywheresoftware.b4a.objects.EditTextWrapper _et = null; + //BA.debugLineNum = 40;BA.debugLine="Public Sub ConfigureForNumbers (AllowDecimals As B"; + //BA.debugLineNum = 42;BA.debugLine="Dim et As EditText = TextField1"; +_et = new anywheresoftware.b4a.objects.EditTextWrapper(); +_et = (anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_textfield1.getObject())); + //BA.debugLineNum = 43;BA.debugLine="If AllowDecimals Or AllowNegative Then"; +if (_allowdecimals || _allownegative) { + //BA.debugLineNum = 44;BA.debugLine="et.InputType = et.INPUT_TYPE_DECIMAL_NUMBERS"; +_et.setInputType(_et.INPUT_TYPE_DECIMAL_NUMBERS); + }else { + //BA.debugLineNum = 46;BA.debugLine="et.InputType = et.INPUT_TYPE_NUMBERS"; +_et.setInputType(_et.INPUT_TYPE_NUMBERS); + }; + //BA.debugLineNum = 59;BA.debugLine="If AllowDecimals And AllowNegative Then"; +if (_allowdecimals && _allownegative) { + //BA.debugLineNum = 60;BA.debugLine="RegexPattern = \"^-?(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$"; +_regexpattern = "^-?(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$"; + }else if(_allowdecimals && _allownegative==__c.False) { + //BA.debugLineNum = 62;BA.debugLine="RegexPattern = \"^(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$\""; +_regexpattern = "^(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$"; + }else if(_allowdecimals==__c.False && _allownegative==__c.True) { + //BA.debugLineNum = 64;BA.debugLine="RegexPattern = \"^-?(0|[1-9]\\d*)$\""; +_regexpattern = "^-?(0|[1-9]\\d*)$"; + }else if(_allowdecimals==__c.False && _allownegative==__c.False) { + //BA.debugLineNum = 66;BA.debugLine="RegexPattern = \"^(0|[1-9]\\d*)$\""; +_regexpattern = "^(0|[1-9]\\d*)$"; + }; + //BA.debugLineNum = 68;BA.debugLine="mAllowDecimals = AllowDecimals"; +_mallowdecimals = _allowdecimals; + //BA.debugLineNum = 69;BA.debugLine="End Sub"; +return ""; +} +public String _dialogclosed(int _result) throws Exception{ + //BA.debugLineNum = 137;BA.debugLine="Private Sub DialogClosed(Result As Int)"; + //BA.debugLineNum = 138;BA.debugLine="If Result = xui.DialogResponse_Positive Then"; +if (_result==_xui.DialogResponse_Positive) { + //BA.debugLineNum = 139;BA.debugLine="Text = TextField1.Text"; +_text = _textfield1.getText(); + }; + //BA.debugLineNum = 141;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ + //BA.debugLineNum = 116;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; + //BA.debugLineNum = 117;BA.debugLine="Return mBase"; +if (true) return _mbase; + //BA.debugLineNum = 118;BA.debugLine="End Sub"; return null; } -public void _show(reparto_izca.keymon.lat.b4xinputtemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "show", true)) - {Debug.delegate(ba, "show", new Object[] {_dialog}); return;} -ResumableSub_Show rsub = new ResumableSub_Show(this,__ref,_dialog); +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); +anywheresoftware.b4j.object.JavaObject _jo = null; + //BA.debugLineNum = 16;BA.debugLine="Public Sub Initialize"; + //BA.debugLineNum = 17;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")"; +_mbase = _xui.CreatePanel(ba,"mBase"); + //BA.debugLineNum = 18;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 80dip)"; +_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (80))); + //BA.debugLineNum = 19;BA.debugLine="mBase.LoadLayout(\"B4XInputTemplate\")"; +_mbase.LoadLayout("B4XInputTemplate",ba); + //BA.debugLineNum = 20;BA.debugLine="TextField1.TextColor = xui.Color_White"; +_textfield1.setTextColor(_xui.Color_White); + //BA.debugLineNum = 22;BA.debugLine="IME.Initialize(\"\")"; +_ime.Initialize(""); + //BA.debugLineNum = 23;BA.debugLine="Dim jo As JavaObject = TextField1"; +_jo = new anywheresoftware.b4j.object.JavaObject(); +_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_textfield1.getObject())); + //BA.debugLineNum = 24;BA.debugLine="jo.RunMethod(\"setImeOptions\", Array(Bit.Or(335544"; +_jo.RunMethod("setImeOptions",new Object[]{(Object)(__c.Bit.Or((int) (33554432),(int) (6)))}); + //BA.debugLineNum = 30;BA.debugLine="SetBorder(BorderColor)"; +_setborder(_bordercolor); + //BA.debugLineNum = 31;BA.debugLine="End Sub"; +return ""; +} +public boolean _isvalid(String _new) throws Exception{ + //BA.debugLineNum = 103;BA.debugLine="Private Sub IsValid(New As String) As Boolean"; + //BA.debugLineNum = 104;BA.debugLine="Return RegexPattern = \"\" Or Regex.IsMatch(RegexPa"; +if (true) return (_regexpattern).equals("") || __c.Regex.IsMatch(_regexpattern,_new); + //BA.debugLineNum = 105;BA.debugLine="End Sub"; +return false; +} +public String _setborder(int _bc) throws Exception{ + //BA.debugLineNum = 99;BA.debugLine="Private Sub SetBorder(bc As Int)"; + //BA.debugLineNum = 100;BA.debugLine="TextField1.SetColorAndBorder(xui.Color_Transparen"; +_textfield1.SetColorAndBorder(_xui.Color_Transparent,__c.DipToCurrent((int) (1)),_bc,__c.DipToCurrent((int) (2))); + //BA.debugLineNum = 101;BA.debugLine="End Sub"; +return ""; +} +public String _setbordercolor(int _valid,int _invalid) throws Exception{ + //BA.debugLineNum = 34;BA.debugLine="Public Sub SetBorderColor(Valid As Int, Invalid As"; + //BA.debugLineNum = 35;BA.debugLine="BorderColor = Valid"; +_bordercolor = _valid; + //BA.debugLineNum = 36;BA.debugLine="BorderColorInvalid = Invalid"; +_bordercolorinvalid = _invalid; + //BA.debugLineNum = 37;BA.debugLine="SetBorder(BorderColor)"; +_setborder(_bordercolor); + //BA.debugLineNum = 38;BA.debugLine="End Sub"; +return ""; +} +public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ +ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog); rsub.resume(ba, null); } public static class ResumableSub_Show extends BA.ResumableSub { -public ResumableSub_Show(reparto_izca.keymon.lat.b4xinputtemplate parent,reparto_izca.keymon.lat.b4xinputtemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) { +public ResumableSub_Show(reparto_izca.keymon.lat.b4xinputtemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) { this.parent = parent; -this.__ref = __ref; this._dialog = _dialog; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xinputtemplate __ref; reparto_izca.keymon.lat.b4xinputtemplate parent; reparto_izca.keymon.lat.b4xdialog _dialog; anywheresoftware.b4a.objects.EditTextWrapper _tf = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xinputtemplate"; while (true) { switch (state) { @@ -101,349 +198,91 @@ return; case 0: //C this.state = -1; -RDebugUtils.currentLine=55181313; - //BA.debugLineNum = 55181313;BA.debugLine="xDialog = Dialog"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ = _dialog; -RDebugUtils.currentLine=55181314; - //BA.debugLineNum = 55181314;BA.debugLine="xDialog.PutAtTop = xui.IsB4A Or xui.IsB4i"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._putattop /*boolean*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A() || __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i(); -RDebugUtils.currentLine=55181315; - //BA.debugLineNum = 55181315;BA.debugLine="Sleep(20)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xinputtemplate", "show"),(int) (20)); + //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; ; -RDebugUtils.currentLine=55181316; - //BA.debugLineNum = 55181316;BA.debugLine="TextField1.Text = Text"; -__ref._textfield1 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(__ref._text /*String*/ )); -RDebugUtils.currentLine=55181317; - //BA.debugLineNum = 55181317;BA.debugLine="Validate(Text)"; -__ref._validate /*String*/ (null,__ref._text /*String*/ ); -RDebugUtils.currentLine=55181318; - //BA.debugLineNum = 55181318;BA.debugLine="TextField1.RequestFocus"; -__ref._textfield1 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RequestFocus(); -RDebugUtils.currentLine=55181320; - //BA.debugLineNum = 55181320;BA.debugLine="Dim tf As EditText = TextField1"; + //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)(__ref._textfield1 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject())); -RDebugUtils.currentLine=55181321; - //BA.debugLineNum = 55181321;BA.debugLine="tf.SelectAll"; +_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(); -RDebugUtils.currentLine=55181322; - //BA.debugLineNum = 55181322;BA.debugLine="IME.ShowKeyboard(TextField1)"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .ShowKeyboard((android.view.View)(__ref._textfield1 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject())); -RDebugUtils.currentLine=55181327; - //BA.debugLineNum = 55181327;BA.debugLine="End Sub"; + //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 _dialogclosed(reparto_izca.keymon.lat.b4xinputtemplate __ref,int _result) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "dialogclosed", true)) - {return ((String) Debug.delegate(ba, "dialogclosed", new Object[] {_result}));} -RDebugUtils.currentLine=55246848; - //BA.debugLineNum = 55246848;BA.debugLine="Private Sub DialogClosed(Result As Int)"; -RDebugUtils.currentLine=55246849; - //BA.debugLineNum = 55246849;BA.debugLine="If Result = xui.DialogResponse_Positive Then"; -if (_result==__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive) { -RDebugUtils.currentLine=55246850; - //BA.debugLineNum = 55246850;BA.debugLine="Text = TextField1.Text"; -__ref._text /*String*/ = __ref._textfield1 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getText(); - }; -RDebugUtils.currentLine=55246852; - //BA.debugLineNum = 55246852;BA.debugLine="End Sub"; +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 _class_globals(reparto_izca.keymon.lat.b4xinputtemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -RDebugUtils.currentLine=54460416; - //BA.debugLineNum = 54460416;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=54460417; - //BA.debugLineNum = 54460417;BA.debugLine="Private xui As XUI"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=54460418; - //BA.debugLineNum = 54460418;BA.debugLine="Public mBase As B4XView"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=54460419; - //BA.debugLineNum = 54460419;BA.debugLine="Public Text As String"; -_text = ""; -RDebugUtils.currentLine=54460420; - //BA.debugLineNum = 54460420;BA.debugLine="Private xDialog As B4XDialog"; -_xdialog = new reparto_izca.keymon.lat.b4xdialog(); -RDebugUtils.currentLine=54460421; - //BA.debugLineNum = 54460421;BA.debugLine="Public RegexPattern As String"; -_regexpattern = ""; -RDebugUtils.currentLine=54460422; - //BA.debugLineNum = 54460422;BA.debugLine="Public TextField1 As B4XView"; -_textfield1 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=54460423; - //BA.debugLineNum = 54460423;BA.debugLine="Public lblTitle As B4XView"; -_lbltitle = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=54460425; - //BA.debugLineNum = 54460425;BA.debugLine="Private IME As IME"; -_ime = new anywheresoftware.b4a.objects.IME(); -RDebugUtils.currentLine=54460427; - //BA.debugLineNum = 54460427;BA.debugLine="Private mAllowDecimals As Boolean"; -_mallowdecimals = false; -RDebugUtils.currentLine=54460428; - //BA.debugLineNum = 54460428;BA.debugLine="Private BorderColor = xui.Color_White, BorderColo"; -_bordercolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -_bordercolorinvalid = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Red; -RDebugUtils.currentLine=54460429; - //BA.debugLineNum = 54460429;BA.debugLine="End Sub"; +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 _configurefornumbers(reparto_izca.keymon.lat.b4xinputtemplate __ref,boolean _allowdecimals,boolean _allownegative) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "configurefornumbers", true)) - {return ((String) Debug.delegate(ba, "configurefornumbers", new Object[] {_allowdecimals,_allownegative}));} -anywheresoftware.b4a.objects.EditTextWrapper _et = null; -RDebugUtils.currentLine=54657024; - //BA.debugLineNum = 54657024;BA.debugLine="Public Sub ConfigureForNumbers (AllowDecimals As B"; -RDebugUtils.currentLine=54657026; - //BA.debugLineNum = 54657026;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)(__ref._textfield1 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject())); -RDebugUtils.currentLine=54657027; - //BA.debugLineNum = 54657027;BA.debugLine="If AllowDecimals Or AllowNegative Then"; -if (_allowdecimals || _allownegative) { -RDebugUtils.currentLine=54657028; - //BA.debugLineNum = 54657028;BA.debugLine="et.InputType = et.INPUT_TYPE_DECIMAL_NUMBERS"; -_et.setInputType(_et.INPUT_TYPE_DECIMAL_NUMBERS); - }else { -RDebugUtils.currentLine=54657030; - //BA.debugLineNum = 54657030;BA.debugLine="et.InputType = et.INPUT_TYPE_NUMBERS"; -_et.setInputType(_et.INPUT_TYPE_NUMBERS); - }; -RDebugUtils.currentLine=54657043; - //BA.debugLineNum = 54657043;BA.debugLine="If AllowDecimals And AllowNegative Then"; -if (_allowdecimals && _allownegative) { -RDebugUtils.currentLine=54657044; - //BA.debugLineNum = 54657044;BA.debugLine="RegexPattern = \"^-?(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$"; -__ref._regexpattern /*String*/ = "^-?(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$"; - }else -{RDebugUtils.currentLine=54657045; - //BA.debugLineNum = 54657045;BA.debugLine="Else If AllowDecimals And AllowNegative = False T"; -if (_allowdecimals && _allownegative==__c.False) { -RDebugUtils.currentLine=54657046; - //BA.debugLineNum = 54657046;BA.debugLine="RegexPattern = \"^(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$\""; -__ref._regexpattern /*String*/ = "^(0|[1-9]\\d*)?(\\.\\d+)?(?<=\\d)$"; - }else -{RDebugUtils.currentLine=54657047; - //BA.debugLineNum = 54657047;BA.debugLine="Else If AllowDecimals = False And AllowNegative ="; -if (_allowdecimals==__c.False && _allownegative==__c.True) { -RDebugUtils.currentLine=54657048; - //BA.debugLineNum = 54657048;BA.debugLine="RegexPattern = \"^-?(0|[1-9]\\d*)$\""; -__ref._regexpattern /*String*/ = "^-?(0|[1-9]\\d*)$"; - }else -{RDebugUtils.currentLine=54657049; - //BA.debugLineNum = 54657049;BA.debugLine="Else If AllowDecimals = False And AllowNegative ="; -if (_allowdecimals==__c.False && _allownegative==__c.False) { -RDebugUtils.currentLine=54657050; - //BA.debugLineNum = 54657050;BA.debugLine="RegexPattern = \"^(0|[1-9]\\d*)$\""; -__ref._regexpattern /*String*/ = "^(0|[1-9]\\d*)$"; - }}}} -; -RDebugUtils.currentLine=54657052; - //BA.debugLineNum = 54657052;BA.debugLine="mAllowDecimals = AllowDecimals"; -__ref._mallowdecimals /*boolean*/ = _allowdecimals; -RDebugUtils.currentLine=54657053; - //BA.debugLineNum = 54657053;BA.debugLine="End Sub"; +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 _initialize(reparto_izca.keymon.lat.b4xinputtemplate __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=54525952; - //BA.debugLineNum = 54525952;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=54525953; - //BA.debugLineNum = 54525953;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"mBase"); -RDebugUtils.currentLine=54525954; - //BA.debugLineNum = 54525954;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 80dip)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (80))); -RDebugUtils.currentLine=54525955; - //BA.debugLineNum = 54525955;BA.debugLine="mBase.LoadLayout(\"B4XInputTemplate\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("B4XInputTemplate",ba); -RDebugUtils.currentLine=54525956; - //BA.debugLineNum = 54525956;BA.debugLine="TextField1.TextColor = xui.Color_White"; -__ref._textfield1 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTextColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White); -RDebugUtils.currentLine=54525958; - //BA.debugLineNum = 54525958;BA.debugLine="IME.Initialize(\"\")"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .Initialize(""); -RDebugUtils.currentLine=54525959; - //BA.debugLineNum = 54525959;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)(__ref._textfield1 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject())); -RDebugUtils.currentLine=54525960; - //BA.debugLineNum = 54525960;BA.debugLine="jo.RunMethod(\"setImeOptions\", Array(Bit.Or(335544"; -_jo.RunMethod("setImeOptions",new Object[]{(Object)(__c.Bit.Or((int) (33554432),(int) (6)))}); -RDebugUtils.currentLine=54525962; - //BA.debugLineNum = 54525962;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)); -RDebugUtils.currentLine=54525963; - //BA.debugLineNum = 54525963;BA.debugLine="jo.RunMethod(\"RemoveWarning\", Null)"; -_jo.RunMethod("RemoveWarning",(Object[])(__c.Null)); -RDebugUtils.currentLine=54525966; - //BA.debugLineNum = 54525966;BA.debugLine="SetBorder(BorderColor)"; -__ref._setborder /*String*/ (null,__ref._bordercolor /*int*/ ); -RDebugUtils.currentLine=54525967; - //BA.debugLineNum = 54525967;BA.debugLine="End Sub"; -return ""; -} -public String _setborder(reparto_izca.keymon.lat.b4xinputtemplate __ref,int _bc) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "setborder", true)) - {return ((String) Debug.delegate(ba, "setborder", new Object[] {_bc}));} -RDebugUtils.currentLine=54853632; - //BA.debugLineNum = 54853632;BA.debugLine="Private Sub SetBorder(bc As Int)"; -RDebugUtils.currentLine=54853633; - //BA.debugLineNum = 54853633;BA.debugLine="TextField1.SetColorAndBorder(xui.Color_Transparen"; -__ref._textfield1 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,__c.DipToCurrent((int) (1)),_bc,__c.DipToCurrent((int) (2))); -RDebugUtils.currentLine=54853634; - //BA.debugLineNum = 54853634;BA.debugLine="End Sub"; -return ""; -} -public boolean _isvalid(reparto_izca.keymon.lat.b4xinputtemplate __ref,String _new) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "isvalid", true)) - {return ((Boolean) Debug.delegate(ba, "isvalid", new Object[] {_new}));} -RDebugUtils.currentLine=54919168; - //BA.debugLineNum = 54919168;BA.debugLine="Private Sub IsValid(New As String) As Boolean"; -RDebugUtils.currentLine=54919169; - //BA.debugLineNum = 54919169;BA.debugLine="Return RegexPattern = \"\" Or Regex.IsMatch(RegexPa"; -if (true) return (__ref._regexpattern /*String*/ ).equals("") || __c.Regex.IsMatch(__ref._regexpattern /*String*/ ,_new); -RDebugUtils.currentLine=54919170; - //BA.debugLineNum = 54919170;BA.debugLine="End Sub"; -return false; -} -public String _setbordercolor(reparto_izca.keymon.lat.b4xinputtemplate __ref,int _valid,int _invalid) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "setbordercolor", true)) - {return ((String) Debug.delegate(ba, "setbordercolor", new Object[] {_valid,_invalid}));} -RDebugUtils.currentLine=54591488; - //BA.debugLineNum = 54591488;BA.debugLine="Public Sub SetBorderColor(Valid As Int, Invalid As"; -RDebugUtils.currentLine=54591489; - //BA.debugLineNum = 54591489;BA.debugLine="BorderColor = Valid"; -__ref._bordercolor /*int*/ = _valid; -RDebugUtils.currentLine=54591490; - //BA.debugLineNum = 54591490;BA.debugLine="BorderColorInvalid = Invalid"; -__ref._bordercolorinvalid /*int*/ = _invalid; -RDebugUtils.currentLine=54591491; - //BA.debugLineNum = 54591491;BA.debugLine="SetBorder(BorderColor)"; -__ref._setborder /*String*/ (null,__ref._bordercolor /*int*/ ); -RDebugUtils.currentLine=54591492; - //BA.debugLineNum = 54591492;BA.debugLine="End Sub"; -return ""; -} -public String _validate(reparto_izca.keymon.lat.b4xinputtemplate __ref,String _new) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "validate", true)) - {return ((String) Debug.delegate(ba, "validate", new Object[] {_new}));} +public String _validate(String _new) throws Exception{ int _bc = 0; boolean _enabled = false; -RDebugUtils.currentLine=54788096; - //BA.debugLineNum = 54788096;BA.debugLine="Private Sub Validate (New As String)"; -RDebugUtils.currentLine=54788097; - //BA.debugLineNum = 54788097;BA.debugLine="Dim bc As Int = BorderColor"; -_bc = __ref._bordercolor /*int*/ ; -RDebugUtils.currentLine=54788098; - //BA.debugLineNum = 54788098;BA.debugLine="Dim enabled As Boolean = True"; + //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; -RDebugUtils.currentLine=54788099; - //BA.debugLineNum = 54788099;BA.debugLine="If IsValid(New) = False Then"; -if (__ref._isvalid /*boolean*/ (null,_new)==__c.False) { -RDebugUtils.currentLine=54788100; - //BA.debugLineNum = 54788100;BA.debugLine="If New.Length > 0 Then"; + //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) { -RDebugUtils.currentLine=54788101; - //BA.debugLineNum = 54788101;BA.debugLine="bc = BorderColorInvalid"; -_bc = __ref._bordercolorinvalid /*int*/ ; + //BA.debugLineNum = 91;BA.debugLine="bc = BorderColorInvalid"; +_bc = _bordercolorinvalid; }; -RDebugUtils.currentLine=54788103; - //BA.debugLineNum = 54788103;BA.debugLine="enabled = False"; + //BA.debugLineNum = 93;BA.debugLine="enabled = False"; _enabled = __c.False; }; -RDebugUtils.currentLine=54788105; - //BA.debugLineNum = 54788105;BA.debugLine="xDialog.SetButtonState(xui.DialogResponse_Positiv"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._setbuttonstate /*String*/ (null,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive,_enabled); -RDebugUtils.currentLine=54788106; - //BA.debugLineNum = 54788106;BA.debugLine="SetBorder(bc)"; -__ref._setborder /*String*/ (null,_bc); -RDebugUtils.currentLine=54788107; - //BA.debugLineNum = 54788107;BA.debugLine="End Sub"; + //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 String _textfield1_action(reparto_izca.keymon.lat.b4xinputtemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "textfield1_action", true)) - {return ((String) Debug.delegate(ba, "textfield1_action", null));} -RDebugUtils.currentLine=54984704; - //BA.debugLineNum = 54984704;BA.debugLine="Private Sub TextField1_Action"; -RDebugUtils.currentLine=54984705; - //BA.debugLineNum = 54984705;BA.debugLine="TextField1_EnterPressed"; -__ref._textfield1_enterpressed /*String*/ (null); -RDebugUtils.currentLine=54984706; - //BA.debugLineNum = 54984706;BA.debugLine="End Sub"; -return ""; +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "DIALOGCLOSED")) + return _dialogclosed(((Number)args[0]).intValue()); +if (BA.fastSubCompare(sub, "GETPANEL")) + return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; } -public String _textfield1_enterpressed(reparto_izca.keymon.lat.b4xinputtemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "textfield1_enterpressed", true)) - {return ((String) Debug.delegate(ba, "textfield1_enterpressed", null));} -RDebugUtils.currentLine=55050240; - //BA.debugLineNum = 55050240;BA.debugLine="Private Sub TextField1_EnterPressed"; -RDebugUtils.currentLine=55050241; - //BA.debugLineNum = 55050241;BA.debugLine="If IsValid(TextField1.Text) Then xDialog.Close(xu"; -if (__ref._isvalid /*boolean*/ (null,__ref._textfield1 /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getText())) { -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._close /*boolean*/ (null,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive);}; -RDebugUtils.currentLine=55050242; - //BA.debugLineNum = 55050242;BA.debugLine="End Sub"; -return ""; } -public String _textfield1_textchanged(reparto_izca.keymon.lat.b4xinputtemplate __ref,String _old,String _new) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xinputtemplate"; -if (Debug.shouldDelegate(ba, "textfield1_textchanged", true)) - {return ((String) Debug.delegate(ba, "textfield1_textchanged", new Object[] {_old,_new}));} -RDebugUtils.currentLine=54722560; - //BA.debugLineNum = 54722560;BA.debugLine="Private Sub TextField1_TextChanged (Old As String,"; -RDebugUtils.currentLine=54722572; - //BA.debugLineNum = 54722572;BA.debugLine="Validate (New)"; -__ref._validate /*String*/ (null,_new); -RDebugUtils.currentLine=54722573; - //BA.debugLineNum = 54722573;BA.debugLine="End Sub"; -return ""; -} -public void RemoveWarning() throws Exception{ - anywheresoftware.b4a.shell.Shell s = anywheresoftware.b4a.shell.Shell.INSTANCE; - java.lang.reflect.Field f = s.getClass().getDeclaredField("errorMessagesForSyncEvents"); - f.setAccessible(true); - java.util.HashSet h = (java.util.HashSet)f.get(s); - if (h == null) { - h = new java.util.HashSet(); - f.set(s, h); - } - h.add("textfield1_textchanged"); -} -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xlisttemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xlisttemplate.java index 1e2cb80..3d7dc6c 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xlisttemplate.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xlisttemplate.java @@ -10,7 +10,7 @@ public class b4xlisttemplate extends B4AClass.ImplB4AClass implements BA.SubDele private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xlisttemplate"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xlisttemplate"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xlisttemplate extends B4AClass.ImplB4AClass implements BA.SubDele ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -55,35 +48,146 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xlisttemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlisttemplate"; -if (Debug.shouldDelegate(ba, "getpanel", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "getpanel", new Object[] {_dialog}));} -RDebugUtils.currentLine=55508992; - //BA.debugLineNum = 55508992;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; -RDebugUtils.currentLine=55508993; - //BA.debugLineNum = 55508993;BA.debugLine="Return mBase"; -if (true) return __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=55508994; - //BA.debugLineNum = 55508994;BA.debugLine="End Sub"; +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView"; +_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 4;BA.debugLine="Public CustomListView1 As CustomListView"; +_customlistview1 = new b4a.example3.customlistview(); + //BA.debugLineNum = 5;BA.debugLine="Public Options As List"; +_options = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 6;BA.debugLine="Public SelectedItem As String"; +_selecteditem = ""; + //BA.debugLineNum = 7;BA.debugLine="Private xDialog As B4XDialog"; +_xdialog = new reparto_izca.keymon.lat.b4xdialog(); + //BA.debugLineNum = 8;BA.debugLine="Public AllowMultiSelection As Boolean"; +_allowmultiselection = false; + //BA.debugLineNum = 9;BA.debugLine="Public SelectionColor As Int = 0xAA0086FF"; +_selectioncolor = ((int)0xaa0086ff); + //BA.debugLineNum = 10;BA.debugLine="Public SelectedItems As List"; +_selecteditems = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 11;BA.debugLine="Public MultiSelectionMinimum As Int = 0"; +_multiselectionminimum = (int) (0); + //BA.debugLineNum = 12;BA.debugLine="End Sub"; +return ""; +} +public String _customlistview1_itemclick(int _index,Object _value) throws Exception{ +b4a.example3.customlistview._clvitem _item = null; + //BA.debugLineNum = 76;BA.debugLine="Private Sub CustomListView1_ItemClick (Index As In"; + //BA.debugLineNum = 77;BA.debugLine="If Value = \"\" Then Return"; +if ((_value).equals((Object)(""))) { +if (true) return "";}; + //BA.debugLineNum = 78;BA.debugLine="If AllowMultiSelection Then"; +if (_allowmultiselection) { + //BA.debugLineNum = 79;BA.debugLine="Dim Item As CLVItem = CustomListView1.GetRawList"; +_item = _customlistview1._getrawlistitem(_index); + //BA.debugLineNum = 80;BA.debugLine="SelectItem (Item, True)"; +_selectitem(_item,__c.True); + }else { + //BA.debugLineNum = 82;BA.debugLine="SelectedItem = Value"; +_selecteditem = BA.ObjectToString(_value); + //BA.debugLineNum = 83;BA.debugLine="SelectedItems.Clear"; +_selecteditems.Clear(); + //BA.debugLineNum = 84;BA.debugLine="SelectedItems.Add(Value)"; +_selecteditems.Add(_value); + //BA.debugLineNum = 85;BA.debugLine="xDialog.Close(xui.DialogResponse_Positive)"; +_xdialog._close /*boolean*/ (_xui.DialogResponse_Positive); + }; + //BA.debugLineNum = 87;BA.debugLine="End Sub"; +return ""; +} +public String _dialogclosed(int _result) throws Exception{ + //BA.debugLineNum = 89;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore"; + //BA.debugLineNum = 91;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ + //BA.debugLineNum = 37;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; + //BA.debugLineNum = 38;BA.debugLine="Return mBase"; +if (true) return _mbase; + //BA.debugLineNum = 39;BA.debugLine="End Sub"; return null; } -public void _show(reparto_izca.keymon.lat.b4xlisttemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -RDebugUtils.currentModule="b4xlisttemplate"; -if (Debug.shouldDelegate(ba, "show", true)) - {Debug.delegate(ba, "show", new Object[] {_dialog}); return;} -ResumableSub_Show rsub = new ResumableSub_Show(this,__ref,_dialog); +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 14;BA.debugLine="Public Sub Initialize"; + //BA.debugLineNum = 15;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")"; +_mbase = _xui.CreatePanel(ba,"mBase"); + //BA.debugLineNum = 16;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 300dip)"; +_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (300))); + //BA.debugLineNum = 17;BA.debugLine="mBase.LoadLayout(\"ListTemplate\")"; +_mbase.LoadLayout("ListTemplate",ba); + //BA.debugLineNum = 18;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,"; +_mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0)); + //BA.debugLineNum = 19;BA.debugLine="CustomListView1.sv.SetColorAndBorder(xui.Color_Tr"; +_customlistview1._sv.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0)); + //BA.debugLineNum = 20;BA.debugLine="CustomListView1.DefaultTextBackgroundColor = 0xFF"; +_customlistview1._defaulttextbackgroundcolor = ((int)0xff555555); + //BA.debugLineNum = 21;BA.debugLine="CustomListView1.DefaultTextColor = xui.Color_Whit"; +_customlistview1._defaulttextcolor = _xui.Color_White; + //BA.debugLineNum = 26;BA.debugLine="Options.Initialize"; +_options.Initialize(); + //BA.debugLineNum = 27;BA.debugLine="SelectedItems.Initialize"; +_selecteditems.Initialize(); + //BA.debugLineNum = 28;BA.debugLine="End Sub"; +return ""; +} +public String _resize(int _width,int _height) throws Exception{ + //BA.debugLineNum = 31;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)"; + //BA.debugLineNum = 32;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)"; +_mbase.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); + //BA.debugLineNum = 33;BA.debugLine="CustomListView1.Base_Resize(Width, Height)"; +_customlistview1._base_resize(_width,_height); + //BA.debugLineNum = 34;BA.debugLine="End Sub"; +return ""; +} +public String _selectitem(b4a.example3.customlistview._clvitem _item,boolean _toggle) throws Exception{ +int _index = 0; +boolean _selected = false; + //BA.debugLineNum = 59;BA.debugLine="Private Sub SelectItem (Item As CLVItem, Toggle As"; + //BA.debugLineNum = 60;BA.debugLine="Dim index As Int = SelectedItems.IndexOf(Item.Val"; +_index = _selecteditems.IndexOf(_item.Value); + //BA.debugLineNum = 61;BA.debugLine="Dim Selected As Boolean = index > -1"; +_selected = _index>-1; + //BA.debugLineNum = 62;BA.debugLine="If Toggle Then Selected = Not(Selected)"; +if (_toggle) { +_selected = __c.Not(_selected);}; + //BA.debugLineNum = 63;BA.debugLine="If Selected Then"; +if (_selected) { + //BA.debugLineNum = 64;BA.debugLine="If Not(Toggle) Then Item.Panel.Color = Selection"; +if (__c.Not(_toggle)) { +_item.Panel.setColor(_selectioncolor);}; + //BA.debugLineNum = 65;BA.debugLine="Item.Color = CustomListView1.DefaultTextBackgrou"; +_item.Color = _customlistview1._defaulttextbackgroundcolor; + //BA.debugLineNum = 66;BA.debugLine="If index = -1 Then SelectedItems.Add(Item.Value)"; +if (_index==-1) { +_selecteditems.Add(_item.Value);}; + }else { + //BA.debugLineNum = 68;BA.debugLine="Item.Color = SelectionColor"; +_item.Color = _selectioncolor; + //BA.debugLineNum = 69;BA.debugLine="If Not(Toggle) Then Item.Panel.Color = CustomLis"; +if (__c.Not(_toggle)) { +_item.Panel.setColor(_customlistview1._defaulttextbackgroundcolor);}; + //BA.debugLineNum = 70;BA.debugLine="If index > -1 Then SelectedItems.RemoveAt(index)"; +if (_index>-1) { +_selecteditems.RemoveAt(_index);}; + }; + //BA.debugLineNum = 72;BA.debugLine="xDialog.SetButtonState(xui.DialogResponse_Positiv"; +_xdialog._setbuttonstate /*String*/ (_xui.DialogResponse_Positive,_selecteditems.getSize()>=_multiselectionminimum); + //BA.debugLineNum = 73;BA.debugLine="End Sub"; +return ""; +} +public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ +ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog); rsub.resume(ba, null); } public static class ResumableSub_Show extends BA.ResumableSub { -public ResumableSub_Show(reparto_izca.keymon.lat.b4xlisttemplate parent,reparto_izca.keymon.lat.b4xlisttemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) { +public ResumableSub_Show(reparto_izca.keymon.lat.b4xlisttemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) { this.parent = parent; -this.__ref = __ref; this._dialog = _dialog; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xlisttemplate __ref; reparto_izca.keymon.lat.b4xlisttemplate parent; reparto_izca.keymon.lat.b4xdialog _dialog; Object _opt = null; @@ -97,7 +201,6 @@ int limit8; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xlisttemplate"; while (true) { switch (state) { @@ -107,20 +210,17 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=55574529; - //BA.debugLineNum = 55574529;BA.debugLine="xDialog = Dialog"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ = _dialog; -RDebugUtils.currentLine=55574530; - //BA.debugLineNum = 55574530;BA.debugLine="CustomListView1.Clear"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=55574531; - //BA.debugLineNum = 55574531;BA.debugLine="For Each opt As Object In Options"; + //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 = __ref._options /*anywheresoftware.b4a.objects.collections.List*/ ; +group3 = parent._options; index3 = 0; groupLen3 = group3.getSize(); this.state = 12; @@ -143,43 +243,39 @@ if (true) break; case 3: //C this.state = 13; -RDebugUtils.currentLine=55574532; - //BA.debugLineNum = 55574532;BA.debugLine="CustomListView1.AddTextItem(opt, opt)"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._addtextitem(_opt,_opt); + //BA.debugLineNum = 45;BA.debugLine="CustomListView1.AddTextItem(opt, opt)"; +parent._customlistview1._addtextitem(_opt,_opt); if (true) break; if (true) break; ; -RDebugUtils.currentLine=55574534; - //BA.debugLineNum = 55574534;BA.debugLine="If AllowMultiSelection Then"; + //BA.debugLineNum = 47;BA.debugLine="If AllowMultiSelection Then"; case 4: //if this.state = 11; -if (__ref._allowmultiselection /*boolean*/ ) { +if (parent._allowmultiselection) { this.state = 6; }if (true) break; case 6: //C this.state = 7; -RDebugUtils.currentLine=55574535; - //BA.debugLineNum = 55574535;BA.debugLine="Sleep(20)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xlisttemplate", "show"),(int) (20)); + //BA.debugLineNum = 48;BA.debugLine="Sleep(20)"; +parent.__c.Sleep(ba,this,(int) (20)); this.state = 14; return; case 14: //C this.state = 7; ; -RDebugUtils.currentLine=55574536; - //BA.debugLineNum = 55574536;BA.debugLine="For i = 0 To CustomListView1.Size - 1"; + //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) (__ref._customlistview1 /*b4a.example3.customlistview*/ ._getsize()-1); +limit8 = (int) (parent._customlistview1._getsize()-1); _i = (int) (0) ; this.state = 15; if (true) break; @@ -199,12 +295,10 @@ if (true) break; case 9: //C this.state = 16; -RDebugUtils.currentLine=55574537; - //BA.debugLineNum = 55574537;BA.debugLine="Dim item As CLVItem = CustomListView1.GetRawLis"; -_item = __ref._customlistview1 /*b4a.example3.customlistview*/ ._getrawlistitem(_i); -RDebugUtils.currentLine=55574538; - //BA.debugLineNum = 55574538;BA.debugLine="SelectItem (item, False)"; -__ref._selectitem /*String*/ (null,_item,parent.__c.False); + //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; @@ -218,216 +312,23 @@ case 11: //C this.state = -1; ; -RDebugUtils.currentLine=55574541; - //BA.debugLineNum = 55574541;BA.debugLine="XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView"; -parent._xuiviewsutils._addstubtoclvifneeded /*String*/ (ba,__ref._customlistview1 /*b4a.example3.customlistview*/ ,__ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextbackgroundcolor); -RDebugUtils.currentLine=55574542; - //BA.debugLineNum = 55574542;BA.debugLine="SelectedItem = \"\""; -__ref._selecteditem /*String*/ = ""; -RDebugUtils.currentLine=55574544; - //BA.debugLineNum = 55574544;BA.debugLine="End Sub"; + //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 String _dialogclosed(reparto_izca.keymon.lat.b4xlisttemplate __ref,int _result) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlisttemplate"; -if (Debug.shouldDelegate(ba, "dialogclosed", true)) - {return ((String) Debug.delegate(ba, "dialogclosed", new Object[] {_result}));} -RDebugUtils.currentLine=55771136; - //BA.debugLineNum = 55771136;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore"; -RDebugUtils.currentLine=55771138; - //BA.debugLineNum = 55771138;BA.debugLine="End Sub"; -return ""; +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "DIALOGCLOSED")) + return _dialogclosed(((Number)args[0]).intValue()); +if (BA.fastSubCompare(sub, "GETPANEL")) + return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; } -public String _class_globals(reparto_izca.keymon.lat.b4xlisttemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlisttemplate"; -RDebugUtils.currentLine=55312384; - //BA.debugLineNum = 55312384;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=55312385; - //BA.debugLineNum = 55312385;BA.debugLine="Private xui As XUI"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=55312386; - //BA.debugLineNum = 55312386;BA.debugLine="Public mBase As B4XView"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=55312387; - //BA.debugLineNum = 55312387;BA.debugLine="Public CustomListView1 As CustomListView"; -_customlistview1 = new b4a.example3.customlistview(); -RDebugUtils.currentLine=55312388; - //BA.debugLineNum = 55312388;BA.debugLine="Public Options As List"; -_options = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=55312389; - //BA.debugLineNum = 55312389;BA.debugLine="Public SelectedItem As String"; -_selecteditem = ""; -RDebugUtils.currentLine=55312390; - //BA.debugLineNum = 55312390;BA.debugLine="Private xDialog As B4XDialog"; -_xdialog = new reparto_izca.keymon.lat.b4xdialog(); -RDebugUtils.currentLine=55312391; - //BA.debugLineNum = 55312391;BA.debugLine="Public AllowMultiSelection As Boolean"; -_allowmultiselection = false; -RDebugUtils.currentLine=55312392; - //BA.debugLineNum = 55312392;BA.debugLine="Public SelectionColor As Int = 0xAA0086FF"; -_selectioncolor = ((int)0xaa0086ff); -RDebugUtils.currentLine=55312393; - //BA.debugLineNum = 55312393;BA.debugLine="Public SelectedItems As List"; -_selecteditems = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=55312394; - //BA.debugLineNum = 55312394;BA.debugLine="Public MultiSelectionMinimum As Int = 0"; -_multiselectionminimum = (int) (0); -RDebugUtils.currentLine=55312395; - //BA.debugLineNum = 55312395;BA.debugLine="End Sub"; -return ""; } -public String _customlistview1_itemclick(reparto_izca.keymon.lat.b4xlisttemplate __ref,int _index,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlisttemplate"; -if (Debug.shouldDelegate(ba, "customlistview1_itemclick", true)) - {return ((String) Debug.delegate(ba, "customlistview1_itemclick", new Object[] {_index,_value}));} -b4a.example3.customlistview._clvitem _item = null; -RDebugUtils.currentLine=55705600; - //BA.debugLineNum = 55705600;BA.debugLine="Private Sub CustomListView1_ItemClick (Index As In"; -RDebugUtils.currentLine=55705601; - //BA.debugLineNum = 55705601;BA.debugLine="If Value = \"\" Then Return"; -if ((_value).equals((Object)(""))) { -if (true) return "";}; -RDebugUtils.currentLine=55705602; - //BA.debugLineNum = 55705602;BA.debugLine="If AllowMultiSelection Then"; -if (__ref._allowmultiselection /*boolean*/ ) { -RDebugUtils.currentLine=55705603; - //BA.debugLineNum = 55705603;BA.debugLine="Dim Item As CLVItem = CustomListView1.GetRawList"; -_item = __ref._customlistview1 /*b4a.example3.customlistview*/ ._getrawlistitem(_index); -RDebugUtils.currentLine=55705604; - //BA.debugLineNum = 55705604;BA.debugLine="SelectItem (Item, True)"; -__ref._selectitem /*String*/ (null,_item,__c.True); - }else { -RDebugUtils.currentLine=55705606; - //BA.debugLineNum = 55705606;BA.debugLine="SelectedItem = Value"; -__ref._selecteditem /*String*/ = BA.ObjectToString(_value); -RDebugUtils.currentLine=55705607; - //BA.debugLineNum = 55705607;BA.debugLine="SelectedItems.Clear"; -__ref._selecteditems /*anywheresoftware.b4a.objects.collections.List*/ .Clear(); -RDebugUtils.currentLine=55705608; - //BA.debugLineNum = 55705608;BA.debugLine="SelectedItems.Add(Value)"; -__ref._selecteditems /*anywheresoftware.b4a.objects.collections.List*/ .Add(_value); -RDebugUtils.currentLine=55705609; - //BA.debugLineNum = 55705609;BA.debugLine="xDialog.Close(xui.DialogResponse_Positive)"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._close /*boolean*/ (null,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive); - }; -RDebugUtils.currentLine=55705611; - //BA.debugLineNum = 55705611;BA.debugLine="End Sub"; -return ""; -} -public String _selectitem(reparto_izca.keymon.lat.b4xlisttemplate __ref,b4a.example3.customlistview._clvitem _item,boolean _toggle) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlisttemplate"; -if (Debug.shouldDelegate(ba, "selectitem", true)) - {return ((String) Debug.delegate(ba, "selectitem", new Object[] {_item,_toggle}));} -int _index = 0; -boolean _selected = false; -RDebugUtils.currentLine=55640064; - //BA.debugLineNum = 55640064;BA.debugLine="Private Sub SelectItem (Item As CLVItem, Toggle As"; -RDebugUtils.currentLine=55640065; - //BA.debugLineNum = 55640065;BA.debugLine="Dim index As Int = SelectedItems.IndexOf(Item.Val"; -_index = __ref._selecteditems /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_item.Value); -RDebugUtils.currentLine=55640066; - //BA.debugLineNum = 55640066;BA.debugLine="Dim Selected As Boolean = index > -1"; -_selected = _index>-1; -RDebugUtils.currentLine=55640067; - //BA.debugLineNum = 55640067;BA.debugLine="If Toggle Then Selected = Not(Selected)"; -if (_toggle) { -_selected = __c.Not(_selected);}; -RDebugUtils.currentLine=55640068; - //BA.debugLineNum = 55640068;BA.debugLine="If Selected Then"; -if (_selected) { -RDebugUtils.currentLine=55640069; - //BA.debugLineNum = 55640069;BA.debugLine="If Not(Toggle) Then Item.Panel.Color = Selection"; -if (__c.Not(_toggle)) { -_item.Panel.setColor(__ref._selectioncolor /*int*/ );}; -RDebugUtils.currentLine=55640070; - //BA.debugLineNum = 55640070;BA.debugLine="Item.Color = CustomListView1.DefaultTextBackgrou"; -_item.Color = __ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextbackgroundcolor; -RDebugUtils.currentLine=55640071; - //BA.debugLineNum = 55640071;BA.debugLine="If index = -1 Then SelectedItems.Add(Item.Value)"; -if (_index==-1) { -__ref._selecteditems /*anywheresoftware.b4a.objects.collections.List*/ .Add(_item.Value);}; - }else { -RDebugUtils.currentLine=55640073; - //BA.debugLineNum = 55640073;BA.debugLine="Item.Color = SelectionColor"; -_item.Color = __ref._selectioncolor /*int*/ ; -RDebugUtils.currentLine=55640074; - //BA.debugLineNum = 55640074;BA.debugLine="If Not(Toggle) Then Item.Panel.Color = CustomLis"; -if (__c.Not(_toggle)) { -_item.Panel.setColor(__ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextbackgroundcolor);}; -RDebugUtils.currentLine=55640075; - //BA.debugLineNum = 55640075;BA.debugLine="If index > -1 Then SelectedItems.RemoveAt(index)"; -if (_index>-1) { -__ref._selecteditems /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(_index);}; - }; -RDebugUtils.currentLine=55640077; - //BA.debugLineNum = 55640077;BA.debugLine="xDialog.SetButtonState(xui.DialogResponse_Positiv"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._setbuttonstate /*String*/ (null,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive,__ref._selecteditems /*anywheresoftware.b4a.objects.collections.List*/ .getSize()>=__ref._multiselectionminimum /*int*/ ); -RDebugUtils.currentLine=55640078; - //BA.debugLineNum = 55640078;BA.debugLine="End Sub"; -return ""; -} -public String _initialize(reparto_izca.keymon.lat.b4xlisttemplate __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xlisttemplate"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=55377920; - //BA.debugLineNum = 55377920;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=55377921; - //BA.debugLineNum = 55377921;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"mBase"); -RDebugUtils.currentLine=55377922; - //BA.debugLineNum = 55377922;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 300dip)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (300))); -RDebugUtils.currentLine=55377923; - //BA.debugLineNum = 55377923;BA.debugLine="mBase.LoadLayout(\"ListTemplate\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("ListTemplate",ba); -RDebugUtils.currentLine=55377924; - //BA.debugLineNum = 55377924;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=55377925; - //BA.debugLineNum = 55377925;BA.debugLine="CustomListView1.sv.SetColorAndBorder(xui.Color_Tr"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._sv.SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=55377926; - //BA.debugLineNum = 55377926;BA.debugLine="CustomListView1.DefaultTextBackgroundColor = 0xFF"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextbackgroundcolor = ((int)0xff555555); -RDebugUtils.currentLine=55377927; - //BA.debugLineNum = 55377927;BA.debugLine="CustomListView1.DefaultTextColor = xui.Color_Whit"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextcolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -RDebugUtils.currentLine=55377932; - //BA.debugLineNum = 55377932;BA.debugLine="Options.Initialize"; -__ref._options /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=55377933; - //BA.debugLineNum = 55377933;BA.debugLine="SelectedItems.Initialize"; -__ref._selecteditems /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=55377934; - //BA.debugLineNum = 55377934;BA.debugLine="End Sub"; -return ""; -} -public String _resize(reparto_izca.keymon.lat.b4xlisttemplate __ref,int _width,int _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlisttemplate"; -if (Debug.shouldDelegate(ba, "resize", true)) - {return ((String) Debug.delegate(ba, "resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=55443456; - //BA.debugLineNum = 55443456;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)"; -RDebugUtils.currentLine=55443457; - //BA.debugLineNum = 55443457;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=55443458; - //BA.debugLineNum = 55443458;BA.debugLine="CustomListView1.Base_Resize(Width, Height)"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._base_resize(_width,_height); -RDebugUtils.currentLine=55443459; - //BA.debugLineNum = 55443459;BA.debugLine="End Sub"; -return ""; -} -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xloadingindicator.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xloadingindicator.java index 983f151..7b22f83 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xloadingindicator.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xloadingindicator.java @@ -10,7 +10,7 @@ public class b4xloadingindicator extends B4AClass.ImplB4AClass implements BA.Sub private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xloadingindicator"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xloadingindicator"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xloadingindicator extends B4AClass.ImplB4AClass implements BA.Sub ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -55,37 +48,274 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.b4xloadingindicator __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=56033280; - //BA.debugLineNum = 56033280;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A"; -RDebugUtils.currentLine=56033281; - //BA.debugLineNum = 56033281;BA.debugLine="cvs.Resize(Width, Height)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Resize((float) (_width),(float) (_height)); -RDebugUtils.currentLine=56033282; - //BA.debugLineNum = 56033282;BA.debugLine="MainLoop"; -__ref._mainloop /*void*/ (null); -RDebugUtils.currentLine=56033283; - //BA.debugLineNum = 56033283;BA.debugLine="End Sub"; +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 void _mainloop(reparto_izca.keymon.lat.b4xloadingindicator __ref) throws Exception{ -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "mainloop", true)) - {Debug.delegate(ba, "mainloop", null); return;} -ResumableSub_MainLoop rsub = new ResumableSub_MainLoop(this,__ref); +public String _class_globals() throws Exception{ + //BA.debugLineNum = 7;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 8;BA.debugLine="Private mEventName As String 'ignore"; +_meventname = ""; + //BA.debugLineNum = 9;BA.debugLine="Private mCallBack As Object 'ignore"; +_mcallback = new Object(); + //BA.debugLineNum = 10;BA.debugLine="Public mBase As B4XView 'ignore"; +_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Private xui As XUI 'ignore"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 12;BA.debugLine="Private clr As Int"; +_clr = 0; + //BA.debugLineNum = 13;BA.debugLine="Private index As Int"; +_index = 0; + //BA.debugLineNum = 14;BA.debugLine="Private cvs As B4XCanvas"; +_cvs = new anywheresoftware.b4a.objects.B4XCanvas(); + //BA.debugLineNum = 15;BA.debugLine="Private duration As Int"; +_duration = 0; + //BA.debugLineNum = 16;BA.debugLine="Private DrawingSubName As String"; +_drawingsubname = ""; + //BA.debugLineNum = 17;BA.debugLine="Public Tag As Object"; +_tag = new Object(); + //BA.debugLineNum = 18;BA.debugLine="End Sub"; +return ""; +} +public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ +String _style = ""; + //BA.debugLineNum = 26;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; + //BA.debugLineNum = 27;BA.debugLine="mBase = Base"; +_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); + //BA.debugLineNum = 28;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; +_tag = _mbase.getTag(); + //BA.debugLineNum = 28;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; +_mbase.setTag(this); + //BA.debugLineNum = 29;BA.debugLine="clr = xui.PaintOrColorToColor(Props.Get(\"Color\""; +_clr = _xui.PaintOrColorToColor(_props.Get((Object)("Color"))); + //BA.debugLineNum = 30;BA.debugLine="Dim style As String= Props.Get(\"IndicatorStyle\")"; +_style = BA.ObjectToString(_props.Get((Object)("IndicatorStyle"))); + //BA.debugLineNum = 31;BA.debugLine="Dim duration As Int = Props.Get(\"Duration\")"; +_duration = (int)(BA.ObjectToNumber(_props.Get((Object)("Duration")))); + //BA.debugLineNum = 32;BA.debugLine="DrawingSubName = \"Draw_\" & style.Replace(\" \", \"\")"; +_drawingsubname = "Draw_"+_style.replace(" ",""); + //BA.debugLineNum = 33;BA.debugLine="cvs.Initialize(mBase)"; +_cvs.Initialize(_mbase); + //BA.debugLineNum = 34;BA.debugLine="MainLoop"; +_mainloop(); + //BA.debugLineNum = 35;BA.debugLine="End Sub"; +return ""; +} +public String _draw_arc1(float _progress) throws Exception{ +anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null; +float _r = 0f; + //BA.debugLineNum = 105;BA.debugLine="Private Sub Draw_Arc1 (Progress As Float)"; + //BA.debugLineNum = 106;BA.debugLine="Dim p As B4XPath"; +_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath(); + //BA.debugLineNum = 107;BA.debugLine="Dim r As Float = cvs.TargetRect.CenterX - 5dip"; +_r = (float) (_cvs.getTargetRect().getCenterX()-__c.DipToCurrent((int) (5))); + //BA.debugLineNum = 108;BA.debugLine="If Progress < 0.5 Then"; +if (_progress<0.5) { + //BA.debugLineNum = 109;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ"; +_p.InitializeArc(_cvs.getTargetRect().getCenterX(),_cvs.getTargetRect().getCenterY(),_r,(float) (-90),(float) (_progress*2*360)); + }else { + //BA.debugLineNum = 111;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ"; +_p.InitializeArc(_cvs.getTargetRect().getCenterX(),_cvs.getTargetRect().getCenterY(),_r,(float) (-90),(float) (-(1-_progress)*2*360)); + }; + //BA.debugLineNum = 113;BA.debugLine="cvs.ClipPath(p)"; +_cvs.ClipPath(_p); + //BA.debugLineNum = 114;BA.debugLine="cvs.DrawRect(cvs.TargetRect, clr, True, 0)"; +_cvs.DrawRect(_cvs.getTargetRect(),_clr,__c.True,(float) (0)); + //BA.debugLineNum = 115;BA.debugLine="cvs.RemoveClip"; +_cvs.RemoveClip(); + //BA.debugLineNum = 116;BA.debugLine="End Sub"; +return ""; +} +public String _draw_arc2(float _progress) throws Exception{ +anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null; +float _r = 0f; + //BA.debugLineNum = 118;BA.debugLine="Private Sub Draw_Arc2 (Progress As Float)"; + //BA.debugLineNum = 119;BA.debugLine="Dim p As B4XPath"; +_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath(); + //BA.debugLineNum = 120;BA.debugLine="Dim r As Float = cvs.TargetRect.CenterX - 5dip"; +_r = (float) (_cvs.getTargetRect().getCenterX()-__c.DipToCurrent((int) (5))); + //BA.debugLineNum = 121;BA.debugLine="If Progress < 0.5 Then"; +if (_progress<0.5) { + //BA.debugLineNum = 122;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ"; +_p.InitializeArc(_cvs.getTargetRect().getCenterX(),_cvs.getTargetRect().getCenterY(),_r,(float) (-90),(float) (_progress*2*360)); + }else { + //BA.debugLineNum = 124;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ"; +_p.InitializeArc(_cvs.getTargetRect().getCenterX(),_cvs.getTargetRect().getCenterY(),_r,(float) (-90),(float) (360-(_progress-0.5)*2*360)); + }; + //BA.debugLineNum = 126;BA.debugLine="cvs.ClipPath(p)"; +_cvs.ClipPath(_p); + //BA.debugLineNum = 127;BA.debugLine="cvs.DrawRect(cvs.TargetRect, clr, True, 0)"; +_cvs.DrawRect(_cvs.getTargetRect(),_clr,__c.True,(float) (0)); + //BA.debugLineNum = 128;BA.debugLine="cvs.RemoveClip"; +_cvs.RemoveClip(); + //BA.debugLineNum = 129;BA.debugLine="End Sub"; +return ""; +} +public String _draw_fivelines1(float _progress) throws Exception{ +int _minr = 0; +int _maxr = 0; +int _dx = 0; +int _i = 0; +float _r = 0f; + //BA.debugLineNum = 95;BA.debugLine="Private Sub Draw_FiveLines1(Progress As Float)"; + //BA.debugLineNum = 96;BA.debugLine="Dim MinR As Int = 10dip"; +_minr = __c.DipToCurrent((int) (10)); + //BA.debugLineNum = 97;BA.debugLine="Dim MaxR As Int = cvs.TargetRect.Height / 2"; +_maxr = (int) (_cvs.getTargetRect().getHeight()/(double)2); + //BA.debugLineNum = 98;BA.debugLine="Dim dx As Int = (cvs.TargetRect.Width - 2dip) / 5"; +_dx = (int) ((_cvs.getTargetRect().getWidth()-__c.DipToCurrent((int) (2)))/(double)5); + //BA.debugLineNum = 99;BA.debugLine="For i = 0 To 4"; +{ +final int step4 = 1; +final int limit4 = (int) (4); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 100;BA.debugLine="Dim r As Float = MinR + MaxR / 2 + MaxR / 2 * Si"; +_r = (float) (_minr+_maxr/(double)2+_maxr/(double)2*__c.SinD(_progress*360-30*_i)); + //BA.debugLineNum = 101;BA.debugLine="cvs.DrawLine(2dip + i * dx, cvs.TargetRect.Cente"; +_cvs.DrawLine((float) (__c.DipToCurrent((int) (2))+_i*_dx),(float) (_cvs.getTargetRect().getCenterY()-_r),(float) (__c.DipToCurrent((int) (2))+_i*_dx),(float) (_cvs.getTargetRect().getCenterY()+_r),_clr,(float) (__c.DipToCurrent((int) (4)))); + } +}; + //BA.debugLineNum = 103;BA.debugLine="End Sub"; +return ""; +} +public String _draw_pacman(float _progress) throws Exception{ +int _dotr = 0; +anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null; +int _angle = 0; +int _cx = 0; +int _cy = 0; +int _r = 0; + //BA.debugLineNum = 131;BA.debugLine="Private Sub Draw_PacMan(Progress As Float)"; + //BA.debugLineNum = 132;BA.debugLine="Dim DotR As Int = 5dip"; +_dotr = __c.DipToCurrent((int) (5)); + //BA.debugLineNum = 133;BA.debugLine="cvs.DrawCircle(cvs.TargetRect.Width - DotR - Prog"; +_cvs.DrawCircle((float) (_cvs.getTargetRect().getWidth()-_dotr-_progress*(_cvs.getTargetRect().getCenterX()-__c.DipToCurrent((int) (10)))),_cvs.getTargetRect().getCenterY(),(float) (_dotr),_setalpha(_clr,(int) (255-200*_progress)),__c.True,(float) (0)); + //BA.debugLineNum = 134;BA.debugLine="Dim p As B4XPath"; +_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath(); + //BA.debugLineNum = 135;BA.debugLine="Dim angle As Int = 70 * SinD(Progress * 180)"; +_angle = (int) (70*__c.SinD(_progress*180)); + //BA.debugLineNum = 136;BA.debugLine="Dim cx As Int = cvs.TargetRect.CenterX - 5dip"; +_cx = (int) (_cvs.getTargetRect().getCenterX()-__c.DipToCurrent((int) (5))); + //BA.debugLineNum = 137;BA.debugLine="Dim cy As Int = cvs.TargetRect.CenterY"; +_cy = (int) (_cvs.getTargetRect().getCenterY()); + //BA.debugLineNum = 138;BA.debugLine="Dim r As Int = cvs.TargetRect.CenterY - 5dip"; +_r = (int) (_cvs.getTargetRect().getCenterY()-__c.DipToCurrent((int) (5))); + //BA.debugLineNum = 139;BA.debugLine="If angle = 0 Then"; +if (_angle==0) { + //BA.debugLineNum = 140;BA.debugLine="cvs.DrawCircle(cx, cy, r, clr, True, 0)"; +_cvs.DrawCircle((float) (_cx),(float) (_cy),(float) (_r),_clr,__c.True,(float) (0)); + }else { + //BA.debugLineNum = 142;BA.debugLine="p.InitializeArc(cx, cy , r, -angle / 2, -(360-an"; +_p.InitializeArc((float) (_cx),(float) (_cy),(float) (_r),(float) (-_angle/(double)2),(float) (-(360-_angle))); + //BA.debugLineNum = 143;BA.debugLine="cvs.ClipPath(p)"; +_cvs.ClipPath(_p); + //BA.debugLineNum = 144;BA.debugLine="cvs.DrawRect(cvs.TargetRect, clr, True, 0)"; +_cvs.DrawRect(_cvs.getTargetRect(),_clr,__c.True,(float) (0)); + //BA.debugLineNum = 145;BA.debugLine="cvs.RemoveClip"; +_cvs.RemoveClip(); + }; + //BA.debugLineNum = 148;BA.debugLine="End Sub"; +return ""; +} +public String _draw_singlecircle(float _progress) throws Exception{ +int _i = 0; + //BA.debugLineNum = 85;BA.debugLine="Private Sub Draw_SingleCircle(Progress As Float)"; + //BA.debugLineNum = 86;BA.debugLine="For i = 0 To 2"; +{ +final int step1 = 1; +final int limit1 = (int) (2); +_i = (int) (0) ; +for (;_i <= limit1 ;_i = _i + step1 ) { + //BA.debugLineNum = 87;BA.debugLine="cvs.DrawCircle(cvs.TargetRect.CenterX, cvs.Targe"; +_cvs.DrawCircle(_cvs.getTargetRect().getCenterX(),_cvs.getTargetRect().getCenterY(),(float) (_cvs.getTargetRect().getCenterX()*_progress),_setalpha(_clr,(int) (255-255*_progress)),__c.True,(float) (0)); + } +}; + //BA.debugLineNum = 89;BA.debugLine="End Sub"; +return ""; +} +public String _draw_threecircles1(float _progress) throws Exception{ +float _maxr = 0f; +float _r = 0f; +int _i = 0; +int _alpha = 0; + //BA.debugLineNum = 66;BA.debugLine="Private Sub Draw_ThreeCircles1 (Progress As Float)"; + //BA.debugLineNum = 67;BA.debugLine="Dim MaxR As Float = (cvs.TargetRect.Width / 2 - 2"; +_maxr = (float) ((_cvs.getTargetRect().getWidth()/(double)2-__c.DipToCurrent((int) (20)))/(double)2); + //BA.debugLineNum = 68;BA.debugLine="Dim r As Float = 10dip + MaxR + MaxR * Sin(Progre"; +_r = (float) (__c.DipToCurrent((int) (10))+_maxr+_maxr*__c.Sin(_progress*2*__c.cPI)); + //BA.debugLineNum = 69;BA.debugLine="For i = 0 To 2"; +{ +final int step3 = 1; +final int limit3 = (int) (2); +_i = (int) (0) ; +for (;_i <= limit3 ;_i = _i + step3 ) { + //BA.debugLineNum = 70;BA.debugLine="Dim alpha As Int = i * 120 + Progress * 360"; +_alpha = (int) (_i*120+_progress*360); + //BA.debugLineNum = 72;BA.debugLine="cvs.DrawCircle(cvs.TargetRect.CenterX + r * SinD"; +_cvs.DrawCircle((float) (_cvs.getTargetRect().getCenterX()+_r*__c.SinD(_alpha)),(float) (_cvs.getTargetRect().getCenterY()+_r*__c.CosD(_alpha)),(float) (__c.DipToCurrent((int) (7))),_clr,__c.True,(float) (__c.DipToCurrent((int) (1)))); + } +}; + //BA.debugLineNum = 74;BA.debugLine="End Sub"; +return ""; +} +public String _draw_threecircles2(float _progress) throws Exception{ +int _minr = 0; +int _maxr = 0; +int _i = 0; +float _r = 0f; + //BA.debugLineNum = 76;BA.debugLine="Private Sub Draw_ThreeCircles2 (Progress As Float)"; + //BA.debugLineNum = 77;BA.debugLine="Dim MinR As Int = 5dip"; +_minr = __c.DipToCurrent((int) (5)); + //BA.debugLineNum = 78;BA.debugLine="Dim MaxR As Int = cvs.TargetRect.Width / 2 / 3 -"; +_maxr = (int) (_cvs.getTargetRect().getWidth()/(double)2/(double)3-_minr-__c.DipToCurrent((int) (2))); + //BA.debugLineNum = 79;BA.debugLine="For i = 0 To 2"; +{ +final int step3 = 1; +final int limit3 = (int) (2); +_i = (int) (0) ; +for (;_i <= limit3 ;_i = _i + step3 ) { + //BA.debugLineNum = 80;BA.debugLine="Dim r As Float = MinR + MaxR / 2 + MaxR / 2 * Si"; +_r = (float) (_minr+_maxr/(double)2+_maxr/(double)2*__c.SinD(_progress*360-60*_i)); + //BA.debugLineNum = 81;BA.debugLine="cvs.DrawCircle(MaxR + MinR + (MinR + MaxR + 2dip"; +_cvs.DrawCircle((float) (_maxr+_minr+(_minr+_maxr+__c.DipToCurrent((int) (2)))*2*_i),_cvs.getTargetRect().getCenterY(),_r,_clr,__c.True,(float) (0)); + } +}; + //BA.debugLineNum = 83;BA.debugLine="End Sub"; +return ""; +} +public String _hide() throws Exception{ + //BA.debugLineNum = 61;BA.debugLine="Public Sub Hide"; + //BA.debugLineNum = 62;BA.debugLine="mBase.Visible = False"; +_mbase.setVisible(__c.False); + //BA.debugLineNum = 63;BA.debugLine="index = index + 1"; +_index = (int) (_index+1); + //BA.debugLineNum = 64;BA.debugLine="End Sub"; +return ""; +} +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 20;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; + //BA.debugLineNum = 21;BA.debugLine="mEventName = EventName"; +_meventname = _eventname; + //BA.debugLineNum = 22;BA.debugLine="mCallBack = Callback"; +_mcallback = _callback; + //BA.debugLineNum = 23;BA.debugLine="End Sub"; +return ""; +} +public void _mainloop() throws Exception{ +ResumableSub_MainLoop rsub = new ResumableSub_MainLoop(this); rsub.resume(ba, null); } public static class ResumableSub_MainLoop extends BA.ResumableSub { -public ResumableSub_MainLoop(reparto_izca.keymon.lat.b4xloadingindicator parent,reparto_izca.keymon.lat.b4xloadingindicator __ref) { +public ResumableSub_MainLoop(reparto_izca.keymon.lat.b4xloadingindicator parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xloadingindicator __ref; reparto_izca.keymon.lat.b4xloadingindicator parent; int _myindex = 0; long _n = 0L; @@ -93,7 +323,6 @@ float _progress = 0f; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xloadingindicator"; while (true) { switch (state) { @@ -103,23 +332,19 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=56098817; - //BA.debugLineNum = 56098817;BA.debugLine="index = index + 1"; -__ref._index /*int*/ = (int) (__ref._index /*int*/ +1); -RDebugUtils.currentLine=56098818; - //BA.debugLineNum = 56098818;BA.debugLine="Dim MyIndex As Int = index"; -_myindex = __ref._index /*int*/ ; -RDebugUtils.currentLine=56098819; - //BA.debugLineNum = 56098819;BA.debugLine="Dim n As Long = DateTime.Now"; + //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(); -RDebugUtils.currentLine=56098820; - //BA.debugLineNum = 56098820;BA.debugLine="Do While MyIndex = index"; + //BA.debugLineNum = 46;BA.debugLine="Do While MyIndex = index"; if (true) break; case 1: //do while this.state = 4; -while (_myindex==__ref._index /*int*/ ) { +while (_myindex==parent._index) { this.state = 3; if (true) break; } @@ -128,24 +353,18 @@ if (true) break; case 3: //C this.state = 1; -RDebugUtils.currentLine=56098821; - //BA.debugLineNum = 56098821;BA.debugLine="Dim progress As Float = (DateTime.Now - n) / dur"; -_progress = (float) ((parent.__c.DateTime.getNow()-_n)/(double)__ref._duration /*int*/ ); -RDebugUtils.currentLine=56098822; - //BA.debugLineNum = 56098822;BA.debugLine="progress = progress - Floor(progress)"; + //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)); -RDebugUtils.currentLine=56098823; - //BA.debugLineNum = 56098823;BA.debugLine="cvs.ClearRect(cvs.TargetRect)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=56098824; - //BA.debugLineNum = 56098824;BA.debugLine="CallSub2(Me, DrawingSubName, progress)"; -parent.__c.CallSubDebug2(ba,parent,__ref._drawingsubname /*String*/ ,(Object)(_progress)); -RDebugUtils.currentLine=56098825; - //BA.debugLineNum = 56098825;BA.debugLine="cvs.Invalidate"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=56098826; - //BA.debugLineNum = 56098826;BA.debugLine="Sleep(10)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xloadingindicator", "mainloop"),(int) (10)); + //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: @@ -158,428 +377,33 @@ case 4: //C this.state = -1; ; -RDebugUtils.currentLine=56098828; - //BA.debugLineNum = 56098828;BA.debugLine="End Sub"; + //BA.debugLineNum = 54;BA.debugLine="End Sub"; if (true) break; } } } } -public String _class_globals(reparto_izca.keymon.lat.b4xloadingindicator __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -RDebugUtils.currentLine=55836672; - //BA.debugLineNum = 55836672;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=55836673; - //BA.debugLineNum = 55836673;BA.debugLine="Private mEventName As String 'ignore"; -_meventname = ""; -RDebugUtils.currentLine=55836674; - //BA.debugLineNum = 55836674;BA.debugLine="Private mCallBack As Object 'ignore"; -_mcallback = new Object(); -RDebugUtils.currentLine=55836675; - //BA.debugLineNum = 55836675;BA.debugLine="Public mBase As B4XView 'ignore"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=55836676; - //BA.debugLineNum = 55836676;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=55836677; - //BA.debugLineNum = 55836677;BA.debugLine="Private clr As Int"; -_clr = 0; -RDebugUtils.currentLine=55836678; - //BA.debugLineNum = 55836678;BA.debugLine="Private index As Int"; -_index = 0; -RDebugUtils.currentLine=55836679; - //BA.debugLineNum = 55836679;BA.debugLine="Private cvs As B4XCanvas"; -_cvs = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=55836680; - //BA.debugLineNum = 55836680;BA.debugLine="Private duration As Int"; -_duration = 0; -RDebugUtils.currentLine=55836681; - //BA.debugLineNum = 55836681;BA.debugLine="Private DrawingSubName As String"; -_drawingsubname = ""; -RDebugUtils.currentLine=55836682; - //BA.debugLineNum = 55836682;BA.debugLine="Public Tag As Object"; -_tag = new Object(); -RDebugUtils.currentLine=55836683; - //BA.debugLineNum = 55836683;BA.debugLine="End Sub"; -return ""; -} -public String _designercreateview(reparto_izca.keymon.lat.b4xloadingindicator __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} -String _style = ""; -RDebugUtils.currentLine=55967744; - //BA.debugLineNum = 55967744;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=55967745; - //BA.debugLineNum = 55967745;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=55967746; - //BA.debugLineNum = 55967746;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=55967746; - //BA.debugLineNum = 55967746;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=55967747; - //BA.debugLineNum = 55967747;BA.debugLine="clr = xui.PaintOrColorToColor(Props.Get(\"Color\""; -__ref._clr /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("Color"))); -RDebugUtils.currentLine=55967748; - //BA.debugLineNum = 55967748;BA.debugLine="Dim style As String= Props.Get(\"IndicatorStyle\")"; -_style = BA.ObjectToString(_props.Get((Object)("IndicatorStyle"))); -RDebugUtils.currentLine=55967749; - //BA.debugLineNum = 55967749;BA.debugLine="Dim duration As Int = Props.Get(\"Duration\")"; -_duration = (int)(BA.ObjectToNumber(_props.Get((Object)("Duration")))); -RDebugUtils.currentLine=55967750; - //BA.debugLineNum = 55967750;BA.debugLine="DrawingSubName = \"Draw_\" & style.Replace(\" \", \"\")"; -__ref._drawingsubname /*String*/ = "Draw_"+_style.replace(" ",""); -RDebugUtils.currentLine=55967751; - //BA.debugLineNum = 55967751;BA.debugLine="cvs.Initialize(mBase)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=55967752; - //BA.debugLineNum = 55967752;BA.debugLine="MainLoop"; -__ref._mainloop /*void*/ (null); -RDebugUtils.currentLine=55967753; - //BA.debugLineNum = 55967753;BA.debugLine="End Sub"; -return ""; -} -public String _draw_arc1(reparto_izca.keymon.lat.b4xloadingindicator __ref,float _progress) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "draw_arc1", true)) - {return ((String) Debug.delegate(ba, "draw_arc1", new Object[] {_progress}));} -anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null; -float _r = 0f; -RDebugUtils.currentLine=56623104; - //BA.debugLineNum = 56623104;BA.debugLine="Private Sub Draw_Arc1 (Progress As Float)"; -RDebugUtils.currentLine=56623105; - //BA.debugLineNum = 56623105;BA.debugLine="Dim p As B4XPath"; -_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath(); -RDebugUtils.currentLine=56623106; - //BA.debugLineNum = 56623106;BA.debugLine="Dim r As Float = cvs.TargetRect.CenterX - 5dip"; -_r = (float) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX()-__c.DipToCurrent((int) (5))); -RDebugUtils.currentLine=56623107; - //BA.debugLineNum = 56623107;BA.debugLine="If Progress < 0.5 Then"; -if (_progress<0.5) { -RDebugUtils.currentLine=56623108; - //BA.debugLineNum = 56623108;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ"; -_p.InitializeArc(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX(),__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY(),_r,(float) (-90),(float) (_progress*2*360)); - }else { -RDebugUtils.currentLine=56623110; - //BA.debugLineNum = 56623110;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ"; -_p.InitializeArc(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX(),__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY(),_r,(float) (-90),(float) (-(1-_progress)*2*360)); - }; -RDebugUtils.currentLine=56623112; - //BA.debugLineNum = 56623112;BA.debugLine="cvs.ClipPath(p)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClipPath(_p); -RDebugUtils.currentLine=56623113; - //BA.debugLineNum = 56623113;BA.debugLine="cvs.DrawRect(cvs.TargetRect, clr, True, 0)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect(),__ref._clr /*int*/ ,__c.True,(float) (0)); -RDebugUtils.currentLine=56623114; - //BA.debugLineNum = 56623114;BA.debugLine="cvs.RemoveClip"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .RemoveClip(); -RDebugUtils.currentLine=56623115; - //BA.debugLineNum = 56623115;BA.debugLine="End Sub"; -return ""; -} -public String _draw_arc2(reparto_izca.keymon.lat.b4xloadingindicator __ref,float _progress) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "draw_arc2", true)) - {return ((String) Debug.delegate(ba, "draw_arc2", new Object[] {_progress}));} -anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null; -float _r = 0f; -RDebugUtils.currentLine=56688640; - //BA.debugLineNum = 56688640;BA.debugLine="Private Sub Draw_Arc2 (Progress As Float)"; -RDebugUtils.currentLine=56688641; - //BA.debugLineNum = 56688641;BA.debugLine="Dim p As B4XPath"; -_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath(); -RDebugUtils.currentLine=56688642; - //BA.debugLineNum = 56688642;BA.debugLine="Dim r As Float = cvs.TargetRect.CenterX - 5dip"; -_r = (float) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX()-__c.DipToCurrent((int) (5))); -RDebugUtils.currentLine=56688643; - //BA.debugLineNum = 56688643;BA.debugLine="If Progress < 0.5 Then"; -if (_progress<0.5) { -RDebugUtils.currentLine=56688644; - //BA.debugLineNum = 56688644;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ"; -_p.InitializeArc(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX(),__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY(),_r,(float) (-90),(float) (_progress*2*360)); - }else { -RDebugUtils.currentLine=56688646; - //BA.debugLineNum = 56688646;BA.debugLine="p.InitializeArc(cvs.TargetRect.CenterX, cvs.Targ"; -_p.InitializeArc(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX(),__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY(),_r,(float) (-90),(float) (360-(_progress-0.5)*2*360)); - }; -RDebugUtils.currentLine=56688648; - //BA.debugLineNum = 56688648;BA.debugLine="cvs.ClipPath(p)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClipPath(_p); -RDebugUtils.currentLine=56688649; - //BA.debugLineNum = 56688649;BA.debugLine="cvs.DrawRect(cvs.TargetRect, clr, True, 0)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect(),__ref._clr /*int*/ ,__c.True,(float) (0)); -RDebugUtils.currentLine=56688650; - //BA.debugLineNum = 56688650;BA.debugLine="cvs.RemoveClip"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .RemoveClip(); -RDebugUtils.currentLine=56688651; - //BA.debugLineNum = 56688651;BA.debugLine="End Sub"; -return ""; -} -public String _draw_fivelines1(reparto_izca.keymon.lat.b4xloadingindicator __ref,float _progress) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "draw_fivelines1", true)) - {return ((String) Debug.delegate(ba, "draw_fivelines1", new Object[] {_progress}));} -int _minr = 0; -int _maxr = 0; -int _dx = 0; -int _i = 0; -float _r = 0f; -RDebugUtils.currentLine=56557568; - //BA.debugLineNum = 56557568;BA.debugLine="Private Sub Draw_FiveLines1(Progress As Float)"; -RDebugUtils.currentLine=56557569; - //BA.debugLineNum = 56557569;BA.debugLine="Dim MinR As Int = 10dip"; -_minr = __c.DipToCurrent((int) (10)); -RDebugUtils.currentLine=56557570; - //BA.debugLineNum = 56557570;BA.debugLine="Dim MaxR As Int = cvs.TargetRect.Height / 2"; -_maxr = (int) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getHeight()/(double)2); -RDebugUtils.currentLine=56557571; - //BA.debugLineNum = 56557571;BA.debugLine="Dim dx As Int = (cvs.TargetRect.Width - 2dip) / 5"; -_dx = (int) ((__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getWidth()-__c.DipToCurrent((int) (2)))/(double)5); -RDebugUtils.currentLine=56557572; - //BA.debugLineNum = 56557572;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 ) { -RDebugUtils.currentLine=56557573; - //BA.debugLineNum = 56557573;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)); -RDebugUtils.currentLine=56557574; - //BA.debugLineNum = 56557574;BA.debugLine="cvs.DrawLine(2dip + i * dx, cvs.TargetRect.Cente"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawLine((float) (__c.DipToCurrent((int) (2))+_i*_dx),(float) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY()-_r),(float) (__c.DipToCurrent((int) (2))+_i*_dx),(float) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY()+_r),__ref._clr /*int*/ ,(float) (__c.DipToCurrent((int) (4)))); - } -}; -RDebugUtils.currentLine=56557576; - //BA.debugLineNum = 56557576;BA.debugLine="End Sub"; -return ""; -} -public String _draw_pacman(reparto_izca.keymon.lat.b4xloadingindicator __ref,float _progress) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "draw_pacman", true)) - {return ((String) Debug.delegate(ba, "draw_pacman", new Object[] {_progress}));} -int _dotr = 0; -anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null; -int _angle = 0; -int _cx = 0; -int _cy = 0; -int _r = 0; -RDebugUtils.currentLine=56754176; - //BA.debugLineNum = 56754176;BA.debugLine="Private Sub Draw_PacMan(Progress As Float)"; -RDebugUtils.currentLine=56754177; - //BA.debugLineNum = 56754177;BA.debugLine="Dim DotR As Int = 5dip"; -_dotr = __c.DipToCurrent((int) (5)); -RDebugUtils.currentLine=56754178; - //BA.debugLineNum = 56754178;BA.debugLine="cvs.DrawCircle(cvs.TargetRect.Width - DotR - Prog"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle((float) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getWidth()-_dotr-_progress*(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX()-__c.DipToCurrent((int) (10)))),__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY(),(float) (_dotr),__ref._setalpha /*int*/ (null,__ref._clr /*int*/ ,(int) (255-200*_progress)),__c.True,(float) (0)); -RDebugUtils.currentLine=56754179; - //BA.debugLineNum = 56754179;BA.debugLine="Dim p As B4XPath"; -_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath(); -RDebugUtils.currentLine=56754180; - //BA.debugLineNum = 56754180;BA.debugLine="Dim angle As Int = 70 * SinD(Progress * 180)"; -_angle = (int) (70*__c.SinD(_progress*180)); -RDebugUtils.currentLine=56754181; - //BA.debugLineNum = 56754181;BA.debugLine="Dim cx As Int = cvs.TargetRect.CenterX - 5dip"; -_cx = (int) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX()-__c.DipToCurrent((int) (5))); -RDebugUtils.currentLine=56754182; - //BA.debugLineNum = 56754182;BA.debugLine="Dim cy As Int = cvs.TargetRect.CenterY"; -_cy = (int) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY()); -RDebugUtils.currentLine=56754183; - //BA.debugLineNum = 56754183;BA.debugLine="Dim r As Int = cvs.TargetRect.CenterY - 5dip"; -_r = (int) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY()-__c.DipToCurrent((int) (5))); -RDebugUtils.currentLine=56754184; - //BA.debugLineNum = 56754184;BA.debugLine="If angle = 0 Then"; -if (_angle==0) { -RDebugUtils.currentLine=56754185; - //BA.debugLineNum = 56754185;BA.debugLine="cvs.DrawCircle(cx, cy, r, clr, True, 0)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle((float) (_cx),(float) (_cy),(float) (_r),__ref._clr /*int*/ ,__c.True,(float) (0)); - }else { -RDebugUtils.currentLine=56754187; - //BA.debugLineNum = 56754187;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))); -RDebugUtils.currentLine=56754188; - //BA.debugLineNum = 56754188;BA.debugLine="cvs.ClipPath(p)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClipPath(_p); -RDebugUtils.currentLine=56754189; - //BA.debugLineNum = 56754189;BA.debugLine="cvs.DrawRect(cvs.TargetRect, clr, True, 0)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect(),__ref._clr /*int*/ ,__c.True,(float) (0)); -RDebugUtils.currentLine=56754190; - //BA.debugLineNum = 56754190;BA.debugLine="cvs.RemoveClip"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .RemoveClip(); - }; -RDebugUtils.currentLine=56754193; - //BA.debugLineNum = 56754193;BA.debugLine="End Sub"; -return ""; -} -public int _setalpha(reparto_izca.keymon.lat.b4xloadingindicator __ref,int _c,int _alpha) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "setalpha", true)) - {return ((Integer) Debug.delegate(ba, "setalpha", new Object[] {_c,_alpha}));} -RDebugUtils.currentLine=56492032; - //BA.debugLineNum = 56492032;BA.debugLine="Private Sub SetAlpha (c As Int, alpha As Int) As I"; -RDebugUtils.currentLine=56492033; - //BA.debugLineNum = 56492033;BA.debugLine="Return Bit.And(0xffffff, c) + Bit.ShiftLeft(alpha"; +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))); -RDebugUtils.currentLine=56492034; - //BA.debugLineNum = 56492034;BA.debugLine="End Sub"; + //BA.debugLineNum = 93;BA.debugLine="End Sub"; return 0; } -public String _draw_singlecircle(reparto_izca.keymon.lat.b4xloadingindicator __ref,float _progress) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "draw_singlecircle", true)) - {return ((String) Debug.delegate(ba, "draw_singlecircle", new Object[] {_progress}));} -int _i = 0; -RDebugUtils.currentLine=56426496; - //BA.debugLineNum = 56426496;BA.debugLine="Private Sub Draw_SingleCircle(Progress As Float)"; -RDebugUtils.currentLine=56426497; - //BA.debugLineNum = 56426497;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 ) { -RDebugUtils.currentLine=56426498; - //BA.debugLineNum = 56426498;BA.debugLine="cvs.DrawCircle(cvs.TargetRect.CenterX, cvs.Targe"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX(),__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY(),(float) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX()*_progress),__ref._setalpha /*int*/ (null,__ref._clr /*int*/ ,(int) (255-255*_progress)),__c.True,(float) (0)); - } -}; -RDebugUtils.currentLine=56426500; - //BA.debugLineNum = 56426500;BA.debugLine="End Sub"; +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 String _draw_threecircles1(reparto_izca.keymon.lat.b4xloadingindicator __ref,float _progress) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "draw_threecircles1", true)) - {return ((String) Debug.delegate(ba, "draw_threecircles1", new Object[] {_progress}));} -float _maxr = 0f; -float _r = 0f; -int _i = 0; -int _alpha = 0; -RDebugUtils.currentLine=56295424; - //BA.debugLineNum = 56295424;BA.debugLine="Private Sub Draw_ThreeCircles1 (Progress As Float)"; -RDebugUtils.currentLine=56295425; - //BA.debugLineNum = 56295425;BA.debugLine="Dim MaxR As Float = (cvs.TargetRect.Width / 2 - 2"; -_maxr = (float) ((__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getWidth()/(double)2-__c.DipToCurrent((int) (20)))/(double)2); -RDebugUtils.currentLine=56295426; - //BA.debugLineNum = 56295426;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)); -RDebugUtils.currentLine=56295427; - //BA.debugLineNum = 56295427;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 ) { -RDebugUtils.currentLine=56295428; - //BA.debugLineNum = 56295428;BA.debugLine="Dim alpha As Int = i * 120 + Progress * 360"; -_alpha = (int) (_i*120+_progress*360); -RDebugUtils.currentLine=56295430; - //BA.debugLineNum = 56295430;BA.debugLine="cvs.DrawCircle(cvs.TargetRect.CenterX + r * SinD"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle((float) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterX()+_r*__c.SinD(_alpha)),(float) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY()+_r*__c.CosD(_alpha)),(float) (__c.DipToCurrent((int) (7))),__ref._clr /*int*/ ,__c.True,(float) (__c.DipToCurrent((int) (1)))); - } -}; -RDebugUtils.currentLine=56295432; - //BA.debugLineNum = 56295432;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; } -public String _draw_threecircles2(reparto_izca.keymon.lat.b4xloadingindicator __ref,float _progress) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "draw_threecircles2", true)) - {return ((String) Debug.delegate(ba, "draw_threecircles2", new Object[] {_progress}));} -int _minr = 0; -int _maxr = 0; -int _i = 0; -float _r = 0f; -RDebugUtils.currentLine=56360960; - //BA.debugLineNum = 56360960;BA.debugLine="Private Sub Draw_ThreeCircles2 (Progress As Float)"; -RDebugUtils.currentLine=56360961; - //BA.debugLineNum = 56360961;BA.debugLine="Dim MinR As Int = 5dip"; -_minr = __c.DipToCurrent((int) (5)); -RDebugUtils.currentLine=56360962; - //BA.debugLineNum = 56360962;BA.debugLine="Dim MaxR As Int = cvs.TargetRect.Width / 2 / 3 -"; -_maxr = (int) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getWidth()/(double)2/(double)3-_minr-__c.DipToCurrent((int) (2))); -RDebugUtils.currentLine=56360963; - //BA.debugLineNum = 56360963;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 ) { -RDebugUtils.currentLine=56360964; - //BA.debugLineNum = 56360964;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)); -RDebugUtils.currentLine=56360965; - //BA.debugLineNum = 56360965;BA.debugLine="cvs.DrawCircle(MaxR + MinR + (MinR + MaxR + 2dip"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle((float) (_maxr+_minr+(_minr+_maxr+__c.DipToCurrent((int) (2)))*2*_i),__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getCenterY(),_r,__ref._clr /*int*/ ,__c.True,(float) (0)); - } -}; -RDebugUtils.currentLine=56360967; - //BA.debugLineNum = 56360967;BA.debugLine="End Sub"; -return ""; } -public String _hide(reparto_izca.keymon.lat.b4xloadingindicator __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "hide", true)) - {return ((String) Debug.delegate(ba, "hide", null));} -RDebugUtils.currentLine=56229888; - //BA.debugLineNum = 56229888;BA.debugLine="Public Sub Hide"; -RDebugUtils.currentLine=56229889; - //BA.debugLineNum = 56229889;BA.debugLine="mBase.Visible = False"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=56229890; - //BA.debugLineNum = 56229890;BA.debugLine="index = index + 1"; -__ref._index /*int*/ = (int) (__ref._index /*int*/ +1); -RDebugUtils.currentLine=56229891; - //BA.debugLineNum = 56229891;BA.debugLine="End Sub"; -return ""; -} -public String _initialize(reparto_izca.keymon.lat.b4xloadingindicator __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=55902208; - //BA.debugLineNum = 55902208;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=55902209; - //BA.debugLineNum = 55902209;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=55902210; - //BA.debugLineNum = 55902210;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=55902211; - //BA.debugLineNum = 55902211;BA.debugLine="End Sub"; -return ""; -} -public String _show(reparto_izca.keymon.lat.b4xloadingindicator __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xloadingindicator"; -if (Debug.shouldDelegate(ba, "show", true)) - {return ((String) Debug.delegate(ba, "show", null));} -RDebugUtils.currentLine=56164352; - //BA.debugLineNum = 56164352;BA.debugLine="Public Sub Show"; -RDebugUtils.currentLine=56164353; - //BA.debugLineNum = 56164353;BA.debugLine="mBase.Visible = True"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=56164354; - //BA.debugLineNum = 56164354;BA.debugLine="MainLoop"; -__ref._mainloop /*void*/ (null); -RDebugUtils.currentLine=56164355; - //BA.debugLineNum = 56164355;BA.debugLine="End Sub"; -return ""; -} -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xlongtexttemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xlongtexttemplate.java index 33a901e..320f3af 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xlongtexttemplate.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xlongtexttemplate.java @@ -10,7 +10,7 @@ public class b4xlongtexttemplate extends B4AClass.ImplB4AClass implements BA.Sub private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xlongtexttemplate"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xlongtexttemplate"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xlongtexttemplate extends B4AClass.ImplB4AClass implements BA.Sub ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -49,129 +42,85 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xlongtexttemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlongtexttemplate"; -if (Debug.shouldDelegate(ba, "getpanel", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "getpanel", new Object[] {_dialog}));} -RDebugUtils.currentLine=57016320; - //BA.debugLineNum = 57016320;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; -RDebugUtils.currentLine=57016321; - //BA.debugLineNum = 57016321;BA.debugLine="Return mBase"; -if (true) return __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=57016322; - //BA.debugLineNum = 57016322;BA.debugLine="End Sub"; +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView"; +_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 4;BA.debugLine="Public CustomListView1 As CustomListView"; +_customlistview1 = new b4a.example3.customlistview(); + //BA.debugLineNum = 5;BA.debugLine="Public Text As Object"; +_text = new Object(); + //BA.debugLineNum = 6;BA.debugLine="End Sub"; +return ""; +} +public String _dialogclosed(int _result) throws Exception{ + //BA.debugLineNum = 41;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore"; + //BA.debugLineNum = 43;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ + //BA.debugLineNum = 30;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; + //BA.debugLineNum = 31;BA.debugLine="Return mBase"; +if (true) return _mbase; + //BA.debugLineNum = 32;BA.debugLine="End Sub"; return null; } -public String _show(reparto_izca.keymon.lat.b4xlongtexttemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlongtexttemplate"; -if (Debug.shouldDelegate(ba, "show", true)) - {return ((String) Debug.delegate(ba, "show", new Object[] {_dialog}));} -RDebugUtils.currentLine=57081856; - //BA.debugLineNum = 57081856;BA.debugLine="Private Sub Show (Dialog As B4XDialog) 'ignore"; -RDebugUtils.currentLine=57081857; - //BA.debugLineNum = 57081857;BA.debugLine="CustomListView1.Clear"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=57081858; - //BA.debugLineNum = 57081858;BA.debugLine="CustomListView1.AddTextItem(Text, \"\")"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._addtextitem(__ref._text /*Object*/ ,(Object)("")); -RDebugUtils.currentLine=57081859; - //BA.debugLineNum = 57081859;BA.debugLine="CustomListView1.GetPanel(0).GetView(0).SetTextAli"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._getpanel((int) (0)).GetView((int) (0)).SetTextAlignment("TOP","LEFT"); -RDebugUtils.currentLine=57081860; - //BA.debugLineNum = 57081860;BA.debugLine="XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView"; -_xuiviewsutils._addstubtoclvifneeded /*String*/ (ba,__ref._customlistview1 /*b4a.example3.customlistview*/ ,__ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextbackgroundcolor); -RDebugUtils.currentLine=57081861; - //BA.debugLineNum = 57081861;BA.debugLine="End Sub"; -return ""; -} -public String _dialogclosed(reparto_izca.keymon.lat.b4xlongtexttemplate __ref,int _result) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlongtexttemplate"; -if (Debug.shouldDelegate(ba, "dialogclosed", true)) - {return ((String) Debug.delegate(ba, "dialogclosed", new Object[] {_result}));} -RDebugUtils.currentLine=57147392; - //BA.debugLineNum = 57147392;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore"; -RDebugUtils.currentLine=57147394; - //BA.debugLineNum = 57147394;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.b4xlongtexttemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlongtexttemplate"; -RDebugUtils.currentLine=56819712; - //BA.debugLineNum = 56819712;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=56819713; - //BA.debugLineNum = 56819713;BA.debugLine="Private xui As XUI"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=56819714; - //BA.debugLineNum = 56819714;BA.debugLine="Public mBase As B4XView"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=56819715; - //BA.debugLineNum = 56819715;BA.debugLine="Public CustomListView1 As CustomListView"; -_customlistview1 = new b4a.example3.customlistview(); -RDebugUtils.currentLine=56819716; - //BA.debugLineNum = 56819716;BA.debugLine="Public Text As Object"; -_text = new Object(); -RDebugUtils.currentLine=56819717; - //BA.debugLineNum = 56819717;BA.debugLine="End Sub"; -return ""; -} -public String _initialize(reparto_izca.keymon.lat.b4xlongtexttemplate __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xlongtexttemplate"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=56885248; - //BA.debugLineNum = 56885248;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=56885249; - //BA.debugLineNum = 56885249;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"mBase"); -RDebugUtils.currentLine=56885250; - //BA.debugLineNum = 56885250;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 300dip)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (300))); -RDebugUtils.currentLine=56885251; - //BA.debugLineNum = 56885251;BA.debugLine="mBase.LoadLayout(\"LongTextTemplate\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("LongTextTemplate",ba); -RDebugUtils.currentLine=56885252; - //BA.debugLineNum = 56885252;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=56885253; - //BA.debugLineNum = 56885253;BA.debugLine="CustomListView1.sv.SetColorAndBorder(xui.Color_Tr"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._sv.SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=56885254; - //BA.debugLineNum = 56885254;BA.debugLine="CustomListView1.DefaultTextBackgroundColor = 0xFF"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextbackgroundcolor = ((int)0xff555555); -RDebugUtils.currentLine=56885255; - //BA.debugLineNum = 56885255;BA.debugLine="CustomListView1.DefaultTextColor = xui.Color_Whit"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextcolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -RDebugUtils.currentLine=56885256; - //BA.debugLineNum = 56885256;BA.debugLine="CustomListView1.sv.Color = 0xFF464646"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._sv.setColor(((int)0xff464646)); -RDebugUtils.currentLine=56885261; - //BA.debugLineNum = 56885261;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xlongtexttemplate __ref,int _width,int _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xlongtexttemplate"; -if (Debug.shouldDelegate(ba, "resize", true)) - {return ((String) Debug.delegate(ba, "resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=56950784; - //BA.debugLineNum = 56950784;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)"; -RDebugUtils.currentLine=56950785; - //BA.debugLineNum = 56950785;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=56950786; - //BA.debugLineNum = 56950786;BA.debugLine="CustomListView1.AsView.SetLayoutAnimated(0, 0, 0,"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._asview().SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=56950787; - //BA.debugLineNum = 56950787;BA.debugLine="CustomListView1.Base_Resize(Width, Height)"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._base_resize(_width,_height); -RDebugUtils.currentLine=56950788; - //BA.debugLineNum = 56950788;BA.debugLine="End Sub"; +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 ""; } -} \ No newline at end of file +public String _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ + //BA.debugLineNum = 34;BA.debugLine="Private Sub Show (Dialog As B4XDialog) 'ignore"; + //BA.debugLineNum = 35;BA.debugLine="CustomListView1.Clear"; +_customlistview1._clear(); + //BA.debugLineNum = 36;BA.debugLine="CustomListView1.AddTextItem(Text, \"\")"; +_customlistview1._addtextitem(_text,(Object)("")); + //BA.debugLineNum = 37;BA.debugLine="CustomListView1.GetPanel(0).GetView(0).SetTextAli"; +_customlistview1._getpanel((int) (0)).GetView((int) (0)).SetTextAlignment("TOP","LEFT"); + //BA.debugLineNum = 38;BA.debugLine="XUIViewsUtils.AddStubToCLVIfNeeded(CustomListView"; +_xuiviewsutils._addstubtoclvifneeded /*String*/ (ba,_customlistview1,_customlistview1._defaulttextbackgroundcolor); + //BA.debugLineNum = 39;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "DIALOGCLOSED")) + return _dialogclosed(((Number)args[0]).intValue()); +if (BA.fastSubCompare(sub, "GETPANEL")) + return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]); +if (BA.fastSubCompare(sub, "SHOW")) + return _show((reparto_izca.keymon.lat.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xmainpage.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xmainpage.java index 67401f4..0defb12 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xmainpage.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xmainpage.java @@ -10,7 +10,7 @@ public class b4xmainpage extends B4AClass.ImplB4AClass implements BA.SubDelegato private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xmainpage"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xmainpage"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xmainpage extends B4AClass.ImplB4AClass implements BA.SubDelegato ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4a.objects.RuntimePermissions _rp = null; public anywheresoftware.b4a.objects.B4XViewWrapper _root = null; public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; @@ -133,177 +126,88 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _muestraprogreso(reparto_izca.keymon.lat.b4xmainpage __ref,String _mensaje) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "muestraprogreso", false)) - {return ((String) Debug.delegate(ba, "muestraprogreso", new Object[] {_mensaje}));} -RDebugUtils.currentLine=2097152; - //BA.debugLineNum = 2097152;BA.debugLine="Sub muestraProgreso(mensaje As String)"; -RDebugUtils.currentLine=2097153; - //BA.debugLineNum = 2097153;BA.debugLine="ProgressDialogShow(mensaje)"; -__c.ProgressDialogShow(ba,BA.ObjectToCharSequence(_mensaje)); -RDebugUtils.currentLine=2097154; - //BA.debugLineNum = 2097154;BA.debugLine="End Sub"; -return ""; -} -public String _ocultaprogreso(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "ocultaprogreso", false)) - {return ((String) Debug.delegate(ba, "ocultaprogreso", null));} -RDebugUtils.currentLine=2162688; - //BA.debugLineNum = 2162688;BA.debugLine="Sub ocultaProgreso"; -RDebugUtils.currentLine=2162689; - //BA.debugLineNum = 2162689;BA.debugLine="ProgressDialogHide"; -__c.ProgressDialogHide(); -RDebugUtils.currentLine=2162690; - //BA.debugLineNum = 2162690;BA.debugLine="End Sub"; -return ""; -} -public String _b_aceptar_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_aceptar_click", false)) - {return ((String) Debug.delegate(ba, "b_aceptar_click", null));} -RDebugUtils.currentLine=2818048; - //BA.debugLineNum = 2818048;BA.debugLine="Private Sub b_aceptar_Click"; -RDebugUtils.currentLine=2818049; - //BA.debugLineNum = 2818049;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"selec"; +public String _b_aceptar_click() throws Exception{ + //BA.debugLineNum = 938;BA.debugLine="Private Sub b_aceptar_Click"; + //BA.debugLineNum = 939;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"selec"; _f = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); -RDebugUtils.currentLine=2818050; - //BA.debugLineNum = 2818050;BA.debugLine="f.Position=0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=2818051; - //BA.debugLineNum = 2818051;BA.debugLine="Private a As Cursor =Starter.skmt.ExecQuery(\"sele"; + //BA.debugLineNum = 940;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 941;BA.debugLine="Private a As Cursor =Starter.skmt.ExecQuery(\"sele"; _a = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); -RDebugUtils.currentLine=2818052; - //BA.debugLineNum = 2818052;BA.debugLine="a.Position = 0"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=2818058; - //BA.debugLineNum = 2818058;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=2818059; - //BA.debugLineNum = 2818059;BA.debugLine="a.Close"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=2818064; - //BA.debugLineNum = 2818064;BA.debugLine="End Sub"; + //BA.debugLineNum = 942;BA.debugLine="a.Position = 0"; +_a.setPosition((int) (0)); + //BA.debugLineNum = 948;BA.debugLine="f.Close"; +_f.Close(); + //BA.debugLineNum = 949;BA.debugLine="a.Close"; +_a.Close(); + //BA.debugLineNum = 954;BA.debugLine="End Sub"; return ""; } -public String _b_apk_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_apk_click", false)) - {return ((String) Debug.delegate(ba, "b_apk_click", null));} -RDebugUtils.currentLine=1835008; - //BA.debugLineNum = 1835008;BA.debugLine="Private Sub b_apk_Click"; -RDebugUtils.currentLine=1835009; - //BA.debugLineNum = 1835009;BA.debugLine="StartService(appUpdater)"; +public String _b_apk_click() throws Exception{ + //BA.debugLineNum = 596;BA.debugLine="Private Sub b_apk_Click"; + //BA.debugLineNum = 597;BA.debugLine="StartService(appUpdater)"; __c.StartService(ba,(Object)(_appupdater.getObject())); -RDebugUtils.currentLine=1835010; - //BA.debugLineNum = 1835010;BA.debugLine="End Sub"; + //BA.debugLineNum = 598;BA.debugLine="End Sub"; return ""; } -public String _b_arqueocieego_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_arqueocieego_click", false)) - {return ((String) Debug.delegate(ba, "b_arqueocieego_click", null));} -RDebugUtils.currentLine=2490368; - //BA.debugLineNum = 2490368;BA.debugLine="Private Sub b_arqueocieego_Click"; -RDebugUtils.currentLine=2490369; - //BA.debugLineNum = 2490369;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM CAT_GU"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM CAT_GUNAPROD3"))); -RDebugUtils.currentLine=2490370; - //BA.debugLineNum = 2490370;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=2490371; - //BA.debugLineNum = 2490371;BA.debugLine="Subs.panelVisible(p_validacion,0,0)"; -_subs._panelvisible /*String*/ (ba,__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0)); +public String _b_arqueocieego_click() throws Exception{ + //BA.debugLineNum = 743;BA.debugLine="Private Sub b_arqueocieego_Click"; + //BA.debugLineNum = 744;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM CAT_GU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM CAT_GUNAPROD3"))); + //BA.debugLineNum = 745;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 746;BA.debugLine="Subs.panelVisible(p_validacion,0,0)"; +_subs._panelvisible /*String*/ (ba,_p_validacion,(int) (0),(int) (0)); }else { -RDebugUtils.currentLine=2490373; - //BA.debugLineNum = 2490373;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga"; + //BA.debugLineNum = 748;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga"; __c.MsgboxAsync(BA.ObjectToCharSequence("No hay ruta cargada, favor de cargar día"),BA.ObjectToCharSequence("Atención"),ba); }; -RDebugUtils.currentLine=2490375; - //BA.debugLineNum = 2490375;BA.debugLine="End Sub"; + //BA.debugLineNum = 750;BA.debugLine="End Sub"; return ""; } -public String _b_can_monto_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_can_monto_click", false)) - {return ((String) Debug.delegate(ba, "b_can_monto_click", null));} -RDebugUtils.currentLine=2424832; - //BA.debugLineNum = 2424832;BA.debugLine="Private Sub B_Can_Monto_Click"; -RDebugUtils.currentLine=2424833; - //BA.debugLineNum = 2424833;BA.debugLine="p_add_monto.Visible = False"; -__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=2424834; - //BA.debugLineNum = 2424834;BA.debugLine="End Sub"; +public String _b_can_monto_click() throws Exception{ + //BA.debugLineNum = 739;BA.debugLine="Private Sub B_Can_Monto_Click"; + //BA.debugLineNum = 740;BA.debugLine="p_add_monto.Visible = False"; +_p_add_monto.setVisible(__c.False); + //BA.debugLineNum = 741;BA.debugLine="End Sub"; return ""; } -public String _b_cancelarcodigo_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_cancelarcodigo_click", false)) - {return ((String) Debug.delegate(ba, "b_cancelarcodigo_click", null));} -RDebugUtils.currentLine=2949120; - //BA.debugLineNum = 2949120;BA.debugLine="Private Sub b_cancelarcodigo_Click"; -RDebugUtils.currentLine=2949121; - //BA.debugLineNum = 2949121;BA.debugLine="p_validacion.Visible = False"; -__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=2949122; - //BA.debugLineNum = 2949122;BA.debugLine="End Sub"; +public String _b_cancelarcodigo_click() throws Exception{ + //BA.debugLineNum = 982;BA.debugLine="Private Sub b_cancelarcodigo_Click"; + //BA.debugLineNum = 983;BA.debugLine="p_validacion.Visible = False"; +_p_validacion.setVisible(__c.False); + //BA.debugLineNum = 984;BA.debugLine="End Sub"; return ""; } -public String _b_cargarmonto_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_cargarmonto_click", false)) - {return ((String) Debug.delegate(ba, "b_cargarmonto_click", null));} -RDebugUtils.currentLine=2228224; - //BA.debugLineNum = 2228224;BA.debugLine="Private Sub b_CargarMonto_Click"; -RDebugUtils.currentLine=2228226; - //BA.debugLineNum = 2228226;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM kmt_in"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM kmt_info"))); -RDebugUtils.currentLine=2228227; - //BA.debugLineNum = 2228227;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=2228228; - //BA.debugLineNum = 2228228;BA.debugLine="If c.RowCount < 0 Or c.RowCount = 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()<0 || __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=2228229; - //BA.debugLineNum = 2228229;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga"; +public String _b_cargarmonto_click() throws Exception{ + //BA.debugLineNum = 639;BA.debugLine="Private Sub b_CargarMonto_Click"; + //BA.debugLineNum = 641;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM kmt_in"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM kmt_info"))); + //BA.debugLineNum = 642;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 643;BA.debugLine="If c.RowCount < 0 Or c.RowCount = 0 Then"; +if (_c.getRowCount()<0 || _c.getRowCount()==0) { + //BA.debugLineNum = 644;BA.debugLine="MsgboxAsync(\"No hay ruta cargada, favor de carga"; __c.MsgboxAsync(BA.ObjectToCharSequence("No hay ruta cargada, favor de cargar día"),BA.ObjectToCharSequence("Atención"),ba); }else { -RDebugUtils.currentLine=2228231; - //BA.debugLineNum = 2228231;BA.debugLine="Subs.panelVisible(p_add_monto,0,0)"; -_subs._panelvisible /*String*/ (ba,__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0)); + //BA.debugLineNum = 646;BA.debugLine="Subs.panelVisible(p_add_monto,0,0)"; +_subs._panelvisible /*String*/ (ba,_p_add_monto,(int) (0),(int) (0)); }; -RDebugUtils.currentLine=2228233; - //BA.debugLineNum = 2228233;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=2228235; - //BA.debugLineNum = 2228235;BA.debugLine="End Sub"; + //BA.debugLineNum = 648;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 650;BA.debugLine="End Sub"; return ""; } -public void _b_enviobd_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_enviobd_click", false)) - {Debug.delegate(ba, "b_enviobd_click", null); return;} -ResumableSub_b_envioBD_Click rsub = new ResumableSub_b_envioBD_Click(this,__ref); +public void _b_enviobd_click() throws Exception{ +ResumableSub_b_envioBD_Click rsub = new ResumableSub_b_envioBD_Click(this); rsub.resume(ba, null); } public static class ResumableSub_b_envioBD_Click extends BA.ResumableSub { -public ResumableSub_b_envioBD_Click(reparto_izca.keymon.lat.b4xmainpage parent,reparto_izca.keymon.lat.b4xmainpage __ref) { +public ResumableSub_b_envioBD_Click(reparto_izca.keymon.lat.b4xmainpage parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xmainpage __ref; reparto_izca.keymon.lat.b4xmainpage parent; String _filename = ""; anywheresoftware.b4a.phone.Phone.Email _email = null; @@ -311,7 +215,6 @@ anywheresoftware.b4a.objects.IntentWrapper _in = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xmainpage"; while (true) { switch (state) { @@ -321,59 +224,43 @@ return; case 0: //C this.state = -1; -RDebugUtils.currentLine=1769475; - //BA.debugLineNum = 1769475;BA.debugLine="Dim FileName As String = \"kmt.db\""; + //BA.debugLineNum = 581;BA.debugLine="Dim FileName As String = \"kmt.db\""; _filename = "kmt.db"; -RDebugUtils.currentLine=1769477; - //BA.debugLineNum = 1769477;BA.debugLine="Log(\"xxxxxx:\"&Provider.SharedFolder)"; -parent.__c.LogImpl("21769477","xxxxxx:"+__ref._provider /*reparto_izca.keymon.lat.fileprovider*/ ._sharedfolder /*String*/ ,0); -RDebugUtils.currentLine=1769478; - //BA.debugLineNum = 1769478;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b_enviobd_click"),(int) (1000)); + //BA.debugLineNum = 583;BA.debugLine="Log(\"xxxxxx:\"&Provider.SharedFolder)"; +parent.__c.LogImpl("02031621","xxxxxx:"+parent._provider._sharedfolder /*String*/ ,0); + //BA.debugLineNum = 584;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 1; return; case 1: //C this.state = -1; ; -RDebugUtils.currentLine=1769479; - //BA.debugLineNum = 1769479;BA.debugLine="File.Copy(File.DirInternal, FileName, Provider.Sh"; -parent.__c.File.Copy(parent.__c.File.getDirInternal(),_filename,__ref._provider /*reparto_izca.keymon.lat.fileprovider*/ ._sharedfolder /*String*/ ,_filename); -RDebugUtils.currentLine=1769480; - //BA.debugLineNum = 1769480;BA.debugLine="Dim email As Email"; + //BA.debugLineNum = 585;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 = 586;BA.debugLine="Dim email As Email"; _email = new anywheresoftware.b4a.phone.Phone.Email(); -RDebugUtils.currentLine=1769481; - //BA.debugLineNum = 1769481;BA.debugLine="email.To.Add(\"soporte@keymonsoft.com\")"; + //BA.debugLineNum = 587;BA.debugLine="email.To.Add(\"soporte@keymonsoft.com\")"; _email.To.Add((Object)("soporte@keymonsoft.com")); -RDebugUtils.currentLine=1769482; - //BA.debugLineNum = 1769482;BA.debugLine="email.Subject = \"Base de datos para revisión\""; + //BA.debugLineNum = 588;BA.debugLine="email.Subject = \"Base de datos para revisión\""; _email.Subject = "Base de datos para revisión"; -RDebugUtils.currentLine=1769483; - //BA.debugLineNum = 1769483;BA.debugLine="email.Attachments.Add(Provider.GetFileUri(FileNam"; -_email.Attachments.Add(__ref._provider /*reparto_izca.keymon.lat.fileprovider*/ ._getfileuri /*Object*/ (null,_filename)); -RDebugUtils.currentLine=1769485; - //BA.debugLineNum = 1769485;BA.debugLine="Dim in As Intent = email.GetIntent"; + //BA.debugLineNum = 589;BA.debugLine="email.Attachments.Add(Provider.GetFileUri(FileNam"; +_email.Attachments.Add(parent._provider._getfileuri /*Object*/ (_filename)); + //BA.debugLineNum = 591;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())); -RDebugUtils.currentLine=1769486; - //BA.debugLineNum = 1769486;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION"; + //BA.debugLineNum = 592;BA.debugLine="in.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION"; _in.setFlags((int) (1)); -RDebugUtils.currentLine=1769487; - //BA.debugLineNum = 1769487;BA.debugLine="StartActivity(in)"; + //BA.debugLineNum = 593;BA.debugLine="StartActivity(in)"; parent.__c.StartActivity(ba,(Object)(_in.getObject())); -RDebugUtils.currentLine=1769488; - //BA.debugLineNum = 1769488;BA.debugLine="End Sub"; + //BA.debugLineNum = 594;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b_pc_env_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_pc_env_click", false)) - {return ((String) Debug.delegate(ba, "b_pc_env_click", null));} +public String _b_pc_env_click() throws Exception{ int _i = 0; anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null; anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null; @@ -386,240 +273,148 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null; String[] _fechatabulador = null; String[] _fechatabulador2 = null; String _fechatabulador3 = ""; -RDebugUtils.currentLine=2621440; - //BA.debugLineNum = 2621440;BA.debugLine="Private Sub B_PC_ENV_Click"; -RDebugUtils.currentLine=2621441; - //BA.debugLineNum = 2621441;BA.debugLine="Dim sDate, sTime As String"; + //BA.debugLineNum = 793;BA.debugLine="Private Sub B_PC_ENV_Click"; + //BA.debugLineNum = 794;BA.debugLine="Dim sDate, sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=2621442; - //BA.debugLineNum = 2621442;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; + //BA.debugLineNum = 795;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; __c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=2621443; - //BA.debugLineNum = 2621443;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; + //BA.debugLineNum = 796;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; __c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=2621444; - //BA.debugLineNum = 2621444;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=2621445; - //BA.debugLineNum = 2621445;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=2621448; - //BA.debugLineNum = 2621448;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1"; + //BA.debugLineNum = 797;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 798;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 801;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1"; { final int step6 = 1; -final int limit6 = (int) (__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getsize()-1); +final int limit6 = (int) (_clv_pick_ciego._getsize()-1); _i = (int) (0) ; for (;_i <= limit6 ;_i = _i + step6 ) { -RDebugUtils.currentLine=2621450; - //BA.debugLineNum = 2621450;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan"; + //BA.debugLineNum = 803;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan"; _itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_itempanel = __ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getpanel(_i); -RDebugUtils.currentLine=2621451; - //BA.debugLineNum = 2621451;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)"; +_itempanel = _clv_pick_ciego._getpanel(_i); + //BA.debugLineNum = 804;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)"; _innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); _innerpanel = _itempanel.GetView((int) (0)); -RDebugUtils.currentLine=2621452; - //BA.debugLineNum = 2621452;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)"; + //BA.debugLineNum = 805;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)"; _edittext = new anywheresoftware.b4a.objects.B4XViewWrapper(); _edittext = _innerpanel.GetView((int) (1)); -RDebugUtils.currentLine=2621453; - //BA.debugLineNum = 2621453;BA.debugLine="Dim inputText As String = editText.As(EditText)."; + //BA.debugLineNum = 806;BA.debugLine="Dim inputText As String = editText.As(EditText)."; _inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText(); -RDebugUtils.currentLine=2621456; - //BA.debugLineNum = 2621456;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe"; + //BA.debugLineNum = 809;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe"; if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { -RDebugUtils.currentLine=2621457; - //BA.debugLineNum = 2621457;BA.debugLine="inputText = \"0\""; + //BA.debugLineNum = 810;BA.debugLine="inputText = \"0\""; _inputtext = "0"; }; -RDebugUtils.currentLine=2621461; - //BA.debugLineNum = 2621461;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)"; + //BA.debugLineNum = 814;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)"; _idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper(); _idlabel = _innerpanel.GetView((int) (0)); -RDebugUtils.currentLine=2621462; - //BA.debugLineNum = 2621462;BA.debugLine="Dim idText As String = idLabel.As(Label).Text"; + //BA.debugLineNum = 815;BA.debugLine="Dim idText As String = idLabel.As(Label).Text"; _idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText(); -RDebugUtils.currentLine=2621463; - //BA.debugLineNum = 2621463;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe"; + //BA.debugLineNum = 816;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe"; _idparts = __c.Regex.Split(__c.CRLF,_idtext); -RDebugUtils.currentLine=2621465; - //BA.debugLineNum = 2621465;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); -RDebugUtils.currentLine=2621466; - //BA.debugLineNum = 2621466;BA.debugLine="f.Position=0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=2621467; - //BA.debugLineNum = 2621467;BA.debugLine="Log(f.GetString(\"RUTAA\"))"; -__c.LogImpl("22621467",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),0); -RDebugUtils.currentLine=2621468; - //BA.debugLineNum = 2621468;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=2621469; - //BA.debugLineNum = 2621469;BA.debugLine="If a.RowCount>0 Then"; -if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=2621470; - //BA.debugLineNum = 2621470;BA.debugLine="a.Position=0"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); + //BA.debugLineNum = 818;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); + //BA.debugLineNum = 819;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 820;BA.debugLine="Log(f.GetString(\"RUTAA\"))"; +__c.LogImpl("02883611",_f.GetString("RUTAA"),0); + //BA.debugLineNum = 821;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; +_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 822;BA.debugLine="If a.RowCount>0 Then"; +if (_a.getRowCount()>0) { + //BA.debugLineNum = 823;BA.debugLine="a.Position=0"; +_a.setPosition((int) (0)); }; -RDebugUtils.currentLine=2621472; - //BA.debugLineNum = 2621472;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT"; + //BA.debugLineNum = 825;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT"; _k = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); -RDebugUtils.currentLine=2621473; - //BA.debugLineNum = 2621473;BA.debugLine="k.Position = 0"; + //BA.debugLineNum = 826;BA.debugLine="k.Position = 0"; _k.setPosition((int) (0)); -RDebugUtils.currentLine=2621474; - //BA.debugLineNum = 2621474;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \""; + //BA.debugLineNum = 827;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \""; _fechatabulador = __c.Regex.Split(" ",_k.GetString("HVD_FECHA")); -RDebugUtils.currentLine=2621475; - //BA.debugLineNum = 2621475;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(\"-"; + //BA.debugLineNum = 828;BA.debugLine="Dim fechatabulador2() As String = Regex.Split(\"-"; _fechatabulador2 = __c.Regex.Split("-",_fechatabulador[(int) (0)]); -RDebugUtils.currentLine=2621476; - //BA.debugLineNum = 2621476;BA.debugLine="Dim fechatabulador3 As String = fechatabulador2("; + //BA.debugLineNum = 829;BA.debugLine="Dim fechatabulador3 As String = fechatabulador2("; _fechatabulador3 = _fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (0)]; -RDebugUtils.currentLine=2621477; - //BA.debugLineNum = 2621477;BA.debugLine="k.Close"; + //BA.debugLineNum = 830;BA.debugLine="k.Close"; _k.Close(); -RDebugUtils.currentLine=2621478; - //BA.debugLineNum = 2621478;BA.debugLine="If inputText <> \"\" Then"; + //BA.debugLineNum = 831;BA.debugLine="If inputText <> \"\" Then"; if ((_inputtext).equals("") == false) { -RDebugUtils.currentLine=2621479; - //BA.debugLineNum = 2621479;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]}))); -RDebugUtils.currentLine=2621480; - //BA.debugLineNum = 2621480;BA.debugLine="If c.RowCount = 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=2621482; - //BA.debugLineNum = 2621482;BA.debugLine="Log(f.GetString(\"RUTAA\"))"; -__c.LogImpl("22621482",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),0); -RDebugUtils.currentLine=2621483; - //BA.debugLineNum = 2621483;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),_fechatabulador3+" "+__ref._stime /*String*/ })); + //BA.debugLineNum = 832;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]}))); + //BA.debugLineNum = 833;BA.debugLine="If c.RowCount = 0 Then"; +if (_c.getRowCount()==0) { + //BA.debugLineNum = 835;BA.debugLine="Log(f.GetString(\"RUTAA\"))"; +__c.LogImpl("02883626",_f.GetString("RUTAA"),0); + //BA.debugLineNum = 836;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,_a.GetString("ID_ALMACEN"),_f.GetString("RUTAA"),_fechatabulador3+" "+_stime})); }else { -RDebugUtils.currentLine=2621486; - //BA.debugLineNum = 2621486;BA.debugLine="Log(f.GetString(\"RUTAA\"))"; -__c.LogImpl("22621486",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),0); -RDebugUtils.currentLine=2621487; - //BA.debugLineNum = 2621487;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO"; + //BA.debugLineNum = 839;BA.debugLine="Log(f.GetString(\"RUTAA\"))"; +__c.LogImpl("02883630",_f.GetString("RUTAA"),0); + //BA.debugLineNum = 840;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,_idparts[(int) (0)]})); }; }; -RDebugUtils.currentLine=2621491; - //BA.debugLineNum = 2621491;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=2621492; - //BA.debugLineNum = 2621492;BA.debugLine="a.Close"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=2621493; - //BA.debugLineNum = 2621493;BA.debugLine="Log(\"Processed item \" & i)"; -__c.LogImpl("22621493","Processed item "+BA.NumberToString(_i),0); + //BA.debugLineNum = 844;BA.debugLine="f.Close"; +_f.Close(); + //BA.debugLineNum = 845;BA.debugLine="a.Close"; +_a.Close(); + //BA.debugLineNum = 846;BA.debugLine="Log(\"Processed item \" & i)"; +__c.LogImpl("02883637","Processed item "+BA.NumberToString(_i),0); } }; -RDebugUtils.currentLine=2621495; - //BA.debugLineNum = 2621495;BA.debugLine="et_buspc.Text = \"\""; -__ref._et_buspc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=2621496; - //BA.debugLineNum = 2621496;BA.debugLine="CLV_PICK_CIEGO.Clear"; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=2621497; - //BA.debugLineNum = 2621497;BA.debugLine="End Sub"; + //BA.debugLineNum = 848;BA.debugLine="et_buspc.Text = \"\""; +_et_buspc.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 849;BA.debugLine="CLV_PICK_CIEGO.Clear"; +_clv_pick_ciego._clear(); + //BA.debugLineNum = 850;BA.debugLine="End Sub"; return ""; } -public String _b_regesar_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_regesar_click", false)) - {return ((String) Debug.delegate(ba, "b_regesar_click", null));} -RDebugUtils.currentLine=1703936; - //BA.debugLineNum = 1703936;BA.debugLine="Private Sub b_regesar_Click"; -RDebugUtils.currentLine=1703937; - //BA.debugLineNum = 1703937;BA.debugLine="p_principal.Visible = True"; -__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=1703938; - //BA.debugLineNum = 1703938;BA.debugLine="p_appUpdate.Visible = False"; -__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=1703939; - //BA.debugLineNum = 1703939;BA.debugLine="End Sub"; +public String _b_regesar_click() throws Exception{ + //BA.debugLineNum = 572;BA.debugLine="Private Sub b_regesar_Click"; + //BA.debugLineNum = 573;BA.debugLine="p_principal.Visible = True"; +_p_principal.setVisible(__c.True); + //BA.debugLineNum = 574;BA.debugLine="p_appUpdate.Visible = False"; +_p_appupdate.setVisible(__c.False); + //BA.debugLineNum = 575;BA.debugLine="End Sub"; return ""; } -public String _b_server_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_server_click", false)) - {return ((String) Debug.delegate(ba, "b_server_click", null));} -RDebugUtils.currentLine=1900544; - //BA.debugLineNum = 1900544;BA.debugLine="Private Sub b_server_Click"; -RDebugUtils.currentLine=1900545; - //BA.debugLineNum = 1900545;BA.debugLine="Log(\"Guardar servidor\")"; -__c.LogImpl("21900545","Guardar servidor",0); -RDebugUtils.currentLine=1900546; - //BA.debugLineNum = 1900546;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VARIA"; +public String _b_server_click() throws Exception{ + //BA.debugLineNum = 600;BA.debugLine="Private Sub b_server_Click"; + //BA.debugLineNum = 601;BA.debugLine="Log(\"Guardar servidor\")"; +__c.LogImpl("02162689","Guardar servidor",0); + //BA.debugLineNum = 602;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VARIA"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("SERVER")})); -RDebugUtils.currentLine=1900547; - //BA.debugLineNum = 1900547;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIA"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("SERVER"),(Object)(__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())})); -RDebugUtils.currentLine=1900548; - //BA.debugLineNum = 1900548;BA.debugLine="B4XPages.MainPage.server = et_server.text"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ = __ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(); -RDebugUtils.currentLine=1900549; - //BA.debugLineNum = 1900549;BA.debugLine="Starter.server = B4XPages.MainPage.server"; + //BA.debugLineNum = 603;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARIA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("SERVER"),(Object)(_et_server.getText())})); + //BA.debugLineNum = 604;BA.debugLine="B4XPages.MainPage.server = et_server.text"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ = _et_server.getText(); + //BA.debugLineNum = 605;BA.debugLine="Starter.server = B4XPages.MainPage.server"; _starter._server /*String*/ = _b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ; -RDebugUtils.currentLine=1900550; - //BA.debugLineNum = 1900550;BA.debugLine="If logger Then Log(\"Inicializamos reqManager con"; -if (__ref._logger /*boolean*/ ) { -__c.LogImpl("21900550","Inicializamos reqManager con "+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ,0);}; -RDebugUtils.currentLine=1900551; - //BA.debugLineNum = 1900551;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=1900552; - //BA.debugLineNum = 1900552;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server"; -__c.LogImpl("21900552",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); -RDebugUtils.currentLine=1900553; - //BA.debugLineNum = 1900553;BA.debugLine="reinicializaReqManager"; -__ref._reinicializareqmanager /*String*/ (null); -RDebugUtils.currentLine=1900554; - //BA.debugLineNum = 1900554;BA.debugLine="p_appUpdate.Visible = False"; -__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=1900556; - //BA.debugLineNum = 1900556;BA.debugLine="End Sub"; + //BA.debugLineNum = 606;BA.debugLine="If logger Then Log(\"Inicializamos reqManager con"; +if (_logger) { +__c.LogImpl("02162694","Inicializamos reqManager con "+_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ,0);}; + //BA.debugLineNum = 607;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 608;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server"; +__c.LogImpl("02162696",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); + //BA.debugLineNum = 609;BA.debugLine="reinicializaReqManager"; +_reinicializareqmanager(); + //BA.debugLineNum = 610;BA.debugLine="p_appUpdate.Visible = False"; +_p_appupdate.setVisible(__c.False); + //BA.debugLineNum = 612;BA.debugLine="End Sub"; return ""; } -public String _reinicializareqmanager(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "reinicializareqmanager", false)) - {return ((String) Debug.delegate(ba, "reinicializareqmanager", null));} -RDebugUtils.currentLine=2031616; - //BA.debugLineNum = 2031616;BA.debugLine="Sub reinicializaReqManager"; -RDebugUtils.currentLine=2031617; - //BA.debugLineNum = 2031617;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=2031618; - //BA.debugLineNum = 2031618;BA.debugLine="If logger Then Log(B4XPages.MainPage.server)"; -if (__ref._logger /*boolean*/ ) { -__c.LogImpl("22031618",_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ,0);}; -RDebugUtils.currentLine=2031619; - //BA.debugLineNum = 2031619;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server"; -__c.LogImpl("22031619",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); -RDebugUtils.currentLine=2031620; - //BA.debugLineNum = 2031620;BA.debugLine="End Sub"; -return ""; -} -public void _b_terpc_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b_terpc_click", false)) - {Debug.delegate(ba, "b_terpc_click", null); return;} -ResumableSub_b_terpc_Click rsub = new ResumableSub_b_terpc_Click(this,__ref); +public void _b_terpc_click() throws Exception{ +ResumableSub_b_terpc_Click rsub = new ResumableSub_b_terpc_Click(this); rsub.resume(ba, null); } public static class ResumableSub_b_terpc_Click extends BA.ResumableSub { -public ResumableSub_b_terpc_Click(reparto_izca.keymon.lat.b4xmainpage parent,reparto_izca.keymon.lat.b4xmainpage __ref) { +public ResumableSub_b_terpc_Click(reparto_izca.keymon.lat.b4xmainpage parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xmainpage __ref; reparto_izca.keymon.lat.b4xmainpage parent; int _resultado = 0; int _i = 0; @@ -639,7 +434,6 @@ int limit12; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xmainpage"; while (true) { switch (state) { @@ -649,21 +443,18 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=2686977; - //BA.debugLineNum = 2686977;BA.debugLine="Msgbox2Async(\"Una vez enviada la información no p"; + //BA.debugLineNum = 853;BA.debugLine="Msgbox2Async(\"Una vez enviada la información no p"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Una vez enviada la información no podras hacer modificaciones"),BA.ObjectToCharSequence("Atención"),"SI","","",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=2686978; - //BA.debugLineNum = 2686978;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b_terpc_click"), null); + //BA.debugLineNum = 854;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 33; return; case 33: //C this.state = 1; -_resultado = (Integer) result[1]; +_resultado = (Integer) result[0]; ; -RDebugUtils.currentLine=2686979; - //BA.debugLineNum = 2686979;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; + //BA.debugLineNum = 855;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; if (true) break; case 1: @@ -676,21 +467,18 @@ this.state = 3; case 3: //C this.state = 4; -RDebugUtils.currentLine=2686980; - //BA.debugLineNum = 2686980;BA.debugLine="Msgbox2Async(\"Estas seguro de enviar la informac"; + //BA.debugLineNum = 856;BA.debugLine="Msgbox2Async(\"Estas seguro de enviar la informac"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Estas seguro de enviar la información?"),BA.ObjectToCharSequence("Atención"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=2686981; - //BA.debugLineNum = 2686981;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b_terpc_click"), null); + //BA.debugLineNum = 857;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 34; return; case 34: //C this.state = 4; -_resultado = (Integer) result[1]; +_resultado = (Integer) result[0]; ; -RDebugUtils.currentLine=2686982; - //BA.debugLineNum = 2686982;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; + //BA.debugLineNum = 858;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; if (true) break; case 4: @@ -705,31 +493,25 @@ this.state = 30; case 6: //C this.state = 7; -RDebugUtils.currentLine=2686984; - //BA.debugLineNum = 2686984;BA.debugLine="Dim sDate, sTime As String"; + //BA.debugLineNum = 860;BA.debugLine="Dim sDate, sTime As String"; parent._sdate = ""; parent._stime = ""; -RDebugUtils.currentLine=2686985; - //BA.debugLineNum = 2686985;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; + //BA.debugLineNum = 861;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=2686986; - //BA.debugLineNum = 2686986;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; + //BA.debugLineNum = 862;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; parent.__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=2686987; - //BA.debugLineNum = 2686987;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=2686988; - //BA.debugLineNum = 2686988;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=2686990; - //BA.debugLineNum = 2686990;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1"; + //BA.debugLineNum = 863;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 864;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 866;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1"; if (true) break; case 7: //for this.state = 28; step12 = 1; -limit12 = (int) (__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getsize()-1); +limit12 = (int) (parent._clv_pick_ciego._getsize()-1); _i = (int) (0) ; this.state = 35; if (true) break; @@ -749,23 +531,18 @@ if (true) break; case 9: //C this.state = 10; -RDebugUtils.currentLine=2686992; - //BA.debugLineNum = 2686992;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetP"; + //BA.debugLineNum = 868;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetP"; _itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_itempanel = __ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getpanel(_i); -RDebugUtils.currentLine=2686993; - //BA.debugLineNum = 2686993;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView("; +_itempanel = parent._clv_pick_ciego._getpanel(_i); + //BA.debugLineNum = 869;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView("; _innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); _innerpanel = _itempanel.GetView((int) (0)); -RDebugUtils.currentLine=2686994; - //BA.debugLineNum = 2686994;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1"; + //BA.debugLineNum = 870;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1"; _edittext = new anywheresoftware.b4a.objects.B4XViewWrapper(); _edittext = _innerpanel.GetView((int) (1)); -RDebugUtils.currentLine=2686995; - //BA.debugLineNum = 2686995;BA.debugLine="Dim inputText As String = editText.As(EditText"; + //BA.debugLineNum = 871;BA.debugLine="Dim inputText As String = editText.As(EditText"; _inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText(); -RDebugUtils.currentLine=2686998; - //BA.debugLineNum = 2686998;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or input"; + //BA.debugLineNum = 874;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or input"; if (true) break; case 10: @@ -778,8 +555,7 @@ this.state = 12; case 12: //C this.state = 13; -RDebugUtils.currentLine=2686999; - //BA.debugLineNum = 2686999;BA.debugLine="inputText = \"0\""; + //BA.debugLineNum = 875;BA.debugLine="inputText = \"0\""; _inputtext = "0"; if (true) break; @@ -787,75 +563,58 @@ case 13: //C this.state = 14; ; -RDebugUtils.currentLine=2687003; - //BA.debugLineNum = 2687003;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)"; + //BA.debugLineNum = 879;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)"; _idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper(); _idlabel = _innerpanel.GetView((int) (0)); -RDebugUtils.currentLine=2687004; - //BA.debugLineNum = 2687004;BA.debugLine="Dim idText As String = idLabel.As(Label).Text"; + //BA.debugLineNum = 880;BA.debugLine="Dim idText As String = idLabel.As(Label).Text"; _idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText(); -RDebugUtils.currentLine=2687005; - //BA.debugLineNum = 2687005;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, id"; + //BA.debugLineNum = 881;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, id"; _idparts = parent.__c.Regex.Split(parent.__c.CRLF,_idtext); -RDebugUtils.currentLine=2687007; - //BA.debugLineNum = 2687007;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RU"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); -RDebugUtils.currentLine=2687008; - //BA.debugLineNum = 2687008;BA.debugLine="f.Position=0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=2687009; - //BA.debugLineNum = 2687009;BA.debugLine="Log(f.GetString(\"RUTAA\"))"; -parent.__c.LogImpl("22687009",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),0); -RDebugUtils.currentLine=2687011; - //BA.debugLineNum = 2687011;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN fr"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); -RDebugUtils.currentLine=2687012; - //BA.debugLineNum = 2687012;BA.debugLine="If a.RowCount>0 Then"; + //BA.debugLineNum = 883;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RU"; +parent._f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); + //BA.debugLineNum = 884;BA.debugLine="f.Position=0"; +parent._f.setPosition((int) (0)); + //BA.debugLineNum = 885;BA.debugLine="Log(f.GetString(\"RUTAA\"))"; +parent.__c.LogImpl("02949153",parent._f.GetString("RUTAA"),0); + //BA.debugLineNum = 887;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN fr"; +parent._a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 888;BA.debugLine="If a.RowCount>0 Then"; if (true) break; case 14: //if this.state = 17; -if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._a.getRowCount()>0) { this.state = 16; }if (true) break; case 16: //C this.state = 17; -RDebugUtils.currentLine=2687013; - //BA.debugLineNum = 2687013;BA.debugLine="a.Position=0"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); + //BA.debugLineNum = 889;BA.debugLine="a.Position=0"; +parent._a.setPosition((int) (0)); if (true) break; case 17: //C this.state = 18; ; -RDebugUtils.currentLine=2687015; - //BA.debugLineNum = 2687015;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))"; -parent.__c.LogImpl("22687015",__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),0); -RDebugUtils.currentLine=2687017; - //BA.debugLineNum = 2687017;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELE"; + //BA.debugLineNum = 891;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))"; +parent.__c.LogImpl("02949159",parent._a.GetString("ID_ALMACEN"),0); + //BA.debugLineNum = 893;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELE"; _k = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); -RDebugUtils.currentLine=2687018; - //BA.debugLineNum = 2687018;BA.debugLine="k.Position = 0"; + //BA.debugLineNum = 894;BA.debugLine="k.Position = 0"; _k.setPosition((int) (0)); -RDebugUtils.currentLine=2687019; - //BA.debugLineNum = 2687019;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\""; + //BA.debugLineNum = 895;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\""; _fechatabulador = parent.__c.Regex.Split(" ",_k.GetString("HVD_FECHA")); -RDebugUtils.currentLine=2687020; - //BA.debugLineNum = 2687020;BA.debugLine="Dim fechatabulador2() As String = Regex.Split("; + //BA.debugLineNum = 896;BA.debugLine="Dim fechatabulador2() As String = Regex.Split("; _fechatabulador2 = parent.__c.Regex.Split("-",_fechatabulador[(int) (0)]); -RDebugUtils.currentLine=2687021; - //BA.debugLineNum = 2687021;BA.debugLine="Dim fechatabulador3 As String = fechatabulador"; + //BA.debugLineNum = 897;BA.debugLine="Dim fechatabulador3 As String = fechatabulador"; _fechatabulador3 = _fechatabulador2[(int) (2)]+"/"+_fechatabulador2[(int) (1)]+"/"+_fechatabulador2[(int) (0)]; -RDebugUtils.currentLine=2687022; - //BA.debugLineNum = 2687022;BA.debugLine="k.Close"; + //BA.debugLineNum = 898;BA.debugLine="k.Close"; _k.Close(); -RDebugUtils.currentLine=2687023; - //BA.debugLineNum = 2687023;BA.debugLine="If inputText <> \"\" Then"; + //BA.debugLineNum = 899;BA.debugLine="If inputText <> \"\" Then"; if (true) break; case 18: @@ -868,17 +627,15 @@ this.state = 20; case 20: //C this.state = 21; -RDebugUtils.currentLine=2687024; - //BA.debugLineNum = 2687024;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PI"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]}))); -RDebugUtils.currentLine=2687025; - //BA.debugLineNum = 2687025;BA.debugLine="If c.RowCount = 0 Then"; + //BA.debugLineNum = 900;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PI"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]}))); + //BA.debugLineNum = 901;BA.debugLine="If c.RowCount = 0 Then"; if (true) break; case 21: //if this.state = 26; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { +if (parent._c.getRowCount()==0) { this.state = 23; }else { this.state = 25; @@ -887,16 +644,14 @@ this.state = 25; case 23: //C this.state = 26; -RDebugUtils.currentLine=2687027; - //BA.debugLineNum = 2687027;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),_fechatabulador3+" "+__ref._stime /*String*/ })); + //BA.debugLineNum = 903;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA) VALUES(?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,parent._a.GetString("ID_ALMACEN"),parent._f.GetString("RUTAA"),_fechatabulador3+" "+parent._stime})); if (true) break; case 25: //C this.state = 26; -RDebugUtils.currentLine=2687029; - //BA.debugLineNum = 2687029;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG"; + //BA.debugLineNum = 905;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG"; parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,_idparts[(int) (0)]})); if (true) break; @@ -910,15 +665,12 @@ case 27: //C this.state = 36; ; -RDebugUtils.currentLine=2687032; - //BA.debugLineNum = 2687032;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=2687033; - //BA.debugLineNum = 2687033;BA.debugLine="a.Close"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=2687034; - //BA.debugLineNum = 2687034;BA.debugLine="Log(\"Processed item \" & i)"; -parent.__c.LogImpl("22687034","Processed item "+BA.NumberToString(_i),0); + //BA.debugLineNum = 908;BA.debugLine="f.Close"; +parent._f.Close(); + //BA.debugLineNum = 909;BA.debugLine="a.Close"; +parent._a.Close(); + //BA.debugLineNum = 910;BA.debugLine="Log(\"Processed item \" & i)"; +parent.__c.LogImpl("02949178","Processed item "+BA.NumberToString(_i),0); if (true) break; if (true) break; @@ -926,24 +678,18 @@ case 28: //C this.state = 31; ; -RDebugUtils.currentLine=2687036; - //BA.debugLineNum = 2687036;BA.debugLine="Log(\"Finished processing all items\")"; -parent.__c.LogImpl("22687036","Finished processing all items",0); -RDebugUtils.currentLine=2687037; - //BA.debugLineNum = 2687037;BA.debugLine="P_CIEGO.Visible = False"; -__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); -RDebugUtils.currentLine=2687038; - //BA.debugLineNum = 2687038;BA.debugLine="et_buspc.Text = \"\""; -__ref._et_buspc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=2687039; - //BA.debugLineNum = 2687039;BA.debugLine="CLV_PICK_CIEGO.Clear"; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=2687040; - //BA.debugLineNum = 2687040;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PC_ID_PROD,"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO"))); -RDebugUtils.currentLine=2687051; - //BA.debugLineNum = 2687051;BA.debugLine="c.close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 912;BA.debugLine="Log(\"Finished processing all items\")"; +parent.__c.LogImpl("02949180","Finished processing all items",0); + //BA.debugLineNum = 913;BA.debugLine="P_CIEGO.Visible = False"; +parent._p_ciego.setVisible(parent.__c.False); + //BA.debugLineNum = 914;BA.debugLine="et_buspc.Text = \"\""; +parent._et_buspc.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 915;BA.debugLine="CLV_PICK_CIEGO.Clear"; +parent._clv_pick_ciego._clear(); + //BA.debugLineNum = 916;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PC_ID_PROD,"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PC_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO"))); + //BA.debugLineNum = 927;BA.debugLine="c.close"; +parent._c.Close(); if (true) break; case 30: @@ -961,35 +707,29 @@ case 32: //C this.state = -1; ; -RDebugUtils.currentLine=2687056; - //BA.debugLineNum = 2687056;BA.debugLine="End Sub"; + //BA.debugLineNum = 932;BA.debugLine="End Sub"; if (true) break; } } } } -public void _b4xpage_appear(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {Debug.delegate(ba, "b4xpage_appear", null); return;} -ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this,__ref); +public void _msgbox_result(int _resultado) throws Exception{ +} +public void _b4xpage_appear() throws Exception{ +ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this); rsub.resume(ba, null); } public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub { -public ResumableSub_B4XPage_Appear(reparto_izca.keymon.lat.b4xmainpage parent,reparto_izca.keymon.lat.b4xmainpage __ref) { +public ResumableSub_B4XPage_Appear(reparto_izca.keymon.lat.b4xmainpage parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xmainpage __ref; reparto_izca.keymon.lat.b4xmainpage parent; String _permission = ""; boolean _result = false; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xmainpage"; while (true) { switch (state) { @@ -999,8 +739,7 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=1376257; - //BA.debugLineNum = 1376257;BA.debugLine="If Starter.muestraProgreso = 1 Then"; + //BA.debugLineNum = 239;BA.debugLine="If Starter.muestraProgreso = 1 Then"; if (true) break; case 1: @@ -1013,11 +752,9 @@ this.state = 3; case 3: //C this.state = 4; -RDebugUtils.currentLine=1376258; - //BA.debugLineNum = 1376258;BA.debugLine="muestraProgreso(\"Descargando actualización\")"; -__ref._muestraprogreso /*String*/ (null,"Descargando actualización"); -RDebugUtils.currentLine=1376259; - //BA.debugLineNum = 1376259;BA.debugLine="Starter.muestraProgreso = 0"; + //BA.debugLineNum = 240;BA.debugLine="muestraProgreso(\"Descargando actualización\")"; +parent._muestraprogreso("Descargando actualización"); + //BA.debugLineNum = 241;BA.debugLine="Starter.muestraProgreso = 0"; parent._starter._muestraprogreso /*String*/ = BA.NumberToString(0); if (true) break; @@ -1025,25 +762,21 @@ case 4: //C this.state = 5; ; -RDebugUtils.currentLine=1376261; - //BA.debugLineNum = 1376261;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; -parent._subs._centrapanel /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=1376262; - //BA.debugLineNum = 1376262;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_"; + //BA.debugLineNum = 243;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; +parent._subs._centrapanel /*String*/ (ba,parent._p_principal,parent._root.getWidth()); + //BA.debugLineNum = 244;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); -RDebugUtils.currentLine=1376264; - //BA.debugLineNum = 1376264;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; -parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_appear"), null); + //BA.debugLineNum = 246;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; +parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null); this.state = 21; return; case 21: //C this.state = 5; -_permission = (String) result[1]; -_result = (Boolean) result[2]; +_permission = (String) result[0]; +_result = (Boolean) result[1]; ; -RDebugUtils.currentLine=1376265; - //BA.debugLineNum = 1376265;BA.debugLine="If Result Then"; + //BA.debugLineNum = 247;BA.debugLine="If Result Then"; if (true) break; case 5: @@ -1058,8 +791,7 @@ this.state = 15; case 7: //C this.state = 8; -RDebugUtils.currentLine=1376266; - //BA.debugLineNum = 1376266;BA.debugLine="If Not(Tracker.Tracking) Then StartService(Track"; + //BA.debugLineNum = 248;BA.debugLine="If Not(Tracker.Tracking) Then StartService(Track"; if (true) break; case 8: @@ -1084,78 +816,65 @@ this.state = 16; case 15: //C this.state = 16; -RDebugUtils.currentLine=1376269; - //BA.debugLineNum = 1376269;BA.debugLine="ToastMessageShow(\"No permission\", True)"; + //BA.debugLineNum = 251;BA.debugLine="ToastMessageShow(\"No permission\", True)"; parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission"),parent.__c.True); -RDebugUtils.currentLine=1376270; - //BA.debugLineNum = 1376270;BA.debugLine="Log(\"Sin permisos\")"; -parent.__c.LogImpl("21376270","Sin permisos",0); + //BA.debugLineNum = 252;BA.debugLine="Log(\"Sin permisos\")"; +parent.__c.LogImpl("01638414","Sin permisos",0); if (true) break; case 16: //C this.state = 17; ; -RDebugUtils.currentLine=1376273; - //BA.debugLineNum = 1376273;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); -RDebugUtils.currentLine=1376274; - //BA.debugLineNum = 1376274;BA.debugLine="If c.RowCount > 0 Then"; + //BA.debugLineNum = 255;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 256;BA.debugLine="If c.RowCount > 0 Then"; if (true) break; case 17: //if this.state = 20; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._c.getRowCount()>0) { this.state = 19; }if (true) break; case 19: //C this.state = 20; -RDebugUtils.currentLine=1376277; - //BA.debugLineNum = 1376277;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=1376278; - //BA.debugLineNum = 1376278;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); + //BA.debugLineNum = 259;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 260;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); if (true) break; case 20: //C this.state = -1; ; -RDebugUtils.currentLine=1376280; - //BA.debugLineNum = 1376280;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=1376292; - //BA.debugLineNum = 1376292;BA.debugLine="End Sub"; + //BA.debugLineNum = 262;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 274;BA.debugLine="End Sub"; if (true) break; } } } } -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));} -ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref); +public void _b4xpage_permissionresult(String _permission,boolean _result) throws Exception{ +} +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{ +ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { -public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.b4xmainpage parent,reparto_izca.keymon.lat.b4xmainpage __ref) { +public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.b4xmainpage parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xmainpage __ref; reparto_izca.keymon.lat.b4xmainpage parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xmainpage"; while (true) { switch (state) { @@ -1165,14 +884,13 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = 1; -RDebugUtils.currentLine=1638402; - //BA.debugLineNum = 1638402;BA.debugLine="If p_appUpdate.Visible Then"; + //BA.debugLineNum = 563;BA.debugLine="If p_appUpdate.Visible Then"; if (true) break; case 1: //if this.state = 6; -if (__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { +if (parent._p_appupdate.getVisible()) { this.state = 3; }else { this.state = 5; @@ -1181,25 +899,22 @@ this.state = 5; case 3: //C this.state = 6; -RDebugUtils.currentLine=1638403; - //BA.debugLineNum = 1638403;BA.debugLine="p_appUpdate.Visible = False"; -__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); + //BA.debugLineNum = 564;BA.debugLine="p_appUpdate.Visible = False"; +parent._p_appupdate.setVisible(parent.__c.False); if (true) break; case 5: //C this.state = 6; -RDebugUtils.currentLine=1638405; - //BA.debugLineNum = 1638405;BA.debugLine="Sleep(0)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xmainpage", "b4xpage_closerequest"),(int) (0)); + //BA.debugLineNum = 566;BA.debugLine="Sleep(0)"; +parent.__c.Sleep(ba,this,(int) (0)); this.state = 7; return; case 7: //C this.state = 6; ; -RDebugUtils.currentLine=1638406; - //BA.debugLineNum = 1638406;BA.debugLine="ExitApplication"; + //BA.debugLineNum = 567;BA.debugLine="ExitApplication"; parent.__c.ExitApplication(); if (true) break; @@ -1207,427 +922,279 @@ case 6: //C this.state = -1; ; -RDebugUtils.currentLine=1638408; - //BA.debugLineNum = 1638408;BA.debugLine="Return False"; + //BA.debugLineNum = 569;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; -RDebugUtils.currentLine=1638409; - //BA.debugLineNum = 1638409;BA.debugLine="End Sub"; + //BA.debugLineNum = 570;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b4xpage_created(reparto_izca.keymon.lat.b4xmainpage __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=1310720; - //BA.debugLineNum = 1310720;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=1310721; - //BA.debugLineNum = 1310721;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=1310722; - //BA.debugLineNum = 1310722;BA.debugLine="B4XPages.GetManager.LogEvents = True"; +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 110;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 111;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 112;BA.debugLine="B4XPages.GetManager.LogEvents = True"; _b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (ba)._logevents /*boolean*/ = __c.True; -RDebugUtils.currentLine=1310723; - //BA.debugLineNum = 1310723;BA.debugLine="Root.LoadLayout(\"login\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("login",ba); -RDebugUtils.currentLine=1310724; - //BA.debugLineNum = 1310724;BA.debugLine="B4XPages.SetTitle(Me, \"Izca Reparto\")"; + //BA.debugLineNum = 113;BA.debugLine="Root.LoadLayout(\"login\")"; +_root.LoadLayout("login",ba); + //BA.debugLineNum = 114;BA.debugLine="B4XPages.SetTitle(Me, \"Izca Reparto\")"; _b4xpages._settitle /*String*/ (ba,this,(Object)("Izca Reparto")); -RDebugUtils.currentLine=1310725; - //BA.debugLineNum = 1310725;BA.debugLine="login.Initialize"; -__ref._login /*reparto_izca.keymon.lat.b4xmainpage*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=1310726; - //BA.debugLineNum = 1310726;BA.debugLine="B4XPages.AddPage(\"Login\", login)"; -_b4xpages._addpage /*String*/ (ba,"Login",(Object)(__ref._login /*reparto_izca.keymon.lat.b4xmainpage*/ )); -RDebugUtils.currentLine=1310727; - //BA.debugLineNum = 1310727;BA.debugLine="principal.Initialize"; -__ref._principal /*reparto_izca.keymon.lat.c_principal*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310728; - //BA.debugLineNum = 1310728;BA.debugLine="B4XPages.AddPage(\"Principal\", principal)"; -_b4xpages._addpage /*String*/ (ba,"Principal",(Object)(__ref._principal /*reparto_izca.keymon.lat.c_principal*/ )); -RDebugUtils.currentLine=1310729; - //BA.debugLineNum = 1310729;BA.debugLine="clientes.Initialize"; -__ref._clientes /*reparto_izca.keymon.lat.c_clientes*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310730; - //BA.debugLineNum = 1310730;BA.debugLine="B4XPages.AddPage(\"Clientes\", clientes)"; -_b4xpages._addpage /*String*/ (ba,"Clientes",(Object)(__ref._clientes /*reparto_izca.keymon.lat.c_clientes*/ )); -RDebugUtils.currentLine=1310731; - //BA.debugLineNum = 1310731;BA.debugLine="cliente.Initialize"; -__ref._cliente /*reparto_izca.keymon.lat.c_cliente*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310732; - //BA.debugLineNum = 1310732;BA.debugLine="B4XPages.AddPage(\"Cliente\", cliente)"; -_b4xpages._addpage /*String*/ (ba,"Cliente",(Object)(__ref._cliente /*reparto_izca.keymon.lat.c_cliente*/ )); -RDebugUtils.currentLine=1310735; - //BA.debugLineNum = 1310735;BA.debugLine="productos.Initialize"; -__ref._productos /*reparto_izca.keymon.lat.c_productos*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310736; - //BA.debugLineNum = 1310736;BA.debugLine="B4XPages.AddPage(\"Productos\", productos)"; -_b4xpages._addpage /*String*/ (ba,"Productos",(Object)(__ref._productos /*reparto_izca.keymon.lat.c_productos*/ )); -RDebugUtils.currentLine=1310737; - //BA.debugLineNum = 1310737;BA.debugLine="updateAvailable.Initialize"; -__ref._updateavailable /*reparto_izca.keymon.lat.c_updateavailable*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310738; - //BA.debugLineNum = 1310738;BA.debugLine="B4XPages.AddPage(\"updateAvailable\", updateAvailab"; -_b4xpages._addpage /*String*/ (ba,"updateAvailable",(Object)(__ref._updateavailable /*reparto_izca.keymon.lat.c_updateavailable*/ )); -RDebugUtils.currentLine=1310739; - //BA.debugLineNum = 1310739;BA.debugLine="mapas.Initialize"; -__ref._mapas /*reparto_izca.keymon.lat.c_mapas*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310740; - //BA.debugLineNum = 1310740;BA.debugLine="B4XPages.AddPage(\"Mapas\", mapas)"; -_b4xpages._addpage /*String*/ (ba,"Mapas",(Object)(__ref._mapas /*reparto_izca.keymon.lat.c_mapas*/ )); -RDebugUtils.currentLine=1310741; - //BA.debugLineNum = 1310741;BA.debugLine="nuevoCliente.Initialize"; -__ref._nuevocliente /*reparto_izca.keymon.lat.c_nuevocliente*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310742; - //BA.debugLineNum = 1310742;BA.debugLine="B4XPages.AddPage(\"NuevoCliente\", nuevoCliente)"; -_b4xpages._addpage /*String*/ (ba,"NuevoCliente",(Object)(__ref._nuevocliente /*reparto_izca.keymon.lat.c_nuevocliente*/ )); -RDebugUtils.currentLine=1310743; - //BA.debugLineNum = 1310743;BA.debugLine="ticketsDia.Initialize"; -__ref._ticketsdia /*reparto_izca.keymon.lat.c_ticketsdia*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310744; - //BA.debugLineNum = 1310744;BA.debugLine="B4XPages.AddPage(\"TicketsDia\", ticketsDia)"; -_b4xpages._addpage /*String*/ (ba,"TicketsDia",(Object)(__ref._ticketsdia /*reparto_izca.keymon.lat.c_ticketsdia*/ )); -RDebugUtils.currentLine=1310745; - //BA.debugLineNum = 1310745;BA.debugLine="noVenta.Initialize"; -__ref._noventa /*reparto_izca.keymon.lat.c_noventa*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310746; - //BA.debugLineNum = 1310746;BA.debugLine="B4XPages.AddPage(\"NoVenta\", noVenta)"; -_b4xpages._addpage /*String*/ (ba,"NoVenta",(Object)(__ref._noventa /*reparto_izca.keymon.lat.c_noventa*/ )); -RDebugUtils.currentLine=1310747; - //BA.debugLineNum = 1310747;BA.debugLine="pedidos.Initialize"; -__ref._pedidos /*reparto_izca.keymon.lat.c_pedidos*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310748; - //BA.debugLineNum = 1310748;BA.debugLine="B4XPages.AddPage(\"Pedidos\", pedidos)"; -_b4xpages._addpage /*String*/ (ba,"Pedidos",(Object)(__ref._pedidos /*reparto_izca.keymon.lat.c_pedidos*/ )); -RDebugUtils.currentLine=1310749; - //BA.debugLineNum = 1310749;BA.debugLine="buscar.Initialize"; -__ref._buscar /*reparto_izca.keymon.lat.c_buscar*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310750; - //BA.debugLineNum = 1310750;BA.debugLine="B4XPages.AddPage(\"Buscar\", buscar)"; -_b4xpages._addpage /*String*/ (ba,"Buscar",(Object)(__ref._buscar /*reparto_izca.keymon.lat.c_buscar*/ )); -RDebugUtils.currentLine=1310753; - //BA.debugLineNum = 1310753;BA.debugLine="detalleVenta.Initialize"; -__ref._detalleventa /*reparto_izca.keymon.lat.c_detalleventa*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310754; - //BA.debugLineNum = 1310754;BA.debugLine="B4XPages.AddPage(\"DetalleVenta\", detalleVenta)"; -_b4xpages._addpage /*String*/ (ba,"DetalleVenta",(Object)(__ref._detalleventa /*reparto_izca.keymon.lat.c_detalleventa*/ )); -RDebugUtils.currentLine=1310755; - //BA.debugLineNum = 1310755;BA.debugLine="detalle_promo.Initialize"; -__ref._detalle_promo /*reparto_izca.keymon.lat.c_detalle_promo*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310756; - //BA.debugLineNum = 1310756;BA.debugLine="B4XPages.AddPage(\"Detalle_Promo\", detalle_promo)"; -_b4xpages._addpage /*String*/ (ba,"Detalle_Promo",(Object)(__ref._detalle_promo /*reparto_izca.keymon.lat.c_detalle_promo*/ )); -RDebugUtils.currentLine=1310757; - //BA.debugLineNum = 1310757;BA.debugLine="tabulador.Initialize"; -__ref._tabulador /*reparto_izca.keymon.lat.c_tabulador*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310758; - //BA.debugLineNum = 1310758;BA.debugLine="B4XPages.AddPage(\"tabulador\", tabulador)"; -_b4xpages._addpage /*String*/ (ba,"tabulador",(Object)(__ref._tabulador /*reparto_izca.keymon.lat.c_tabulador*/ )); -RDebugUtils.currentLine=1310759; - //BA.debugLineNum = 1310759;BA.debugLine="checklist.Initialize"; -__ref._checklist /*reparto_izca.keymon.lat.c_cheklist*/ ._initialize /*Object*/ (null,ba); -RDebugUtils.currentLine=1310760; - //BA.debugLineNum = 1310760;BA.debugLine="B4XPages.AddPage(\"checklist\",checklist)"; -_b4xpages._addpage /*String*/ (ba,"checklist",(Object)(__ref._checklist /*reparto_izca.keymon.lat.c_cheklist*/ )); -RDebugUtils.currentLine=1310761; - //BA.debugLineNum = 1310761;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 115;BA.debugLine="login.Initialize"; +_login._initialize /*String*/ (ba); + //BA.debugLineNum = 116;BA.debugLine="B4XPages.AddPage(\"Login\", login)"; +_b4xpages._addpage /*String*/ (ba,"Login",(Object)(_login)); + //BA.debugLineNum = 117;BA.debugLine="principal.Initialize"; +_principal._initialize /*Object*/ (ba); + //BA.debugLineNum = 118;BA.debugLine="B4XPages.AddPage(\"Principal\", principal)"; +_b4xpages._addpage /*String*/ (ba,"Principal",(Object)(_principal)); + //BA.debugLineNum = 119;BA.debugLine="clientes.Initialize"; +_clientes._initialize /*Object*/ (ba); + //BA.debugLineNum = 120;BA.debugLine="B4XPages.AddPage(\"Clientes\", clientes)"; +_b4xpages._addpage /*String*/ (ba,"Clientes",(Object)(_clientes)); + //BA.debugLineNum = 121;BA.debugLine="cliente.Initialize"; +_cliente._initialize /*Object*/ (ba); + //BA.debugLineNum = 122;BA.debugLine="B4XPages.AddPage(\"Cliente\", cliente)"; +_b4xpages._addpage /*String*/ (ba,"Cliente",(Object)(_cliente)); + //BA.debugLineNum = 125;BA.debugLine="productos.Initialize"; +_productos._initialize /*Object*/ (ba); + //BA.debugLineNum = 126;BA.debugLine="B4XPages.AddPage(\"Productos\", productos)"; +_b4xpages._addpage /*String*/ (ba,"Productos",(Object)(_productos)); + //BA.debugLineNum = 127;BA.debugLine="updateAvailable.Initialize"; +_updateavailable._initialize /*Object*/ (ba); + //BA.debugLineNum = 128;BA.debugLine="B4XPages.AddPage(\"updateAvailable\", updateAvailab"; +_b4xpages._addpage /*String*/ (ba,"updateAvailable",(Object)(_updateavailable)); + //BA.debugLineNum = 129;BA.debugLine="mapas.Initialize"; +_mapas._initialize /*Object*/ (ba); + //BA.debugLineNum = 130;BA.debugLine="B4XPages.AddPage(\"Mapas\", mapas)"; +_b4xpages._addpage /*String*/ (ba,"Mapas",(Object)(_mapas)); + //BA.debugLineNum = 131;BA.debugLine="nuevoCliente.Initialize"; +_nuevocliente._initialize /*Object*/ (ba); + //BA.debugLineNum = 132;BA.debugLine="B4XPages.AddPage(\"NuevoCliente\", nuevoCliente)"; +_b4xpages._addpage /*String*/ (ba,"NuevoCliente",(Object)(_nuevocliente)); + //BA.debugLineNum = 133;BA.debugLine="ticketsDia.Initialize"; +_ticketsdia._initialize /*Object*/ (ba); + //BA.debugLineNum = 134;BA.debugLine="B4XPages.AddPage(\"TicketsDia\", ticketsDia)"; +_b4xpages._addpage /*String*/ (ba,"TicketsDia",(Object)(_ticketsdia)); + //BA.debugLineNum = 135;BA.debugLine="noVenta.Initialize"; +_noventa._initialize /*Object*/ (ba); + //BA.debugLineNum = 136;BA.debugLine="B4XPages.AddPage(\"NoVenta\", noVenta)"; +_b4xpages._addpage /*String*/ (ba,"NoVenta",(Object)(_noventa)); + //BA.debugLineNum = 137;BA.debugLine="pedidos.Initialize"; +_pedidos._initialize /*Object*/ (ba); + //BA.debugLineNum = 138;BA.debugLine="B4XPages.AddPage(\"Pedidos\", pedidos)"; +_b4xpages._addpage /*String*/ (ba,"Pedidos",(Object)(_pedidos)); + //BA.debugLineNum = 139;BA.debugLine="buscar.Initialize"; +_buscar._initialize /*Object*/ (ba); + //BA.debugLineNum = 140;BA.debugLine="B4XPages.AddPage(\"Buscar\", buscar)"; +_b4xpages._addpage /*String*/ (ba,"Buscar",(Object)(_buscar)); + //BA.debugLineNum = 143;BA.debugLine="detalleVenta.Initialize"; +_detalleventa._initialize /*Object*/ (ba); + //BA.debugLineNum = 144;BA.debugLine="B4XPages.AddPage(\"DetalleVenta\", detalleVenta)"; +_b4xpages._addpage /*String*/ (ba,"DetalleVenta",(Object)(_detalleventa)); + //BA.debugLineNum = 145;BA.debugLine="detalle_promo.Initialize"; +_detalle_promo._initialize /*Object*/ (ba); + //BA.debugLineNum = 146;BA.debugLine="B4XPages.AddPage(\"Detalle_Promo\", detalle_promo)"; +_b4xpages._addpage /*String*/ (ba,"Detalle_Promo",(Object)(_detalle_promo)); + //BA.debugLineNum = 147;BA.debugLine="tabulador.Initialize"; +_tabulador._initialize /*Object*/ (ba); + //BA.debugLineNum = 148;BA.debugLine="B4XPages.AddPage(\"tabulador\", tabulador)"; +_b4xpages._addpage /*String*/ (ba,"tabulador",(Object)(_tabulador)); + //BA.debugLineNum = 149;BA.debugLine="checklist.Initialize"; +_checklist._initialize /*Object*/ (ba); + //BA.debugLineNum = 150;BA.debugLine="B4XPages.AddPage(\"checklist\",checklist)"; +_b4xpages._addpage /*String*/ (ba,"checklist",(Object)(_checklist)); + //BA.debugLineNum = 151;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CAT_GUNAPROD3 (CAT_GP_INICIATIVA TEXT, CAT_GP_TIPOPROD TEXT, CAT_GP_DEV TEXT, CAT_GP_ALMACEN NUMERIC, CAT_GP_ID TEXT, CAT_GP_NOMBRE TEXT, CAT_GP_IMP1 TEXT, CAT_GP_IMP2 TEXT, CAT_GP_PRECIO TEXT, CAT_GP_CLASIF TEXT, CAT_GP_STS TEXT, CAT_GP_TIPO TEXT, CAT_GP_SUBTIPO TEXT, CAT_GP_IMG BLOB)"); -RDebugUtils.currentLine=1310762; - //BA.debugLineNum = 1310762;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CONVE"; + //BA.debugLineNum = 152;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CONVE"; _subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_CONVERSION1","TEXT"); -RDebugUtils.currentLine=1310763; - //BA.debugLineNum = 1310763;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_PRECI"; + //BA.debugLineNum = 153;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_PRECI"; _subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_PRECIO4","TEXT"); -RDebugUtils.currentLine=1310764; - //BA.debugLineNum = 1310764;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CANT_"; + //BA.debugLineNum = 154;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD3\", \"CAT_DP_CANT_"; _subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD3","CAT_DP_CANT_MIN_VENTA","TEXT"); -RDebugUtils.currentLine=1310765; - //BA.debugLineNum = 1310765;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 155;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOS (a_usuario TEXT, a_ruta TEXT, a_cliente TEXT, a_abono TEXT, a_fecha TEXT, a_enviado TEXT)"); -RDebugUtils.currentLine=1310766; - //BA.debugLineNum = 1310766;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 156;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PAGARES (PA_ALMACEN TEXT, PA_RUTA_REP TEXT, PA_RUTAPREV TEXT, PA_FECHA_PREV TEXT, PA_CAPTURA TEXT, PA_MONTO TEXT, PA_USUARIO TEXT, PA_CLIENTE TEXT)"); -RDebugUtils.currentLine=1310769; - //BA.debugLineNum = 1310769;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 159;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS PICK_CIEGO (PC_ID_PROD TEXT, PC_NOM_PROD TEXT, PC_CANT TEXT, PC_ALMACEN TEXT, PC_RUTA TEXT, PC_FECHA TEXT)"); -RDebugUtils.currentLine=1310770; - //BA.debugLineNum = 1310770;BA.debugLine="Subs.agregaColumna(\"PICK_CIEGO\", \"RESTA\", \"INT\")"; + //BA.debugLineNum = 160;BA.debugLine="Subs.agregaColumna(\"PICK_CIEGO\", \"RESTA\", \"INT\")"; _subs._agregacolumna /*String*/ (ba,"PICK_CIEGO","RESTA","INT"); -RDebugUtils.currentLine=1310772; - //BA.debugLineNum = 1310772;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 162;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ENV_MONTO_LIQ (EML_MONTO TEXT, EML_ALMACEN TEXT, EML_RUTA TEXT, EML_USUARIO TEXT, EML_FECHA_PED TEXT)"); -RDebugUtils.currentLine=1310773; - //BA.debugLineNum = 1310773;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 163;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS TABULADOR_MONEDAS(VEINTE TEXT, DIEZ TEXT, CINCO TEXT, DOS TEXT, PESO TEXT, CENTAVO TEXT, TOTAL TEXT)"); -RDebugUtils.currentLine=1310774; - //BA.debugLineNum = 1310774;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 164;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS TABULADOR_BILLETES(MIL TEXT, QUINIENTOS TEXT, DOCIENTOS TEXT, CIEN TEXT, CINCUENTA TEXT, VEINTE TEXT)"); -RDebugUtils.currentLine=1310775; - //BA.debugLineNum = 1310775;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 165;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS HIST_VENTAS2 (HVD_PARCIAL TEXT, HVD_RECHAZO TEXT, HVD_NUM_REGISTRO TEXT, HVD_NUM_TICKET TEXT, HVD_PROID TEXT, HVD_CODPROMO TEXT, HVD_FECHA TEXT, HVD_ESTATUS TEXT, HVD_CLIENTE TEXT, HVD_PRONOMBRE TEXT, HVD_CANT TEXT, HVD_COSTO_TOT TEXT)"); -RDebugUtils.currentLine=1310777; - //BA.debugLineNum = 1310777;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 167;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS RECHAZOS (R_FECHA TEXT, R_CLIENTE TEXT, R_CLI_ORIG TEXT, R_PRODID TEXT, R_CANT TEXT, R_RECHAZO INT)"); -RDebugUtils.currentLine=1310778; - //BA.debugLineNum = 1310778;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 168;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS VENTAS (V_FECHA TEXT, V_CLIENTE TEXT, V_CLI_ORIG TEXT, V_PRODID TEXT, V_CANT TEXT, V_RECHAZO INT)"); -RDebugUtils.currentLine=1310779; - //BA.debugLineNum = 1310779;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 169;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS ABONOSP(NOTA TEXT, CLIENTE TEXT, SALDO_PENDIENTE TEXT)"); -RDebugUtils.currentLine=1310781; - //BA.debugLineNum = 1310781;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 171;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECADO_CHECK(CHECADO TEXT)"); -RDebugUtils.currentLine=1310782; - //BA.debugLineNum = 1310782;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 172;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS BLOCKENVIO(ENVIADO TEXT)"); -RDebugUtils.currentLine=1310784; - //BA.debugLineNum = 1310784;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 174;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECKLIST(USUARIO TEXT, PLACA TEXT, FECHA_CAPTURA TEXT, TARJETA_CIRCULACION TEXT , POLIZA_SEGURO TEXT, LICENCIA_CONDUCIR TEXT, LIMPIA_EXTERNA TEXT, LIMPIA_INTERNA TEXT, TRIANGULO TEXT, GATO TEXT, LLANTA_REFACCION TEXT, CARROCERIA_BUENESTADO TEXT, CARROCERIA_MALESTADO TEXT, CARROCERIA_COMENTARIOS TEXT, LUCES_CORRECTO TEXT, LUCES_INCORRECTO TEXT, LUCES_COMENTARIOS TEXT, CONDICION_PLACAS_CORRECTO TEXT, CONDICION_PLACAS_INCORRECTO TEXT, CONDICION_PLACAS_COMENTARIOS TEXT, CONDICION_LLANTAS_DEL_DER TEXT, CONDICION_LLANTAS_DEL_IZQ TEXT, CONDICION_LLANTAS_TRASERA_DER TEXT, CONDICION_LLANTAS_TRASERA_IZQ TEXT, ACEITE TEXT, ANTICONGELANTE TEXT, FRENOS TEXT, AIRE TEXT, FUGAS TEXT, COMETARIOS_FUGAS TEXT, FOTO1 BLOB, FOTO12 BLOB, FOTO3 BLOB, FOTO4 BLOB)"); -RDebugUtils.currentLine=1310785; - //BA.debugLineNum = 1310785;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 175;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS CHECKLIST2(USUARIO TEXT, PLACA TEXT, FECHA_CAPTURA TEXT, TARJETA_CIRCULACION TEXT, POLIZA_SEGURO TEXT, LICENCIA_CONDUCIR TEXT, LIMPIA_EXTERNA TEXT, LIMPIA_INTERNA TEXT, TRIANGULO TEXT, GATO TEXT, LLANTA_REFACCION TEXT, CARROCERIA TEXT, CARROCERIA_COMENTARIOS TEXT, LUCES TEXT, LUCES_COMENTARIOS TEXT, CONDICION_PLACAS TEXT, CONDICION_PLACAS_COMENTARIOS TEXT, CONDICION_LLANTAS_DEL_DER TEXT, CONDICION_LLANTAS_DEL_IZQ TEXT, CONDICION_LLANTAS_TRASERA_DER TEXT, CONDICION_LLANTAS_TRASERA_IZQ TEXT, ACEITE TEXT, ANTICONGELANTE TEXT, FRENOS TEXT, AIRE TEXT, FUGAS TEXT, COMETARIOS_FUGAS TEXT, FOTO1 BLOB, FOTO12 BLOB, FOTO3 BLOB, FOTO4 BLOB, KILIMETRAJE TEXT, RUTA TEXT)"); -RDebugUtils.currentLine=1310786; - //BA.debugLineNum = 1310786;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRODREGISTRO\","; + //BA.debugLineNum = 176;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRODREGISTRO\","; _subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRODREGISTRO","TEXT"); -RDebugUtils.currentLine=1310787; - //BA.debugLineNum = 1310787;BA.debugLine="Subs.agregaColumna(\"PAGARES\", \"PA_TICKET\", \"TEXT\""; + //BA.debugLineNum = 177;BA.debugLine="Subs.agregaColumna(\"PAGARES\", \"PA_TICKET\", \"TEXT\""; _subs._agregacolumna /*String*/ (ba,"PAGARES","PA_TICKET","TEXT"); -RDebugUtils.currentLine=1310788; - //BA.debugLineNum = 1310788;BA.debugLine="Subs.agregaColumna(\"ABONOS\", \"a_tipoabono\", \"TEXT"; + //BA.debugLineNum = 178;BA.debugLine="Subs.agregaColumna(\"ABONOS\", \"a_tipoabono\", \"TEXT"; _subs._agregacolumna /*String*/ (ba,"ABONOS","a_tipoabono","TEXT"); -RDebugUtils.currentLine=1310789; - //BA.debugLineNum = 1310789;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"TIPO_PAGO\",\"TEXT\")"; + //BA.debugLineNum = 179;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"TIPO_PAGO\",\"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"ABONOS","TIPO_PAGO","TEXT"); -RDebugUtils.currentLine=1310790; - //BA.debugLineNum = 1310790;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"a_ticket\",\"TEXT\")"; + //BA.debugLineNum = 180;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"a_ticket\",\"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"ABONOS","a_ticket","TEXT"); -RDebugUtils.currentLine=1310791; - //BA.debugLineNum = 1310791;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"a_numpago\",\"TEXT\")"; + //BA.debugLineNum = 181;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"a_numpago\",\"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"ABONOS","a_numpago","TEXT"); -RDebugUtils.currentLine=1310792; - //BA.debugLineNum = 1310792;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"CONSECUTIVO\",\"TEXT\")"; + //BA.debugLineNum = 182;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"CONSECUTIVO\",\"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"ABONOS","CONSECUTIVO","TEXT"); -RDebugUtils.currentLine=1310793; - //BA.debugLineNum = 1310793;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"NUM_TICKET\",\"TEXT\")"; + //BA.debugLineNum = 183;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"NUM_TICKET\",\"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"ABONOS","NUM_TICKET","TEXT"); -RDebugUtils.currentLine=1310794; - //BA.debugLineNum = 1310794;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"RUTA_REP\",\"TEXT\")"; + //BA.debugLineNum = 184;BA.debugLine="Subs.agregaColumna(\"ABONOS\",\"RUTA_REP\",\"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"ABONOS","RUTA_REP","TEXT"); -RDebugUtils.currentLine=1310795; - //BA.debugLineNum = 1310795;BA.debugLine="Subs.agregaColumna(\"NOVENTA\", \"NV_RUTA\", \"TEXT\")"; + //BA.debugLineNum = 185;BA.debugLine="Subs.agregaColumna(\"NOVENTA\", \"NV_RUTA\", \"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"NOVENTA","NV_RUTA","TEXT"); -RDebugUtils.currentLine=1310796; - //BA.debugLineNum = 1310796;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"SECUENCIA\", \"INT\""; + //BA.debugLineNum = 186;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"SECUENCIA\", \"INT\""; _subs._agregacolumna /*String*/ (ba,"kmt_info","SECUENCIA","INT"); -RDebugUtils.currentLine=1310797; - //BA.debugLineNum = 1310797;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"HORAENT\", \"TEXT\")"; + //BA.debugLineNum = 187;BA.debugLine="Subs.agregaColumna(\"kmt_info\", \"HORAENT\", \"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"kmt_info","HORAENT","TEXT"); -RDebugUtils.currentLine=1310798; - //BA.debugLineNum = 1310798;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRODID\", \"TEXT"; + //BA.debugLineNum = 188;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRODID\", \"TEXT"; _subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRODID","TEXT"); -RDebugUtils.currentLine=1310799; - //BA.debugLineNum = 1310799;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CLIENTEOR\", \"TEX"; + //BA.debugLineNum = 189;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CLIENTEOR\", \"TEX"; _subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_CLIENTEOR","TEXT"); -RDebugUtils.currentLine=1310800; - //BA.debugLineNum = 1310800;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CAJAS\", \"TEXT\")"; + //BA.debugLineNum = 190;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_CAJAS\", \"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_CAJAS","TEXT"); -RDebugUtils.currentLine=1310801; - //BA.debugLineNum = 1310801;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_REGALO\", \"TEXT\")"; + //BA.debugLineNum = 191;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_REGALO\", \"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_REGALO","TEXT"); -RDebugUtils.currentLine=1310802; - //BA.debugLineNum = 1310802;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_BCAJAS\", \"TEXT\")"; + //BA.debugLineNum = 192;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"PE_BCAJAS\", \"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"PEDIDO","PE_BCAJAS","TEXT"); -RDebugUtils.currentLine=1310803; - //BA.debugLineNum = 1310803;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"CONSECUTIVO\", \"TEXT"; + //BA.debugLineNum = 193;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"CONSECUTIVO\", \"TEXT"; _subs._agregacolumna /*String*/ (ba,"PEDIDO","CONSECUTIVO","TEXT"); -RDebugUtils.currentLine=1310804; - //BA.debugLineNum = 1310804;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"FECHA_PREV\", \"TEXT\""; + //BA.debugLineNum = 194;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"FECHA_PREV\", \"TEXT\""; _subs._agregacolumna /*String*/ (ba,"PEDIDO","FECHA_PREV","TEXT"); -RDebugUtils.currentLine=1310805; - //BA.debugLineNum = 1310805;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"RUTA_REP\", \"TEXT\")"; + //BA.debugLineNum = 195;BA.debugLine="Subs.agregaColumna(\"PEDIDO\", \"RUTA_REP\", \"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"PEDIDO","RUTA_REP","TEXT"); -RDebugUtils.currentLine=1310806; - //BA.debugLineNum = 1310806;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_CLI_ORIG\", \"TE"; + //BA.debugLineNum = 196;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_CLI_ORIG\", \"TE"; _subs._agregacolumna /*String*/ (ba,"REPARTO","REP_CLI_ORIG","TEXT"); -RDebugUtils.currentLine=1310807; - //BA.debugLineNum = 1310807;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRECIO\", \"TEXT"; + //BA.debugLineNum = 197;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_PRECIO\", \"TEXT"; _subs._agregacolumna /*String*/ (ba,"REPARTO","REP_PRECIO","TEXT"); -RDebugUtils.currentLine=1310808; - //BA.debugLineNum = 1310808;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_RECHAZO\", \"INT"; + //BA.debugLineNum = 198;BA.debugLine="Subs.agregaColumna(\"REPARTO\", \"REP_RECHAZO\", \"INT"; _subs._agregacolumna /*String*/ (ba,"REPARTO","REP_RECHAZO","INTEGER"); -RDebugUtils.currentLine=1310809; - //BA.debugLineNum = 1310809;BA.debugLine="Subs.agregaColumna(\"RECHAZOS\", \"R_PRECIO\", \"TEXT\""; + //BA.debugLineNum = 199;BA.debugLine="Subs.agregaColumna(\"RECHAZOS\", \"R_PRECIO\", \"TEXT\""; _subs._agregacolumna /*String*/ (ba,"RECHAZOS","R_PRECIO","TEXT"); -RDebugUtils.currentLine=1310810; - //BA.debugLineNum = 1310810;BA.debugLine="Subs.agregaColumna(\"VENTAS\", \"V_PRECIO\", \"TEXT\")"; + //BA.debugLineNum = 200;BA.debugLine="Subs.agregaColumna(\"VENTAS\", \"V_PRECIO\", \"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"VENTAS","V_PRECIO","TEXT"); -RDebugUtils.currentLine=1310811; - //BA.debugLineNum = 1310811;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"PLACA\",\"TEXT\")"; + //BA.debugLineNum = 201;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"PLACA\",\"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","PLACA","TEXT"); -RDebugUtils.currentLine=1310812; - //BA.debugLineNum = 1310812;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_BCREDITO\",\""; + //BA.debugLineNum = 202;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_USUARIO\",\"T"; +_subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_USUARIO","TEXT"); + //BA.debugLineNum = 203;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_BCREDITO\",\""; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_BCREDITO","TEXT"); -RDebugUtils.currentLine=1310813; - //BA.debugLineNum = 1310813;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT"; + //BA.debugLineNum = 204;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT"; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANT","TEXT"); -RDebugUtils.currentLine=1310814; - //BA.debugLineNum = 1310814;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CONSECUTIVO\",\"T"; + //BA.debugLineNum = 205;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CONSECUTIVO\",\"T"; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CONSECUTIVO","TEXT"); -RDebugUtils.currentLine=1310815; - //BA.debugLineNum = 1310815;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT"; + //BA.debugLineNum = 206;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT"; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANT","TEXT"); -RDebugUtils.currentLine=1310816; - //BA.debugLineNum = 1310816;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"ESPROMO\",\"TEXT\""; + //BA.debugLineNum = 207;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"ESPROMO\",\"TEXT\""; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","ESPROMO","TEXT"); -RDebugUtils.currentLine=1310817; - //BA.debugLineNum = 1310817;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT"; + //BA.debugLineNum = 208;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"HVD_RECHAZOCANT"; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","HVD_RECHAZOCANTC","TEXT"); -RDebugUtils.currentLine=1310818; - //BA.debugLineNum = 1310818;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"BCAJAS\",\"TEXT\")"; + //BA.debugLineNum = 209;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"BCAJAS\",\"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","BCAJAS","TEXT"); -RDebugUtils.currentLine=1310819; - //BA.debugLineNum = 1310819;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CANTC\",\"TEXT\")"; + //BA.debugLineNum = 210;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CANTC\",\"TEXT\")"; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CANTC","TEXT"); -RDebugUtils.currentLine=1310820; - //BA.debugLineNum = 1310820;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"BCAJAS_OR\",\"TEX"; + //BA.debugLineNum = 211;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"BCAJAS_OR\",\"TEX"; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","BCAJAS_OR","TEXT"); -RDebugUtils.currentLine=1310821; - //BA.debugLineNum = 1310821;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CANTC_OR\",\"TEXT"; + //BA.debugLineNum = 212;BA.debugLine="Subs.agregaColumna(\"HIST_VENTAS\",\"CANTC_OR\",\"TEXT"; _subs._agregacolumna /*String*/ (ba,"HIST_VENTAS","CANTC_OR","TEXT"); -RDebugUtils.currentLine=1310822; - //BA.debugLineNum = 1310822;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\",\"CONVERSION\",\"T"; + //BA.debugLineNum = 213;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\",\"CONVERSION\",\"T"; _subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","CONVERSION","TEXT"); -RDebugUtils.currentLine=1310823; - //BA.debugLineNum = 1310823;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\",\"PRECIOCONVER\","; + //BA.debugLineNum = 214;BA.debugLine="Subs.agregaColumna(\"CAT_GUNAPROD\",\"PRECIOCONVER\","; _subs._agregacolumna /*String*/ (ba,"CAT_GUNAPROD","PRECIOCONVER","TEXT"); -RDebugUtils.currentLine=1310824; - //BA.debugLineNum = 1310824;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 215;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTAA (RUTAA TEXT)"); -RDebugUtils.currentLine=1310825; - //BA.debugLineNum = 1310825;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; + //BA.debugLineNum = 216;BA.debugLine="Starter.skmt.ExecNonQuery(\"CREATE TABLE IF NOT EX"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("CREATE TABLE IF NOT EXISTS wayPoints (codigo TEXT, indice INT)"); -RDebugUtils.currentLine=1310826; - //BA.debugLineNum = 1310826;BA.debugLine="Dim server As String = \"http://keymon.net:1781\""; + //BA.debugLineNum = 217;BA.debugLine="Dim server As String = \"http://keymon.net:1781\""; _server = "http://keymon.net:1781"; -RDebugUtils.currentLine=1310832; - //BA.debugLineNum = 1310832;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=1310833; - //BA.debugLineNum = 1310833;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server"; -__c.LogImpl("21310833",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); -RDebugUtils.currentLine=1310834; - //BA.debugLineNum = 1310834;BA.debugLine="Label1.Text = Application.VersionName"; -__ref._label1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Application.getVersionName())); -RDebugUtils.currentLine=1310836; - //BA.debugLineNum = 1310836;BA.debugLine="Log(\"provider\")"; -__c.LogImpl("21310836","provider",0); -RDebugUtils.currentLine=1310837; - //BA.debugLineNum = 1310837;BA.debugLine="Provider.Initialize"; -__ref._provider /*reparto_izca.keymon.lat.fileprovider*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=1310845; - //BA.debugLineNum = 1310845;BA.debugLine="End Sub"; + //BA.debugLineNum = 223;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 224;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server"; +__c.LogImpl("01572978",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); + //BA.debugLineNum = 225;BA.debugLine="Label1.Text = Application.VersionName"; +_label1.setText(BA.ObjectToCharSequence(__c.Application.getVersionName())); + //BA.debugLineNum = 227;BA.debugLine="Log(\"provider\")"; +__c.LogImpl("01572981","provider",0); + //BA.debugLineNum = 228;BA.debugLine="Provider.Initialize"; +_provider._initialize /*String*/ (ba); + //BA.debugLineNum = 236;BA.debugLine="End Sub"; return ""; } -public String _initialize(reparto_izca.keymon.lat.b4xmainpage __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=1245184; - //BA.debugLineNum = 1245184;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=1245186; - //BA.debugLineNum = 1245186;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -RDebugUtils.currentLine=1179648; - //BA.debugLineNum = 1179648;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=1179649; - //BA.debugLineNum = 1179649;BA.debugLine="Dim rp As RuntimePermissions"; +public String _class_globals() throws Exception{ + //BA.debugLineNum = 18;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 19;BA.debugLine="Dim rp As RuntimePermissions"; _rp = new anywheresoftware.b4a.objects.RuntimePermissions(); -RDebugUtils.currentLine=1179650; - //BA.debugLineNum = 1179650;BA.debugLine="Private Root As B4XView"; + //BA.debugLineNum = 20;BA.debugLine="Private Root As B4XView"; _root = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=1179651; - //BA.debugLineNum = 1179651;BA.debugLine="Private xui As XUI"; + //BA.debugLineNum = 21;BA.debugLine="Private xui As XUI"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=1179652; - //BA.debugLineNum = 1179652;BA.debugLine="Private Root As B4XView"; + //BA.debugLineNum = 22;BA.debugLine="Private Root As B4XView"; _root = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=1179653; - //BA.debugLineNum = 1179653;BA.debugLine="Public rp As RuntimePermissions"; + //BA.debugLineNum = 23;BA.debugLine="Public rp As RuntimePermissions"; _rp = new anywheresoftware.b4a.objects.RuntimePermissions(); -RDebugUtils.currentLine=1179654; - //BA.debugLineNum = 1179654;BA.debugLine="Public login As B4XMainPage"; + //BA.debugLineNum = 24;BA.debugLine="Public login As B4XMainPage"; _login = new reparto_izca.keymon.lat.b4xmainpage(); -RDebugUtils.currentLine=1179655; - //BA.debugLineNum = 1179655;BA.debugLine="Public principal As C_Principal"; + //BA.debugLineNum = 25;BA.debugLine="Public principal As C_Principal"; _principal = new reparto_izca.keymon.lat.c_principal(); -RDebugUtils.currentLine=1179656; - //BA.debugLineNum = 1179656;BA.debugLine="Public clientes As C_Clientes"; + //BA.debugLineNum = 26;BA.debugLine="Public clientes As C_Clientes"; _clientes = new reparto_izca.keymon.lat.c_clientes(); -RDebugUtils.currentLine=1179657; - //BA.debugLineNum = 1179657;BA.debugLine="Public cliente As C_Cliente"; + //BA.debugLineNum = 27;BA.debugLine="Public cliente As C_Cliente"; _cliente = new reparto_izca.keymon.lat.c_cliente(); -RDebugUtils.currentLine=1179659; - //BA.debugLineNum = 1179659;BA.debugLine="Public productos As C_Productos"; + //BA.debugLineNum = 29;BA.debugLine="Public productos As C_Productos"; _productos = new reparto_izca.keymon.lat.c_productos(); -RDebugUtils.currentLine=1179660; - //BA.debugLineNum = 1179660;BA.debugLine="Public updateAvailable As C_UpdateAvailable"; + //BA.debugLineNum = 30;BA.debugLine="Public updateAvailable As C_UpdateAvailable"; _updateavailable = new reparto_izca.keymon.lat.c_updateavailable(); -RDebugUtils.currentLine=1179661; - //BA.debugLineNum = 1179661;BA.debugLine="Public mapas As C_Mapas"; + //BA.debugLineNum = 31;BA.debugLine="Public mapas As C_Mapas"; _mapas = new reparto_izca.keymon.lat.c_mapas(); -RDebugUtils.currentLine=1179662; - //BA.debugLineNum = 1179662;BA.debugLine="Public nuevoCliente As C_NuevoCliente"; + //BA.debugLineNum = 32;BA.debugLine="Public nuevoCliente As C_NuevoCliente"; _nuevocliente = new reparto_izca.keymon.lat.c_nuevocliente(); -RDebugUtils.currentLine=1179663; - //BA.debugLineNum = 1179663;BA.debugLine="Public ticketsDia As C_TicketsDia"; + //BA.debugLineNum = 33;BA.debugLine="Public ticketsDia As C_TicketsDia"; _ticketsdia = new reparto_izca.keymon.lat.c_ticketsdia(); -RDebugUtils.currentLine=1179664; - //BA.debugLineNum = 1179664;BA.debugLine="Public noVenta As C_NoVenta"; + //BA.debugLineNum = 34;BA.debugLine="Public noVenta As C_NoVenta"; _noventa = new reparto_izca.keymon.lat.c_noventa(); -RDebugUtils.currentLine=1179665; - //BA.debugLineNum = 1179665;BA.debugLine="Public pedidos As C_Pedidos"; + //BA.debugLineNum = 35;BA.debugLine="Public pedidos As C_Pedidos"; _pedidos = new reparto_izca.keymon.lat.c_pedidos(); -RDebugUtils.currentLine=1179666; - //BA.debugLineNum = 1179666;BA.debugLine="Public buscar As C_Buscar"; + //BA.debugLineNum = 36;BA.debugLine="Public buscar As C_Buscar"; _buscar = new reparto_izca.keymon.lat.c_buscar(); -RDebugUtils.currentLine=1179668; - //BA.debugLineNum = 1179668;BA.debugLine="Public detalleVenta As C_DetalleVenta"; + //BA.debugLineNum = 38;BA.debugLine="Public detalleVenta As C_DetalleVenta"; _detalleventa = new reparto_izca.keymon.lat.c_detalleventa(); -RDebugUtils.currentLine=1179669; - //BA.debugLineNum = 1179669;BA.debugLine="Public detalle_promo As C_Detalle_Promo"; + //BA.debugLineNum = 39;BA.debugLine="Public detalle_promo As C_Detalle_Promo"; _detalle_promo = new reparto_izca.keymon.lat.c_detalle_promo(); -RDebugUtils.currentLine=1179670; - //BA.debugLineNum = 1179670;BA.debugLine="Dim reqManager As DBRequestManager"; + //BA.debugLineNum = 40;BA.debugLine="Dim reqManager As DBRequestManager"; _reqmanager = new reparto_izca.keymon.lat.dbrequestmanager(); -RDebugUtils.currentLine=1179672; - //BA.debugLineNum = 1179672;BA.debugLine="Dim usuario As String"; + //BA.debugLineNum = 42;BA.debugLine="Dim usuario As String"; _usuario = ""; -RDebugUtils.currentLine=1179673; - //BA.debugLineNum = 1179673;BA.debugLine="Dim logger As Boolean = True"; + //BA.debugLineNum = 43;BA.debugLine="Dim logger As Boolean = True"; _logger = __c.True; -RDebugUtils.currentLine=1179674; - //BA.debugLineNum = 1179674;BA.debugLine="Dim lat_gps, lon_gps As String"; + //BA.debugLineNum = 44;BA.debugLine="Dim lat_gps, lon_gps As String"; _lat_gps = ""; _lon_gps = ""; -RDebugUtils.currentLine=1179676; - //BA.debugLineNum = 1179676;BA.debugLine="Dim usuario As String"; + //BA.debugLineNum = 46;BA.debugLine="Dim usuario As String"; _usuario = ""; -RDebugUtils.currentLine=1179677; - //BA.debugLineNum = 1179677;BA.debugLine="Dim server As String"; + //BA.debugLineNum = 47;BA.debugLine="Dim server As String"; _server = ""; -RDebugUtils.currentLine=1179678; - //BA.debugLineNum = 1179678;BA.debugLine="Dim montoActual, clientesTotal, clientesVenta, cl"; + //BA.debugLineNum = 48;BA.debugLine="Dim montoActual, clientesTotal, clientesVenta, cl"; _montoactual = ""; _clientestotal = ""; _clientesventa = ""; @@ -1636,345 +1203,228 @@ _clientesvisitados = ""; _almacen = ""; _rutapreventa = ""; _cantidadprod = ""; -RDebugUtils.currentLine=1179679; - //BA.debugLineNum = 1179679;BA.debugLine="Dim ultimaActualizacionGPS As String = 235959"; + //BA.debugLineNum = 49;BA.debugLine="Dim ultimaActualizacionGPS As String = 235959"; _ultimaactualizaciongps = BA.NumberToString(235959); -RDebugUtils.currentLine=1179680; - //BA.debugLineNum = 1179680;BA.debugLine="Dim fechaRuta As String"; + //BA.debugLineNum = 50;BA.debugLine="Dim fechaRuta As String"; _fecharuta = ""; -RDebugUtils.currentLine=1179683; - //BA.debugLineNum = 1179683;BA.debugLine="Dim srvIp As String"; + //BA.debugLineNum = 53;BA.debugLine="Dim srvIp As String"; _srvip = ""; -RDebugUtils.currentLine=1179684; - //BA.debugLineNum = 1179684;BA.debugLine="Dim phn As Phone"; + //BA.debugLineNum = 54;BA.debugLine="Dim phn As Phone"; _phn = new anywheresoftware.b4a.phone.Phone(); -RDebugUtils.currentLine=1179685; - //BA.debugLineNum = 1179685;BA.debugLine="Dim user As EditText"; + //BA.debugLineNum = 55;BA.debugLine="Dim user As EditText"; _user = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=1179686; - //BA.debugLineNum = 1179686;BA.debugLine="Dim pass As EditText"; + //BA.debugLineNum = 56;BA.debugLine="Dim pass As EditText"; _pass = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=1179687; - //BA.debugLineNum = 1179687;BA.debugLine="Dim c As Cursor"; + //BA.debugLineNum = 57;BA.debugLine="Dim c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=1179688; - //BA.debugLineNum = 1179688;BA.debugLine="Dim existe As String"; + //BA.debugLineNum = 58;BA.debugLine="Dim existe As String"; _existe = ""; -RDebugUtils.currentLine=1179689; - //BA.debugLineNum = 1179689;BA.debugLine="Dim paso1 As String"; + //BA.debugLineNum = 59;BA.debugLine="Dim paso1 As String"; _paso1 = ""; -RDebugUtils.currentLine=1179690; - //BA.debugLineNum = 1179690;BA.debugLine="Private IMEN As Label"; + //BA.debugLineNum = 60;BA.debugLine="Private IMEN As Label"; _imen = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=1179691; - //BA.debugLineNum = 1179691;BA.debugLine="Dim IMEI As String"; + //BA.debugLineNum = 61;BA.debugLine="Dim IMEI As String"; _imei = ""; -RDebugUtils.currentLine=1179692; - //BA.debugLineNum = 1179692;BA.debugLine="Private Label1 As Label"; + //BA.debugLineNum = 62;BA.debugLine="Private Label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=1179693; - //BA.debugLineNum = 1179693;BA.debugLine="Dim server As String"; + //BA.debugLineNum = 63;BA.debugLine="Dim server As String"; _server = ""; -RDebugUtils.currentLine=1179694; - //BA.debugLineNum = 1179694;BA.debugLine="Private p_principal As Panel"; + //BA.debugLineNum = 64;BA.debugLine="Private p_principal As Panel"; _p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=1179695; - //BA.debugLineNum = 1179695;BA.debugLine="Private Entrar As Button"; + //BA.debugLineNum = 65;BA.debugLine="Private Entrar As Button"; _entrar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179696; - //BA.debugLineNum = 1179696;BA.debugLine="Public checklist As C_Cheklist"; + //BA.debugLineNum = 66;BA.debugLine="Public checklist As C_Cheklist"; _checklist = new reparto_izca.keymon.lat.c_cheklist(); -RDebugUtils.currentLine=1179697; - //BA.debugLineNum = 1179697;BA.debugLine="Public tabulador As C_tabulador"; + //BA.debugLineNum = 67;BA.debugLine="Public tabulador As C_tabulador"; _tabulador = new reparto_izca.keymon.lat.c_tabulador(); -RDebugUtils.currentLine=1179698; - //BA.debugLineNum = 1179698;BA.debugLine="Dim batt As Int"; + //BA.debugLineNum = 68;BA.debugLine="Dim batt As Int"; _batt = 0; -RDebugUtils.currentLine=1179699; - //BA.debugLineNum = 1179699;BA.debugLine="Dim porVisitar, entregas, rechazos, montoEntregad"; + //BA.debugLineNum = 69;BA.debugLine="Dim porVisitar, entregas, rechazos, montoEntregad"; _porvisitar = ""; _entregas = ""; _rechazos = ""; _montoentregado = ""; _montorechazado = ""; _visitadostotales = ""; -RDebugUtils.currentLine=1179700; - //BA.debugLineNum = 1179700;BA.debugLine="Private p_appUpdate As Panel"; + //BA.debugLineNum = 70;BA.debugLine="Private p_appUpdate As Panel"; _p_appupdate = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=1179701; - //BA.debugLineNum = 1179701;BA.debugLine="Private i_engrane As ImageView"; + //BA.debugLineNum = 71;BA.debugLine="Private i_engrane As ImageView"; _i_engrane = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=1179702; - //BA.debugLineNum = 1179702;BA.debugLine="Private b_server As Button"; + //BA.debugLineNum = 72;BA.debugLine="Private b_server As Button"; _b_server = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179703; - //BA.debugLineNum = 1179703;BA.debugLine="Private b_apk As Button"; + //BA.debugLineNum = 73;BA.debugLine="Private b_apk As Button"; _b_apk = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179704; - //BA.debugLineNum = 1179704;BA.debugLine="Private b_envioBD As Button"; + //BA.debugLineNum = 74;BA.debugLine="Private b_envioBD As Button"; _b_enviobd = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179705; - //BA.debugLineNum = 1179705;BA.debugLine="Private b_regesar As Button"; + //BA.debugLineNum = 75;BA.debugLine="Private b_regesar As Button"; _b_regesar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179706; - //BA.debugLineNum = 1179706;BA.debugLine="Private et_server As EditText"; + //BA.debugLineNum = 76;BA.debugLine="Private et_server As EditText"; _et_server = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=1179707; - //BA.debugLineNum = 1179707;BA.debugLine="Private p_serverList As Panel"; + //BA.debugLineNum = 77;BA.debugLine="Private p_serverList As Panel"; _p_serverlist = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=1179708; - //BA.debugLineNum = 1179708;BA.debugLine="Private lv_server As ListView"; + //BA.debugLineNum = 78;BA.debugLine="Private lv_server As ListView"; _lv_server = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=1179709; - //BA.debugLineNum = 1179709;BA.debugLine="Public Provider As FileProvider"; + //BA.debugLineNum = 79;BA.debugLine="Public Provider As FileProvider"; _provider = new reparto_izca.keymon.lat.fileprovider(); -RDebugUtils.currentLine=1179710; - //BA.debugLineNum = 1179710;BA.debugLine="Public rutaBDBackup As String = \"\""; + //BA.debugLineNum = 80;BA.debugLine="Public rutaBDBackup As String = \"\""; _rutabdbackup = ""; -RDebugUtils.currentLine=1179711; - //BA.debugLineNum = 1179711;BA.debugLine="Private B_Can_Monto As Button"; + //BA.debugLineNum = 81;BA.debugLine="Private B_Can_Monto As Button"; _b_can_monto = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179712; - //BA.debugLineNum = 1179712;BA.debugLine="Private B_Aceptar_Monto As Button"; + //BA.debugLineNum = 82;BA.debugLine="Private B_Aceptar_Monto As Button"; _b_aceptar_monto = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179713; - //BA.debugLineNum = 1179713;BA.debugLine="Private ET_Add_Monto As EditText"; + //BA.debugLineNum = 83;BA.debugLine="Private ET_Add_Monto As EditText"; _et_add_monto = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=1179714; - //BA.debugLineNum = 1179714;BA.debugLine="Private p_add_monto As Panel"; + //BA.debugLineNum = 84;BA.debugLine="Private p_add_monto As Panel"; _p_add_monto = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=1179715; - //BA.debugLineNum = 1179715;BA.debugLine="Dim sDate, sTime As String"; + //BA.debugLineNum = 85;BA.debugLine="Dim sDate, sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=1179716; - //BA.debugLineNum = 1179716;BA.debugLine="Private p_validacion As Panel"; + //BA.debugLineNum = 86;BA.debugLine="Private p_validacion As Panel"; _p_validacion = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=1179717; - //BA.debugLineNum = 1179717;BA.debugLine="Private b_cancelarcodigo As Button"; + //BA.debugLineNum = 87;BA.debugLine="Private b_cancelarcodigo As Button"; _b_cancelarcodigo = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179718; - //BA.debugLineNum = 1179718;BA.debugLine="Private b_aceptar As Button"; + //BA.debugLineNum = 88;BA.debugLine="Private b_aceptar As Button"; _b_aceptar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179719; - //BA.debugLineNum = 1179719;BA.debugLine="Private et_codigo As EditText"; + //BA.debugLineNum = 89;BA.debugLine="Private et_codigo As EditText"; _et_codigo = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=1179720; - //BA.debugLineNum = 1179720;BA.debugLine="Private P_CIEGO As Panel"; + //BA.debugLineNum = 90;BA.debugLine="Private P_CIEGO As Panel"; _p_ciego = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=1179721; - //BA.debugLineNum = 1179721;BA.debugLine="Private b_terpc As Button"; + //BA.debugLineNum = 91;BA.debugLine="Private b_terpc As Button"; _b_terpc = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179722; - //BA.debugLineNum = 1179722;BA.debugLine="Private B_PC_ENV As Button"; + //BA.debugLineNum = 92;BA.debugLine="Private B_PC_ENV As Button"; _b_pc_env = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179723; - //BA.debugLineNum = 1179723;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView"; + //BA.debugLineNum = 93;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView"; _clv_pick_ciego = new b4a.example3.customlistview(); -RDebugUtils.currentLine=1179724; - //BA.debugLineNum = 1179724;BA.debugLine="Private et_buspc As EditText"; + //BA.debugLineNum = 94;BA.debugLine="Private et_buspc As EditText"; _et_buspc = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=1179725; - //BA.debugLineNum = 1179725;BA.debugLine="Dim q_buscar As String"; + //BA.debugLineNum = 95;BA.debugLine="Dim q_buscar As String"; _q_buscar = ""; -RDebugUtils.currentLine=1179726; - //BA.debugLineNum = 1179726;BA.debugLine="Dim d As Cursor"; + //BA.debugLineNum = 96;BA.debugLine="Dim d As Cursor"; _d = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=1179727; - //BA.debugLineNum = 1179727;BA.debugLine="Private L_PICK_CIEGO As Label"; + //BA.debugLineNum = 97;BA.debugLine="Private L_PICK_CIEGO As Label"; _l_pick_ciego = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=1179728; - //BA.debugLineNum = 1179728;BA.debugLine="Private ET_PICK_CIEGO As EditText"; + //BA.debugLineNum = 98;BA.debugLine="Private ET_PICK_CIEGO As EditText"; _et_pick_ciego = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=1179729; - //BA.debugLineNum = 1179729;BA.debugLine="Dim a As Cursor"; + //BA.debugLineNum = 99;BA.debugLine="Dim a As Cursor"; _a = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=1179730; - //BA.debugLineNum = 1179730;BA.debugLine="Dim f As Cursor"; + //BA.debugLineNum = 100;BA.debugLine="Dim f As Cursor"; _f = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=1179731; - //BA.debugLineNum = 1179731;BA.debugLine="Private b_abono As Button"; + //BA.debugLineNum = 101;BA.debugLine="Private b_abono As Button"; _b_abono = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=1179732; - //BA.debugLineNum = 1179732;BA.debugLine="Dim monto_entregadoactual As String"; + //BA.debugLineNum = 102;BA.debugLine="Dim monto_entregadoactual As String"; _monto_entregadoactual = ""; -RDebugUtils.currentLine=1179733; - //BA.debugLineNum = 1179733;BA.debugLine="End Sub"; + //BA.debugLineNum = 103;BA.debugLine="End Sub"; return ""; } -public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(reparto_izca.keymon.lat.b4xmainpage __ref,String _id_prod,String _prod,String _cant) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "createlistitem", false)) - {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_id_prod,_prod,_cant}));} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _id_prod,String _prod,String _cant) throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _pa = null; -RDebugUtils.currentLine=3080192; - //BA.debugLineNum = 3080192;BA.debugLine="Sub CreateListItem(Id_prod As String, Prod As Stri"; -RDebugUtils.currentLine=3080193; - //BA.debugLineNum = 3080193;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")"; + //BA.debugLineNum = 990;BA.debugLine="Sub CreateListItem(Id_prod As String, Prod As Stri"; + //BA.debugLineNum = 991;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")"; _pa = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pa = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=3080194; - //BA.debugLineNum = 3080194;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)"; +_pa = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 992;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)"; _pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10)); -RDebugUtils.currentLine=3080195; - //BA.debugLineNum = 3080195;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")"; + //BA.debugLineNum = 993;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")"; _pa.LoadLayout("PANEL_PICK_CIEGO",ba); -RDebugUtils.currentLine=3080196; - //BA.debugLineNum = 3080196;BA.debugLine="pa.Height = 55dip"; + //BA.debugLineNum = 994;BA.debugLine="pa.Height = 55dip"; _pa.setHeight(__c.DipToCurrent((int) (55))); -RDebugUtils.currentLine=3080197; - //BA.debugLineNum = 3080197;BA.debugLine="pa.Width = 298dip"; + //BA.debugLineNum = 995;BA.debugLine="pa.Width = 298dip"; _pa.setWidth(__c.DipToCurrent((int) (298))); -RDebugUtils.currentLine=3080199; - //BA.debugLineNum = 3080199;BA.debugLine="L_PICK_CIEGO.Text = Id_prod & CRLF & Prod"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod)); -RDebugUtils.currentLine=3080200; - //BA.debugLineNum = 3080200;BA.debugLine="L_PICK_CIEGO.TextSize = 12"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12)); -RDebugUtils.currentLine=3080201; - //BA.debugLineNum = 3080201;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL)); -RDebugUtils.currentLine=3080202; - //BA.debugLineNum = 3080202;BA.debugLine="ET_PICK_CIEGO.Text = cant"; -__ref._et_pick_ciego /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_cant)); -RDebugUtils.currentLine=3080205; - //BA.debugLineNum = 3080205;BA.debugLine="Return pa"; + //BA.debugLineNum = 997;BA.debugLine="L_PICK_CIEGO.Text = Id_prod & CRLF & Prod"; +_l_pick_ciego.setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod)); + //BA.debugLineNum = 998;BA.debugLine="L_PICK_CIEGO.TextSize = 12"; +_l_pick_ciego.setTextSize((float) (12)); + //BA.debugLineNum = 999;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT"; +_l_pick_ciego.setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL)); + //BA.debugLineNum = 1000;BA.debugLine="ET_PICK_CIEGO.Text = cant"; +_et_pick_ciego.setText(BA.ObjectToCharSequence(_cant)); + //BA.debugLineNum = 1003;BA.debugLine="Return pa"; if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject())); -RDebugUtils.currentLine=3080206; - //BA.debugLineNum = 3080206;BA.debugLine="End Sub"; + //BA.debugLineNum = 1004;BA.debugLine="End Sub"; return null; } -public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(reparto_izca.keymon.lat.b4xmainpage __ref,String _id_prod,String _prod) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "createlistitem2", false)) - {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem2", new Object[] {_id_prod,_prod}));} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(String _id_prod,String _prod) throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _pa = null; -RDebugUtils.currentLine=3145728; - //BA.debugLineNum = 3145728;BA.debugLine="Sub CreateListItem2(Id_prod As String, Prod As Str"; -RDebugUtils.currentLine=3145729; - //BA.debugLineNum = 3145729;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")"; + //BA.debugLineNum = 1006;BA.debugLine="Sub CreateListItem2(Id_prod As String, Prod As Str"; + //BA.debugLineNum = 1007;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")"; _pa = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pa = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=3145730; - //BA.debugLineNum = 3145730;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)"; +_pa = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 1008;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)"; _pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10)); -RDebugUtils.currentLine=3145731; - //BA.debugLineNum = 3145731;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")"; + //BA.debugLineNum = 1009;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")"; _pa.LoadLayout("PANEL_PICK_CIEGO",ba); -RDebugUtils.currentLine=3145732; - //BA.debugLineNum = 3145732;BA.debugLine="pa.Height = 55dip"; + //BA.debugLineNum = 1010;BA.debugLine="pa.Height = 55dip"; _pa.setHeight(__c.DipToCurrent((int) (55))); -RDebugUtils.currentLine=3145733; - //BA.debugLineNum = 3145733;BA.debugLine="pa.Width = 298dip"; + //BA.debugLineNum = 1011;BA.debugLine="pa.Width = 298dip"; _pa.setWidth(__c.DipToCurrent((int) (298))); -RDebugUtils.currentLine=3145735; - //BA.debugLineNum = 3145735;BA.debugLine="L_PICK_CIEGO.Text = Id_prod & CRLF & Prod"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod)); -RDebugUtils.currentLine=3145736; - //BA.debugLineNum = 3145736;BA.debugLine="L_PICK_CIEGO.TextSize = 12"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12)); -RDebugUtils.currentLine=3145737; - //BA.debugLineNum = 3145737;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL)); -RDebugUtils.currentLine=3145740; - //BA.debugLineNum = 3145740;BA.debugLine="Return pa"; + //BA.debugLineNum = 1013;BA.debugLine="L_PICK_CIEGO.Text = Id_prod & CRLF & Prod"; +_l_pick_ciego.setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod)); + //BA.debugLineNum = 1014;BA.debugLine="L_PICK_CIEGO.TextSize = 12"; +_l_pick_ciego.setTextSize((float) (12)); + //BA.debugLineNum = 1015;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT"; +_l_pick_ciego.setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL)); + //BA.debugLineNum = 1018;BA.debugLine="Return pa"; if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject())); -RDebugUtils.currentLine=3145741; - //BA.debugLineNum = 3145741;BA.debugLine="End Sub"; + //BA.debugLineNum = 1019;BA.debugLine="End Sub"; return null; } -public String _entrar_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "entrar_click", false)) - {return ((String) Debug.delegate(ba, "entrar_click", null));} +public String _entrar_click() throws Exception{ reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null; -RDebugUtils.currentLine=1441792; - //BA.debugLineNum = 1441792;BA.debugLine="Sub Entrar_Click"; -RDebugUtils.currentLine=1441793; - //BA.debugLineNum = 1441793;BA.debugLine="If pass.Text = \"YA\" Then"; -if ((__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("YA")) { -RDebugUtils.currentLine=1441794; - //BA.debugLineNum = 1441794;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuarioa\""; + //BA.debugLineNum = 278;BA.debugLine="Sub Entrar_Click"; + //BA.debugLineNum = 279;BA.debugLine="If pass.Text = \"YA\" Then"; +if ((_pass.getText()).equals("YA")) { + //BA.debugLineNum = 280;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuarioa\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa"); -RDebugUtils.currentLine=1441795; - //BA.debugLineNum = 1441795;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSION\")"; + //BA.debugLineNum = 281;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSION\")"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION"); -RDebugUtils.currentLine=1441796; - //BA.debugLineNum = 1441796;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO USUARIOA"; + //BA.debugLineNum = 282;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO USUARIOA"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("ROOT"),(Object)("ROOT")})); -RDebugUtils.currentLine=1441797; - //BA.debugLineNum = 1441797;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_almac"; + //BA.debugLineNum = 283;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_almac"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen"); -RDebugUtils.currentLine=1441798; - //BA.debugLineNum = 1441798;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMA"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())})); -RDebugUtils.currentLine=1441799; - //BA.debugLineNum = 1441799;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSION("; + //BA.debugLineNum = 284;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_ALMA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_user.getText())})); + //BA.debugLineNum = 285;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSION("; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("2.1")})); -RDebugUtils.currentLine=1441802; - //BA.debugLineNum = 1441802;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 288;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; _b4xpages._showpage /*String*/ (ba,"Principal"); }else { -RDebugUtils.currentLine=1441804; - //BA.debugLineNum = 1441804;BA.debugLine="c=Starter.skmt.ExecQuery2(\"select count(*) as EX"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as EXISTE1 from usuarioa where usuario = ?",new String[]{__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()}))); -RDebugUtils.currentLine=1441805; - //BA.debugLineNum = 1441805;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=1441806; - //BA.debugLineNum = 1441806;BA.debugLine="existe = c.GetString(\"EXISTE1\")"; -__ref._existe /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE1"); -RDebugUtils.currentLine=1441807; - //BA.debugLineNum = 1441807;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=1441809; - //BA.debugLineNum = 1441809;BA.debugLine="If existe = 0 Then"; -if ((__ref._existe /*String*/ ).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=1441811; - //BA.debugLineNum = 1441811;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 290;BA.debugLine="c=Starter.skmt.ExecQuery2(\"select count(*) as EX"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select count(*) as EXISTE1 from usuarioa where usuario = ?",new String[]{_user.getText()}))); + //BA.debugLineNum = 291;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 292;BA.debugLine="existe = c.GetString(\"EXISTE1\")"; +_existe = _c.GetString("EXISTE1"); + //BA.debugLineNum = 293;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 295;BA.debugLine="If existe = 0 Then"; +if ((_existe).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 297;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=1441812; - //BA.debugLineNum = 1441812;BA.debugLine="cmd.Initialize"; + //BA.debugLineNum = 298;BA.debugLine="cmd.Initialize"; _cmd.Initialize(); -RDebugUtils.currentLine=1441813; - //BA.debugLineNum = 1441813;BA.debugLine="cmd.Name = \"select_usuario_IZCA_REPG\""; + //BA.debugLineNum = 299;BA.debugLine="cmd.Name = \"select_usuario_IZCA_REPG\""; _cmd.Name /*String*/ = "select_usuario_IZCA_REPG"; -RDebugUtils.currentLine=1441814; - //BA.debugLineNum = 1441814;BA.debugLine="cmd.Parameters = Array As Object(user.Text, pas"; -_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}; -RDebugUtils.currentLine=1441815; - //BA.debugLineNum = 1441815;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,_cmd,(int) (0),(Object)("usuario")); -RDebugUtils.currentLine=1441817; - //BA.debugLineNum = 1441817;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 300;BA.debugLine="cmd.Parameters = Array As Object(user.Text, pas"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_user.getText()),(Object)(_pass.getText())}; + //BA.debugLineNum = 301;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"usuario\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("usuario")); + //BA.debugLineNum = 303;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=1441818; - //BA.debugLineNum = 1441818;BA.debugLine="cmd.Initialize"; + //BA.debugLineNum = 304;BA.debugLine="cmd.Initialize"; _cmd.Initialize(); -RDebugUtils.currentLine=1441819; - //BA.debugLineNum = 1441819;BA.debugLine="cmd.Name = \"select_version_IZCA\""; + //BA.debugLineNum = 305;BA.debugLine="cmd.Name = \"select_version_IZCA\""; _cmd.Name /*String*/ = "select_version_IZCA"; -RDebugUtils.currentLine=1441820; - //BA.debugLineNum = 1441820;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,_cmd,(int) (0),(Object)("version")); + //BA.debugLineNum = 306;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("version")); }else { -RDebugUtils.currentLine=1441823; - //BA.debugLineNum = 1441823;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 309;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; _b4xpages._showpage /*String*/ (ba,"Principal"); }; }; -RDebugUtils.currentLine=1441826; - //BA.debugLineNum = 1441826;BA.debugLine="End Sub"; + //BA.debugLineNum = 312;BA.debugLine="End Sub"; return ""; } -public String _enviarmonto(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "enviarmonto", false)) - {return ((String) Debug.delegate(ba, "enviarmonto", null));} +public String _enviarmonto() throws Exception{ anywheresoftware.b4a.sql.SQL.CursorWrapper _a2 = null; String[] _fecha = null; String[] _fecha2 = null; @@ -1983,263 +1433,179 @@ String[] _hora = null; anywheresoftware.b4a.sql.SQL.CursorWrapper _ci = null; String _u = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _g = null; -RDebugUtils.currentLine=2359296; - //BA.debugLineNum = 2359296;BA.debugLine="Sub enviarmonto"; -RDebugUtils.currentLine=2359298; - //BA.debugLineNum = 2359298;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; + //BA.debugLineNum = 670;BA.debugLine="Sub enviarmonto"; + //BA.debugLineNum = 672;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; __c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=2359299; - //BA.debugLineNum = 2359299;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=2359300; - //BA.debugLineNum = 2359300;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=2359302; - //BA.debugLineNum = 2359302;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"selec"; + //BA.debugLineNum = 673;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 674;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 676;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"selec"; _f = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); -RDebugUtils.currentLine=2359303; - //BA.debugLineNum = 2359303;BA.debugLine="f.Position=0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=2359305; - //BA.debugLineNum = 2359305;BA.debugLine="Private a As Cursor=Starter.skmt.ExecQuery(\"selec"; + //BA.debugLineNum = 677;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 679;BA.debugLine="Private a As Cursor=Starter.skmt.ExecQuery(\"selec"; _a = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); -RDebugUtils.currentLine=2359306; - //BA.debugLineNum = 2359306;BA.debugLine="If a.RowCount>0 Then"; -if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=2359307; - //BA.debugLineNum = 2359307;BA.debugLine="a.Position=0"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); + //BA.debugLineNum = 680;BA.debugLine="If a.RowCount>0 Then"; +if (_a.getRowCount()>0) { + //BA.debugLineNum = 681;BA.debugLine="a.Position=0"; +_a.setPosition((int) (0)); }; -RDebugUtils.currentLine=2359310; - //BA.debugLineNum = 2359310;BA.debugLine="Private a2 As Cursor = Starter.skmt.ExecQuery(\"SE"; + //BA.debugLineNum = 684;BA.debugLine="Private a2 As Cursor = Starter.skmt.ExecQuery(\"SE"; _a2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _a2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); -RDebugUtils.currentLine=2359311; - //BA.debugLineNum = 2359311;BA.debugLine="If a2.RowCount>0 Then"; + //BA.debugLineNum = 685;BA.debugLine="If a2.RowCount>0 Then"; if (_a2.getRowCount()>0) { -RDebugUtils.currentLine=2359312; - //BA.debugLineNum = 2359312;BA.debugLine="a2.Position=0"; + //BA.debugLineNum = 686;BA.debugLine="a2.Position=0"; _a2.setPosition((int) (0)); -RDebugUtils.currentLine=2359313; - //BA.debugLineNum = 2359313;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", a2.GetS"; + //BA.debugLineNum = 687;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", a2.GetS"; _fecha = __c.Regex.Split(" ",_a2.GetString("HVD_FECHA")); -RDebugUtils.currentLine=2359314; - //BA.debugLineNum = 2359314;BA.debugLine="Dim fecha2() As String = Regex.Split(\"-\", fecha("; + //BA.debugLineNum = 688;BA.debugLine="Dim fecha2() As String = Regex.Split(\"-\", fecha("; _fecha2 = __c.Regex.Split("-",_fecha[(int) (0)]); -RDebugUtils.currentLine=2359315; - //BA.debugLineNum = 2359315;BA.debugLine="Dim fecha3 As String = fecha2(2)&\"/\"&fecha2(1)&\""; + //BA.debugLineNum = 689;BA.debugLine="Dim fecha3 As String = fecha2(2)&\"/\"&fecha2(1)&\""; _fecha3 = _fecha2[(int) (2)]+"/"+_fecha2[(int) (1)]+"/"+_fecha2[(int) (0)]; -RDebugUtils.currentLine=2359316; - //BA.debugLineNum = 2359316;BA.debugLine="Log(fecha3)"; -__c.LogImpl("22359316",_fecha3,0); -RDebugUtils.currentLine=2359317; - //BA.debugLineNum = 2359317;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1"; + //BA.debugLineNum = 690;BA.debugLine="Log(fecha3)"; +__c.LogImpl("02621460",_fecha3,0); + //BA.debugLineNum = 691;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1"; _hora = __c.Regex.Split("\\.",_fecha[(int) (1)]); -RDebugUtils.currentLine=2359318; - //BA.debugLineNum = 2359318;BA.debugLine="Log(hora(0))"; -__c.LogImpl("22359318",_hora[(int) (0)],0); + //BA.debugLineNum = 692;BA.debugLine="Log(hora(0))"; +__c.LogImpl("02621462",_hora[(int) (0)],0); }; -RDebugUtils.currentLine=2359323; - //BA.debugLineNum = 2359323;BA.debugLine="Private cI As Cursor"; + //BA.debugLineNum = 697;BA.debugLine="Private cI As Cursor"; _ci = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=2359324; - //BA.debugLineNum = 2359324;BA.debugLine="Private u As String = \"SinUsuario\""; + //BA.debugLineNum = 698;BA.debugLine="Private u As String = \"SinUsuario\""; _u = "SinUsuario"; -RDebugUtils.currentLine=2359325; - //BA.debugLineNum = 2359325;BA.debugLine="cI=Starter.skmt.ExecQuery(\"select USUARIO from us"; + //BA.debugLineNum = 699;BA.debugLine="cI=Starter.skmt.ExecQuery(\"select USUARIO from us"; _ci = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); -RDebugUtils.currentLine=2359326; - //BA.debugLineNum = 2359326;BA.debugLine="cI.Position=0"; + //BA.debugLineNum = 700;BA.debugLine="cI.Position=0"; _ci.setPosition((int) (0)); -RDebugUtils.currentLine=2359327; - //BA.debugLineNum = 2359327;BA.debugLine="If cI.RowCount > 0 Then u = cI.GetString(\"USUARIO"; + //BA.debugLineNum = 701;BA.debugLine="If cI.RowCount > 0 Then u = cI.GetString(\"USUARIO"; if (_ci.getRowCount()>0) { _u = _ci.GetString("USUARIO");}; -RDebugUtils.currentLine=2359328; - //BA.debugLineNum = 2359328;BA.debugLine="Private g As Cursor = Starter.skmt.ExecQuery(\"sel"; + //BA.debugLineNum = 702;BA.debugLine="Private g As Cursor = Starter.skmt.ExecQuery(\"sel"; _g = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _g = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from ENV_MONTO_LIQ"))); -RDebugUtils.currentLine=2359361; - //BA.debugLineNum = 2359361;BA.debugLine="p_add_monto.Visible = False"; -__ref._p_add_monto /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=2359363; - //BA.debugLineNum = 2359363;BA.debugLine="End Sub"; + //BA.debugLineNum = 735;BA.debugLine="p_add_monto.Visible = False"; +_p_add_monto.setVisible(__c.False); + //BA.debugLineNum = 737;BA.debugLine="End Sub"; return ""; } -public String _et_buspc_textchanged(reparto_izca.keymon.lat.b4xmainpage __ref,String _old,String _new) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "et_buspc_textchanged", false)) - {return ((String) Debug.delegate(ba, "et_buspc_textchanged", new Object[] {_old,_new}));} +public String _et_buspc_textchanged(String _old,String _new) throws Exception{ int _i = 0; -RDebugUtils.currentLine=2555904; - //BA.debugLineNum = 2555904;BA.debugLine="Private Sub et_buspc_TextChanged (Old As String, N"; -RDebugUtils.currentLine=2555905; - //BA.debugLineNum = 2555905;BA.debugLine="If New = \"\" Then"; + //BA.debugLineNum = 752;BA.debugLine="Private Sub et_buspc_TextChanged (Old As String, N"; + //BA.debugLineNum = 753;BA.debugLine="If New = \"\" Then"; if ((_new).equals("")) { -RDebugUtils.currentLine=2555906; - //BA.debugLineNum = 2555906;BA.debugLine="CLV_PICK_CIEGO.Clear"; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear(); - }else -{RDebugUtils.currentLine=2555907; - //BA.debugLineNum = 2555907;BA.debugLine="Else If New.Length >= 3 Then"; -if (_new.length()>=3) { -RDebugUtils.currentLine=2555908; - //BA.debugLineNum = 2555908;BA.debugLine="CLV_PICK_CIEGO.Clear"; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=2555910; - //BA.debugLineNum = 2555910;BA.debugLine="q_buscar = \"%\" & et_buspc.Text & \"%\""; -__ref._q_buscar /*String*/ = "%"+__ref._et_buspc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+"%"; -RDebugUtils.currentLine=2555911; - //BA.debugLineNum = 2555911;BA.debugLine="Log(q_buscar)"; -__c.LogImpl("22555911",__ref._q_buscar /*String*/ ,0); -RDebugUtils.currentLine=2555912; - //BA.debugLineNum = 2555912;BA.debugLine="c=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBRE"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID , ifnull(PC_CANT,0) AS PC_CANT FROM CAT_GUNAPROD3 INNER JOIN PICK_CIEGO ON PC_ID_PROD = CAT_GP_ID AND PC_NOM_PROD = CAT_GP_NOMBRE WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ }))); -RDebugUtils.currentLine=2555913; - //BA.debugLineNum = 2555913;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=2555916; - //BA.debugLineNum = 2555916;BA.debugLine="For i = 0 To c.RowCount - 1"; + //BA.debugLineNum = 754;BA.debugLine="CLV_PICK_CIEGO.Clear"; +_clv_pick_ciego._clear(); + }else if(_new.length()>=3) { + //BA.debugLineNum = 756;BA.debugLine="CLV_PICK_CIEGO.Clear"; +_clv_pick_ciego._clear(); + //BA.debugLineNum = 758;BA.debugLine="q_buscar = \"%\" & et_buspc.Text & \"%\""; +_q_buscar = "%"+_et_buspc.getText()+"%"; + //BA.debugLineNum = 759;BA.debugLine="Log(q_buscar)"; +__c.LogImpl("02818055",_q_buscar,0); + //BA.debugLineNum = 760;BA.debugLine="c=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBRE"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID , ifnull(PC_CANT,0) AS PC_CANT FROM CAT_GUNAPROD3 INNER JOIN PICK_CIEGO ON PC_ID_PROD = CAT_GP_ID AND PC_NOM_PROD = CAT_GP_NOMBRE WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{_q_buscar,_q_buscar}))); + //BA.debugLineNum = 761;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 764;BA.debugLine="For i = 0 To c.RowCount - 1"; { final int step9 = 1; -final int limit9 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit9 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit9 ;_i = _i + step9 ) { -RDebugUtils.currentLine=2555917; - //BA.debugLineNum = 2555917;BA.debugLine="c.Position = i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=2555918; - //BA.debugLineNum = 2555918;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem(c.GetString("; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CANT")).getObject())),(Object)(_i)); + //BA.debugLineNum = 765;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 766;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem(c.GetString("; +_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("CAT_GP_ID"),_c.GetString("CAT_GP_NOMBRE"),_c.GetString("PC_CANT")).getObject())),(Object)(_i)); } }; -RDebugUtils.currentLine=2555921; - //BA.debugLineNum = 2555921;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=2555923; - //BA.debugLineNum = 2555923;BA.debugLine="d=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBR"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'AND CAT_GP_ID NOT IN (SELECT PC_ID_PROD FROM PICK_CIEGO)"),new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ }))); -RDebugUtils.currentLine=2555925; - //BA.debugLineNum = 2555925;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 769;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 771;BA.debugLine="d=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBR"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'AND CAT_GP_ID NOT IN (SELECT PC_ID_PROD FROM PICK_CIEGO)"),new String[]{_q_buscar,_q_buscar}))); + //BA.debugLineNum = 773;BA.debugLine="For i = 0 To d.RowCount - 1"; { final int step15 = 1; -final int limit15 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit15 = (int) (_d.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit15 ;_i = _i + step15 ) { -RDebugUtils.currentLine=2555926; - //BA.debugLineNum = 2555926;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=2555927; - //BA.debugLineNum = 2555927;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString"; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i)); + //BA.debugLineNum = 774;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 775;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString"; +_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_d.GetString("CAT_GP_ID"),_d.GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i)); } }; -RDebugUtils.currentLine=2555930; - //BA.debugLineNum = 2555930;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }else -{RDebugUtils.currentLine=2555932; - //BA.debugLineNum = 2555932;BA.debugLine="Else If c.RowCount = 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=2555933; - //BA.debugLineNum = 2555933;BA.debugLine="d=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBR"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{__ref._q_buscar /*String*/ ,__ref._q_buscar /*String*/ }))); -RDebugUtils.currentLine=2555935; - //BA.debugLineNum = 2555935;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 778;BA.debugLine="d.Close"; +_d.Close(); + }else if(_c.getRowCount()==0) { + //BA.debugLineNum = 781;BA.debugLine="d=Starter.skmt.ExecQuery2($\"select CAT_GP_NOMBR"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2(("select CAT_GP_NOMBRE, CAT_GP_ID FROM CAT_GUNAPROD3 WHERE (CAT_GP_NOMBRE LIKE ? OR CAT_GP_ID LIKE ? ) and CAT_GP_CLASIF <> 'PROMOS'"),new String[]{_q_buscar,_q_buscar}))); + //BA.debugLineNum = 783;BA.debugLine="For i = 0 To d.RowCount - 1"; { final int step22 = 1; -final int limit22 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit22 = (int) (_d.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit22 ;_i = _i + step22 ) { -RDebugUtils.currentLine=2555936; - //BA.debugLineNum = 2555936;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=2555937; - //BA.debugLineNum = 2555937;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString"; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_ID"),__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i)); + //BA.debugLineNum = 784;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 785;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetString"; +_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_d.GetString("CAT_GP_ID"),_d.GetString("CAT_GP_NOMBRE")).getObject())),(Object)(_i)); } }; -RDebugUtils.currentLine=2555940; - //BA.debugLineNum = 2555940;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }} -; - }} -; -RDebugUtils.currentLine=2555943; - //BA.debugLineNum = 2555943;BA.debugLine="End Sub"; + //BA.debugLineNum = 788;BA.debugLine="d.Close"; +_d.Close(); + }; + }; + //BA.debugLineNum = 791;BA.debugLine="End Sub"; return ""; } -public String _i_engrane_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "i_engrane_click", false)) - {return ((String) Debug.delegate(ba, "i_engrane_click", null));} -RDebugUtils.currentLine=1572864; - //BA.debugLineNum = 1572864;BA.debugLine="Private Sub i_engrane_Click"; -RDebugUtils.currentLine=1572865; - //BA.debugLineNum = 1572865;BA.debugLine="p_appUpdate.Width = Root.Width"; -__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=1572866; - //BA.debugLineNum = 1572866;BA.debugLine="p_appUpdate.Height = Root.Height"; -__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=1572867; - //BA.debugLineNum = 1572867;BA.debugLine="Subs.centraPanel(p_serverList, Root.Width)"; -_subs._centrapanel /*String*/ (ba,__ref._p_serverlist /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=1572868; - //BA.debugLineNum = 1572868;BA.debugLine="Subs.centraBoton(b_server, Root.Width)"; -_subs._centraboton /*String*/ (ba,__ref._b_server /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=1572869; - //BA.debugLineNum = 1572869;BA.debugLine="Subs.centraBoton(b_apk, Root.Width)"; -_subs._centraboton /*String*/ (ba,__ref._b_apk /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=1572870; - //BA.debugLineNum = 1572870;BA.debugLine="Subs.centraBoton(b_envioBD, Root.Width)"; -_subs._centraboton /*String*/ (ba,__ref._b_enviobd /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=1572871; - //BA.debugLineNum = 1572871;BA.debugLine="Subs.centraBoton(b_regesar, Root.Width)"; -_subs._centraboton /*String*/ (ba,__ref._b_regesar /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=1572872; - //BA.debugLineNum = 1572872;BA.debugLine="Subs.centraBoton(b_server, p_serverList.Width)"; -_subs._centraboton /*String*/ (ba,__ref._b_server /*anywheresoftware.b4a.objects.ButtonWrapper*/ ,__ref._p_serverlist /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()); -RDebugUtils.currentLine=1572873; - //BA.debugLineNum = 1572873;BA.debugLine="lv_server.Clear"; -__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=1572874; - //BA.debugLineNum = 1572874;BA.debugLine="lv_server.AddSingleLine(\"http://keymon.net:1781\")"; -__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("http://keymon.net:1781")); -RDebugUtils.currentLine=1572875; - //BA.debugLineNum = 1572875;BA.debugLine="If user.Text = \"KMTS1\" Then lv_server.AddSingleLi"; -if ((__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("KMTS1")) { -__ref._lv_server /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("http://10.0.0.205:1782"));}; -RDebugUtils.currentLine=1572877; - //BA.debugLineNum = 1572877;BA.debugLine="et_server.Text = server"; -__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._server /*String*/ )); -RDebugUtils.currentLine=1572878; - //BA.debugLineNum = 1572878;BA.debugLine="Subs.panelVisible(p_appUpdate, 0, 0)"; -_subs._panelvisible /*String*/ (ba,__ref._p_appupdate /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0)); -RDebugUtils.currentLine=1572879; - //BA.debugLineNum = 1572879;BA.debugLine="End Sub"; +public String _i_engrane_click() throws Exception{ + //BA.debugLineNum = 544;BA.debugLine="Private Sub i_engrane_Click"; + //BA.debugLineNum = 545;BA.debugLine="p_appUpdate.Width = Root.Width"; +_p_appupdate.setWidth(_root.getWidth()); + //BA.debugLineNum = 546;BA.debugLine="p_appUpdate.Height = Root.Height"; +_p_appupdate.setHeight(_root.getHeight()); + //BA.debugLineNum = 547;BA.debugLine="Subs.centraPanel(p_serverList, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_serverlist,_root.getWidth()); + //BA.debugLineNum = 548;BA.debugLine="Subs.centraBoton(b_server, Root.Width)"; +_subs._centraboton /*String*/ (ba,_b_server,_root.getWidth()); + //BA.debugLineNum = 549;BA.debugLine="Subs.centraBoton(b_apk, Root.Width)"; +_subs._centraboton /*String*/ (ba,_b_apk,_root.getWidth()); + //BA.debugLineNum = 550;BA.debugLine="Subs.centraBoton(b_envioBD, Root.Width)"; +_subs._centraboton /*String*/ (ba,_b_enviobd,_root.getWidth()); + //BA.debugLineNum = 551;BA.debugLine="Subs.centraBoton(b_regesar, Root.Width)"; +_subs._centraboton /*String*/ (ba,_b_regesar,_root.getWidth()); + //BA.debugLineNum = 552;BA.debugLine="Subs.centraBoton(b_server, p_serverList.Width)"; +_subs._centraboton /*String*/ (ba,_b_server,_p_serverlist.getWidth()); + //BA.debugLineNum = 553;BA.debugLine="lv_server.Clear"; +_lv_server.Clear(); + //BA.debugLineNum = 554;BA.debugLine="lv_server.AddSingleLine(\"http://keymon.net:1781\")"; +_lv_server.AddSingleLine(BA.ObjectToCharSequence("http://keymon.net:1781")); + //BA.debugLineNum = 555;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 = 557;BA.debugLine="et_server.Text = server"; +_et_server.setText(BA.ObjectToCharSequence(_server)); + //BA.debugLineNum = 558;BA.debugLine="Subs.panelVisible(p_appUpdate, 0, 0)"; +_subs._panelvisible /*String*/ (ba,_p_appupdate,(int) (0),(int) (0)); + //BA.debugLineNum = 559;BA.debugLine="End Sub"; return ""; } -public String _imageview1_longclick(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "imageview1_longclick", false)) - {return ((String) Debug.delegate(ba, "imageview1_longclick", null));} -RDebugUtils.currentLine=3211264; - //BA.debugLineNum = 3211264;BA.debugLine="Private Sub ImageView1_LongClick"; -RDebugUtils.currentLine=3211266; - //BA.debugLineNum = 3211266;BA.debugLine="End Sub"; +public String _imageview1_longclick() throws Exception{ + //BA.debugLineNum = 1021;BA.debugLine="Private Sub ImageView1_LongClick"; + //BA.debugLineNum = 1023;BA.debugLine="End Sub"; return ""; } -public String _jobdone(reparto_izca.keymon.lat.b4xmainpage __ref,reparto_izca.keymon.lat.httpjob _job) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "jobdone", false)) - {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));} +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 105;BA.debugLine="Public Sub Initialize"; + //BA.debugLineNum = 107;BA.debugLine="End Sub"; +return ""; +} +public String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{ reparto_izca.keymon.lat.dbrequestmanager._dbresult _result = null; Object[] _records = null; String _cat_ve_version = ""; @@ -2252,26 +1618,19 @@ String _cat_pa_pass = ""; String _hvd_estatus = ""; String _cuenta = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; -RDebugUtils.currentLine=1507328; - //BA.debugLineNum = 1507328;BA.debugLine="Sub JobDone(Job As HttpJob)"; -RDebugUtils.currentLine=1507329; - //BA.debugLineNum = 1507329;BA.debugLine="If Job.Success = False Then"; + //BA.debugLineNum = 314;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 315;BA.debugLine="If Job.Success = False Then"; if (_job._success /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=1507330; - //BA.debugLineNum = 1507330;BA.debugLine="ToastMessageShow(\"Error: \" & Job.ErrorMessage, T"; + //BA.debugLineNum = 316;BA.debugLine="ToastMessageShow(\"Error: \" & Job.ErrorMessage, T"; __c.ToastMessageShow(BA.ObjectToCharSequence("Error: "+_job._errormessage /*String*/ ),__c.True); }else { -RDebugUtils.currentLine=1507332; - //BA.debugLineNum = 1507332;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 318;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=1507333; - //BA.debugLineNum = 1507333;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=1507334; - //BA.debugLineNum = 1507334;BA.debugLine="If result.Tag = \"version\" Then 'query tag"; + //BA.debugLineNum = 319;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 320;BA.debugLine="If result.Tag = \"version\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { -RDebugUtils.currentLine=1507335; - //BA.debugLineNum = 1507335;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 321;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group7 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen7 = group7.getSize() @@ -2279,30 +1638,23 @@ final int groupLen7 = group7.getSize() ; for (; index7 < groupLen7;index7++){ _records = (Object[])(group7.Get(index7)); -RDebugUtils.currentLine=1507336; - //BA.debugLineNum = 1507336;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO"; + //BA.debugLineNum = 322;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION"); -RDebugUtils.currentLine=1507337; - //BA.debugLineNum = 1507337;BA.debugLine="Dim CAT_VE_VERSION As String = records(result"; + //BA.debugLineNum = 323;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"))))]); -RDebugUtils.currentLine=1507338; - //BA.debugLineNum = 1507338;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSI"; + //BA.debugLineNum = 324;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSI"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)})); } }; }; }; -RDebugUtils.currentLine=1507343; - //BA.debugLineNum = 1507343;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 329;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=1507344; - //BA.debugLineNum = 1507344;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=1507345; - //BA.debugLineNum = 1507345;BA.debugLine="If result.Tag = \"agencia\" Then 'query tag"; + //BA.debugLineNum = 330;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 331;BA.debugLine="If result.Tag = \"agencia\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("agencia"))) { -RDebugUtils.currentLine=1507346; - //BA.debugLineNum = 1507346;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 332;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() @@ -2310,24 +1662,19 @@ final int groupLen17 = group17.getSize() ; for (; index17 < groupLen17;index17++){ _records = (Object[])(group17.Get(index17)); -RDebugUtils.currentLine=1507348; - //BA.debugLineNum = 1507348;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col"; + //BA.debugLineNum = 334;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"))))]); } }; }; }; -RDebugUtils.currentLine=1507353; - //BA.debugLineNum = 1507353;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 339;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=1507354; - //BA.debugLineNum = 1507354;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=1507355; - //BA.debugLineNum = 1507355;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta"; + //BA.debugLineNum = 340;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 341;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta"; if ((_result.Tag /*Object*/ ).equals((Object)("coords_almacen"))) { -RDebugUtils.currentLine=1507356; - //BA.debugLineNum = 1507356;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 342;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group25 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen25 = group25.getSize() @@ -2335,56 +1682,41 @@ final int groupLen25 = group25.getSize() ; for (; index25 < groupLen25;index25++){ _records = (Object[])(group25.Get(index25)); -RDebugUtils.currentLine=1507357; - //BA.debugLineNum = 1507357;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res"; -__c.LogImpl("21507357","Coordenadas del almacen: "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])+","+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]),0); -RDebugUtils.currentLine=1507358; - //BA.debugLineNum = 1507358;BA.debugLine="Private lat, lon As Double"; + //BA.debugLineNum = 343;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res"; +__c.LogImpl("01769501","Coordenadas del almacen: "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])+","+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]),0); + //BA.debugLineNum = 344;BA.debugLine="Private lat, lon As Double"; _lat = 0; _lon = 0; -RDebugUtils.currentLine=1507359; - //BA.debugLineNum = 1507359;BA.debugLine="lat = 0.0"; + //BA.debugLineNum = 345;BA.debugLine="lat = 0.0"; _lat = 0.0; -RDebugUtils.currentLine=1507360; - //BA.debugLineNum = 1507360;BA.debugLine="lon = 0.0"; + //BA.debugLineNum = 346;BA.debugLine="lon = 0.0"; _lon = 0.0; -RDebugUtils.currentLine=1507361; - //BA.debugLineNum = 1507361;BA.debugLine="If IsNumber(records(result.Columns.Get(\"CAT_A"; + //BA.debugLineNum = 347;BA.debugLine="If IsNumber(records(result.Columns.Get(\"CAT_A"; if (__c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])) && __c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]))) { -RDebugUtils.currentLine=1507362; - //BA.debugLineNum = 1507362;BA.debugLine="lat = records(result.Columns.Get(\"CAT_AL_LAT"; + //BA.debugLineNum = 348;BA.debugLine="lat = records(result.Columns.Get(\"CAT_AL_LAT"; _lat = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])); -RDebugUtils.currentLine=1507363; - //BA.debugLineNum = 1507363;BA.debugLine="lon = records(result.Columns.Get(\"CAT_AL_LON"; + //BA.debugLineNum = 349;BA.debugLine="lon = records(result.Columns.Get(\"CAT_AL_LON"; _lon = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))])); }; -RDebugUtils.currentLine=1507365; - //BA.debugLineNum = 1507365;BA.debugLine="Starter.cedisLocation.Latitude = lat"; + //BA.debugLineNum = 351;BA.debugLine="Starter.cedisLocation.Latitude = lat"; _starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude(_lat); -RDebugUtils.currentLine=1507366; - //BA.debugLineNum = 1507366;BA.debugLine="Starter.cedisLocation.Longitude = lon"; + //BA.debugLineNum = 352;BA.debugLine="Starter.cedisLocation.Longitude = lon"; _starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude(_lon); -RDebugUtils.currentLine=1507367; - //BA.debugLineNum = 1507367;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_V"; + //BA.debugLineNum = 353;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_V"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN")})); -RDebugUtils.currentLine=1507368; - //BA.debugLineNum = 1507368;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V"; + //BA.debugLineNum = 354;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN"),(Object)(BA.NumberToString(_lon)+","+BA.NumberToString(_lat))})); } }; }; }; -RDebugUtils.currentLine=1507374; - //BA.debugLineNum = 1507374;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 360;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=1507375; - //BA.debugLineNum = 1507375;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=1507376; - //BA.debugLineNum = 1507376;BA.debugLine="If result.Tag = \"usuario\" Then 'query tag"; + //BA.debugLineNum = 361;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 362;BA.debugLine="If result.Tag = \"usuario\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("usuario"))) { -RDebugUtils.currentLine=1507377; - //BA.debugLineNum = 1507377;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 363;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group44 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen44 = group44.getSize() @@ -2392,33 +1724,25 @@ final int groupLen44 = group44.getSize() ; for (; index44 < groupLen44;index44++){ _records = (Object[])(group44.Get(index44)); -RDebugUtils.currentLine=1507378; - //BA.debugLineNum = 1507378;BA.debugLine="Dim name As String = records(result.Columns.G"; + //BA.debugLineNum = 364;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"))))]); -RDebugUtils.currentLine=1507379; - //BA.debugLineNum = 1507379;BA.debugLine="Dim ID_ALMACEN As String = records(result.Col"; + //BA.debugLineNum = 365;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"))))]); -RDebugUtils.currentLine=1507380; - //BA.debugLineNum = 1507380;BA.debugLine="Dim IMEI_BASE As String = records(result.Colu"; + //BA.debugLineNum = 366;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"))))]); } }; -RDebugUtils.currentLine=1507382; - //BA.debugLineNum = 1507382;BA.debugLine="paso1 = 1"; -__ref._paso1 /*String*/ = BA.NumberToString(1); + //BA.debugLineNum = 368;BA.debugLine="paso1 = 1"; +_paso1 = BA.NumberToString(1); }; }; -RDebugUtils.currentLine=1507386; - //BA.debugLineNum = 1507386;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 372;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=1507387; - //BA.debugLineNum = 1507387;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=1507388; - //BA.debugLineNum = 1507388;BA.debugLine="If result.Tag = \"contrasena\" Then 'query tag"; + //BA.debugLineNum = 373;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 374;BA.debugLine="If result.Tag = \"contrasena\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("contrasena"))) { -RDebugUtils.currentLine=1507389; - //BA.debugLineNum = 1507389;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 375;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group55 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen55 = group55.getSize() @@ -2426,44 +1750,33 @@ final int groupLen55 = group55.getSize() ; for (; index55 < groupLen55;index55++){ _records = (Object[])(group55.Get(index55)); -RDebugUtils.currentLine=1507390; - //BA.debugLineNum = 1507390;BA.debugLine="Dim CAT_PA_PASS As String = records(result.Co"; + //BA.debugLineNum = 376;BA.debugLine="Dim CAT_PA_PASS As String = records(result.Co"; _cat_pa_pass = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_PA_PASS"))))]); -RDebugUtils.currentLine=1507391; - //BA.debugLineNum = 1507391;BA.debugLine="If CAT_PA_PASS = et_codigo.Text Then"; -if ((_cat_pa_pass).equals(__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())) { -RDebugUtils.currentLine=1507392; - //BA.debugLineNum = 1507392;BA.debugLine="Log(CAT_PA_PASS)"; -__c.LogImpl("21507392",_cat_pa_pass,0); -RDebugUtils.currentLine=1507393; - //BA.debugLineNum = 1507393;BA.debugLine="p_validacion.Visible = False"; -__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=1507394; - //BA.debugLineNum = 1507394;BA.debugLine="et_codigo.Text = \"\""; -__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=1507396; - //BA.debugLineNum = 1507396;BA.debugLine="Subs.panelVisible(P_CIEGO,0,0)"; -_subs._panelvisible /*String*/ (ba,__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0)); + //BA.debugLineNum = 377;BA.debugLine="If CAT_PA_PASS = et_codigo.Text Then"; +if ((_cat_pa_pass).equals(_et_codigo.getText())) { + //BA.debugLineNum = 378;BA.debugLine="Log(CAT_PA_PASS)"; +__c.LogImpl("01769536",_cat_pa_pass,0); + //BA.debugLineNum = 379;BA.debugLine="p_validacion.Visible = False"; +_p_validacion.setVisible(__c.False); + //BA.debugLineNum = 380;BA.debugLine="et_codigo.Text = \"\""; +_et_codigo.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 382;BA.debugLine="Subs.panelVisible(P_CIEGO,0,0)"; +_subs._panelvisible /*String*/ (ba,_p_ciego,(int) (0),(int) (0)); }else { -RDebugUtils.currentLine=1507399; - //BA.debugLineNum = 1507399;BA.debugLine="MsgboxAsync(\"Contraseña incorrecta\",\"Atenció"; + //BA.debugLineNum = 385;BA.debugLine="MsgboxAsync(\"Contraseña incorrecta\",\"Atenció"; __c.MsgboxAsync(BA.ObjectToCharSequence("Contraseña incorrecta"),BA.ObjectToCharSequence("Atención"),ba); }; } }; }; }; -RDebugUtils.currentLine=1507448; - //BA.debugLineNum = 1507448;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 434;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=1507449; - //BA.debugLineNum = 1507449;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=1507450; - //BA.debugLineNum = 1507450;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag"; + //BA.debugLineNum = 435;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 436;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("estatus"))) { -RDebugUtils.currentLine=1507451; - //BA.debugLineNum = 1507451;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 437;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group71 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen71 = group71.getSize() @@ -2471,35 +1784,27 @@ final int groupLen71 = group71.getSize() ; for (; index71 < groupLen71;index71++){ _records = (Object[])(group71.Get(index71)); -RDebugUtils.currentLine=1507452; - //BA.debugLineNum = 1507452;BA.debugLine="Dim hvd_estatus As String = records(result.Co"; + //BA.debugLineNum = 438;BA.debugLine="Dim hvd_estatus As String = records(result.Co"; _hvd_estatus = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_ESTATUS"))))]); -RDebugUtils.currentLine=1507453; - //BA.debugLineNum = 1507453;BA.debugLine="If hvd_estatus = \"Liquidado\" Then"; + //BA.debugLineNum = 439;BA.debugLine="If hvd_estatus = \"Liquidado\" Then"; if ((_hvd_estatus).equals("Liquidado")) { -RDebugUtils.currentLine=1507455; - //BA.debugLineNum = 1507455;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate"; + //BA.debugLineNum = 441;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate"; __c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba); }else { -RDebugUtils.currentLine=1507457; - //BA.debugLineNum = 1507457;BA.debugLine="enviarmonto"; -__ref._enviarmonto /*String*/ (null); + //BA.debugLineNum = 443;BA.debugLine="enviarmonto"; +_enviarmonto(); }; } }; }; }; -RDebugUtils.currentLine=1507463; - //BA.debugLineNum = 1507463;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 449;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=1507464; - //BA.debugLineNum = 1507464;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=1507465; - //BA.debugLineNum = 1507465;BA.debugLine="If result.Tag = \"estatus2\" Then 'query tag"; + //BA.debugLineNum = 450;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 451;BA.debugLine="If result.Tag = \"estatus2\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("estatus2"))) { -RDebugUtils.currentLine=1507466; - //BA.debugLineNum = 1507466;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 452;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group84 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen84 = group84.getSize() @@ -2507,35 +1812,27 @@ final int groupLen84 = group84.getSize() ; for (; index84 < groupLen84;index84++){ _records = (Object[])(group84.Get(index84)); -RDebugUtils.currentLine=1507467; - //BA.debugLineNum = 1507467;BA.debugLine="Dim hvd_estatus As String = records(result.Co"; + //BA.debugLineNum = 453;BA.debugLine="Dim hvd_estatus As String = records(result.Co"; _hvd_estatus = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_ESTATUS"))))]); -RDebugUtils.currentLine=1507468; - //BA.debugLineNum = 1507468;BA.debugLine="If hvd_estatus = \"Liquidado\" Then"; + //BA.debugLineNum = 454;BA.debugLine="If hvd_estatus = \"Liquidado\" Then"; if ((_hvd_estatus).equals("Liquidado")) { -RDebugUtils.currentLine=1507470; - //BA.debugLineNum = 1507470;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate"; + //BA.debugLineNum = 456;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate"; __c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba); }else { -RDebugUtils.currentLine=1507472; - //BA.debugLineNum = 1507472;BA.debugLine="passaquci"; -__ref._passaquci /*String*/ (null); + //BA.debugLineNum = 458;BA.debugLine="passaquci"; +_passaquci(); }; } }; }; }; -RDebugUtils.currentLine=1507478; - //BA.debugLineNum = 1507478;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 464;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=1507479; - //BA.debugLineNum = 1507479;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=1507480; - //BA.debugLineNum = 1507480;BA.debugLine="If result.Tag = \"SelectMontoLiq\" Then"; + //BA.debugLineNum = 465;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 466;BA.debugLine="If result.Tag = \"SelectMontoLiq\" Then"; if ((_result.Tag /*Object*/ ).equals((Object)("SelectMontoLiq"))) { -RDebugUtils.currentLine=1507481; - //BA.debugLineNum = 1507481;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 467;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group97 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen97 = group97.getSize() @@ -2543,210 +1840,162 @@ final int groupLen97 = group97.getSize() ; for (; index97 < groupLen97;index97++){ _records = (Object[])(group97.Get(index97)); -RDebugUtils.currentLine=1507482; - //BA.debugLineNum = 1507482;BA.debugLine="Dim CUENTA As String = records(result.Columns"; + //BA.debugLineNum = 468;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"))))]); -RDebugUtils.currentLine=1507484; - //BA.debugLineNum = 1507484;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; + //BA.debugLineNum = 470;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; __c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=1507485; - //BA.debugLineNum = 1507485;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=1507486; - //BA.debugLineNum = 1507486;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=1507487; - //BA.debugLineNum = 1507487;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"s"; + //BA.debugLineNum = 471;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 472;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 473;BA.debugLine="Private f As Cursor=Starter.skmt.ExecQuery(\"s"; _f = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); -RDebugUtils.currentLine=1507488; - //BA.debugLineNum = 1507488;BA.debugLine="f.Position=0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=1507489; - //BA.debugLineNum = 1507489;BA.debugLine="Private a As Cursor =Starter.skmt.ExecQuery(\""; + //BA.debugLineNum = 474;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 475;BA.debugLine="Private a As Cursor =Starter.skmt.ExecQuery(\""; _a = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); -RDebugUtils.currentLine=1507490; - //BA.debugLineNum = 1507490;BA.debugLine="a.Position = 0"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=1507492; - //BA.debugLineNum = 1507492;BA.debugLine="Private c2 As Cursor"; + //BA.debugLineNum = 476;BA.debugLine="a.Position = 0"; +_a.setPosition((int) (0)); + //BA.debugLineNum = 478;BA.debugLine="Private c2 As Cursor"; _c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=1507493; - //BA.debugLineNum = 1507493;BA.debugLine="c2=Starter.skmt.ExecQuery(\"select USUARIO fro"; + //BA.debugLineNum = 479;BA.debugLine="c2=Starter.skmt.ExecQuery(\"select USUARIO fro"; _c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); -RDebugUtils.currentLine=1507494; - //BA.debugLineNum = 1507494;BA.debugLine="c2.Position=0"; + //BA.debugLineNum = 480;BA.debugLine="c2.Position=0"; _c2.setPosition((int) (0)); -RDebugUtils.currentLine=1507495; - //BA.debugLineNum = 1507495;BA.debugLine="If c2.RowCount > 0 Then c2.GetString(\"USUARIO"; + //BA.debugLineNum = 481;BA.debugLine="If c2.RowCount > 0 Then c2.GetString(\"USUARIO"; if (_c2.getRowCount()>0) { _c2.GetString("USUARIO");}; -RDebugUtils.currentLine=1507497; - //BA.debugLineNum = 1507497;BA.debugLine="Log(CUENTA & \"----------------------!!\")"; -__c.LogImpl("21507497",_cuenta+"----------------------!!",0); -RDebugUtils.currentLine=1507498; - //BA.debugLineNum = 1507498;BA.debugLine="If CUENTA = \"0\" Then"; + //BA.debugLineNum = 483;BA.debugLine="Log(CUENTA & \"----------------------!!\")"; +__c.LogImpl("01769641",_cuenta+"----------------------!!",0); + //BA.debugLineNum = 484;BA.debugLine="If CUENTA = \"0\" Then"; if ((_cuenta).equals("0")) { - }else -{RDebugUtils.currentLine=1507513; - //BA.debugLineNum = 1507513;BA.debugLine="Else if CUENTA > \"0\" Then"; -if ((double)(Double.parseDouble(_cuenta))>(double)(Double.parseDouble("0"))) { - }} -; -RDebugUtils.currentLine=1507531; - //BA.debugLineNum = 1507531;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=1507532; - //BA.debugLineNum = 1507532;BA.debugLine="a.Close"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + }else if((double)(Double.parseDouble(_cuenta))>(double)(Double.parseDouble("0"))) { + }; + //BA.debugLineNum = 517;BA.debugLine="f.Close"; +_f.Close(); + //BA.debugLineNum = 518;BA.debugLine="a.Close"; +_a.Close(); } }; }; }; -RDebugUtils.currentLine=1507537; - //BA.debugLineNum = 1507537;BA.debugLine="Job.Release"; -_job._release /*String*/ (null); + //BA.debugLineNum = 523;BA.debugLine="Job.Release"; +_job._release /*String*/ (); }; -RDebugUtils.currentLine=1507540; - //BA.debugLineNum = 1507540;BA.debugLine="If paso1 = 1 Then"; -if ((__ref._paso1 /*String*/ ).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=1507541; - //BA.debugLineNum = 1507541;BA.debugLine="If name = \"OKActivo\" Then"; + //BA.debugLineNum = 526;BA.debugLine="If paso1 = 1 Then"; +if ((_paso1).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 527;BA.debugLine="If name = \"OKActivo\" Then"; if ((_name).equals("OKActivo")) { -RDebugUtils.currentLine=1507542; - //BA.debugLineNum = 1507542;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuarioa"; + //BA.debugLineNum = 528;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from usuarioa"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from usuarioa"); -RDebugUtils.currentLine=1507543; - //BA.debugLineNum = 1507543;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO USUARIO"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._user /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._pass /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())})); -RDebugUtils.currentLine=1507544; - //BA.debugLineNum = 1507544;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_alma"; + //BA.debugLineNum = 529;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO USUARIO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO USUARIOA VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_user.getText()),(Object)(_pass.getText())})); + //BA.debugLineNum = 530;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_alma"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_almacen"); -RDebugUtils.currentLine=1507545; - //BA.debugLineNum = 1507545;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_ALM"; + //BA.debugLineNum = 531;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_ALM"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_ALMACEN(ID_ALMACEN) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_id_almacen)})); -RDebugUtils.currentLine=1507546; - //BA.debugLineNum = 1507546;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 532;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; _b4xpages._showpage /*String*/ (ba,"Principal"); - }else -{RDebugUtils.currentLine=1507547; - //BA.debugLineNum = 1507547;BA.debugLine="Else If name = \"OKExpirado\"& IMEI Then"; -if ((_name).equals("OKExpirado"+__ref._imei /*String*/ )) { -RDebugUtils.currentLine=1507548; - //BA.debugLineNum = 1507548;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administrado"; + }else if((_name).equals("OKExpirado"+_imei)) { + //BA.debugLineNum = 534;BA.debugLine="Msgbox(\"Usuario Expirado llamar al administrado"; __c.Msgbox(BA.ObjectToCharSequence("Usuario Expirado llamar al administrador"),BA.ObjectToCharSequence(""),ba); - }else -{RDebugUtils.currentLine=1507549; - //BA.debugLineNum = 1507549;BA.debugLine="Else If name = \"OKCancelado\"& IMEI Then"; -if ((_name).equals("OKCancelado"+__ref._imei /*String*/ )) { -RDebugUtils.currentLine=1507550; - //BA.debugLineNum = 1507550;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administrad"; + }else if((_name).equals("OKCancelado"+_imei)) { + //BA.debugLineNum = 536;BA.debugLine="Msgbox(\"Usuario Cancelado llamar al administrad"; __c.Msgbox(BA.ObjectToCharSequence("Usuario Cancelado llamar al administrador"),BA.ObjectToCharSequence(""),ba); }else { -RDebugUtils.currentLine=1507552; - //BA.debugLineNum = 1507552;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'ign"; + //BA.debugLineNum = 538;BA.debugLine="Msgbox(\"Usuario o password No validos\",\"\") 'ign"; __c.Msgbox(BA.ObjectToCharSequence("Usuario o password No validos"),BA.ObjectToCharSequence(""),ba); - }}} -; -RDebugUtils.currentLine=1507554; - //BA.debugLineNum = 1507554;BA.debugLine="paso1 = 0"; -__ref._paso1 /*String*/ = BA.NumberToString(0); }; -RDebugUtils.currentLine=1507556; - //BA.debugLineNum = 1507556;BA.debugLine="End Sub"; + //BA.debugLineNum = 540;BA.debugLine="paso1 = 0"; +_paso1 = BA.NumberToString(0); + }; + //BA.debugLineNum = 542;BA.debugLine="End Sub"; return ""; } -public String _passaquci(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "passaquci", false)) - {return ((String) Debug.delegate(ba, "passaquci", null));} -RDebugUtils.currentLine=2883584; - //BA.debugLineNum = 2883584;BA.debugLine="Sub passaquci"; -RDebugUtils.currentLine=2883585; - //BA.debugLineNum = 2883585;BA.debugLine="f=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA from"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info"))); -RDebugUtils.currentLine=2883586; - //BA.debugLineNum = 2883586;BA.debugLine="f.Position=0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=2883588; - //BA.debugLineNum = 2883588;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=2883589; - //BA.debugLineNum = 2883589;BA.debugLine="If a.RowCount>0 Then"; -if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=2883590; - //BA.debugLineNum = 2883590;BA.debugLine="a.Position=0"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); - }; -RDebugUtils.currentLine=2883592; - //BA.debugLineNum = 2883592;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))"; -__c.LogImpl("22883592",__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),0); -RDebugUtils.currentLine=2883593; - //BA.debugLineNum = 2883593;BA.debugLine="Log(f.GetString(\"CAT_CL_RUTA\"))"; -__c.LogImpl("22883593",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"),0); -RDebugUtils.currentLine=2883608; - //BA.debugLineNum = 2883608;BA.debugLine="End Sub"; -return ""; -} -public String _lv_server_itemclick(reparto_izca.keymon.lat.b4xmainpage __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "lv_server_itemclick", false)) - {return ((String) Debug.delegate(ba, "lv_server_itemclick", new Object[] {_position,_value}));} -RDebugUtils.currentLine=1966080; - //BA.debugLineNum = 1966080;BA.debugLine="Private Sub lv_server_ItemClick (Position As Int,"; -RDebugUtils.currentLine=1966081; - //BA.debugLineNum = 1966081;BA.debugLine="server = Value"; -__ref._server /*String*/ = BA.ObjectToString(_value); -RDebugUtils.currentLine=1966083; - //BA.debugLineNum = 1966083;BA.debugLine="et_server.Text = Value"; -__ref._et_server /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_value)); -RDebugUtils.currentLine=1966084; - //BA.debugLineNum = 1966084;BA.debugLine="reqManager.Initialize(Me, Value)"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,BA.ObjectToString(_value)); -RDebugUtils.currentLine=1966085; - //BA.debugLineNum = 1966085;BA.debugLine="LogColor($\"ReqServer = ${Value}\"$, Colors.red)"; -__c.LogImpl("21966085",("ReqServer = "+__c.SmartStringFormatter("",_value)+""),__c.Colors.Red); -RDebugUtils.currentLine=1966086; - //BA.debugLineNum = 1966086;BA.debugLine="ToastMessageShow(\"Servidor modificado\", False)"; +public String _lv_server_itemclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 614;BA.debugLine="Private Sub lv_server_ItemClick (Position As Int,"; + //BA.debugLineNum = 615;BA.debugLine="server = Value"; +_server = BA.ObjectToString(_value); + //BA.debugLineNum = 617;BA.debugLine="et_server.Text = Value"; +_et_server.setText(BA.ObjectToCharSequence(_value)); + //BA.debugLineNum = 618;BA.debugLine="reqManager.Initialize(Me, Value)"; +_reqmanager._initialize /*String*/ (ba,this,BA.ObjectToString(_value)); + //BA.debugLineNum = 619;BA.debugLine="LogColor($\"ReqServer = ${Value}\"$, Colors.red)"; +__c.LogImpl("02228229",("ReqServer = "+__c.SmartStringFormatter("",_value)+""),__c.Colors.Red); + //BA.debugLineNum = 620;BA.debugLine="ToastMessageShow(\"Servidor modificado\", False)"; __c.ToastMessageShow(BA.ObjectToCharSequence("Servidor modificado"),__c.False); -RDebugUtils.currentLine=1966087; - //BA.debugLineNum = 1966087;BA.debugLine="End Sub"; + //BA.debugLineNum = 621;BA.debugLine="End Sub"; return ""; } -public String _p_add_monto_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "p_add_monto_click", false)) - {return ((String) Debug.delegate(ba, "p_add_monto_click", null));} -RDebugUtils.currentLine=2293760; - //BA.debugLineNum = 2293760;BA.debugLine="Private Sub p_add_monto_Click"; -RDebugUtils.currentLine=2293762; - //BA.debugLineNum = 2293762;BA.debugLine="End Sub"; +public String _muestraprogreso(String _mensaje) throws Exception{ + //BA.debugLineNum = 630;BA.debugLine="Sub muestraProgreso(mensaje As String)"; + //BA.debugLineNum = 631;BA.debugLine="ProgressDialogShow(mensaje)"; +__c.ProgressDialogShow(ba,BA.ObjectToCharSequence(_mensaje)); + //BA.debugLineNum = 632;BA.debugLine="End Sub"; return ""; } -public String _p_ciego_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "p_ciego_click", false)) - {return ((String) Debug.delegate(ba, "p_ciego_click", null));} -RDebugUtils.currentLine=2752512; - //BA.debugLineNum = 2752512;BA.debugLine="Private Sub P_CIEGO_Click"; -RDebugUtils.currentLine=2752514; - //BA.debugLineNum = 2752514;BA.debugLine="End Sub"; +public String _ocultaprogreso() throws Exception{ + //BA.debugLineNum = 635;BA.debugLine="Sub ocultaProgreso"; + //BA.debugLineNum = 636;BA.debugLine="ProgressDialogHide"; +__c.ProgressDialogHide(); + //BA.debugLineNum = 637;BA.debugLine="End Sub"; return ""; } -public String _p_validacion_click(reparto_izca.keymon.lat.b4xmainpage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xmainpage"; -if (Debug.shouldDelegate(ba, "p_validacion_click", false)) - {return ((String) Debug.delegate(ba, "p_validacion_click", null));} -RDebugUtils.currentLine=3014656; - //BA.debugLineNum = 3014656;BA.debugLine="Private Sub p_validacion_Click"; -RDebugUtils.currentLine=3014658; - //BA.debugLineNum = 3014658;BA.debugLine="End Sub"; +public String _p_add_monto_click() throws Exception{ + //BA.debugLineNum = 652;BA.debugLine="Private Sub p_add_monto_Click"; + //BA.debugLineNum = 654;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public String _p_ciego_click() throws Exception{ + //BA.debugLineNum = 934;BA.debugLine="Private Sub P_CIEGO_Click"; + //BA.debugLineNum = 936;BA.debugLine="End Sub"; +return ""; +} +public String _p_validacion_click() throws Exception{ + //BA.debugLineNum = 986;BA.debugLine="Private Sub p_validacion_Click"; + //BA.debugLineNum = 988;BA.debugLine="End Sub"; +return ""; +} +public String _passaquci() throws Exception{ + //BA.debugLineNum = 956;BA.debugLine="Sub passaquci"; + //BA.debugLineNum = 957;BA.debugLine="f=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA from"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info"))); + //BA.debugLineNum = 958;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 960;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; +_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 961;BA.debugLine="If a.RowCount>0 Then"; +if (_a.getRowCount()>0) { + //BA.debugLineNum = 962;BA.debugLine="a.Position=0"; +_a.setPosition((int) (0)); + }; + //BA.debugLineNum = 964;BA.debugLine="Log(a.GetString(\"ID_ALMACEN\"))"; +__c.LogImpl("03145736",_a.GetString("ID_ALMACEN"),0); + //BA.debugLineNum = 965;BA.debugLine="Log(f.GetString(\"CAT_CL_RUTA\"))"; +__c.LogImpl("03145737",_f.GetString("CAT_CL_RUTA"),0); + //BA.debugLineNum = 980;BA.debugLine="End Sub"; +return ""; +} +public String _reinicializareqmanager() throws Exception{ + //BA.debugLineNum = 623;BA.debugLine="Sub reinicializaReqManager"; + //BA.debugLineNum = 624;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 625;BA.debugLine="If logger Then Log(B4XPages.MainPage.server)"; +if (_logger) { +__c.LogImpl("02293762",_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ,0);}; + //BA.debugLineNum = 626;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server"; +__c.LogImpl("02293763",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); + //BA.debugLineNum = 627;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +if (BA.fastSubCompare(sub, "JOBDONE")) + return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xorderedmap.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xorderedmap.java index b217b62..cc237b4 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xorderedmap.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xorderedmap.java @@ -10,7 +10,7 @@ public class b4xorderedmap extends B4AClass.ImplB4AClass implements BA.SubDelega private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xorderedmap"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xorderedmap"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xorderedmap extends B4AClass.ImplB4AClass implements BA.SubDelega ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -47,237 +40,139 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public anywheresoftware.b4a.objects.collections.List _getkeys(reparto_izca.keymon.lat.b4xorderedmap __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "getkeys", true)) - {return ((anywheresoftware.b4a.objects.collections.List) Debug.delegate(ba, "getkeys", null));} -RDebugUtils.currentLine=37945344; - //BA.debugLineNum = 37945344;BA.debugLine="Public Sub getKeys As List"; -RDebugUtils.currentLine=37945345; - //BA.debugLineNum = 37945345;BA.debugLine="Return list"; -if (true) return __ref._list /*anywheresoftware.b4a.objects.collections.List*/ ; -RDebugUtils.currentLine=37945346; - //BA.debugLineNum = 37945346;BA.debugLine="End Sub"; -return null; -} -public Object _get(reparto_izca.keymon.lat.b4xorderedmap __ref,Object _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "get", true)) - {return ((Object) Debug.delegate(ba, "get", new Object[] {_key}));} -RDebugUtils.currentLine=38010880; - //BA.debugLineNum = 38010880;BA.debugLine="Public Sub Get (Key As Object) As Object"; -RDebugUtils.currentLine=38010881; - //BA.debugLineNum = 38010881;BA.debugLine="Return map.Get(Key)"; -if (true) return __ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .Get(_key); -RDebugUtils.currentLine=38010882; - //BA.debugLineNum = 38010882;BA.debugLine="End Sub"; -return null; -} -public String _put(reparto_izca.keymon.lat.b4xorderedmap __ref,Object _key,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "put", true)) - {return ((String) Debug.delegate(ba, "put", new Object[] {_key,_value}));} -RDebugUtils.currentLine=37748736; - //BA.debugLineNum = 37748736;BA.debugLine="Public Sub Put (Key As Object, Value As Object)"; -RDebugUtils.currentLine=37748737; - //BA.debugLineNum = 37748737;BA.debugLine="If map.ContainsKey(Key) = False Then"; -if (__ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .ContainsKey(_key)==__c.False) { -RDebugUtils.currentLine=37748738; - //BA.debugLineNum = 37748738;BA.debugLine="list.Add(Key)"; -__ref._list /*anywheresoftware.b4a.objects.collections.List*/ .Add(_key); - }; -RDebugUtils.currentLine=37748740; - //BA.debugLineNum = 37748740;BA.debugLine="map.Put(Key, Value)"; -__ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .Put(_key,_value); -RDebugUtils.currentLine=37748741; - //BA.debugLineNum = 37748741;BA.debugLine="End Sub"; +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 _initialize(reparto_izca.keymon.lat.b4xorderedmap __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=37683200; - //BA.debugLineNum = 37683200;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=37683201; - //BA.debugLineNum = 37683201;BA.debugLine="map.Initialize"; -__ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); -RDebugUtils.currentLine=37683202; - //BA.debugLineNum = 37683202;BA.debugLine="list.Initialize"; -__ref._list /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=37683203; - //BA.debugLineNum = 37683203;BA.debugLine="End Sub"; +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 String _clear(reparto_izca.keymon.lat.b4xorderedmap __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "clear", true)) - {return ((String) Debug.delegate(ba, "clear", null));} -RDebugUtils.currentLine=37879808; - //BA.debugLineNum = 37879808;BA.debugLine="Public Sub Clear"; -RDebugUtils.currentLine=37879809; - //BA.debugLineNum = 37879809;BA.debugLine="list.Clear"; -__ref._list /*anywheresoftware.b4a.objects.collections.List*/ .Clear(); -RDebugUtils.currentLine=37879810; - //BA.debugLineNum = 37879810;BA.debugLine="map.Clear"; -__ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .Clear(); -RDebugUtils.currentLine=37879811; - //BA.debugLineNum = 37879811;BA.debugLine="End Sub"; -return ""; -} -public boolean _containskey(reparto_izca.keymon.lat.b4xorderedmap __ref,Object _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "containskey", true)) - {return ((Boolean) Debug.delegate(ba, "containskey", new Object[] {_key}));} -RDebugUtils.currentLine=38141952; - //BA.debugLineNum = 38141952;BA.debugLine="Public Sub ContainsKey (Key As Object) As Boolean"; -RDebugUtils.currentLine=38141953; - //BA.debugLineNum = 38141953;BA.debugLine="Return map.ContainsKey(Key)"; -if (true) return __ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .ContainsKey(_key); -RDebugUtils.currentLine=38141954; - //BA.debugLineNum = 38141954;BA.debugLine="End Sub"; +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 int _getsize(reparto_izca.keymon.lat.b4xorderedmap __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "getsize", true)) - {return ((Integer) Debug.delegate(ba, "getsize", null));} -RDebugUtils.currentLine=38207488; - //BA.debugLineNum = 38207488;BA.debugLine="Public Sub getSize As Int"; -RDebugUtils.currentLine=38207489; - //BA.debugLineNum = 38207489;BA.debugLine="Return map.Size"; -if (true) return __ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .getSize(); -RDebugUtils.currentLine=38207490; - //BA.debugLineNum = 38207490;BA.debugLine="End Sub"; +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 String _remove(reparto_izca.keymon.lat.b4xorderedmap __ref,Object _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "remove", true)) - {return ((String) Debug.delegate(ba, "remove", new Object[] {_key}));} -RDebugUtils.currentLine=37814272; - //BA.debugLineNum = 37814272;BA.debugLine="Public Sub Remove (Key As Object)"; -RDebugUtils.currentLine=37814273; - //BA.debugLineNum = 37814273;BA.debugLine="If map.ContainsKey(Key) = False Then Return"; -if (__ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .ContainsKey(_key)==__c.False) { -if (true) return "";}; -RDebugUtils.currentLine=37814274; - //BA.debugLineNum = 37814274;BA.debugLine="list.RemoveAt(list.IndexOf(Key))"; -__ref._list /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._list /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_key)); -RDebugUtils.currentLine=37814275; - //BA.debugLineNum = 37814275;BA.debugLine="map.Remove(Key)"; -__ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .Remove(_key); -RDebugUtils.currentLine=37814276; - //BA.debugLineNum = 37814276;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.collections.List _getvalues(reparto_izca.keymon.lat.b4xorderedmap __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "getvalues", true)) - {return ((anywheresoftware.b4a.objects.collections.List) Debug.delegate(ba, "getvalues", null));} +public anywheresoftware.b4a.objects.collections.List _getvalues() throws Exception{ anywheresoftware.b4a.objects.collections.List _res = null; Object _key = null; -RDebugUtils.currentLine=38273024; - //BA.debugLineNum = 38273024;BA.debugLine="Public Sub getValues As List"; -RDebugUtils.currentLine=38273025; - //BA.debugLineNum = 38273025;BA.debugLine="Dim res As List"; + //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(); -RDebugUtils.currentLine=38273026; - //BA.debugLineNum = 38273026;BA.debugLine="res.Initialize"; + //BA.debugLineNum = 57;BA.debugLine="res.Initialize"; _res.Initialize(); -RDebugUtils.currentLine=38273027; - //BA.debugLineNum = 38273027;BA.debugLine="For Each key As Object In list"; + //BA.debugLineNum = 58;BA.debugLine="For Each key As Object In list"; { -final anywheresoftware.b4a.BA.IterableList group3 = __ref._list /*anywheresoftware.b4a.objects.collections.List*/ ; +final anywheresoftware.b4a.BA.IterableList group3 = _list; final int groupLen3 = group3.getSize() ;int index3 = 0; ; for (; index3 < groupLen3;index3++){ _key = group3.Get(index3); -RDebugUtils.currentLine=38273028; - //BA.debugLineNum = 38273028;BA.debugLine="res.Add(map.Get(key))"; -_res.Add(__ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .Get(_key)); + //BA.debugLineNum = 59;BA.debugLine="res.Add(map.Get(key))"; +_res.Add(_map.Get(_key)); } }; -RDebugUtils.currentLine=38273030; - //BA.debugLineNum = 38273030;BA.debugLine="Return res"; + //BA.debugLineNum = 61;BA.debugLine="Return res"; if (true) return _res; -RDebugUtils.currentLine=38273031; - //BA.debugLineNum = 38273031;BA.debugLine="End Sub"; + //BA.debugLineNum = 62;BA.debugLine="End Sub"; return null; } -public String _class_globals(reparto_izca.keymon.lat.b4xorderedmap __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -RDebugUtils.currentLine=37617664; - //BA.debugLineNum = 37617664;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=37617665; - //BA.debugLineNum = 37617665;BA.debugLine="Private map As Map"; -_map = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=37617666; - //BA.debugLineNum = 37617666;BA.debugLine="Private list As List"; -_list = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=37617667; - //BA.debugLineNum = 37617667;BA.debugLine="End Sub"; +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 Object _getdataforserializator(reparto_izca.keymon.lat.b4xorderedmap __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "getdataforserializator", true)) - {return ((Object) Debug.delegate(ba, "getdataforserializator", null));} -RDebugUtils.currentLine=38338560; - //BA.debugLineNum = 38338560;BA.debugLine="Public Sub GetDataForSerializator As Object"; -RDebugUtils.currentLine=38338561; - //BA.debugLineNum = 38338561;BA.debugLine="Return Array(map, list)"; -if (true) return (Object)(new Object[]{(Object)(__ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .getObject()),(Object)(__ref._list /*anywheresoftware.b4a.objects.collections.List*/ .getObject())}); -RDebugUtils.currentLine=38338562; - //BA.debugLineNum = 38338562;BA.debugLine="End Sub"; -return null; +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 Object _getdefault(reparto_izca.keymon.lat.b4xorderedmap __ref,Object _key,Object _defaultvalue) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "getdefault", true)) - {return ((Object) Debug.delegate(ba, "getdefault", new Object[] {_key,_defaultvalue}));} -RDebugUtils.currentLine=38076416; - //BA.debugLineNum = 38076416;BA.debugLine="Public Sub GetDefault (Key As Object, DefaultValue"; -RDebugUtils.currentLine=38076417; - //BA.debugLineNum = 38076417;BA.debugLine="Return map.GetDefault(Key, DefaultValue)"; -if (true) return __ref._map /*anywheresoftware.b4a.objects.collections.Map*/ .GetDefault(_key,_defaultvalue); -RDebugUtils.currentLine=38076418; - //BA.debugLineNum = 38076418;BA.debugLine="End Sub"; -return null; +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(reparto_izca.keymon.lat.b4xorderedmap __ref,Object _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xorderedmap"; -if (Debug.shouldDelegate(ba, "setdatafromserializator", true)) - {return ((String) Debug.delegate(ba, "setdatafromserializator", new Object[] {_data}));} +public String _setdatafromserializator(Object _data) throws Exception{ Object[] _o = null; -RDebugUtils.currentLine=38404096; - //BA.debugLineNum = 38404096;BA.debugLine="Public Sub SetDataFromSerializator (Data As Object"; -RDebugUtils.currentLine=38404097; - //BA.debugLineNum = 38404097;BA.debugLine="Dim o() As Object = Data"; + //BA.debugLineNum = 70;BA.debugLine="Public Sub SetDataFromSerializator (Data As Object"; + //BA.debugLineNum = 71;BA.debugLine="Dim o() As Object = Data"; _o = (Object[])(_data); -RDebugUtils.currentLine=38404098; - //BA.debugLineNum = 38404098;BA.debugLine="map = o(0)"; -__ref._map /*anywheresoftware.b4a.objects.collections.Map*/ = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_o[(int) (0)])); -RDebugUtils.currentLine=38404099; - //BA.debugLineNum = 38404099;BA.debugLine="list = o(1)"; -__ref._list /*anywheresoftware.b4a.objects.collections.List*/ = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_o[(int) (1)])); -RDebugUtils.currentLine=38404100; - //BA.debugLineNum = 38404100;BA.debugLine="End Sub"; + //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 ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xpages.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpages.java index 5c3ade0..ef500e0 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xpages.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpages.java @@ -10,8 +10,7 @@ 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 anywheresoftware.b4a.keywords.Common __c = null; public static Object _mpm = null; public static reparto_izca.keymon.lat.b4xpagesdelegator _delegate = null; public static Object _globalcontext = null; @@ -28,189 +27,115 @@ public reparto_izca.keymon.lat.newinst2 _newinst2 = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public static String _showpage(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "showpage", true)) - {return ((String) Debug.delegate(null, "showpage", new Object[] {_ba,_id}));} -RDebugUtils.currentLine=33882112; - //BA.debugLineNum = 33882112;BA.debugLine="Public Sub ShowPage (Id As String)"; -RDebugUtils.currentLine=33882113; - //BA.debugLineNum = 33882113;BA.debugLine="GetManager.ShowPage(Id)"; -_getmanager(_ba)._showpage /*String*/ (null,_id); -RDebugUtils.currentLine=33882114; - //BA.debugLineNum = 33882114;BA.debugLine="End Sub"; -return ""; -} -public static reparto_izca.keymon.lat.b4xmainpage _mainpage(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "mainpage", true)) - {return ((reparto_izca.keymon.lat.b4xmainpage) Debug.delegate(null, "mainpage", new Object[] {_ba}));} -RDebugUtils.currentLine=34144256; - //BA.debugLineNum = 34144256;BA.debugLine="Public Sub MainPage As B4XMainPage"; -RDebugUtils.currentLine=34144257; - //BA.debugLineNum = 34144257;BA.debugLine="Return GetManager.MainPage"; -if (true) return _getmanager(_ba)._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ ; -RDebugUtils.currentLine=34144258; - //BA.debugLineNum = 34144258;BA.debugLine="End Sub"; +public static reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _addmenuitem(anywheresoftware.b4a.BA _ba,Object _b4xpage,Object _title) throws Exception{ + //BA.debugLineNum = 91;BA.debugLine="Public Sub AddMenuItem(B4XPage As Object, Title As"; + //BA.debugLineNum = 92;BA.debugLine="Return GetManager.AddMenuItem(B4XPage, Title)"; +if (true) return _getmanager(_ba)._addmenuitem /*reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem*/ (_b4xpage,_title); + //BA.debugLineNum = 93;BA.debugLine="End Sub"; return null; } -public static reparto_izca.keymon.lat.b4xpagesmanager _getmanager(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "getmanager", true)) - {return ((reparto_izca.keymon.lat.b4xpagesmanager) Debug.delegate(null, "getmanager", new Object[] {_ba}));} -RDebugUtils.currentLine=33488896; - //BA.debugLineNum = 33488896;BA.debugLine="Public Sub GetManager As B4XPagesManager"; -RDebugUtils.currentLine=33488897; - //BA.debugLineNum = 33488897;BA.debugLine="Return mPM"; -if (true) return (reparto_izca.keymon.lat.b4xpagesmanager)(_mpm); -RDebugUtils.currentLine=33488898; - //BA.debugLineNum = 33488898;BA.debugLine="End Sub"; -return null; -} -public static String _settitle(anywheresoftware.b4a.BA _ba,Object _b4xpage,Object _title) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "settitle", true)) - {return ((String) Debug.delegate(null, "settitle", new Object[] {_ba,_b4xpage,_title}));} -RDebugUtils.currentLine=34078720; - //BA.debugLineNum = 34078720;BA.debugLine="Public Sub SetTitle (B4XPage As Object, Title As O"; -RDebugUtils.currentLine=34078721; - //BA.debugLineNum = 34078721;BA.debugLine="GetManager.SetTitle(B4XPage, Title)"; -_getmanager(_ba)._settitle /*String*/ (null,_b4xpage,_title); -RDebugUtils.currentLine=34078722; - //BA.debugLineNum = 34078722;BA.debugLine="End Sub"; -return ""; -} public static String _addpage(anywheresoftware.b4a.BA _ba,String _id,Object _b4xpage) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "addpage", true)) - {return ((String) Debug.delegate(null, "addpage", new Object[] {_ba,_id,_b4xpage}));} -RDebugUtils.currentLine=33751040; - //BA.debugLineNum = 33751040;BA.debugLine="Public Sub AddPage (Id As String, B4XPage As Objec"; -RDebugUtils.currentLine=33751041; - //BA.debugLineNum = 33751041;BA.debugLine="GetManager.AddPage(Id, B4XPage)"; -_getmanager(_ba)._addpage /*String*/ (null,_id,_b4xpage); -RDebugUtils.currentLine=33751042; - //BA.debugLineNum = 33751042;BA.debugLine="End Sub"; + //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 reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _addmenuitem(anywheresoftware.b4a.BA _ba,Object _b4xpage,Object _title) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "addmenuitem", true)) - {return ((reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem) Debug.delegate(null, "addmenuitem", new Object[] {_ba,_b4xpage,_title}));} -RDebugUtils.currentLine=34275328; - //BA.debugLineNum = 34275328;BA.debugLine="Public Sub AddMenuItem(B4XPage As Object, Title As"; -RDebugUtils.currentLine=34275329; - //BA.debugLineNum = 34275329;BA.debugLine="Return GetManager.AddMenuItem(B4XPage, Title)"; -if (true) return _getmanager(_ba)._addmenuitem /*reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem*/ (null,_b4xpage,_title); -RDebugUtils.currentLine=34275330; - //BA.debugLineNum = 34275330;BA.debugLine="End Sub"; -return null; -} public static String _addpageandcreate(anywheresoftware.b4a.BA _ba,String _id,Object _b4xpage) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "addpageandcreate", true)) - {return ((String) Debug.delegate(null, "addpageandcreate", new Object[] {_ba,_id,_b4xpage}));} -RDebugUtils.currentLine=33816576; - //BA.debugLineNum = 33816576;BA.debugLine="Public Sub AddPageAndCreate (Id As String, B4XPage"; -RDebugUtils.currentLine=33816577; - //BA.debugLineNum = 33816577;BA.debugLine="GetManager.AddPageAndCreate(Id, B4XPage)"; -_getmanager(_ba)._addpageandcreate /*String*/ (null,_id,_b4xpage); -RDebugUtils.currentLine=33816578; - //BA.debugLineNum = 33816578;BA.debugLine="End Sub"; + //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{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "closepage", true)) - {return ((String) Debug.delegate(null, "closepage", new Object[] {_ba,_b4xpage}));} -RDebugUtils.currentLine=34013184; - //BA.debugLineNum = 34013184;BA.debugLine="Public Sub ClosePage (B4XPage As Object)"; -RDebugUtils.currentLine=34013185; - //BA.debugLineNum = 34013185;BA.debugLine="GetManager.ClosePage (B4XPage)"; -_getmanager(_ba)._closepage /*String*/ (null,_b4xpage); -RDebugUtils.currentLine=34013186; - //BA.debugLineNum = 34013186;BA.debugLine="End Sub"; + //BA.debugLineNum = 62;BA.debugLine="Public Sub ClosePage (B4XPage As Object)"; + //BA.debugLineNum = 63;BA.debugLine="GetManager.ClosePage (B4XPage)"; +_getmanager(_ba)._closepage /*String*/ (_b4xpage); + //BA.debugLineNum = 64;BA.debugLine="End Sub"; return ""; } +public static reparto_izca.keymon.lat.b4xpagesmanager _getmanager(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 14;BA.debugLine="Public Sub GetManager As B4XPagesManager"; + //BA.debugLineNum = 15;BA.debugLine="Return mPM"; +if (true) return (reparto_izca.keymon.lat.b4xpagesmanager)(_mpm); + //BA.debugLineNum = 16;BA.debugLine="End Sub"; +return null; +} public static anywheresoftware.b4a.objects.ActivityWrapper _getnativeparent(anywheresoftware.b4a.BA _ba,Object _b4xpage) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "getnativeparent", true)) - {return ((anywheresoftware.b4a.objects.ActivityWrapper) Debug.delegate(null, "getnativeparent", new Object[] {_ba,_b4xpage}));} -RDebugUtils.currentLine=34209792; - //BA.debugLineNum = 34209792;BA.debugLine="Public Sub GetNativeParent (B4XPage As Object) As"; -RDebugUtils.currentLine=34209800; - //BA.debugLineNum = 34209800;BA.debugLine="Return GetManager.FindPIFromB4XPage(B4XPage).Pare"; -if (true) return _getmanager(_ba)._findpifromb4xpage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_b4xpage).Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .NativeType /*anywheresoftware.b4a.objects.ActivityWrapper*/ ; -RDebugUtils.currentLine=34209801; - //BA.debugLineNum = 34209801;BA.debugLine="End Sub"; + //BA.debugLineNum = 79;BA.debugLine="Public Sub GetNativeParent (B4XPage As Object) As"; + //BA.debugLineNum = 87;BA.debugLine="Return GetManager.FindPIFromB4XPage(B4XPage).Pare"; +if (true) return _getmanager(_ba)._findpifromb4xpage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (_b4xpage).Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .NativeType /*anywheresoftware.b4a.objects.ActivityWrapper*/ ; + //BA.debugLineNum = 88;BA.debugLine="End Sub"; return null; } public static Object _getpage(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "getpage", true)) - {return ((Object) Debug.delegate(null, "getpage", new Object[] {_ba,_id}));} -RDebugUtils.currentLine=33619968; - //BA.debugLineNum = 33619968;BA.debugLine="Public Sub GetPage (Id As String) As Object"; -RDebugUtils.currentLine=33619969; - //BA.debugLineNum = 33619969;BA.debugLine="Return GetManager.GetPage(Id)"; -if (true) return _getmanager(_ba)._getpage /*Object*/ (null,_id); -RDebugUtils.currentLine=33619970; - //BA.debugLineNum = 33619970;BA.debugLine="End Sub"; + //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{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "getpageid", true)) - {return ((String) Debug.delegate(null, "getpageid", new Object[] {_ba,_b4xpage}));} -RDebugUtils.currentLine=33685504; - //BA.debugLineNum = 33685504;BA.debugLine="Public Sub GetPageId (B4XPage As Object) As String"; -RDebugUtils.currentLine=33685505; - //BA.debugLineNum = 33685505;BA.debugLine="Return GetManager.FindPIFromB4XPage(B4XPage).Id"; -if (true) return _getmanager(_ba)._findpifromb4xpage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_b4xpage).Id /*String*/ ; -RDebugUtils.currentLine=33685506; - //BA.debugLineNum = 33685506;BA.debugLine="End Sub"; + //BA.debugLineNum = 32;BA.debugLine="Public Sub GetPageId (B4XPage As Object) As String"; + //BA.debugLineNum = 33;BA.debugLine="Return GetManager.FindPIFromB4XPage(B4XPage).Id"; +if (true) return _getmanager(_ba)._findpifromb4xpage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (_b4xpage).Id /*String*/ ; + //BA.debugLineNum = 34;BA.debugLine="End Sub"; return ""; } public static String _internalsetpagesmanager(anywheresoftware.b4a.BA _ba,Object _pm) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "internalsetpagesmanager", true)) - {return ((String) Debug.delegate(null, "internalsetpagesmanager", new Object[] {_ba,_pm}));} -RDebugUtils.currentLine=33554432; - //BA.debugLineNum = 33554432;BA.debugLine="Public Sub InternalSetPagesManager(PM As Object)"; -RDebugUtils.currentLine=33554433; - //BA.debugLineNum = 33554433;BA.debugLine="Delegate.Initialize"; -_delegate._initialize /*String*/ (null,(_ba.processBA == null ? _ba : _ba.processBA)); -RDebugUtils.currentLine=33554434; - //BA.debugLineNum = 33554434;BA.debugLine="mPM = PM"; + //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; -RDebugUtils.currentLine=33554435; - //BA.debugLineNum = 33554435;BA.debugLine="End Sub"; + //BA.debugLineNum = 22;BA.debugLine="End Sub"; return ""; } public static boolean _isinitialized(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "isinitialized", true)) - {return ((Boolean) Debug.delegate(null, "isinitialized", new Object[] {_ba}));} -RDebugUtils.currentLine=33423360; - //BA.debugLineNum = 33423360;BA.debugLine="Public Sub IsInitialized As Boolean"; -RDebugUtils.currentLine=33423361; - //BA.debugLineNum = 33423361;BA.debugLine="Return mPM Is B4XPagesManager"; + //BA.debugLineNum = 9;BA.debugLine="Public Sub IsInitialized As Boolean"; + //BA.debugLineNum = 10;BA.debugLine="Return mPM Is B4XPagesManager"; if (true) return _mpm instanceof reparto_izca.keymon.lat.b4xpagesmanager; -RDebugUtils.currentLine=33423362; - //BA.debugLineNum = 33423362;BA.debugLine="End Sub"; + //BA.debugLineNum = 11;BA.debugLine="End Sub"; return false; } -public static String _showpageandremovepreviouspages(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ -RDebugUtils.currentModule="b4xpages"; -if (Debug.shouldDelegate(null, "showpageandremovepreviouspages", true)) - {return ((String) Debug.delegate(null, "showpageandremovepreviouspages", new Object[] {_ba,_id}));} -RDebugUtils.currentLine=33947648; - //BA.debugLineNum = 33947648;BA.debugLine="Public Sub ShowPageAndRemovePreviousPages (Id As S"; -RDebugUtils.currentLine=33947649; - //BA.debugLineNum = 33947649;BA.debugLine="GetManager.ShowPageAndRemovePreviousPages (Id)"; -_getmanager(_ba)._showpageandremovepreviouspages /*String*/ (null,_id); -RDebugUtils.currentLine=33947650; - //BA.debugLineNum = 33947650;BA.debugLine="End Sub"; +public static reparto_izca.keymon.lat.b4xmainpage _mainpage(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 73;BA.debugLine="Public Sub MainPage As B4XMainPage"; + //BA.debugLineNum = 74;BA.debugLine="Return GetManager.MainPage"; +if (true) return _getmanager(_ba)._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ ; + //BA.debugLineNum = 75;BA.debugLine="End Sub"; +return null; +} +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private mPM As Object"; +_mpm = new Object(); + //BA.debugLineNum = 3;BA.debugLine="Public Delegate As B4XPagesDelegator"; +_delegate = new reparto_izca.keymon.lat.b4xpagesdelegator(); + //BA.debugLineNum = 4;BA.debugLine="Public GlobalContext As Object"; +_globalcontext = new Object(); + //BA.debugLineNum = 5;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public static String _settitle(anywheresoftware.b4a.BA _ba,Object _b4xpage,Object _title) throws Exception{ + //BA.debugLineNum = 68;BA.debugLine="Public Sub SetTitle (B4XPage As Object, Title As O"; + //BA.debugLineNum = 69;BA.debugLine="GetManager.SetTitle(B4XPage, Title)"; +_getmanager(_ba)._settitle /*String*/ (_b4xpage,_title); + //BA.debugLineNum = 70;BA.debugLine="End Sub"; +return ""; +} +public static String _showpage(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ + //BA.debugLineNum = 50;BA.debugLine="Public Sub ShowPage (Id As String)"; + //BA.debugLineNum = 51;BA.debugLine="GetManager.ShowPage(Id)"; +_getmanager(_ba)._showpage /*String*/ (_id); + //BA.debugLineNum = 52;BA.debugLine="End Sub"; +return ""; +} +public static String _showpageandremovepreviouspages(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ + //BA.debugLineNum = 56;BA.debugLine="Public Sub ShowPageAndRemovePreviousPages (Id As S"; + //BA.debugLineNum = 57;BA.debugLine="GetManager.ShowPageAndRemovePreviousPages (Id)"; +_getmanager(_ba)._showpageandremovepreviouspages /*String*/ (_id); + //BA.debugLineNum = 58;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesdelegator.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesdelegator.java index dc0d6c1..ebea0ff 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesdelegator.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesdelegator.java @@ -10,7 +10,7 @@ public class b4xpagesdelegator extends B4AClass.ImplB4AClass implements BA.SubDe private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xpagesdelegator"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xpagesdelegator"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xpagesdelegator extends B4AClass.ImplB4AClass implements BA.SubDe ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public b4a.example.dateutils _dateutils = null; public reparto_izca.keymon.lat.main _main = null; public reparto_izca.keymon.lat.appupdater _appupdater = null; @@ -45,121 +38,68 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _activity_actionbarhomeclick(reparto_izca.keymon.lat.b4xpagesdelegator __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesdelegator"; -if (Debug.shouldDelegate(ba, "activity_actionbarhomeclick", true)) - {return ((String) Debug.delegate(ba, "activity_actionbarhomeclick", null));} -RDebugUtils.currentLine=39256064; - //BA.debugLineNum = 39256064;BA.debugLine="Public Sub Activity_ActionBarHomeClick"; -RDebugUtils.currentLine=39256065; - //BA.debugLineNum = 39256065;BA.debugLine="B4XPages.GetManager.Activity_ActionBarHomeClick"; -_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_actionbarhomeclick /*String*/ (null); -RDebugUtils.currentLine=39256066; - //BA.debugLineNum = 39256066;BA.debugLine="End Sub"; +public String _activity_actionbarhomeclick() throws Exception{ + //BA.debugLineNum = 35;BA.debugLine="Public Sub Activity_ActionBarHomeClick"; + //BA.debugLineNum = 36;BA.debugLine="B4XPages.GetManager.Activity_ActionBarHomeClick"; +_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_actionbarhomeclick /*String*/ (); + //BA.debugLineNum = 37;BA.debugLine="End Sub"; return ""; } -public boolean _activity_keypress(reparto_izca.keymon.lat.b4xpagesdelegator __ref,int _keycode) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesdelegator"; -if (Debug.shouldDelegate(ba, "activity_keypress", true)) - {return ((Boolean) Debug.delegate(ba, "activity_keypress", new Object[] {_keycode}));} -RDebugUtils.currentLine=39124992; - //BA.debugLineNum = 39124992;BA.debugLine="Public Sub Activity_KeyPress (KeyCode As Int) As B"; -RDebugUtils.currentLine=39124993; - //BA.debugLineNum = 39124993;BA.debugLine="Return B4XPages.GetManager.Activity_KeyPress (Key"; -if (true) return _b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_keypress /*boolean*/ (null,_keycode); -RDebugUtils.currentLine=39124994; - //BA.debugLineNum = 39124994;BA.debugLine="End Sub"; +public boolean _activity_keypress(int _keycode) throws Exception{ + //BA.debugLineNum = 27;BA.debugLine="Public Sub Activity_KeyPress (KeyCode As Int) As B"; + //BA.debugLineNum = 28;BA.debugLine="Return B4XPages.GetManager.Activity_KeyPress (Key"; +if (true) return _b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_keypress /*boolean*/ (_keycode); + //BA.debugLineNum = 29;BA.debugLine="End Sub"; return false; } -public String _activity_pause(reparto_izca.keymon.lat.b4xpagesdelegator __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesdelegator"; -RDebugUtils.currentLine=39518208; - //BA.debugLineNum = 39518208;BA.debugLine="Public Sub Activity_Pause"; -RDebugUtils.currentLine=39518209; - //BA.debugLineNum = 39518209;BA.debugLine="B4XPages.GetManager.Activity_Pause"; -_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_pause /*String*/ (null); -RDebugUtils.currentLine=39518210; - //BA.debugLineNum = 39518210;BA.debugLine="End Sub"; +public String _activity_pause() throws Exception{ + //BA.debugLineNum = 52;BA.debugLine="Public Sub Activity_Pause"; + //BA.debugLineNum = 53;BA.debugLine="B4XPages.GetManager.Activity_Pause"; +_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_pause /*String*/ (); + //BA.debugLineNum = 54;BA.debugLine="End Sub"; return ""; } -public String _activity_permissionresult(reparto_izca.keymon.lat.b4xpagesdelegator __ref,String _permission,boolean _result) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesdelegator"; -if (Debug.shouldDelegate(ba, "activity_permissionresult", true)) - {return ((String) Debug.delegate(ba, "activity_permissionresult", new Object[] {_permission,_result}));} -RDebugUtils.currentLine=39190528; - //BA.debugLineNum = 39190528;BA.debugLine="Sub Activity_PermissionResult (Permission As Strin"; -RDebugUtils.currentLine=39190529; - //BA.debugLineNum = 39190529;BA.debugLine="B4XPages.GetManager.RaiseEvent(B4XPages.GetManage"; -_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._raiseevent /*String*/ (null,_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null),"B4XPage_PermissionResult",new Object[]{(Object)(_permission),(Object)(_result)}); -RDebugUtils.currentLine=39190530; - //BA.debugLineNum = 39190530;BA.debugLine="End Sub"; +public String _activity_permissionresult(String _permission,boolean _result) throws Exception{ + //BA.debugLineNum = 31;BA.debugLine="Sub Activity_PermissionResult (Permission As Strin"; + //BA.debugLineNum = 32;BA.debugLine="B4XPages.GetManager.RaiseEvent(B4XPages.GetManage"; +_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._raiseevent /*String*/ (_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (),"B4XPage_PermissionResult",new Object[]{(Object)(_permission),(Object)(_result)}); + //BA.debugLineNum = 33;BA.debugLine="End Sub"; return ""; } -public String _activity_resume(reparto_izca.keymon.lat.b4xpagesdelegator __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesdelegator"; -if (Debug.shouldDelegate(ba, "activity_resume", true)) - {return ((String) Debug.delegate(ba, "activity_resume", null));} -RDebugUtils.currentLine=39452672; - //BA.debugLineNum = 39452672;BA.debugLine="Public Sub Activity_Resume"; -RDebugUtils.currentLine=39452673; - //BA.debugLineNum = 39452673;BA.debugLine="B4XPages.GetManager.Activity_Resume"; -_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_resume /*String*/ (null); -RDebugUtils.currentLine=39452674; - //BA.debugLineNum = 39452674;BA.debugLine="End Sub"; +public String _activity_resume() throws Exception{ + //BA.debugLineNum = 48;BA.debugLine="Public Sub Activity_Resume"; + //BA.debugLineNum = 49;BA.debugLine="B4XPages.GetManager.Activity_Resume"; +_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._activity_resume /*String*/ (); + //BA.debugLineNum = 50;BA.debugLine="End Sub"; return ""; } -public String _create_menu(reparto_izca.keymon.lat.b4xpagesdelegator __ref,Object _menu) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesdelegator"; -if (Debug.shouldDelegate(ba, "create_menu", true)) - {return ((String) Debug.delegate(ba, "create_menu", new Object[] {_menu}));} -RDebugUtils.currentLine=39321600; - //BA.debugLineNum = 39321600;BA.debugLine="Public Sub Create_Menu (Menu As Object)"; -RDebugUtils.currentLine=39321601; - //BA.debugLineNum = 39321601;BA.debugLine="B4XPages.GetManager.CreateMenu(Menu)"; -_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._createmenu /*String*/ (null,_menu); -RDebugUtils.currentLine=39321602; - //BA.debugLineNum = 39321602;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xpagesdelegator __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public String _create_menu(Object _menu) throws Exception{ + //BA.debugLineNum = 39;BA.debugLine="Public Sub Create_Menu (Menu As Object)"; + //BA.debugLineNum = 40;BA.debugLine="B4XPages.GetManager.CreateMenu(Menu)"; +_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._createmenu /*String*/ (_menu); + //BA.debugLineNum = 41;BA.debugLine="End Sub"; +return ""; +} +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xpagesdelegator"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=39059456; - //BA.debugLineNum = 39059456;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=39059458; - //BA.debugLineNum = 39059458;BA.debugLine="End Sub"; + //BA.debugLineNum = 4;BA.debugLine="Public Sub Initialize"; + //BA.debugLineNum = 6;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.b4xpagesdelegator __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesdelegator"; -RDebugUtils.currentLine=38993920; - //BA.debugLineNum = 38993920;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=38993921; - //BA.debugLineNum = 38993921;BA.debugLine="End Sub"; +public String _mainform_resize(double _width,double _height) throws Exception{ + //BA.debugLineNum = 44;BA.debugLine="Public Sub MainForm_Resize(Width As Double, Height"; + //BA.debugLineNum = 45;BA.debugLine="B4XPages.GetManager.MainForm_Resize(Width, Height"; +_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._mainform_resize /*String*/ (_width,_height); + //BA.debugLineNum = 46;BA.debugLine="End Sub"; return ""; } -public String _mainform_resize(reparto_izca.keymon.lat.b4xpagesdelegator __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesdelegator"; -if (Debug.shouldDelegate(ba, "mainform_resize", true)) - {return ((String) Debug.delegate(ba, "mainform_resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=39387136; - //BA.debugLineNum = 39387136;BA.debugLine="Public Sub MainForm_Resize(Width As Double, Height"; -RDebugUtils.currentLine=39387137; - //BA.debugLineNum = 39387137;BA.debugLine="B4XPages.GetManager.MainForm_Resize(Width, Height"; -_b4xpages._getmanager /*reparto_izca.keymon.lat.b4xpagesmanager*/ (getActivityBA())._mainform_resize /*String*/ (null,_width,_height); -RDebugUtils.currentLine=39387138; - //BA.debugLineNum = 39387138;BA.debugLine="End Sub"; -return ""; +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesmanager.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesmanager.java index 625ecb5..dab10d0 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesmanager.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xpagesmanager.java @@ -10,7 +10,7 @@ public class b4xpagesmanager extends B4AClass.ImplB4AClass implements BA.SubDele private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xpagesmanager"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xpagesmanager"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,13 +23,34 @@ public class b4xpagesmanager extends B4AClass.ImplB4AClass implements BA.SubDele ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } + public anywheresoftware.b4a.keywords.Common __c = null; +public reparto_izca.keymon.lat.b4xorderedmap _idtob4xpage = null; +public reparto_izca.keymon.lat.b4xorderedmap _rootb4xtopage = null; +public anywheresoftware.b4j.object.JavaObject _context = null; +public reparto_izca.keymon.lat.b4xset _mstackofpageids = null; +public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; +public anywheresoftware.b4a.objects.ActivityWrapper _mmainform = null; +public boolean _showupindicator = false; +public anywheresoftware.b4j.object.JavaObject _actionbar = null; +public boolean _isforeground = false; +public int _transitionanimationduration = 0; +public reparto_izca.keymon.lat.b4xmainpage _mainpage = null; +public String _stackstring = ""; +public boolean _logevents = false; +public b4a.example.dateutils _dateutils = null; +public reparto_izca.keymon.lat.main _main = null; +public reparto_izca.keymon.lat.appupdater _appupdater = null; +public reparto_izca.keymon.lat.foto _foto = null; +public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null; +public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null; +public reparto_izca.keymon.lat.starter _starter = null; +public reparto_izca.keymon.lat.subs _subs = null; +public reparto_izca.keymon.lat.tracker _tracker = null; +public reparto_izca.keymon.lat.newinst2 _newinst2 = null; +public reparto_izca.keymon.lat.b4xpages _b4xpages = null; +public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; +public reparto_izca.keymon.lat.httputils2service _httputils2service = null; +public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; public static class _b4xpageparent{ public boolean IsInitialized; public anywheresoftware.b4a.objects.ActivityWrapper NativeType; @@ -85,655 +106,384 @@ Parent = new reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent(); public String toString() { return BA.TypeToString(this, false); }} -public anywheresoftware.b4a.keywords.Common __c = null; -public reparto_izca.keymon.lat.b4xorderedmap _idtob4xpage = null; -public reparto_izca.keymon.lat.b4xorderedmap _rootb4xtopage = null; -public anywheresoftware.b4j.object.JavaObject _context = null; -public reparto_izca.keymon.lat.b4xset _mstackofpageids = null; -public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; -public anywheresoftware.b4a.objects.ActivityWrapper _mmainform = null; -public boolean _showupindicator = false; -public anywheresoftware.b4j.object.JavaObject _actionbar = null; -public boolean _isforeground = false; -public int _transitionanimationduration = 0; -public reparto_izca.keymon.lat.b4xmainpage _mainpage = null; -public String _stackstring = ""; -public boolean _logevents = false; -public b4a.example.dateutils _dateutils = null; -public reparto_izca.keymon.lat.main _main = null; -public reparto_izca.keymon.lat.appupdater _appupdater = null; -public reparto_izca.keymon.lat.foto _foto = null; -public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null; -public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null; -public reparto_izca.keymon.lat.starter _starter = null; -public reparto_izca.keymon.lat.subs _subs = null; -public reparto_izca.keymon.lat.tracker _tracker = null; -public reparto_izca.keymon.lat.newinst2 _newinst2 = null; -public reparto_izca.keymon.lat.b4xpages _b4xpages = null; -public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; -public reparto_izca.keymon.lat.httputils2service _httputils2service = null; -public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _initialize(reparto_izca.keymon.lat.b4xpagesmanager __ref,anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ActivityWrapper _activity) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_activity}));} -anywheresoftware.b4j.object.JavaObject _jo = null; -anywheresoftware.b4j.object.JavaObject _module = null; -boolean _nonmainpagewasadded = false; -RDebugUtils.currentLine=39649280; - //BA.debugLineNum = 39649280;BA.debugLine="Public Sub Initialize (Activity As Activity)"; -RDebugUtils.currentLine=39649284; - //BA.debugLineNum = 39649284;BA.debugLine="IdToB4XPage.Initialize"; -__ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=39649285; - //BA.debugLineNum = 39649285;BA.debugLine="RootB4XToPage.Initialize"; -__ref._rootb4xtopage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=39649286; - //BA.debugLineNum = 39649286;BA.debugLine="mStackOfPageIds.Initialize"; -__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=39649290; - //BA.debugLineNum = 39649290;BA.debugLine="Context.InitializeContext"; -__ref._context /*anywheresoftware.b4j.object.JavaObject*/ .InitializeContext(ba); -RDebugUtils.currentLine=39649291; - //BA.debugLineNum = 39649291;BA.debugLine="mMainForm = Activity"; -__ref._mmainform /*anywheresoftware.b4a.objects.ActivityWrapper*/ = _activity; -RDebugUtils.currentLine=39649292; - //BA.debugLineNum = 39649292;BA.debugLine="CheckMainActivityOrientations"; -__ref._checkmainactivityorientations /*String*/ (null); -RDebugUtils.currentLine=39649293; - //BA.debugLineNum = 39649293;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)); -RDebugUtils.currentLine=39649294; - //BA.debugLineNum = 39649294;BA.debugLine="Dim module As JavaObject"; -_module = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=39649295; - //BA.debugLineNum = 39649295;BA.debugLine="module.InitializeStatic(jo.RunMethodJO(\"getActivi"; -_module.InitializeStatic(BA.ObjectToString(_jo.RunMethodJO("getActivityBA",(Object[])(__c.Null)).GetField("className"))).SetField("dontPause",(Object)(__c.True)); -RDebugUtils.currentLine=39649299; - //BA.debugLineNum = 39649299;BA.debugLine="B4XPages.InternalSetPagesManager(Me)"; -_b4xpages._internalsetpagesmanager /*String*/ (ba,this); -RDebugUtils.currentLine=39649300; - //BA.debugLineNum = 39649300;BA.debugLine="MainPage.Initialize"; -__ref._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=39649301; - //BA.debugLineNum = 39649301;BA.debugLine="Dim NonMainPageWasAdded As Boolean = IdToB4XPage."; -_nonmainpagewasadded = __ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getsize /*int*/ (null)>0; -RDebugUtils.currentLine=39649302; - //BA.debugLineNum = 39649302;BA.debugLine="IdToB4XPage.Put(\"~~~~~temp~~~~\", CreateB4XPageInf"; -__ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._put /*String*/ (null,(Object)("~~~~~temp~~~~"),(Object)(__ref._createb4xpageinfo /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,(Object)(__ref._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ ),"",__c.False,(Object)("")))); -RDebugUtils.currentLine=39649303; - //BA.debugLineNum = 39649303;BA.debugLine="BackgroundStateChanged(True)"; -__ref._backgroundstatechanged /*String*/ (null,__c.True); -RDebugUtils.currentLine=39649304; - //BA.debugLineNum = 39649304;BA.debugLine="IdToB4XPage.Remove(\"~~~~~temp~~~~\")"; -__ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._remove /*String*/ (null,(Object)("~~~~~temp~~~~")); -RDebugUtils.currentLine=39649305; - //BA.debugLineNum = 39649305;BA.debugLine="AddPageAndCreate(\"MainPage\", MainPage)"; -__ref._addpageandcreate /*String*/ (null,"MainPage",(Object)(__ref._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ )); -RDebugUtils.currentLine=39649306; - //BA.debugLineNum = 39649306;BA.debugLine="If LogEvents = False Then"; -if (__ref._logevents /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=39649307; - //BA.debugLineNum = 39649307;BA.debugLine="Log(\"Call B4XPages.GetManager.LogEvents = True t"; -__c.LogImpl("939649307","Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.",0); - }; -RDebugUtils.currentLine=39649309; - //BA.debugLineNum = 39649309;BA.debugLine="If NonMainPageWasAdded Then"; -if (_nonmainpagewasadded) { -RDebugUtils.currentLine=39649310; - //BA.debugLineNum = 39649310;BA.debugLine="If Not(xui.IsB4i) Then"; -if (__c.Not(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i())) { -RDebugUtils.currentLine=39649311; - //BA.debugLineNum = 39649311;BA.debugLine="RaiseEvent(GetTopPage, \"B4XPage_Appear\", Null)"; -__ref._raiseevent /*String*/ (null,__ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null),"B4XPage_Appear",(Object[])(__c.Null)); - }; - }; -RDebugUtils.currentLine=39649314; - //BA.debugLineNum = 39649314;BA.debugLine="End Sub"; -return ""; -} -public reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _addmenuitem(reparto_izca.keymon.lat.b4xpagesmanager __ref,Object _b4xpage,Object _title) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "addmenuitem", true)) - {return ((reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem) Debug.delegate(ba, "addmenuitem", new Object[] {_b4xpage,_title}));} -reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _mi = null; -RDebugUtils.currentLine=41025536; - //BA.debugLineNum = 41025536;BA.debugLine="Public Sub AddMenuItem (B4XPage As Object, Title A"; -RDebugUtils.currentLine=41025537; - //BA.debugLineNum = 41025537;BA.debugLine="Dim mi As B4AMenuItem"; -_mi = new reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem(); -RDebugUtils.currentLine=41025538; - //BA.debugLineNum = 41025538;BA.debugLine="mi.Initialize"; -_mi.Initialize(); -RDebugUtils.currentLine=41025539; - //BA.debugLineNum = 41025539;BA.debugLine="mi.Title = Title"; -_mi.Title /*Object*/ = _title; -RDebugUtils.currentLine=41025540; - //BA.debugLineNum = 41025540;BA.debugLine="mi.Tag = Title"; -_mi.Tag /*String*/ = BA.ObjectToString(_title); -RDebugUtils.currentLine=41025541; - //BA.debugLineNum = 41025541;BA.debugLine="FindPIFromB4XPage(B4XPage).Parent.MenuItems.Add(m"; -__ref._findpifromb4xpage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_b4xpage).Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .MenuItems /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_mi)); -RDebugUtils.currentLine=41025542; - //BA.debugLineNum = 41025542;BA.debugLine="Return mi"; -if (true) return _mi; -RDebugUtils.currentLine=41025543; - //BA.debugLineNum = 41025543;BA.debugLine="End Sub"; -return null; -} -public String _addpage(reparto_izca.keymon.lat.b4xpagesmanager __ref,String _id,Object _b4xpage) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "addpage", true)) - {return ((String) Debug.delegate(ba, "addpage", new Object[] {_id,_b4xpage}));} -String _idtolower = ""; -RDebugUtils.currentLine=39845888; - //BA.debugLineNum = 39845888;BA.debugLine="Public Sub AddPage (Id As String, B4XPage As Objec"; -RDebugUtils.currentLine=39845889; - //BA.debugLineNum = 39845889;BA.debugLine="Dim IdToLower As String = Id.ToLowerCase"; -_idtolower = _id.toLowerCase(); -RDebugUtils.currentLine=39845890; - //BA.debugLineNum = 39845890;BA.debugLine="If IdToB4XPage.ContainsKey(IdToLower) Then"; -if (__ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._containskey /*boolean*/ (null,(Object)(_idtolower))) { -RDebugUtils.currentLine=39845891; - //BA.debugLineNum = 39845891;BA.debugLine="Log($\"Page with this id already exists: ${IdToLo"; -__c.LogImpl("939845891",("Page with this id already exists: "+__c.SmartStringFormatter("",(Object)(_idtolower))+"!"),0); -RDebugUtils.currentLine=39845892; - //BA.debugLineNum = 39845892;BA.debugLine="Return"; -if (true) return ""; - }; -RDebugUtils.currentLine=39845894; - //BA.debugLineNum = 39845894;BA.debugLine="IdToB4XPage.Put(IdToLower, CreateB4XPageInfo(B4XP"; -__ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._put /*String*/ (null,(Object)(_idtolower),(Object)(__ref._createb4xpageinfo /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_b4xpage,_idtolower,__c.False,(Object)(_id)))); -RDebugUtils.currentLine=39845895; - //BA.debugLineNum = 39845895;BA.debugLine="If IdToB4XPage.Size = 1 Then ShowPage(IdToLower)"; -if (__ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getsize /*int*/ (null)==1) { -__ref._showpage /*String*/ (null,_idtolower);}; -RDebugUtils.currentLine=39845896; - //BA.debugLineNum = 39845896;BA.debugLine="End Sub"; -return ""; -} -public String _addpageandcreate(reparto_izca.keymon.lat.b4xpagesmanager __ref,String _id,Object _b4xpage) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "addpageandcreate", true)) - {return ((String) Debug.delegate(ba, "addpageandcreate", new Object[] {_id,_b4xpage}));} -RDebugUtils.currentLine=39911424; - //BA.debugLineNum = 39911424;BA.debugLine="Public Sub AddPageAndCreate (Id As String, B4XPage"; -RDebugUtils.currentLine=39911425; - //BA.debugLineNum = 39911425;BA.debugLine="AddPage (Id, B4XPage)"; -__ref._addpage /*String*/ (null,_id,_b4xpage); -RDebugUtils.currentLine=39911426; - //BA.debugLineNum = 39911426;BA.debugLine="CreatePageIfNeeded(GetPageFromId(Id))"; -__ref._createpageifneeded /*String*/ (null,__ref._getpagefromid /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_id)); -RDebugUtils.currentLine=39911427; - //BA.debugLineNum = 39911427;BA.debugLine="End Sub"; -return ""; -} -public String _closepage(reparto_izca.keymon.lat.b4xpagesmanager __ref,Object _b4xpage) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "closepage", true)) - {return ((String) Debug.delegate(ba, "closepage", new Object[] {_b4xpage}));} +public String _activity_actionbarhomeclick() throws Exception{ reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -boolean _isclosingtoppage = false; -RDebugUtils.currentLine=40108032; - //BA.debugLineNum = 40108032;BA.debugLine="Public Sub ClosePage (B4XPage As Object)"; -RDebugUtils.currentLine=40108033; - //BA.debugLineNum = 40108033;BA.debugLine="Dim pi As B4XPageInfo = FindPIFromB4XPage(B4XPage"; -_pi = __ref._findpifromb4xpage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_b4xpage); -RDebugUtils.currentLine=40108034; - //BA.debugLineNum = 40108034;BA.debugLine="If mStackOfPageIds.Contains(pi.Id) = False Then R"; -if (__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._contains /*boolean*/ (null,(Object)(_pi.Id /*String*/ ))==__c.False) { -if (true) return "";}; -RDebugUtils.currentLine=40108035; - //BA.debugLineNum = 40108035;BA.debugLine="If xui.IsB4i And GetTopPage <> pi Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i() && (__ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null)).equals(_pi) == false) { -RDebugUtils.currentLine=40108036; - //BA.debugLineNum = 40108036;BA.debugLine="Log(\"Only top page can be closed\")"; -__c.LogImpl("940108036","Only top page can be closed",0); -RDebugUtils.currentLine=40108037; - //BA.debugLineNum = 40108037;BA.debugLine="Return"; -if (true) return ""; - }else -{RDebugUtils.currentLine=40108038; - //BA.debugLineNum = 40108038;BA.debugLine="Else If xui.IsB4i And mStackOfPageIds.Size = 1 Th"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i() && __ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._getsize /*int*/ (null)==1) { -RDebugUtils.currentLine=40108039; - //BA.debugLineNum = 40108039;BA.debugLine="Log(\"First page cannot be closed\")"; -__c.LogImpl("940108039","First page cannot be closed",0); -RDebugUtils.currentLine=40108040; - //BA.debugLineNum = 40108040;BA.debugLine="Return"; -if (true) return ""; - }} -; -RDebugUtils.currentLine=40108042; - //BA.debugLineNum = 40108042;BA.debugLine="Dim IsClosingTopPage As Boolean = GetTopPage = pi"; -_isclosingtoppage = (__ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null)).equals(_pi); -RDebugUtils.currentLine=40108043; - //BA.debugLineNum = 40108043;BA.debugLine="ClosePageImpl(pi)"; -__ref._closepageimpl /*String*/ (null,_pi); -RDebugUtils.currentLine=40108044; - //BA.debugLineNum = 40108044;BA.debugLine="If IsClosingTopPage Then"; -if (_isclosingtoppage) { -RDebugUtils.currentLine=40108045; - //BA.debugLineNum = 40108045;BA.debugLine="TopPageDisappear"; -__ref._toppagedisappear /*String*/ (null); - }; -RDebugUtils.currentLine=40108047; - //BA.debugLineNum = 40108047;BA.debugLine="If xui.IsB4A And mStackOfPageIds.Size = 1 Then Re"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A() && __ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._getsize /*int*/ (null)==1) { -if (true) return "";}; -RDebugUtils.currentLine=40108048; - //BA.debugLineNum = 40108048;BA.debugLine="mStackOfPageIds.Remove(pi.Id)"; -__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._remove /*String*/ (null,(Object)(_pi.Id /*String*/ )); -RDebugUtils.currentLine=40108049; - //BA.debugLineNum = 40108049;BA.debugLine="If IsClosingTopPage Then"; -if (_isclosingtoppage) { -RDebugUtils.currentLine=40108050; - //BA.debugLineNum = 40108050;BA.debugLine="If xui.IsB4A Then ShowPageImpl(GetTopPage)"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A()) { -__ref._showpageimpl /*String*/ (null,__ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null));}; -RDebugUtils.currentLine=40108051; - //BA.debugLineNum = 40108051;BA.debugLine="TopPageAppear"; -__ref._toppageappear /*String*/ (null); - }; -RDebugUtils.currentLine=40108053; - //BA.debugLineNum = 40108053;BA.debugLine="End Sub"; -return ""; -} -public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _findpifromb4xpage(reparto_izca.keymon.lat.b4xpagesmanager __ref,Object _page) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "findpifromb4xpage", true)) - {return ((reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo) Debug.delegate(ba, "findpifromb4xpage", new Object[] {_page}));} -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -RDebugUtils.currentLine=40304640; - //BA.debugLineNum = 40304640;BA.debugLine="Public Sub FindPIFromB4XPage (Page As Object) As B"; -RDebugUtils.currentLine=40304641; - //BA.debugLineNum = 40304641;BA.debugLine="For Each pi As B4XPageInfo In IdToB4XPage.Values"; -{ -final anywheresoftware.b4a.BA.IterableList group1 = __ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getvalues /*anywheresoftware.b4a.objects.collections.List*/ (null); -final int groupLen1 = group1.getSize() -;int index1 = 0; -; -for (; index1 < groupLen1;index1++){ -_pi = (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(group1.Get(index1)); -RDebugUtils.currentLine=40304642; - //BA.debugLineNum = 40304642;BA.debugLine="If pi.B4XPage = Page Then"; -if ((_pi.B4XPage /*Object*/ ).equals(_page)) { -RDebugUtils.currentLine=40304643; - //BA.debugLineNum = 40304643;BA.debugLine="Return pi"; -if (true) return _pi; - }; - } -}; -RDebugUtils.currentLine=40304646; - //BA.debugLineNum = 40304646;BA.debugLine="Return Null"; -if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(__c.Null); -RDebugUtils.currentLine=40304647; - //BA.debugLineNum = 40304647;BA.debugLine="End Sub"; -return null; -} -public Object _getpage(reparto_izca.keymon.lat.b4xpagesmanager __ref,String _id) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "getpage", true)) - {return ((Object) Debug.delegate(ba, "getpage", new Object[] {_id}));} -RDebugUtils.currentLine=40697856; - //BA.debugLineNum = 40697856;BA.debugLine="Public Sub GetPage (Id As String) As Object"; -RDebugUtils.currentLine=40697857; - //BA.debugLineNum = 40697857;BA.debugLine="Return GetPageFromId(Id).B4XPage"; -if (true) return __ref._getpagefromid /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_id).B4XPage /*Object*/ ; -RDebugUtils.currentLine=40697858; - //BA.debugLineNum = 40697858;BA.debugLine="End Sub"; -return null; -} -public String _settitle(reparto_izca.keymon.lat.b4xpagesmanager __ref,Object _b4xpage,Object _title) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "settitle", true)) - {return ((String) Debug.delegate(ba, "settitle", new Object[] {_b4xpage,_title}));} -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -RDebugUtils.currentLine=40566784; - //BA.debugLineNum = 40566784;BA.debugLine="Public Sub SetTitle (B4XPage As Object, Title As O"; -RDebugUtils.currentLine=40566785; - //BA.debugLineNum = 40566785;BA.debugLine="Dim pi As B4XPageInfo = FindPIFromB4XPage(B4XPage"; -_pi = __ref._findpifromb4xpage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_b4xpage); -RDebugUtils.currentLine=40566786; - //BA.debugLineNum = 40566786;BA.debugLine="pi.Title = Title"; -_pi.Title /*Object*/ = _title; -RDebugUtils.currentLine=40566787; - //BA.debugLineNum = 40566787;BA.debugLine="pi.Parent.NativeType.Title = Title"; -_pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .NativeType /*anywheresoftware.b4a.objects.ActivityWrapper*/ .setTitle(BA.ObjectToCharSequence(_title)); -RDebugUtils.currentLine=40566788; - //BA.debugLineNum = 40566788;BA.debugLine="End Sub"; -return ""; -} -public String _showpage(reparto_izca.keymon.lat.b4xpagesmanager __ref,String _id) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "showpage", true)) - {return ((String) Debug.delegate(ba, "showpage", new Object[] {_id}));} -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _top = null; -RDebugUtils.currentLine=39976960; - //BA.debugLineNum = 39976960;BA.debugLine="Public Sub ShowPage (Id As String)"; -RDebugUtils.currentLine=39976961; - //BA.debugLineNum = 39976961;BA.debugLine="Dim pi As B4XPageInfo = GetPageFromId(Id)"; -_pi = __ref._getpagefromid /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_id); -RDebugUtils.currentLine=39976962; - //BA.debugLineNum = 39976962;BA.debugLine="If pi = GetTopPage Then Return"; -if ((_pi).equals(__ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null))) { -if (true) return "";}; -RDebugUtils.currentLine=39976963; - //BA.debugLineNum = 39976963;BA.debugLine="CreatePageIfNeeded(pi)"; -__ref._createpageifneeded /*String*/ (null,_pi); -RDebugUtils.currentLine=39976964; - //BA.debugLineNum = 39976964;BA.debugLine="TopPageDisappear"; -__ref._toppagedisappear /*String*/ (null); -RDebugUtils.currentLine=39976966; - //BA.debugLineNum = 39976966;BA.debugLine="Dim Top As B4XPageInfo = GetTopPage"; -_top = __ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null); -RDebugUtils.currentLine=39976967; - //BA.debugLineNum = 39976967;BA.debugLine="If Top <> Null Then"; -if (_top!= null) { -RDebugUtils.currentLine=39976968; - //BA.debugLineNum = 39976968;BA.debugLine="Top.Root.RemoveViewFromParent"; -_top.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent(); - }; -RDebugUtils.currentLine=39976978; - //BA.debugLineNum = 39976978;BA.debugLine="mStackOfPageIds.Remove(pi.Id)"; -__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._remove /*String*/ (null,(Object)(_pi.Id /*String*/ )); -RDebugUtils.currentLine=39976979; - //BA.debugLineNum = 39976979;BA.debugLine="ShowPageImpl(pi)"; -__ref._showpageimpl /*String*/ (null,_pi); -RDebugUtils.currentLine=39976980; - //BA.debugLineNum = 39976980;BA.debugLine="mStackOfPageIds.Add(pi.Id)"; -__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._add /*String*/ (null,(Object)(_pi.Id /*String*/ )); -RDebugUtils.currentLine=39976981; - //BA.debugLineNum = 39976981;BA.debugLine="TopPageAppear"; -__ref._toppageappear /*String*/ (null); -RDebugUtils.currentLine=39976982; - //BA.debugLineNum = 39976982;BA.debugLine="End Sub"; -return ""; -} -public String _showpageandremovepreviouspages(reparto_izca.keymon.lat.b4xpagesmanager __ref,String _id) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "showpageandremovepreviouspages", true)) - {return ((String) Debug.delegate(ba, "showpageandremovepreviouspages", new Object[] {_id}));} -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pagetoremove = null; -RDebugUtils.currentLine=40042496; - //BA.debugLineNum = 40042496;BA.debugLine="Public Sub ShowPageAndRemovePreviousPages (Id As S"; -RDebugUtils.currentLine=40042497; - //BA.debugLineNum = 40042497;BA.debugLine="If GetTopPage = Null Then"; -if (__ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null)== null) { -RDebugUtils.currentLine=40042498; - //BA.debugLineNum = 40042498;BA.debugLine="ShowPage(Id)"; -__ref._showpage /*String*/ (null,_id); -RDebugUtils.currentLine=40042499; - //BA.debugLineNum = 40042499;BA.debugLine="Return"; -if (true) return ""; - }; -RDebugUtils.currentLine=40042501; - //BA.debugLineNum = 40042501;BA.debugLine="Dim pi As B4XPageInfo = GetPageFromId(Id)"; -_pi = __ref._getpagefromid /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_id); -RDebugUtils.currentLine=40042502; - //BA.debugLineNum = 40042502;BA.debugLine="CreatePageIfNeeded(pi)"; -__ref._createpageifneeded /*String*/ (null,_pi); -RDebugUtils.currentLine=40042503; - //BA.debugLineNum = 40042503;BA.debugLine="TopPageDisappear"; -__ref._toppagedisappear /*String*/ (null); -RDebugUtils.currentLine=40042507; - //BA.debugLineNum = 40042507;BA.debugLine="For Each Id As String In mStackOfPageIds.AsList"; -{ -final anywheresoftware.b4a.BA.IterableList group8 = __ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._aslist /*anywheresoftware.b4a.objects.collections.List*/ (null); -final int groupLen8 = group8.getSize() -;int index8 = 0; -; -for (; index8 < groupLen8;index8++){ -_id = BA.ObjectToString(group8.Get(index8)); -RDebugUtils.currentLine=40042508; - //BA.debugLineNum = 40042508;BA.debugLine="Dim PageToRemove As B4XPageInfo = GetPageFromId("; -_pagetoremove = __ref._getpagefromid /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,_id); -RDebugUtils.currentLine=40042510; - //BA.debugLineNum = 40042510;BA.debugLine="PageToRemove.Root.RemoveViewFromParent"; -_pagetoremove.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent(); - } -}; -RDebugUtils.currentLine=40042517; - //BA.debugLineNum = 40042517;BA.debugLine="mStackOfPageIds.Clear"; -__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._clear /*String*/ (null); -RDebugUtils.currentLine=40042518; - //BA.debugLineNum = 40042518;BA.debugLine="mStackOfPageIds.Add(pi.Id)"; -__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._add /*String*/ (null,(Object)(_pi.Id /*String*/ )); -RDebugUtils.currentLine=40042519; - //BA.debugLineNum = 40042519;BA.debugLine="If xui.IsB4A Or xui.IsB4J Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A() || __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) { -RDebugUtils.currentLine=40042520; - //BA.debugLineNum = 40042520;BA.debugLine="ShowPageImpl(pi)"; -__ref._showpageimpl /*String*/ (null,_pi); - }; -RDebugUtils.currentLine=40042522; - //BA.debugLineNum = 40042522;BA.debugLine="TopPageAppear"; -__ref._toppageappear /*String*/ (null); -RDebugUtils.currentLine=40042523; - //BA.debugLineNum = 40042523;BA.debugLine="End Sub"; -return ""; -} -public String _activity_actionbarhomeclick(reparto_izca.keymon.lat.b4xpagesmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "activity_actionbarhomeclick", true)) - {return ((String) Debug.delegate(ba, "activity_actionbarhomeclick", null));} -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -RDebugUtils.currentLine=39780352; - //BA.debugLineNum = 39780352;BA.debugLine="Public Sub Activity_ActionBarHomeClick"; -RDebugUtils.currentLine=39780353; - //BA.debugLineNum = 39780353;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage"; -_pi = __ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null); -RDebugUtils.currentLine=39780354; - //BA.debugLineNum = 39780354;BA.debugLine="If pi <> Null Then"; + //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) { -RDebugUtils.currentLine=39780355; - //BA.debugLineNum = 39780355;BA.debugLine="If CloseRequestExists (pi) Then"; -if (__ref._closerequestexists /*boolean*/ (null,_pi)) { -RDebugUtils.currentLine=39780356; - //BA.debugLineNum = 39780356;BA.debugLine="HandleCloseRequest(pi)"; -__ref._handlecloserequest /*void*/ (null,_pi); + //BA.debugLineNum = 132;BA.debugLine="If CloseRequestExists (pi) Then"; +if (_closerequestexists(_pi)) { + //BA.debugLineNum = 133;BA.debugLine="HandleCloseRequest(pi)"; +_handlecloserequest(_pi); }else { -RDebugUtils.currentLine=39780358; - //BA.debugLineNum = 39780358;BA.debugLine="ClosePage(pi.B4XPage)"; -__ref._closepage /*String*/ (null,_pi.B4XPage /*Object*/ ); + //BA.debugLineNum = 135;BA.debugLine="ClosePage(pi.B4XPage)"; +_closepage(_pi.B4XPage /*Object*/ ); }; }; -RDebugUtils.currentLine=39780361; - //BA.debugLineNum = 39780361;BA.debugLine="End Sub"; + //BA.debugLineNum = 138;BA.debugLine="End Sub"; return ""; } -public boolean _activity_keypress(reparto_izca.keymon.lat.b4xpagesmanager __ref,int _keycode) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "activity_keypress", true)) - {return ((Boolean) Debug.delegate(ba, "activity_keypress", new Object[] {_keycode}));} +public boolean _activity_keypress(int _keycode) throws Exception{ reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -RDebugUtils.currentLine=40960000; - //BA.debugLineNum = 40960000;BA.debugLine="Public Sub Activity_KeyPress (KeyCode As Int) As B"; -RDebugUtils.currentLine=40960001; - //BA.debugLineNum = 40960001;BA.debugLine="If KeyCode = KeyCodes.KEYCODE_BACK Then"; + //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) { -RDebugUtils.currentLine=40960002; - //BA.debugLineNum = 40960002;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage"; -_pi = __ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null); -RDebugUtils.currentLine=40960003; - //BA.debugLineNum = 40960003;BA.debugLine="If CloseRequestExists(pi) Then"; -if (__ref._closerequestexists /*boolean*/ (null,_pi)) { -RDebugUtils.currentLine=40960004; - //BA.debugLineNum = 40960004;BA.debugLine="HandleCloseRequest(pi)"; -__ref._handlecloserequest /*void*/ (null,_pi); + //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 { -RDebugUtils.currentLine=40960006; - //BA.debugLineNum = 40960006;BA.debugLine="ClosePage(pi.B4XPage)"; -__ref._closepage /*String*/ (null,_pi.B4XPage /*Object*/ ); + //BA.debugLineNum = 474;BA.debugLine="ClosePage(pi.B4XPage)"; +_closepage(_pi.B4XPage /*Object*/ ); }; -RDebugUtils.currentLine=40960008; - //BA.debugLineNum = 40960008;BA.debugLine="Return True"; + //BA.debugLineNum = 476;BA.debugLine="Return True"; if (true) return __c.True; }; -RDebugUtils.currentLine=40960010; - //BA.debugLineNum = 40960010;BA.debugLine="Return False"; + //BA.debugLineNum = 478;BA.debugLine="Return False"; if (true) return __c.False; -RDebugUtils.currentLine=40960011; - //BA.debugLineNum = 40960011;BA.debugLine="End Sub"; + //BA.debugLineNum = 479;BA.debugLine="End Sub"; return false; } -public String _activity_pause(reparto_izca.keymon.lat.b4xpagesmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -RDebugUtils.currentLine=41811968; - //BA.debugLineNum = 41811968;BA.debugLine="Public Sub Activity_Pause"; -RDebugUtils.currentLine=41811969; - //BA.debugLineNum = 41811969;BA.debugLine="RaiseEventWithResult(GetTopPage, \"B4XPage_Disappe"; -__ref._raiseeventwithresult /*Object*/ (null,__ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null),"B4XPage_Disappear",(Object[])(__c.Null)); -RDebugUtils.currentLine=41811970; - //BA.debugLineNum = 41811970;BA.debugLine="BackgroundStateChanged(False)"; -__ref._backgroundstatechanged /*String*/ (null,__c.False); -RDebugUtils.currentLine=41811971; - //BA.debugLineNum = 41811971;BA.debugLine="End Sub"; +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 _raiseevent(reparto_izca.keymon.lat.b4xpagesmanager __ref,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _targetpage,String _subname,Object[] _params) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "raiseevent", true)) - {return ((String) Debug.delegate(ba, "raiseevent", new Object[] {_targetpage,_subname,_params}));} -int _length = 0; -RDebugUtils.currentLine=41353216; - //BA.debugLineNum = 41353216;BA.debugLine="Public Sub RaiseEvent (TargetPage As B4XPageInfo,"; -RDebugUtils.currentLine=41353217; - //BA.debugLineNum = 41353217;BA.debugLine="If TargetPage = Null Then Return"; -if (_targetpage== null) { -if (true) return "";}; -RDebugUtils.currentLine=41353218; - //BA.debugLineNum = 41353218;BA.debugLine="Dim length As Int"; -_length = 0; -RDebugUtils.currentLine=41353219; - //BA.debugLineNum = 41353219;BA.debugLine="If Params = Null Then length = 0 Else length = Pa"; -if (_params== null) { -_length = (int) (0);} -else { -_length = _params.length;}; -RDebugUtils.currentLine=41353220; - //BA.debugLineNum = 41353220;BA.debugLine="LogEvent(TargetPage, SubName)"; -__ref._logevent /*String*/ (null,_targetpage,_subname); -RDebugUtils.currentLine=41353221; - //BA.debugLineNum = 41353221;BA.debugLine="If xui.SubExists(TargetPage.B4XPage, SubName, len"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,_targetpage.B4XPage /*Object*/ ,_subname,_length)==__c.False) { -if (true) return "";}; -RDebugUtils.currentLine=41353222; - //BA.debugLineNum = 41353222;BA.debugLine="Select length"; -switch (_length) { -case 0: { -RDebugUtils.currentLine=41353224; - //BA.debugLineNum = 41353224;BA.debugLine="CallSubDelayed(TargetPage.B4XPage, SubName)"; -__c.CallSubDelayed(ba,_targetpage.B4XPage /*Object*/ ,_subname); - break; } -case 1: { -RDebugUtils.currentLine=41353226; - //BA.debugLineNum = 41353226;BA.debugLine="CallSubDelayed2(TargetPage.B4XPage, SubName, Pa"; -__c.CallSubDelayed2(ba,_targetpage.B4XPage /*Object*/ ,_subname,_params[(int) (0)]); - break; } -case 2: { -RDebugUtils.currentLine=41353228; - //BA.debugLineNum = 41353228;BA.debugLine="CallSubDelayed3(TargetPage.B4XPage, SubName, Pa"; -__c.CallSubDelayed3(ba,_targetpage.B4XPage /*Object*/ ,_subname,_params[(int) (0)],_params[(int) (1)]); - break; } -default: { -RDebugUtils.currentLine=41353230; - //BA.debugLineNum = 41353230;BA.debugLine="Log(\"Too many parameters\")"; -__c.LogImpl("941353230","Too many parameters",0); - break; } -} -; -RDebugUtils.currentLine=41353232; - //BA.debugLineNum = 41353232;BA.debugLine="End Sub"; +public String _activity_resume() throws Exception{ +boolean _shouldraise = false; + //BA.debugLineNum = 610;BA.debugLine="Public Sub Activity_Resume"; + //BA.debugLineNum = 611;BA.debugLine="Dim ShouldRaise As Boolean = IsForeground = False"; +_shouldraise = _isforeground==__c.False; + //BA.debugLineNum = 612;BA.debugLine="BackgroundStateChanged(True)"; +_backgroundstatechanged(__c.True); + //BA.debugLineNum = 613;BA.debugLine="If ShouldRaise Then"; +if (_shouldraise) { + //BA.debugLineNum = 614;BA.debugLine="RaiseEvent(GetTopPage, \"B4XPage_Appear\", Null)"; +_raiseevent(_gettoppage(),"B4XPage_Appear",(Object[])(__c.Null)); + }; + //BA.debugLineNum = 616;BA.debugLine="End Sub"; return ""; } -public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _gettoppage(reparto_izca.keymon.lat.b4xpagesmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "gettoppage", true)) - {return ((reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo) Debug.delegate(ba, "gettoppage", null));} -RDebugUtils.currentLine=41549824; - //BA.debugLineNum = 41549824;BA.debugLine="Public Sub GetTopPage As B4XPageInfo"; -RDebugUtils.currentLine=41549825; - //BA.debugLineNum = 41549825;BA.debugLine="If mStackOfPageIds.Size = 0 Then Return Null"; -if (__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._getsize /*int*/ (null)==0) { -if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(__c.Null);}; -RDebugUtils.currentLine=41549826; - //BA.debugLineNum = 41549826;BA.debugLine="Return IdToB4XPage.Get(mStackOfPageIds.AsList.Get"; -if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(__ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._aslist /*anywheresoftware.b4a.objects.collections.List*/ (null).Get((int) (__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._getsize /*int*/ (null)-1)))); -RDebugUtils.currentLine=41549827; - //BA.debugLineNum = 41549827;BA.debugLine="End Sub"; +public reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _addmenuitem(Object _b4xpage,Object _title) throws Exception{ +reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _mi = null; + //BA.debugLineNum = 481;BA.debugLine="Public Sub AddMenuItem (B4XPage As Object, Title A"; + //BA.debugLineNum = 482;BA.debugLine="Dim mi As B4AMenuItem"; +_mi = new reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem(); + //BA.debugLineNum = 483;BA.debugLine="mi.Initialize"; +_mi.Initialize(); + //BA.debugLineNum = 484;BA.debugLine="mi.Title = Title"; +_mi.Title /*Object*/ = _title; + //BA.debugLineNum = 485;BA.debugLine="mi.Tag = Title"; +_mi.Tag /*String*/ = BA.ObjectToString(_title); + //BA.debugLineNum = 486;BA.debugLine="FindPIFromB4XPage(B4XPage).Parent.MenuItems.Add(m"; +_findpifromb4xpage(_b4xpage).Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .MenuItems /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_mi)); + //BA.debugLineNum = 487;BA.debugLine="Return mi"; +if (true) return _mi; + //BA.debugLineNum = 488;BA.debugLine="End Sub"; return null; } -public String _activity_resume(reparto_izca.keymon.lat.b4xpagesmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "activity_resume", true)) - {return ((String) Debug.delegate(ba, "activity_resume", null));} -boolean _shouldraise = false; -RDebugUtils.currentLine=41680896; - //BA.debugLineNum = 41680896;BA.debugLine="Public Sub Activity_Resume"; -RDebugUtils.currentLine=41680897; - //BA.debugLineNum = 41680897;BA.debugLine="Dim ShouldRaise As Boolean = IsForeground = False"; -_shouldraise = __ref._isforeground /*boolean*/ ==__c.False; -RDebugUtils.currentLine=41680898; - //BA.debugLineNum = 41680898;BA.debugLine="BackgroundStateChanged(True)"; -__ref._backgroundstatechanged /*String*/ (null,__c.True); -RDebugUtils.currentLine=41680899; - //BA.debugLineNum = 41680899;BA.debugLine="If ShouldRaise Then"; -if (_shouldraise) { -RDebugUtils.currentLine=41680900; - //BA.debugLineNum = 41680900;BA.debugLine="RaiseEvent(GetTopPage, \"B4XPage_Appear\", Null)"; -__ref._raiseevent /*String*/ (null,__ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null),"B4XPage_Appear",(Object[])(__c.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("948365571",("Page with this id already exists: "+__c.SmartStringFormatter("",(Object)(_idtolower))+"!"),0); + //BA.debugLineNum = 145;BA.debugLine="Return"; +if (true) return ""; }; -RDebugUtils.currentLine=41680902; - //BA.debugLineNum = 41680902;BA.debugLine="End Sub"; + //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 _createmenu(reparto_izca.keymon.lat.b4xpagesmanager __ref,Object _menu) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "createmenu", true)) - {return ((String) Debug.delegate(ba, "createmenu", new Object[] {_menu}));} +public String _addpageandcreate(String _id,Object _b4xpage) throws Exception{ + //BA.debugLineNum = 151;BA.debugLine="Public Sub AddPageAndCreate (Id As String, B4XPage"; + //BA.debugLineNum = 152;BA.debugLine="AddPage (Id, B4XPage)"; +_addpage(_id,_b4xpage); + //BA.debugLineNum = 153;BA.debugLine="CreatePageIfNeeded(GetPageFromId(Id))"; +_createpageifneeded(_getpagefromid(_id)); + //BA.debugLineNum = 154;BA.debugLine="End Sub"; +return ""; +} +public String _backgroundstatechanged(boolean _newstate) throws Exception{ +String _ev = ""; +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; + //BA.debugLineNum = 618;BA.debugLine="Private Sub BackgroundStateChanged (NewState As Bo"; + //BA.debugLineNum = 619;BA.debugLine="If IsForeground = NewState Then Return"; +if (_isforeground==_newstate) { +if (true) return "";}; + //BA.debugLineNum = 620;BA.debugLine="IsForeground = NewState"; +_isforeground = _newstate; + //BA.debugLineNum = 621;BA.debugLine="Dim ev As String"; +_ev = ""; + //BA.debugLineNum = 622;BA.debugLine="If IsForeground Then ev = \"B4XPage_Foreground\" El"; +if (_isforeground) { +_ev = "B4XPage_Foreground";} +else { +_ev = "B4XPage_Background";}; + //BA.debugLineNum = 623;BA.debugLine="For Each pi As B4XPageInfo In IdToB4XPage.Values"; +{ +final anywheresoftware.b4a.BA.IterableList group5 = _idtob4xpage._getvalues /*anywheresoftware.b4a.objects.collections.List*/ (); +final int groupLen5 = group5.getSize() +;int index5 = 0; +; +for (; index5 < groupLen5;index5++){ +_pi = (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(group5.Get(index5)); + //BA.debugLineNum = 624;BA.debugLine="If xui.SubExists(pi.B4XPage, ev, 0) Then"; +if (_xui.SubExists(ba,_pi.B4XPage /*Object*/ ,_ev,(int) (0))) { + //BA.debugLineNum = 625;BA.debugLine="LogEvent(pi, ev)"; +_logevent(_pi,_ev); + //BA.debugLineNum = 626;BA.debugLine="If IsForeground Then"; +if (_isforeground) { + //BA.debugLineNum = 627;BA.debugLine="CallSubDelayed(pi.B4XPage, ev)"; +__c.CallSubDelayed(ba,_pi.B4XPage /*Object*/ ,_ev); + }else { + //BA.debugLineNum = 629;BA.debugLine="CallSub(pi.B4XPage, ev)"; +__c.CallSubNew(ba,_pi.B4XPage /*Object*/ ,_ev); + }; + }; + } +}; + //BA.debugLineNum = 633;BA.debugLine="End Sub"; +return ""; +} +public String _checkmainactivityorientations() throws Exception{ +anywheresoftware.b4j.object.JavaObject _jo = null; +anywheresoftware.b4j.object.JavaObject _jme = null; +boolean _isappcompat = false; +anywheresoftware.b4j.object.JavaObject _pi = null; +Object[] _activities = null; +anywheresoftware.b4j.object.JavaObject _act = null; +String _name = ""; +int _screenorientation = 0; + //BA.debugLineNum = 96;BA.debugLine="Private Sub CheckMainActivityOrientations"; + //BA.debugLineNum = 98;BA.debugLine="Dim jo As JavaObject"; +_jo = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 99;BA.debugLine="jo.InitializeContext"; +_jo.InitializeContext(ba); + //BA.debugLineNum = 101;BA.debugLine="ActionBar = jo.RunMethod(\"getActionBar\", Null)"; +_actionbar = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_jo.RunMethod("getActionBar",(Object[])(__c.Null)))); + //BA.debugLineNum = 102;BA.debugLine="If ActionBar.IsInitialized = False Then"; +if (_actionbar.IsInitialized()==__c.False) { + //BA.debugLineNum = 103;BA.debugLine="Dim jme As JavaObject = Me"; +_jme = new anywheresoftware.b4j.object.JavaObject(); +_jme = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(this)); + //BA.debugLineNum = 104;BA.debugLine="Dim IsAppCompat As Boolean = jme.RunMethod(\"chec"; +_isappcompat = BA.ObjectToBoolean(_jme.RunMethod("checkIfAppCompat",new Object[]{(Object)(_jo.getObject())})); + //BA.debugLineNum = 105;BA.debugLine="If IsAppCompat Then"; +if (_isappcompat) { + //BA.debugLineNum = 106;BA.debugLine="ActionBar = jo.RunMethod(\"getSupportActionBar\","; +_actionbar = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_jo.RunMethod("getSupportActionBar",(Object[])(__c.Null)))); + }; + }; + //BA.debugLineNum = 110;BA.debugLine="Dim pi As JavaObject = jo.RunMethodJO(\"getPackage"; +_pi = new anywheresoftware.b4j.object.JavaObject(); +_pi = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_jo.RunMethodJO("getPackageManager",(Object[])(__c.Null)).RunMethod("getPackageInfo",new Object[]{(Object)(__c.Application.getPackageName()),(Object)(1)}))); + //BA.debugLineNum = 111;BA.debugLine="Dim activities() As Object = pi.GetField(\"activit"; +_activities = (Object[])(_pi.GetField("activities")); + //BA.debugLineNum = 112;BA.debugLine="For Each Act As JavaObject In activities"; +_act = new anywheresoftware.b4j.object.JavaObject(); +{ +final Object[] group13 = _activities; +final int groupLen13 = group13.length +;int index13 = 0; +; +for (; index13 < groupLen13;index13++){ +_act = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(group13[index13])); + //BA.debugLineNum = 113;BA.debugLine="Dim name As String = Act.GetField(\"name\")"; +_name = BA.ObjectToString(_act.GetField("name")); + //BA.debugLineNum = 114;BA.debugLine="If name.EndsWith(\".main\") Then"; +if (_name.endsWith(".main")) { + //BA.debugLineNum = 115;BA.debugLine="Dim screenOrientation As Int = Act.GetField(\"sc"; +_screenorientation = (int)(BA.ObjectToNumber(_act.GetField("screenOrientation"))); + //BA.debugLineNum = 116;BA.debugLine="If screenOrientation = -1 Then"; +if (_screenorientation==-1) { + //BA.debugLineNum = 117;BA.debugLine="LogColor(\"#SupportedOrientations attribute mus"; +__c.LogImpl("948234517","#SupportedOrientations attribute must be set to landscape or portrait.",_xui.Color_Red); + }; + }; + } +}; + //BA.debugLineNum = 121;BA.debugLine="End Sub"; +return ""; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 22;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 23;BA.debugLine="Private IdToB4XPage As B4XOrderedMap"; +_idtob4xpage = new reparto_izca.keymon.lat.b4xorderedmap(); + //BA.debugLineNum = 24;BA.debugLine="Private RootB4XToPage As B4XOrderedMap"; +_rootb4xtopage = new reparto_izca.keymon.lat.b4xorderedmap(); + //BA.debugLineNum = 26;BA.debugLine="Private Context As JavaObject"; +_context = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 27;BA.debugLine="Type B4XPageParent (NativeType As Activity, MenuI"; +; + //BA.debugLineNum = 28;BA.debugLine="Type B4AMenuItem (Title As Object, Bitmap As B4XB"; +; + //BA.debugLineNum = 34;BA.debugLine="Type B4XPageInfo (B4XPage As Object, Id As String"; +; + //BA.debugLineNum = 38;BA.debugLine="Public mStackOfPageIds As B4XSet"; +_mstackofpageids = new reparto_izca.keymon.lat.b4xset(); + //BA.debugLineNum = 39;BA.debugLine="Private xui As XUI 'ignore"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 43;BA.debugLine="Private mMainForm As Activity"; +_mmainform = new anywheresoftware.b4a.objects.ActivityWrapper(); + //BA.debugLineNum = 44;BA.debugLine="Public ShowUpIndicator As Boolean = True"; +_showupindicator = __c.True; + //BA.debugLineNum = 45;BA.debugLine="Public ActionBar As JavaObject"; +_actionbar = new anywheresoftware.b4j.object.JavaObject(); + //BA.debugLineNum = 49;BA.debugLine="Public IsForeground As Boolean"; +_isforeground = false; + //BA.debugLineNum = 50;BA.debugLine="Public TransitionAnimationDuration As Int = 100"; +_transitionanimationduration = (int) (100); + //BA.debugLineNum = 51;BA.debugLine="Public MainPage As B4XMainPage"; +_mainpage = new reparto_izca.keymon.lat.b4xmainpage(); + //BA.debugLineNum = 52;BA.debugLine="Private StackString As String"; +_stackstring = ""; + //BA.debugLineNum = 53;BA.debugLine="Public LogEvents As Boolean = False"; +_logevents = __c.False; + //BA.debugLineNum = 54;BA.debugLine="End Sub"; +return ""; +} +public String _closepage(Object _b4xpage) throws Exception{ +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; +boolean _isclosingtoppage = false; + //BA.debugLineNum = 209;BA.debugLine="Public Sub ClosePage (B4XPage As Object)"; + //BA.debugLineNum = 210;BA.debugLine="Dim pi As B4XPageInfo = FindPIFromB4XPage(B4XPage"; +_pi = _findpifromb4xpage(_b4xpage); + //BA.debugLineNum = 211;BA.debugLine="If mStackOfPageIds.Contains(pi.Id) = False Then R"; +if (_mstackofpageids._contains /*boolean*/ ((Object)(_pi.Id /*String*/ ))==__c.False) { +if (true) return "";}; + //BA.debugLineNum = 212;BA.debugLine="If xui.IsB4i And GetTopPage <> pi Then"; +if (_xui.getIsB4i() && (_gettoppage()).equals(_pi) == false) { + //BA.debugLineNum = 213;BA.debugLine="Log(\"Only top page can be closed\")"; +__c.LogImpl("948627716","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("948627719","First page cannot be closed",0); + //BA.debugLineNum = 217;BA.debugLine="Return"; +if (true) return ""; + }; + //BA.debugLineNum = 219;BA.debugLine="Dim IsClosingTopPage As Boolean = GetTopPage = pi"; +_isclosingtoppage = (_gettoppage()).equals(_pi); + //BA.debugLineNum = 220;BA.debugLine="ClosePageImpl(pi)"; +_closepageimpl(_pi); + //BA.debugLineNum = 221;BA.debugLine="If IsClosingTopPage Then"; +if (_isclosingtoppage) { + //BA.debugLineNum = 222;BA.debugLine="TopPageDisappear"; +_toppagedisappear(); + }; + //BA.debugLineNum = 224;BA.debugLine="If xui.IsB4A And mStackOfPageIds.Size = 1 Then Re"; +if (_xui.getIsB4A() && _mstackofpageids._getsize /*int*/ ()==1) { +if (true) return "";}; + //BA.debugLineNum = 225;BA.debugLine="mStackOfPageIds.Remove(pi.Id)"; +_mstackofpageids._remove /*String*/ ((Object)(_pi.Id /*String*/ )); + //BA.debugLineNum = 226;BA.debugLine="If IsClosingTopPage Then"; +if (_isclosingtoppage) { + //BA.debugLineNum = 227;BA.debugLine="If xui.IsB4A Then ShowPageImpl(GetTopPage)"; +if (_xui.getIsB4A()) { +_showpageimpl(_gettoppage());}; + //BA.debugLineNum = 228;BA.debugLine="TopPageAppear"; +_toppageappear(); + }; + //BA.debugLineNum = 230;BA.debugLine="End Sub"; +return ""; +} +public String _closepageimpl(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ +anywheresoftware.b4a.objects.IntentWrapper _i = null; + //BA.debugLineNum = 315;BA.debugLine="Private Sub ClosePageImpl (pi As B4XPageInfo) 'ign"; + //BA.debugLineNum = 317;BA.debugLine="If mStackOfPageIds.Size = 1 Then"; +if (_mstackofpageids._getsize /*int*/ ()==1) { + //BA.debugLineNum = 318;BA.debugLine="Dim i As Intent"; +_i = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 319;BA.debugLine="i.Initialize(i.ACTION_MAIN, \"\")"; +_i.Initialize(_i.ACTION_MAIN,""); + //BA.debugLineNum = 320;BA.debugLine="i.AddCategory(\"android.intent.category.HOME\")"; +_i.AddCategory("android.intent.category.HOME"); + //BA.debugLineNum = 321;BA.debugLine="i.Flags = 0x10000000"; +_i.setFlags(((int)0x10000000)); + //BA.debugLineNum = 322;BA.debugLine="StartActivity(i)"; +__c.StartActivity(ba,(Object)(_i.getObject())); + }else { + //BA.debugLineNum = 324;BA.debugLine="pi.Root.RemoveViewFromParent"; +_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent(); + }; + //BA.debugLineNum = 331;BA.debugLine="End Sub"; +return ""; +} +public boolean _closerequestexists(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ + //BA.debugLineNum = 534;BA.debugLine="Private Sub CloseRequestExists (pi As B4XPageInfo)"; + //BA.debugLineNum = 535;BA.debugLine="Return xui.SubExists(pi.B4XPage, \"B4XPage_CloseRe"; +if (true) return _xui.SubExists(ba,_pi.B4XPage /*Object*/ ,"B4XPage_CloseRequest",(int) (0)); + //BA.debugLineNum = 536;BA.debugLine="End Sub"; +return false; +} +public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _createb4xpageinfo(Object _b4xpage,String _id,boolean _created,Object _title) throws Exception{ +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _t1 = null; + //BA.debugLineNum = 420;BA.debugLine="Private Sub CreateB4XPageInfo (B4XPage As Object,"; + //BA.debugLineNum = 421;BA.debugLine="Dim t1 As B4XPageInfo"; +_t1 = new reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo(); + //BA.debugLineNum = 422;BA.debugLine="t1.Initialize"; +_t1.Initialize(); + //BA.debugLineNum = 423;BA.debugLine="t1.B4XPage = B4XPage"; +_t1.B4XPage /*Object*/ = _b4xpage; + //BA.debugLineNum = 424;BA.debugLine="t1.Id = Id"; +_t1.Id /*String*/ = _id; + //BA.debugLineNum = 425;BA.debugLine="t1.Created = Created"; +_t1.Created /*boolean*/ = _created; + //BA.debugLineNum = 426;BA.debugLine="t1.Title = Title"; +_t1.Title /*Object*/ = _title; + //BA.debugLineNum = 427;BA.debugLine="Return t1"; +if (true) return _t1; + //BA.debugLineNum = 428;BA.debugLine="End Sub"; +return null; +} +public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent _createb4xpageparent(Object _nativetype) throws Exception{ +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent _t1 = null; + //BA.debugLineNum = 598;BA.debugLine="Private Sub CreateB4XPageParent (NativeType As Obj"; + //BA.debugLineNum = 604;BA.debugLine="Dim t1 As B4XPageParent"; +_t1 = new reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent(); + //BA.debugLineNum = 605;BA.debugLine="t1.Initialize"; +_t1.Initialize(); + //BA.debugLineNum = 606;BA.debugLine="t1.NativeType = NativeType"; +_t1.NativeType /*anywheresoftware.b4a.objects.ActivityWrapper*/ = (anywheresoftware.b4a.objects.ActivityWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.ActivityWrapper(), (anywheresoftware.b4a.BALayout)(_nativetype)); + //BA.debugLineNum = 607;BA.debugLine="Return t1"; +if (true) return _t1; + //BA.debugLineNum = 608;BA.debugLine="End Sub"; +return null; +} +public String _createmenu(Object _menu) throws Exception{ reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; anywheresoftware.b4j.object.JavaObject _jo = null; reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem _mi = null; anywheresoftware.b4j.object.JavaObject _nativemenuitem = null; anywheresoftware.b4a.objects.drawable.BitmapDrawable _bd = null; anywheresoftware.b4j.object.JavaObject _listener = null; -RDebugUtils.currentLine=41156608; - //BA.debugLineNum = 41156608;BA.debugLine="Public Sub CreateMenu (Menu As Object)"; -RDebugUtils.currentLine=41156609; - //BA.debugLineNum = 41156609;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage"; -_pi = __ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null); -RDebugUtils.currentLine=41156610; - //BA.debugLineNum = 41156610;BA.debugLine="If pi = Null Then Return"; + //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 "";}; -RDebugUtils.currentLine=41156611; - //BA.debugLineNum = 41156611;BA.debugLine="Dim jo As JavaObject = Menu"; + //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)); -RDebugUtils.currentLine=41156612; - //BA.debugLineNum = 41156612;BA.debugLine="For Each mi As B4AMenuItem In pi.Parent.MenuItems"; + //BA.debugLineNum = 498;BA.debugLine="For Each mi As B4AMenuItem In pi.Parent.MenuItems"; { final anywheresoftware.b4a.BA.IterableList group4 = _pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .MenuItems /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen4 = group4.getSize() @@ -741,96 +491,140 @@ final int groupLen4 = group4.getSize() ; for (; index4 < groupLen4;index4++){ _mi = (reparto_izca.keymon.lat.b4xpagesmanager._b4amenuitem)(group4.Get(index4)); -RDebugUtils.currentLine=41156613; - //BA.debugLineNum = 41156613;BA.debugLine="Dim NativeMenuItem As JavaObject = jo.RunMethod("; + //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*/ }))); -RDebugUtils.currentLine=41156614; - //BA.debugLineNum = 41156614;BA.debugLine="If mi.Bitmap.IsInitialized Then"; + //BA.debugLineNum = 500;BA.debugLine="If mi.Bitmap.IsInitialized Then"; if (_mi.Bitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .IsInitialized()) { -RDebugUtils.currentLine=41156615; - //BA.debugLineNum = 41156615;BA.debugLine="Dim bd As BitmapDrawable"; + //BA.debugLineNum = 501;BA.debugLine="Dim bd As BitmapDrawable"; _bd = new anywheresoftware.b4a.objects.drawable.BitmapDrawable(); -RDebugUtils.currentLine=41156616; - //BA.debugLineNum = 41156616;BA.debugLine="bd.Initialize(mi.Bitmap)"; + //BA.debugLineNum = 502;BA.debugLine="bd.Initialize(mi.Bitmap)"; _bd.Initialize((android.graphics.Bitmap)(_mi.Bitmap /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getObject())); -RDebugUtils.currentLine=41156617; - //BA.debugLineNum = 41156617;BA.debugLine="NativeMenuItem.RunMethod(\"setIcon\", Array(bd))"; + //BA.debugLineNum = 503;BA.debugLine="NativeMenuItem.RunMethod(\"setIcon\", Array(bd))"; _nativemenuitem.RunMethod("setIcon",new Object[]{(Object)(_bd.getObject())}); }; -RDebugUtils.currentLine=41156619; - //BA.debugLineNum = 41156619;BA.debugLine="If mi.AddToBar Then"; + //BA.debugLineNum = 505;BA.debugLine="If mi.AddToBar Then"; if (_mi.AddToBar /*boolean*/ ) { -RDebugUtils.currentLine=41156620; - //BA.debugLineNum = 41156620;BA.debugLine="NativeMenuItem.RunMethod(\"setShowAsAction\", Arr"; + //BA.debugLineNum = 506;BA.debugLine="NativeMenuItem.RunMethod(\"setShowAsAction\", Arr"; _nativemenuitem.RunMethod("setShowAsAction",new Object[]{(Object)(1)}); }; -RDebugUtils.currentLine=41156622; - //BA.debugLineNum = 41156622;BA.debugLine="Dim listener As JavaObject"; + //BA.debugLineNum = 508;BA.debugLine="Dim listener As JavaObject"; _listener = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=41156623; - //BA.debugLineNum = 41156623;BA.debugLine="listener.InitializeNewInstance(Application.Packa"; + //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*/ )}); -RDebugUtils.currentLine=41156624; - //BA.debugLineNum = 41156624;BA.debugLine="NativeMenuItem.RunMethod(\"setOnMenuItemClickList"; + //BA.debugLineNum = 510;BA.debugLine="NativeMenuItem.RunMethod(\"setOnMenuItemClickList"; _nativemenuitem.RunMethod("setOnMenuItemClickListener",new Object[]{(Object)(_listener.getObject())}); } }; -RDebugUtils.currentLine=41156626; - //BA.debugLineNum = 41156626;BA.debugLine="End Sub"; + //BA.debugLineNum = 512;BA.debugLine="End Sub"; return ""; } -public String _mainform_resize(reparto_izca.keymon.lat.b4xpagesmanager __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "mainform_resize", true)) - {return ((String) Debug.delegate(ba, "mainform_resize", new Object[] {_width,_height}));} -int _w = 0; -int _h = 0; -RDebugUtils.currentLine=41484288; - //BA.debugLineNum = 41484288;BA.debugLine="Public Sub MainForm_Resize(Width As Double, Height"; -RDebugUtils.currentLine=41484289; - //BA.debugLineNum = 41484289;BA.debugLine="Dim w As Int = Width"; -_w = (int) (_width); -RDebugUtils.currentLine=41484290; - //BA.debugLineNum = 41484290;BA.debugLine="Dim h As Int = Height"; -_h = (int) (_height); -RDebugUtils.currentLine=41484291; - //BA.debugLineNum = 41484291;BA.debugLine="RaiseEvent(GetPageInfoFromRoot(Sender), \"B4XPage_"; -__ref._raiseevent /*String*/ (null,__ref._getpageinfofromroot /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null,(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)}); -RDebugUtils.currentLine=41484292; - //BA.debugLineNum = 41484292;BA.debugLine="End Sub"; +public String _createpageifneeded(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ + //BA.debugLineNum = 352;BA.debugLine="Private Sub CreatePageIfNeeded(pi As B4XPageInfo)"; + //BA.debugLineNum = 353;BA.debugLine="If pi.Created Then Return"; +if (_pi.Created /*boolean*/ ) { +if (true) return "";}; + //BA.debugLineNum = 354;BA.debugLine="pi.IsFirst = IdToB4XPage.Size = 1"; +_pi.IsFirst /*boolean*/ = _idtob4xpage._getsize /*int*/ ()==1; + //BA.debugLineNum = 355;BA.debugLine="CreatePageImpl (pi)"; +_createpageimpl(_pi); + //BA.debugLineNum = 356;BA.debugLine="pi.Created = True"; +_pi.Created /*boolean*/ = __c.True; + //BA.debugLineNum = 357;BA.debugLine="RootB4XToPage.Put(pi.Root, pi)"; +_rootb4xtopage._put /*String*/ ((Object)(_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(Object)(_pi)); + //BA.debugLineNum = 358;BA.debugLine="LogEvent(pi, \"B4XPage_Created\")"; +_logevent(_pi,"B4XPage_Created"); + //BA.debugLineNum = 359;BA.debugLine="CallSub2(pi.B4XPage, \"B4XPage_Created\", pi.root)"; +__c.CallSubNew2(ba,_pi.B4XPage /*Object*/ ,"B4XPage_Created",(Object)(_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ )); + //BA.debugLineNum = 361;BA.debugLine="End Sub"; return ""; } -public boolean _closerequestexists(reparto_izca.keymon.lat.b4xpagesmanager __ref,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "closerequestexists", true)) - {return ((Boolean) Debug.delegate(ba, "closerequestexists", new Object[] {_pi}));} -RDebugUtils.currentLine=41222144; - //BA.debugLineNum = 41222144;BA.debugLine="Private Sub CloseRequestExists (pi As B4XPageInfo)"; -RDebugUtils.currentLine=41222145; - //BA.debugLineNum = 41222145;BA.debugLine="Return xui.SubExists(pi.B4XPage, \"B4XPage_CloseRe"; -if (true) return __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,_pi.B4XPage /*Object*/ ,"B4XPage_CloseRequest",(int) (0)); -RDebugUtils.currentLine=41222146; - //BA.debugLineNum = 41222146;BA.debugLine="End Sub"; -return false; +public String _createpageimpl(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ + //BA.debugLineNum = 369;BA.debugLine="Private Sub CreatePageImpl (pi As B4XPageInfo)"; + //BA.debugLineNum = 381;BA.debugLine="pi.Root = xui.CreatePanel(\"root\")"; +_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _xui.CreatePanel(ba,"root"); + //BA.debugLineNum = 382;BA.debugLine="pi.root.SetLayoutAnimated(0, 0, 0, 100%x, 100%y)"; +_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba)); + //BA.debugLineNum = 383;BA.debugLine="pi.Parent = CreateB4XPageParent(mMainForm)"; +_pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ = _createb4xpageparent((Object)(_mmainform.getObject())); + //BA.debugLineNum = 384;BA.debugLine="pi.Parent.MenuItems.Initialize"; +_pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .MenuItems /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); + //BA.debugLineNum = 392;BA.debugLine="End Sub"; +return ""; } -public void _handlecloserequest(reparto_izca.keymon.lat.b4xpagesmanager __ref,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "handlecloserequest", true)) - {Debug.delegate(ba, "handlecloserequest", new Object[] {_pi}); return;} -ResumableSub_HandleCloseRequest rsub = new ResumableSub_HandleCloseRequest(this,__ref,_pi); +public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _findpifromb4xpage(Object _page) throws Exception{ +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; + //BA.debugLineNum = 306;BA.debugLine="Public Sub FindPIFromB4XPage (Page As Object) As B"; + //BA.debugLineNum = 307;BA.debugLine="For Each pi As B4XPageInfo In IdToB4XPage.Values"; +{ +final anywheresoftware.b4a.BA.IterableList group1 = _idtob4xpage._getvalues /*anywheresoftware.b4a.objects.collections.List*/ (); +final int groupLen1 = group1.getSize() +;int index1 = 0; +; +for (; index1 < groupLen1;index1++){ +_pi = (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(group1.Get(index1)); + //BA.debugLineNum = 308;BA.debugLine="If pi.B4XPage = Page Then"; +if ((_pi.B4XPage /*Object*/ ).equals(_page)) { + //BA.debugLineNum = 309;BA.debugLine="Return pi"; +if (true) return _pi; + }; + } +}; + //BA.debugLineNum = 312;BA.debugLine="Return Null"; +if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(__c.Null); + //BA.debugLineNum = 313;BA.debugLine="End Sub"; +return null; +} +public Object _getpage(String _id) throws Exception{ + //BA.debugLineNum = 394;BA.debugLine="Public Sub GetPage (Id As String) As Object"; + //BA.debugLineNum = 395;BA.debugLine="Return GetPageFromId(Id).B4XPage"; +if (true) return _getpagefromid(_id).B4XPage /*Object*/ ; + //BA.debugLineNum = 396;BA.debugLine="End Sub"; +return null; +} +public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _getpagefromid(String _id) throws Exception{ +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; + //BA.debugLineNum = 398;BA.debugLine="Private Sub GetPageFromId (id As String) As B4XPag"; + //BA.debugLineNum = 399;BA.debugLine="Dim pi As B4XPageInfo = IdToB4XPage.Get(id.ToLowe"; +_pi = (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(_idtob4xpage._get /*Object*/ ((Object)(_id.toLowerCase()))); + //BA.debugLineNum = 400;BA.debugLine="If pi = Null Then"; +if (_pi== null) { + //BA.debugLineNum = 401;BA.debugLine="Log(\"Error: page id not found: \" & id)"; +__c.LogImpl("949283075","Error: page id not found: "+_id,0); + //BA.debugLineNum = 402;BA.debugLine="Log(\"Ids: \" & IdToB4XPage.Keys) 'ignore"; +__c.LogImpl("949283076","Ids: "+BA.ObjectToString(_idtob4xpage._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ()),0); + }; + //BA.debugLineNum = 404;BA.debugLine="Return pi"; +if (true) return _pi; + //BA.debugLineNum = 405;BA.debugLine="End Sub"; +return null; +} +public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _getpageinfofromroot(anywheresoftware.b4a.objects.B4XViewWrapper _root) throws Exception{ + //BA.debugLineNum = 407;BA.debugLine="Public Sub GetPageInfoFromRoot (Root As B4XView) A"; + //BA.debugLineNum = 408;BA.debugLine="Return RootB4XToPage.Get(Root)"; +if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(_rootb4xtopage._get /*Object*/ ((Object)(_root.getObject()))); + //BA.debugLineNum = 409;BA.debugLine="End Sub"; +return null; +} +public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _gettoppage() throws Exception{ + //BA.debugLineNum = 592;BA.debugLine="Public Sub GetTopPage As B4XPageInfo"; + //BA.debugLineNum = 593;BA.debugLine="If mStackOfPageIds.Size = 0 Then Return Null"; +if (_mstackofpageids._getsize /*int*/ ()==0) { +if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(__c.Null);}; + //BA.debugLineNum = 594;BA.debugLine="Return IdToB4XPage.Get(mStackOfPageIds.AsList.Get"; +if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(_idtob4xpage._get /*Object*/ (_mstackofpageids._aslist /*anywheresoftware.b4a.objects.collections.List*/ ().Get((int) (_mstackofpageids._getsize /*int*/ ()-1)))); + //BA.debugLineNum = 595;BA.debugLine="End Sub"; +return null; +} +public void _handlecloserequest(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ +ResumableSub_HandleCloseRequest rsub = new ResumableSub_HandleCloseRequest(this,_pi); rsub.resume(ba, null); } public static class ResumableSub_HandleCloseRequest extends BA.ResumableSub { -public ResumableSub_HandleCloseRequest(reparto_izca.keymon.lat.b4xpagesmanager parent,reparto_izca.keymon.lat.b4xpagesmanager __ref,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) { +public ResumableSub_HandleCloseRequest(reparto_izca.keymon.lat.b4xpagesmanager parent,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) { this.parent = parent; -this.__ref = __ref; this._pi = _pi; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xpagesmanager __ref; reparto_izca.keymon.lat.b4xpagesmanager parent; reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi; anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _rs = null; @@ -838,7 +632,6 @@ boolean _shouldclose = false; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xpagesmanager"; while (true) { switch (state) { @@ -848,25 +641,21 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=41287681; - //BA.debugLineNum = 41287681;BA.debugLine="LogEvent(pi, \"B4XPage_CloseRequest\")"; -__ref._logevent /*String*/ (null,_pi,"B4XPage_CloseRequest"); -RDebugUtils.currentLine=41287682; - //BA.debugLineNum = 41287682;BA.debugLine="Dim rs As ResumableSub = CallSub(pi.B4XPage, \"B4X"; + //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.CallSubDebug(ba,_pi.B4XPage /*Object*/ ,"B4XPage_CloseRequest"))); -RDebugUtils.currentLine=41287683; - //BA.debugLineNum = 41287683;BA.debugLine="Wait For (rs) Complete (ShouldClose As Boolean)"; -parent.__c.WaitFor("complete", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xpagesmanager", "handlecloserequest"), _rs); +_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[1]; +_shouldclose = (Boolean) result[0]; ; -RDebugUtils.currentLine=41287684; - //BA.debugLineNum = 41287684;BA.debugLine="If ShouldClose Then"; + //BA.debugLineNum = 542;BA.debugLine="If ShouldClose Then"; if (true) break; case 1: @@ -879,669 +668,395 @@ this.state = 3; case 3: //C this.state = 4; -RDebugUtils.currentLine=41287685; - //BA.debugLineNum = 41287685;BA.debugLine="ClosePage(pi.B4XPage)"; -__ref._closepage /*String*/ (null,_pi.B4XPage /*Object*/ ); + //BA.debugLineNum = 543;BA.debugLine="ClosePage(pi.B4XPage)"; +parent._closepage(_pi.B4XPage /*Object*/ ); if (true) break; case 4: //C this.state = -1; ; -RDebugUtils.currentLine=41287687; - //BA.debugLineNum = 41287687;BA.debugLine="End Sub"; + //BA.debugLineNum = 545;BA.debugLine="End Sub"; if (true) break; } } } } -public Object _raiseeventwithresult(reparto_izca.keymon.lat.b4xpagesmanager __ref,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _targetpage,String _subname,Object[] _params) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "raiseeventwithresult", true)) - {return ((Object) Debug.delegate(ba, "raiseeventwithresult", new Object[] {_targetpage,_subname,_params}));} +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("948168987","Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.",0); + }; + //BA.debugLineNum = 88;BA.debugLine="If NonMainPageWasAdded Then"; +if (_nonmainpagewasadded) { + //BA.debugLineNum = 89;BA.debugLine="If Not(xui.IsB4i) Then"; +if (__c.Not(_xui.getIsB4i())) { + //BA.debugLineNum = 90;BA.debugLine="RaiseEvent(GetTopPage, \"B4XPage_Appear\", Null)"; +_raiseevent(_gettoppage(),"B4XPage_Appear",(Object[])(__c.Null)); + }; + }; + //BA.debugLineNum = 93;BA.debugLine="End Sub"; +return ""; +} +public String _logevent(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi,String _ev) throws Exception{ +String _msg = ""; + //BA.debugLineNum = 640;BA.debugLine="Private Sub LogEvent (pi As B4XPageInfo, ev As Str"; + //BA.debugLineNum = 641;BA.debugLine="If LogEvents Then"; +if (_logevents) { + //BA.debugLineNum = 642;BA.debugLine="Dim msg As String = $\"*** ${pi.Id}: ${ev} ${Stac"; +_msg = ("*** "+__c.SmartStringFormatter("",(Object)(_pi.Id /*String*/ ))+": "+__c.SmartStringFormatter("",(Object)(_ev))+" "+__c.SmartStringFormatter("",(Object)(_stackstring))+""); + //BA.debugLineNum = 643;BA.debugLine="Log(msg)"; +__c.LogImpl("950397187",_msg,0); + }; + //BA.debugLineNum = 645;BA.debugLine="End Sub"; +return ""; +} +public String _mainform_resize(double _width,double _height) throws Exception{ +int _w = 0; +int _h = 0; + //BA.debugLineNum = 585;BA.debugLine="Public Sub MainForm_Resize(Width As Double, Height"; + //BA.debugLineNum = 586;BA.debugLine="Dim w As Int = Width"; +_w = (int) (_width); + //BA.debugLineNum = 587;BA.debugLine="Dim h As Int = Height"; +_h = (int) (_height); + //BA.debugLineNum = 588;BA.debugLine="RaiseEvent(GetPageInfoFromRoot(Sender), \"B4XPage_"; +_raiseevent(_getpageinfofromroot((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))),"B4XPage_Resize",new Object[]{(Object)(_w),(Object)(_h)}); + //BA.debugLineNum = 589;BA.debugLine="End Sub"; +return ""; +} +public String _raiseevent(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _targetpage,String _subname,Object[] _params) throws Exception{ int _length = 0; -RDebugUtils.currentLine=41418752; - //BA.debugLineNum = 41418752;BA.debugLine="Public Sub RaiseEventWithResult (TargetPage As B4X"; -RDebugUtils.currentLine=41418753; - //BA.debugLineNum = 41418753;BA.debugLine="If TargetPage = Null Then Return Null"; + //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 __c.Null;}; -RDebugUtils.currentLine=41418754; - //BA.debugLineNum = 41418754;BA.debugLine="Dim length As Int"; +if (true) return "";}; + //BA.debugLineNum = 550;BA.debugLine="Dim length As Int"; _length = 0; -RDebugUtils.currentLine=41418755; - //BA.debugLineNum = 41418755;BA.debugLine="If Params = Null Then length = 0 Else length = Pa"; + //BA.debugLineNum = 551;BA.debugLine="If Params = Null Then length = 0 Else length = Pa"; if (_params== null) { _length = (int) (0);} else { _length = _params.length;}; -RDebugUtils.currentLine=41418756; - //BA.debugLineNum = 41418756;BA.debugLine="LogEvent(TargetPage, SubName)"; -__ref._logevent /*String*/ (null,_targetpage,_subname); -RDebugUtils.currentLine=41418757; - //BA.debugLineNum = 41418757;BA.debugLine="If xui.SubExists(TargetPage.B4XPage, SubName, len"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,_targetpage.B4XPage /*Object*/ ,_subname,_length)==__c.False) { -if (true) return __c.Null;}; -RDebugUtils.currentLine=41418758; - //BA.debugLineNum = 41418758;BA.debugLine="Select 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: { -RDebugUtils.currentLine=41418760; - //BA.debugLineNum = 41418760;BA.debugLine="Return CallSub(TargetPage.B4XPage, SubName)"; + //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("949872910","Too many parameters",0); + break; } +} +; + //BA.debugLineNum = 564;BA.debugLine="End Sub"; +return ""; +} +public Object _raiseeventwithresult(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _targetpage,String _subname,Object[] _params) throws Exception{ +int _length = 0; + //BA.debugLineNum = 566;BA.debugLine="Public Sub RaiseEventWithResult (TargetPage As B4X"; + //BA.debugLineNum = 567;BA.debugLine="If TargetPage = Null Then Return Null"; +if (_targetpage== null) { +if (true) return __c.Null;}; + //BA.debugLineNum = 568;BA.debugLine="Dim length As Int"; +_length = 0; + //BA.debugLineNum = 569;BA.debugLine="If Params = Null Then length = 0 Else length = Pa"; +if (_params== null) { +_length = (int) (0);} +else { +_length = _params.length;}; + //BA.debugLineNum = 570;BA.debugLine="LogEvent(TargetPage, SubName)"; +_logevent(_targetpage,_subname); + //BA.debugLineNum = 571;BA.debugLine="If xui.SubExists(TargetPage.B4XPage, SubName, len"; +if (_xui.SubExists(ba,_targetpage.B4XPage /*Object*/ ,_subname,_length)==__c.False) { +if (true) return __c.Null;}; + //BA.debugLineNum = 572;BA.debugLine="Select length"; +switch (_length) { +case 0: { + //BA.debugLineNum = 574;BA.debugLine="Return CallSub(TargetPage.B4XPage, SubName)"; if (true) return __c.CallSubNew(ba,_targetpage.B4XPage /*Object*/ ,_subname); break; } case 1: { -RDebugUtils.currentLine=41418762; - //BA.debugLineNum = 41418762;BA.debugLine="Return CallSub2(TargetPage.B4XPage, SubName, Pa"; + //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: { -RDebugUtils.currentLine=41418764; - //BA.debugLineNum = 41418764;BA.debugLine="Return CallSub3(TargetPage.B4XPage, SubName, Pa"; + //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: { -RDebugUtils.currentLine=41418766; - //BA.debugLineNum = 41418766;BA.debugLine="Log(\"Too many parameters\")"; -__c.LogImpl("941418766","Too many parameters",0); + //BA.debugLineNum = 580;BA.debugLine="Log(\"Too many parameters\")"; +__c.LogImpl("949938446","Too many parameters",0); break; } } ; -RDebugUtils.currentLine=41418768; - //BA.debugLineNum = 41418768;BA.debugLine="Return Null"; + //BA.debugLineNum = 582;BA.debugLine="Return Null"; if (true) return __c.Null; -RDebugUtils.currentLine=41418769; - //BA.debugLineNum = 41418769;BA.debugLine="End Sub"; + //BA.debugLineNum = 583;BA.debugLine="End Sub"; return null; } -public String _backgroundstatechanged(reparto_izca.keymon.lat.b4xpagesmanager __ref,boolean _newstate) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "backgroundstatechanged", true)) - {return ((String) Debug.delegate(ba, "backgroundstatechanged", new Object[] {_newstate}));} -String _ev = ""; +public String _settitle(Object _b4xpage,Object _title) throws Exception{ reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -RDebugUtils.currentLine=41746432; - //BA.debugLineNum = 41746432;BA.debugLine="Private Sub BackgroundStateChanged (NewState As Bo"; -RDebugUtils.currentLine=41746433; - //BA.debugLineNum = 41746433;BA.debugLine="If IsForeground = NewState Then Return"; -if (__ref._isforeground /*boolean*/ ==_newstate) { + //BA.debugLineNum = 363;BA.debugLine="Public Sub SetTitle (B4XPage As Object, Title As O"; + //BA.debugLineNum = 364;BA.debugLine="Dim pi As B4XPageInfo = FindPIFromB4XPage(B4XPage"; +_pi = _findpifromb4xpage(_b4xpage); + //BA.debugLineNum = 365;BA.debugLine="pi.Title = Title"; +_pi.Title /*Object*/ = _title; + //BA.debugLineNum = 366;BA.debugLine="pi.Parent.NativeType.Title = Title"; +_pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .NativeType /*anywheresoftware.b4a.objects.ActivityWrapper*/ .setTitle(BA.ObjectToCharSequence(_title)); + //BA.debugLineNum = 367;BA.debugLine="End Sub"; +return ""; +} +public String _showpage(String _id) throws Exception{ +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _top = null; + //BA.debugLineNum = 156;BA.debugLine="Public Sub ShowPage (Id As String)"; + //BA.debugLineNum = 157;BA.debugLine="Dim pi As B4XPageInfo = GetPageFromId(Id)"; +_pi = _getpagefromid(_id); + //BA.debugLineNum = 158;BA.debugLine="If pi = GetTopPage Then Return"; +if ((_pi).equals(_gettoppage())) { if (true) return "";}; -RDebugUtils.currentLine=41746434; - //BA.debugLineNum = 41746434;BA.debugLine="IsForeground = NewState"; -__ref._isforeground /*boolean*/ = _newstate; -RDebugUtils.currentLine=41746435; - //BA.debugLineNum = 41746435;BA.debugLine="Dim ev As String"; -_ev = ""; -RDebugUtils.currentLine=41746436; - //BA.debugLineNum = 41746436;BA.debugLine="If IsForeground Then ev = \"B4XPage_Foreground\" El"; -if (__ref._isforeground /*boolean*/ ) { -_ev = "B4XPage_Foreground";} -else { -_ev = "B4XPage_Background";}; -RDebugUtils.currentLine=41746437; - //BA.debugLineNum = 41746437;BA.debugLine="For Each pi As B4XPageInfo In IdToB4XPage.Values"; + //BA.debugLineNum = 159;BA.debugLine="CreatePageIfNeeded(pi)"; +_createpageifneeded(_pi); + //BA.debugLineNum = 160;BA.debugLine="TopPageDisappear"; +_toppagedisappear(); + //BA.debugLineNum = 162;BA.debugLine="Dim Top As B4XPageInfo = GetTopPage"; +_top = _gettoppage(); + //BA.debugLineNum = 163;BA.debugLine="If Top <> Null Then"; +if (_top!= null) { + //BA.debugLineNum = 164;BA.debugLine="Top.Root.RemoveViewFromParent"; +_top.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent(); + }; + //BA.debugLineNum = 174;BA.debugLine="mStackOfPageIds.Remove(pi.Id)"; +_mstackofpageids._remove /*String*/ ((Object)(_pi.Id /*String*/ )); + //BA.debugLineNum = 175;BA.debugLine="ShowPageImpl(pi)"; +_showpageimpl(_pi); + //BA.debugLineNum = 176;BA.debugLine="mStackOfPageIds.Add(pi.Id)"; +_mstackofpageids._add /*String*/ ((Object)(_pi.Id /*String*/ )); + //BA.debugLineNum = 177;BA.debugLine="TopPageAppear"; +_toppageappear(); + //BA.debugLineNum = 178;BA.debugLine="End Sub"; +return ""; +} +public String _showpageandremovepreviouspages(String _id) throws Exception{ +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pagetoremove = null; + //BA.debugLineNum = 180;BA.debugLine="Public Sub ShowPageAndRemovePreviousPages (Id As S"; + //BA.debugLineNum = 181;BA.debugLine="If GetTopPage = Null Then"; +if (_gettoppage()== null) { + //BA.debugLineNum = 182;BA.debugLine="ShowPage(Id)"; +_showpage(_id); + //BA.debugLineNum = 183;BA.debugLine="Return"; +if (true) return ""; + }; + //BA.debugLineNum = 185;BA.debugLine="Dim pi As B4XPageInfo = GetPageFromId(Id)"; +_pi = _getpagefromid(_id); + //BA.debugLineNum = 186;BA.debugLine="CreatePageIfNeeded(pi)"; +_createpageifneeded(_pi); + //BA.debugLineNum = 187;BA.debugLine="TopPageDisappear"; +_toppagedisappear(); + //BA.debugLineNum = 191;BA.debugLine="For Each Id As String In mStackOfPageIds.AsList"; { -final anywheresoftware.b4a.BA.IterableList group5 = __ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getvalues /*anywheresoftware.b4a.objects.collections.List*/ (null); -final int groupLen5 = group5.getSize() -;int index5 = 0; +final anywheresoftware.b4a.BA.IterableList group8 = _mstackofpageids._aslist /*anywheresoftware.b4a.objects.collections.List*/ (); +final int groupLen8 = group8.getSize() +;int index8 = 0; ; -for (; index5 < groupLen5;index5++){ -_pi = (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(group5.Get(index5)); -RDebugUtils.currentLine=41746438; - //BA.debugLineNum = 41746438;BA.debugLine="If xui.SubExists(pi.B4XPage, ev, 0) Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,_pi.B4XPage /*Object*/ ,_ev,(int) (0))) { -RDebugUtils.currentLine=41746439; - //BA.debugLineNum = 41746439;BA.debugLine="LogEvent(pi, ev)"; -__ref._logevent /*String*/ (null,_pi,_ev); -RDebugUtils.currentLine=41746440; - //BA.debugLineNum = 41746440;BA.debugLine="If IsForeground Then"; -if (__ref._isforeground /*boolean*/ ) { -RDebugUtils.currentLine=41746441; - //BA.debugLineNum = 41746441;BA.debugLine="CallSubDelayed(pi.B4XPage, ev)"; -__c.CallSubDelayed(ba,_pi.B4XPage /*Object*/ ,_ev); - }else { -RDebugUtils.currentLine=41746443; - //BA.debugLineNum = 41746443;BA.debugLine="CallSub(pi.B4XPage, ev)"; -__c.CallSubNew(ba,_pi.B4XPage /*Object*/ ,_ev); - }; - }; +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(); } }; -RDebugUtils.currentLine=41746447; - //BA.debugLineNum = 41746447;BA.debugLine="End Sub"; + //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 reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _createb4xpageinfo(reparto_izca.keymon.lat.b4xpagesmanager __ref,Object _b4xpage,String _id,boolean _created,Object _title) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "createb4xpageinfo", true)) - {return ((reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo) Debug.delegate(ba, "createb4xpageinfo", new Object[] {_b4xpage,_id,_created,_title}));} -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _t1 = null; -RDebugUtils.currentLine=40894464; - //BA.debugLineNum = 40894464;BA.debugLine="Private Sub CreateB4XPageInfo (B4XPage As Object,"; -RDebugUtils.currentLine=40894465; - //BA.debugLineNum = 40894465;BA.debugLine="Dim t1 As B4XPageInfo"; -_t1 = new reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo(); -RDebugUtils.currentLine=40894466; - //BA.debugLineNum = 40894466;BA.debugLine="t1.Initialize"; -_t1.Initialize(); -RDebugUtils.currentLine=40894467; - //BA.debugLineNum = 40894467;BA.debugLine="t1.B4XPage = B4XPage"; -_t1.B4XPage /*Object*/ = _b4xpage; -RDebugUtils.currentLine=40894468; - //BA.debugLineNum = 40894468;BA.debugLine="t1.Id = Id"; -_t1.Id /*String*/ = _id; -RDebugUtils.currentLine=40894469; - //BA.debugLineNum = 40894469;BA.debugLine="t1.Created = Created"; -_t1.Created /*boolean*/ = _created; -RDebugUtils.currentLine=40894470; - //BA.debugLineNum = 40894470;BA.debugLine="t1.Title = Title"; -_t1.Title /*Object*/ = _title; -RDebugUtils.currentLine=40894471; - //BA.debugLineNum = 40894471;BA.debugLine="Return t1"; -if (true) return _t1; -RDebugUtils.currentLine=40894472; - //BA.debugLineNum = 40894472;BA.debugLine="End Sub"; -return null; -} -public String _createpageifneeded(reparto_izca.keymon.lat.b4xpagesmanager __ref,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "createpageifneeded", true)) - {return ((String) Debug.delegate(ba, "createpageifneeded", new Object[] {_pi}));} -RDebugUtils.currentLine=40501248; - //BA.debugLineNum = 40501248;BA.debugLine="Private Sub CreatePageIfNeeded(pi As B4XPageInfo)"; -RDebugUtils.currentLine=40501249; - //BA.debugLineNum = 40501249;BA.debugLine="If pi.Created Then Return"; -if (_pi.Created /*boolean*/ ) { -if (true) return "";}; -RDebugUtils.currentLine=40501250; - //BA.debugLineNum = 40501250;BA.debugLine="pi.IsFirst = IdToB4XPage.Size = 1"; -_pi.IsFirst /*boolean*/ = __ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getsize /*int*/ (null)==1; -RDebugUtils.currentLine=40501251; - //BA.debugLineNum = 40501251;BA.debugLine="CreatePageImpl (pi)"; -__ref._createpageimpl /*String*/ (null,_pi); -RDebugUtils.currentLine=40501252; - //BA.debugLineNum = 40501252;BA.debugLine="pi.Created = True"; -_pi.Created /*boolean*/ = __c.True; -RDebugUtils.currentLine=40501253; - //BA.debugLineNum = 40501253;BA.debugLine="RootB4XToPage.Put(pi.Root, pi)"; -__ref._rootb4xtopage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._put /*String*/ (null,(Object)(_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(Object)(_pi)); -RDebugUtils.currentLine=40501254; - //BA.debugLineNum = 40501254;BA.debugLine="LogEvent(pi, \"B4XPage_Created\")"; -__ref._logevent /*String*/ (null,_pi,"B4XPage_Created"); -RDebugUtils.currentLine=40501255; - //BA.debugLineNum = 40501255;BA.debugLine="CallSub2(pi.B4XPage, \"B4XPage_Created\", pi.root)"; -__c.CallSubDebug2(ba,_pi.B4XPage /*Object*/ ,"B4XPage_Created",(Object)(_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ )); -RDebugUtils.currentLine=40501257; - //BA.debugLineNum = 40501257;BA.debugLine="End Sub"; -return ""; -} -public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _getpagefromid(reparto_izca.keymon.lat.b4xpagesmanager __ref,String _id) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "getpagefromid", true)) - {return ((reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo) Debug.delegate(ba, "getpagefromid", new Object[] {_id}));} -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -RDebugUtils.currentLine=40763392; - //BA.debugLineNum = 40763392;BA.debugLine="Private Sub GetPageFromId (id As String) As B4XPag"; -RDebugUtils.currentLine=40763393; - //BA.debugLineNum = 40763393;BA.debugLine="Dim pi As B4XPageInfo = IdToB4XPage.Get(id.ToLowe"; -_pi = (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(__ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,(Object)(_id.toLowerCase()))); -RDebugUtils.currentLine=40763394; - //BA.debugLineNum = 40763394;BA.debugLine="If pi = Null Then"; -if (_pi== null) { -RDebugUtils.currentLine=40763395; - //BA.debugLineNum = 40763395;BA.debugLine="Log(\"Error: page id not found: \" & id)"; -__c.LogImpl("940763395","Error: page id not found: "+_id,0); -RDebugUtils.currentLine=40763396; - //BA.debugLineNum = 40763396;BA.debugLine="Log(\"Ids: \" & IdToB4XPage.Keys) 'ignore"; -__c.LogImpl("940763396","Ids: "+BA.ObjectToString(__ref._idtob4xpage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null)),0); - }; -RDebugUtils.currentLine=40763398; - //BA.debugLineNum = 40763398;BA.debugLine="Return pi"; -if (true) return _pi; -RDebugUtils.currentLine=40763399; - //BA.debugLineNum = 40763399;BA.debugLine="End Sub"; -return null; -} -public String _logevent(reparto_izca.keymon.lat.b4xpagesmanager __ref,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi,String _ev) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "logevent", true)) - {return ((String) Debug.delegate(ba, "logevent", new Object[] {_pi,_ev}));} -String _msg = ""; -RDebugUtils.currentLine=41877504; - //BA.debugLineNum = 41877504;BA.debugLine="Private Sub LogEvent (pi As B4XPageInfo, ev As Str"; -RDebugUtils.currentLine=41877505; - //BA.debugLineNum = 41877505;BA.debugLine="If LogEvents Then"; -if (__ref._logevents /*boolean*/ ) { -RDebugUtils.currentLine=41877506; - //BA.debugLineNum = 41877506;BA.debugLine="Dim msg As String = $\"*** ${pi.Id}: ${ev} ${Stac"; -_msg = ("*** "+__c.SmartStringFormatter("",(Object)(_pi.Id /*String*/ ))+": "+__c.SmartStringFormatter("",(Object)(_ev))+" "+__c.SmartStringFormatter("",(Object)(__ref._stackstring /*String*/ ))+""); -RDebugUtils.currentLine=41877507; - //BA.debugLineNum = 41877507;BA.debugLine="Log(msg)"; -__c.LogImpl("941877507",_msg,0); - }; -RDebugUtils.currentLine=41877509; - //BA.debugLineNum = 41877509;BA.debugLine="End Sub"; -return ""; -} -public String _checkmainactivityorientations(reparto_izca.keymon.lat.b4xpagesmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "checkmainactivityorientations", true)) - {return ((String) Debug.delegate(ba, "checkmainactivityorientations", null));} -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; -RDebugUtils.currentLine=39714816; - //BA.debugLineNum = 39714816;BA.debugLine="Private Sub CheckMainActivityOrientations"; -RDebugUtils.currentLine=39714818; - //BA.debugLineNum = 39714818;BA.debugLine="Dim jo As JavaObject"; -_jo = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=39714819; - //BA.debugLineNum = 39714819;BA.debugLine="jo.InitializeContext"; -_jo.InitializeContext(ba); -RDebugUtils.currentLine=39714821; - //BA.debugLineNum = 39714821;BA.debugLine="ActionBar = jo.RunMethod(\"getActionBar\", Null)"; -__ref._actionbar /*anywheresoftware.b4j.object.JavaObject*/ = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_jo.RunMethod("getActionBar",(Object[])(__c.Null)))); -RDebugUtils.currentLine=39714822; - //BA.debugLineNum = 39714822;BA.debugLine="If ActionBar.IsInitialized = False Then"; -if (__ref._actionbar /*anywheresoftware.b4j.object.JavaObject*/ .IsInitialized()==__c.False) { -RDebugUtils.currentLine=39714823; - //BA.debugLineNum = 39714823;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)); -RDebugUtils.currentLine=39714824; - //BA.debugLineNum = 39714824;BA.debugLine="Dim IsAppCompat As Boolean = jme.RunMethod(\"chec"; -_isappcompat = BA.ObjectToBoolean(_jme.RunMethod("checkIfAppCompat",new Object[]{(Object)(_jo.getObject())})); -RDebugUtils.currentLine=39714825; - //BA.debugLineNum = 39714825;BA.debugLine="If IsAppCompat Then"; -if (_isappcompat) { -RDebugUtils.currentLine=39714826; - //BA.debugLineNum = 39714826;BA.debugLine="ActionBar = jo.RunMethod(\"getSupportActionBar\","; -__ref._actionbar /*anywheresoftware.b4j.object.JavaObject*/ = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_jo.RunMethod("getSupportActionBar",(Object[])(__c.Null)))); - }; - }; -RDebugUtils.currentLine=39714830; - //BA.debugLineNum = 39714830;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)}))); -RDebugUtils.currentLine=39714831; - //BA.debugLineNum = 39714831;BA.debugLine="Dim activities() As Object = pi.GetField(\"activit"; -_activities = (Object[])(_pi.GetField("activities")); -RDebugUtils.currentLine=39714832; - //BA.debugLineNum = 39714832;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])); -RDebugUtils.currentLine=39714833; - //BA.debugLineNum = 39714833;BA.debugLine="Dim name As String = Act.GetField(\"name\")"; -_name = BA.ObjectToString(_act.GetField("name")); -RDebugUtils.currentLine=39714834; - //BA.debugLineNum = 39714834;BA.debugLine="If name.EndsWith(\".main\") Then"; -if (_name.endsWith(".main")) { -RDebugUtils.currentLine=39714835; - //BA.debugLineNum = 39714835;BA.debugLine="Dim screenOrientation As Int = Act.GetField(\"sc"; -_screenorientation = (int)(BA.ObjectToNumber(_act.GetField("screenOrientation"))); -RDebugUtils.currentLine=39714836; - //BA.debugLineNum = 39714836;BA.debugLine="If screenOrientation = -1 Then"; -if (_screenorientation==-1) { -RDebugUtils.currentLine=39714837; - //BA.debugLineNum = 39714837;BA.debugLine="LogColor(\"#SupportedOrientations attribute mus"; -__c.LogImpl("939714837","#SupportedOrientations attribute must be set to landscape or portrait.",__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Red); - }; - }; - } -}; -RDebugUtils.currentLine=39714841; - //BA.debugLineNum = 39714841;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.b4xpagesmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -RDebugUtils.currentLine=39583744; - //BA.debugLineNum = 39583744;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=39583745; - //BA.debugLineNum = 39583745;BA.debugLine="Private IdToB4XPage As B4XOrderedMap"; -_idtob4xpage = new reparto_izca.keymon.lat.b4xorderedmap(); -RDebugUtils.currentLine=39583746; - //BA.debugLineNum = 39583746;BA.debugLine="Private RootB4XToPage As B4XOrderedMap"; -_rootb4xtopage = new reparto_izca.keymon.lat.b4xorderedmap(); -RDebugUtils.currentLine=39583748; - //BA.debugLineNum = 39583748;BA.debugLine="Private Context As JavaObject"; -_context = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=39583749; - //BA.debugLineNum = 39583749;BA.debugLine="Type B4XPageParent (NativeType As Activity, MenuI"; -; -RDebugUtils.currentLine=39583750; - //BA.debugLineNum = 39583750;BA.debugLine="Type B4AMenuItem (Title As Object, Bitmap As B4XB"; -; -RDebugUtils.currentLine=39583756; - //BA.debugLineNum = 39583756;BA.debugLine="Type B4XPageInfo (B4XPage As Object, Id As String"; -; -RDebugUtils.currentLine=39583760; - //BA.debugLineNum = 39583760;BA.debugLine="Public mStackOfPageIds As B4XSet"; -_mstackofpageids = new reparto_izca.keymon.lat.b4xset(); -RDebugUtils.currentLine=39583761; - //BA.debugLineNum = 39583761;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=39583765; - //BA.debugLineNum = 39583765;BA.debugLine="Private mMainForm As Activity"; -_mmainform = new anywheresoftware.b4a.objects.ActivityWrapper(); -RDebugUtils.currentLine=39583766; - //BA.debugLineNum = 39583766;BA.debugLine="Public ShowUpIndicator As Boolean = True"; -_showupindicator = __c.True; -RDebugUtils.currentLine=39583767; - //BA.debugLineNum = 39583767;BA.debugLine="Public ActionBar As JavaObject"; -_actionbar = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=39583771; - //BA.debugLineNum = 39583771;BA.debugLine="Public IsForeground As Boolean"; -_isforeground = false; -RDebugUtils.currentLine=39583772; - //BA.debugLineNum = 39583772;BA.debugLine="Public TransitionAnimationDuration As Int = 100"; -_transitionanimationduration = (int) (100); -RDebugUtils.currentLine=39583773; - //BA.debugLineNum = 39583773;BA.debugLine="Public MainPage As B4XMainPage"; -_mainpage = new reparto_izca.keymon.lat.b4xmainpage(); -RDebugUtils.currentLine=39583774; - //BA.debugLineNum = 39583774;BA.debugLine="Private StackString As String"; -_stackstring = ""; -RDebugUtils.currentLine=39583775; - //BA.debugLineNum = 39583775;BA.debugLine="Public LogEvents As Boolean = False"; -_logevents = __c.False; -RDebugUtils.currentLine=39583776; - //BA.debugLineNum = 39583776;BA.debugLine="End Sub"; -return ""; -} -public String _closepageimpl(reparto_izca.keymon.lat.b4xpagesmanager __ref,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "closepageimpl", true)) - {return ((String) Debug.delegate(ba, "closepageimpl", new Object[] {_pi}));} -anywheresoftware.b4a.objects.IntentWrapper _i = null; -RDebugUtils.currentLine=40370176; - //BA.debugLineNum = 40370176;BA.debugLine="Private Sub ClosePageImpl (pi As B4XPageInfo) 'ign"; -RDebugUtils.currentLine=40370178; - //BA.debugLineNum = 40370178;BA.debugLine="If mStackOfPageIds.Size = 1 Then"; -if (__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._getsize /*int*/ (null)==1) { -RDebugUtils.currentLine=40370179; - //BA.debugLineNum = 40370179;BA.debugLine="Dim i As Intent"; -_i = new anywheresoftware.b4a.objects.IntentWrapper(); -RDebugUtils.currentLine=40370180; - //BA.debugLineNum = 40370180;BA.debugLine="i.Initialize(i.ACTION_MAIN, \"\")"; -_i.Initialize(_i.ACTION_MAIN,""); -RDebugUtils.currentLine=40370181; - //BA.debugLineNum = 40370181;BA.debugLine="i.AddCategory(\"android.intent.category.HOME\")"; -_i.AddCategory("android.intent.category.HOME"); -RDebugUtils.currentLine=40370182; - //BA.debugLineNum = 40370182;BA.debugLine="i.Flags = 0x10000000"; -_i.setFlags(((int)0x10000000)); -RDebugUtils.currentLine=40370183; - //BA.debugLineNum = 40370183;BA.debugLine="StartActivity(i)"; -__c.StartActivity(ba,(Object)(_i.getObject())); - }else { -RDebugUtils.currentLine=40370185; - //BA.debugLineNum = 40370185;BA.debugLine="pi.Root.RemoveViewFromParent"; -_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .RemoveViewFromParent(); - }; -RDebugUtils.currentLine=40370192; - //BA.debugLineNum = 40370192;BA.debugLine="End Sub"; -return ""; -} -public String _toppagedisappear(reparto_izca.keymon.lat.b4xpagesmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "toppagedisappear", true)) - {return ((String) Debug.delegate(ba, "toppagedisappear", null));} -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -RDebugUtils.currentLine=40173568; - //BA.debugLineNum = 40173568;BA.debugLine="Private Sub TopPageDisappear"; -RDebugUtils.currentLine=40173569; - //BA.debugLineNum = 40173569;BA.debugLine="If xui.IsB4J Then Return"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) { -if (true) return "";}; -RDebugUtils.currentLine=40173570; - //BA.debugLineNum = 40173570;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage"; -_pi = __ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null); -RDebugUtils.currentLine=40173571; - //BA.debugLineNum = 40173571;BA.debugLine="If pi = Null Then Return"; -if (_pi== null) { -if (true) return "";}; -RDebugUtils.currentLine=40173572; - //BA.debugLineNum = 40173572;BA.debugLine="If Not(xui.IsB4i) Then"; -if (__c.Not(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i())) { -RDebugUtils.currentLine=40173573; - //BA.debugLineNum = 40173573;BA.debugLine="If IsForeground Then"; -if (__ref._isforeground /*boolean*/ ) { -RDebugUtils.currentLine=40173574; - //BA.debugLineNum = 40173574;BA.debugLine="RaiseEventWithResult(pi, \"B4XPage_Disappear\", N"; -__ref._raiseeventwithresult /*Object*/ (null,_pi,"B4XPage_Disappear",(Object[])(__c.Null)); - }; - }; -RDebugUtils.currentLine=40173577; - //BA.debugLineNum = 40173577;BA.debugLine="End Sub"; -return ""; -} -public String _showpageimpl(reparto_izca.keymon.lat.b4xpagesmanager __ref,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "showpageimpl", true)) - {return ((String) Debug.delegate(ba, "showpageimpl", new Object[] {_pi}));} +public String _showpageimpl(reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ anywheresoftware.b4a.objects.PanelWrapper _pnl = null; -RDebugUtils.currentLine=40435712; - //BA.debugLineNum = 40435712;BA.debugLine="Private Sub ShowPageImpl (pi As B4XPageInfo)"; -RDebugUtils.currentLine=40435718; - //BA.debugLineNum = 40435718;BA.debugLine="If pi.Root.Parent.IsInitialized Then pi.Root.Remo"; + //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();}; -RDebugUtils.currentLine=40435719; - //BA.debugLineNum = 40435719;BA.debugLine="Dim pnl As Panel = pi.Root"; + //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())); -RDebugUtils.currentLine=40435720; - //BA.debugLineNum = 40435720;BA.debugLine="If TransitionAnimationDuration > 0 Then"; -if (__ref._transitionanimationduration /*int*/ >0) { -RDebugUtils.currentLine=40435721; - //BA.debugLineNum = 40435721;BA.debugLine="mMainForm.AddView(pnl, 0, 0, 20dip, 20dip)"; -__ref._mmainform /*anywheresoftware.b4a.objects.ActivityWrapper*/ .AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),__c.DipToCurrent((int) (20)),__c.DipToCurrent((int) (20))); -RDebugUtils.currentLine=40435722; - //BA.debugLineNum = 40435722;BA.debugLine="pnl.SetLayoutAnimated(TransitionAnimationDuratio"; -_pnl.SetLayoutAnimated(__ref._transitionanimationduration /*int*/ ,(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba)); + //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 { -RDebugUtils.currentLine=40435724; - //BA.debugLineNum = 40435724;BA.debugLine="mMainForm.AddView(pnl, 0, 0, 100%x, 100%y)"; -__ref._mmainform /*anywheresoftware.b4a.objects.ActivityWrapper*/ .AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),__c.PerXToCurrent((float) (100),ba),__c.PerYToCurrent((float) (100),ba)); + //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)); }; -RDebugUtils.currentLine=40435729; - //BA.debugLineNum = 40435729;BA.debugLine="End Sub"; + //BA.debugLineNum = 350;BA.debugLine="End Sub"; return ""; } -public String _toppageappear(reparto_izca.keymon.lat.b4xpagesmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "toppageappear", true)) - {return ((String) Debug.delegate(ba, "toppageappear", null));} +public String _toppageappear() throws Exception{ reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; -RDebugUtils.currentLine=40239104; - //BA.debugLineNum = 40239104;BA.debugLine="Private Sub TopPageAppear"; -RDebugUtils.currentLine=40239105; - //BA.debugLineNum = 40239105;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage"; -_pi = __ref._gettoppage /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo*/ (null); -RDebugUtils.currentLine=40239106; - //BA.debugLineNum = 40239106;BA.debugLine="If pi = Null Then Return"; + //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 "";}; -RDebugUtils.currentLine=40239107; - //BA.debugLineNum = 40239107;BA.debugLine="pi.Parent.NativeType.Title = pi.Title"; + //BA.debugLineNum = 291;BA.debugLine="pi.Parent.NativeType.Title = pi.Title"; _pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .NativeType /*anywheresoftware.b4a.objects.ActivityWrapper*/ .setTitle(BA.ObjectToCharSequence(_pi.Title /*Object*/ )); -RDebugUtils.currentLine=40239108; - //BA.debugLineNum = 40239108;BA.debugLine="If Not(xui.IsB4i) Then"; -if (__c.Not(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i())) { -RDebugUtils.currentLine=40239109; - //BA.debugLineNum = 40239109;BA.debugLine="If IsForeground Then"; -if (__ref._isforeground /*boolean*/ ) { -RDebugUtils.currentLine=40239110; - //BA.debugLineNum = 40239110;BA.debugLine="RaiseEvent(pi, \"B4XPage_Appear\", Null)"; -__ref._raiseevent /*String*/ (null,_pi,"B4XPage_Appear",(Object[])(__c.Null)); + //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)); }; }; -RDebugUtils.currentLine=40239114; - //BA.debugLineNum = 40239114;BA.debugLine="If ShowUpIndicator And ActionBar.IsInitialized Th"; -if (__ref._showupindicator /*boolean*/ && __ref._actionbar /*anywheresoftware.b4j.object.JavaObject*/ .IsInitialized()) { -RDebugUtils.currentLine=40239115; - //BA.debugLineNum = 40239115;BA.debugLine="ActionBar.RunMethod(\"setDisplayHomeAsUpEnabled\","; -__ref._actionbar /*anywheresoftware.b4j.object.JavaObject*/ .RunMethod("setDisplayHomeAsUpEnabled",new Object[]{(Object)(__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._getsize /*int*/ (null)>1)}); + //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)}); }; -RDebugUtils.currentLine=40239117; - //BA.debugLineNum = 40239117;BA.debugLine="UpdateMenuItems"; -__ref._updatemenuitems /*String*/ (null); -RDebugUtils.currentLine=40239119; - //BA.debugLineNum = 40239119;BA.debugLine="UpdateStackString"; -__ref._updatestackstring /*String*/ (null); -RDebugUtils.currentLine=40239120; - //BA.debugLineNum = 40239120;BA.debugLine="End Sub"; + //BA.debugLineNum = 301;BA.debugLine="UpdateMenuItems"; +_updatemenuitems(); + //BA.debugLineNum = 303;BA.debugLine="UpdateStackString"; +_updatestackstring(); + //BA.debugLineNum = 304;BA.debugLine="End Sub"; return ""; } -public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent _createb4xpageparent(reparto_izca.keymon.lat.b4xpagesmanager __ref,Object _nativetype) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "createb4xpageparent", true)) - {return ((reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent) Debug.delegate(ba, "createb4xpageparent", new Object[] {_nativetype}));} -reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent _t1 = null; -RDebugUtils.currentLine=41615360; - //BA.debugLineNum = 41615360;BA.debugLine="Private Sub CreateB4XPageParent (NativeType As Obj"; -RDebugUtils.currentLine=41615366; - //BA.debugLineNum = 41615366;BA.debugLine="Dim t1 As B4XPageParent"; -_t1 = new reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent(); -RDebugUtils.currentLine=41615367; - //BA.debugLineNum = 41615367;BA.debugLine="t1.Initialize"; -_t1.Initialize(); -RDebugUtils.currentLine=41615368; - //BA.debugLineNum = 41615368;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)); -RDebugUtils.currentLine=41615369; - //BA.debugLineNum = 41615369;BA.debugLine="Return t1"; -if (true) return _t1; -RDebugUtils.currentLine=41615370; - //BA.debugLineNum = 41615370;BA.debugLine="End Sub"; -return null; -} -public String _createpageimpl(reparto_izca.keymon.lat.b4xpagesmanager __ref,reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "createpageimpl", true)) - {return ((String) Debug.delegate(ba, "createpageimpl", new Object[] {_pi}));} -RDebugUtils.currentLine=40632320; - //BA.debugLineNum = 40632320;BA.debugLine="Private Sub CreatePageImpl (pi As B4XPageInfo)"; -RDebugUtils.currentLine=40632332; - //BA.debugLineNum = 40632332;BA.debugLine="pi.Root = xui.CreatePanel(\"root\")"; -_pi.Root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"root"); -RDebugUtils.currentLine=40632333; - //BA.debugLineNum = 40632333;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)); -RDebugUtils.currentLine=40632334; - //BA.debugLineNum = 40632334;BA.debugLine="pi.Parent = CreateB4XPageParent(mMainForm)"; -_pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ = __ref._createb4xpageparent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ (null,(Object)(__ref._mmainform /*anywheresoftware.b4a.objects.ActivityWrapper*/ .getObject())); -RDebugUtils.currentLine=40632335; - //BA.debugLineNum = 40632335;BA.debugLine="pi.Parent.MenuItems.Initialize"; -_pi.Parent /*reparto_izca.keymon.lat.b4xpagesmanager._b4xpageparent*/ .MenuItems /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=40632343; - //BA.debugLineNum = 40632343;BA.debugLine="End Sub"; +public String _toppagedisappear() throws Exception{ +reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _pi = null; + //BA.debugLineNum = 277;BA.debugLine="Private Sub TopPageDisappear"; + //BA.debugLineNum = 278;BA.debugLine="If xui.IsB4J Then Return"; +if (_xui.getIsB4J()) { +if (true) return "";}; + //BA.debugLineNum = 279;BA.debugLine="Dim pi As B4XPageInfo = GetTopPage"; +_pi = _gettoppage(); + //BA.debugLineNum = 280;BA.debugLine="If pi = Null Then Return"; +if (_pi== null) { +if (true) return "";}; + //BA.debugLineNum = 281;BA.debugLine="If Not(xui.IsB4i) Then"; +if (__c.Not(_xui.getIsB4i())) { + //BA.debugLineNum = 282;BA.debugLine="If IsForeground Then"; +if (_isforeground) { + //BA.debugLineNum = 283;BA.debugLine="RaiseEventWithResult(pi, \"B4XPage_Disappear\", N"; +_raiseeventwithresult(_pi,"B4XPage_Disappear",(Object[])(__c.Null)); + }; + }; + //BA.debugLineNum = 286;BA.debugLine="End Sub"; return ""; } -public reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo _getpageinfofromroot(reparto_izca.keymon.lat.b4xpagesmanager __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "getpageinfofromroot", true)) - {return ((reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo) Debug.delegate(ba, "getpageinfofromroot", new Object[] {_root}));} -RDebugUtils.currentLine=40828928; - //BA.debugLineNum = 40828928;BA.debugLine="Public Sub GetPageInfoFromRoot (Root As B4XView) A"; -RDebugUtils.currentLine=40828929; - //BA.debugLineNum = 40828929;BA.debugLine="Return RootB4XToPage.Get(Root)"; -if (true) return (reparto_izca.keymon.lat.b4xpagesmanager._b4xpageinfo)(__ref._rootb4xtopage /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,(Object)(_root.getObject()))); -RDebugUtils.currentLine=40828930; - //BA.debugLineNum = 40828930;BA.debugLine="End Sub"; -return null; -} -public String _updatemenuitems(reparto_izca.keymon.lat.b4xpagesmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "updatemenuitems", true)) - {return ((String) Debug.delegate(ba, "updatemenuitems", null));} -RDebugUtils.currentLine=41091072; - //BA.debugLineNum = 41091072;BA.debugLine="Private Sub UpdateMenuItems"; -RDebugUtils.currentLine=41091073; - //BA.debugLineNum = 41091073;BA.debugLine="Context.RunMethod(\"invalidateOptionsMenu\", Null)"; -__ref._context /*anywheresoftware.b4j.object.JavaObject*/ .RunMethod("invalidateOptionsMenu",(Object[])(__c.Null)); -RDebugUtils.currentLine=41091074; - //BA.debugLineNum = 41091074;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xpagesmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xpagesmanager"; -if (Debug.shouldDelegate(ba, "updatestackstring", true)) - {return ((String) Debug.delegate(ba, "updatestackstring", null));} +public String _updatestackstring() throws Exception{ anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null; String _id = ""; -RDebugUtils.currentLine=41943040; - //BA.debugLineNum = 41943040;BA.debugLine="Public Sub UpdateStackString"; -RDebugUtils.currentLine=41943041; - //BA.debugLineNum = 41943041;BA.debugLine="Dim sb As StringBuilder"; + //BA.debugLineNum = 647;BA.debugLine="Public Sub UpdateStackString"; + //BA.debugLineNum = 648;BA.debugLine="Dim sb As StringBuilder"; _sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); -RDebugUtils.currentLine=41943042; - //BA.debugLineNum = 41943042;BA.debugLine="sb.Initialize"; + //BA.debugLineNum = 649;BA.debugLine="sb.Initialize"; _sb.Initialize(); -RDebugUtils.currentLine=41943043; - //BA.debugLineNum = 41943043;BA.debugLine="sb.Append(\"[\")"; + //BA.debugLineNum = 650;BA.debugLine="sb.Append(\"[\")"; _sb.Append("["); -RDebugUtils.currentLine=41943044; - //BA.debugLineNum = 41943044;BA.debugLine="If mStackOfPageIds.Size > 0 Then"; -if (__ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._getsize /*int*/ (null)>0) { -RDebugUtils.currentLine=41943045; - //BA.debugLineNum = 41943045;BA.debugLine="For Each id As String In mStackOfPageIds.AsList"; + //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 = __ref._mstackofpageids /*reparto_izca.keymon.lat.b4xset*/ ._aslist /*anywheresoftware.b4a.objects.collections.List*/ (null); +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)); -RDebugUtils.currentLine=41943046; - //BA.debugLineNum = 41943046;BA.debugLine="sb.Append(id).Append(\", \")"; + //BA.debugLineNum = 653;BA.debugLine="sb.Append(id).Append(\", \")"; _sb.Append(_id).Append(", "); } }; -RDebugUtils.currentLine=41943048; - //BA.debugLineNum = 41943048;BA.debugLine="sb.Remove(sb.Length - 2, sb.Length)"; + //BA.debugLineNum = 655;BA.debugLine="sb.Remove(sb.Length - 2, sb.Length)"; _sb.Remove((int) (_sb.getLength()-2),_sb.getLength()); }; -RDebugUtils.currentLine=41943050; - //BA.debugLineNum = 41943050;BA.debugLine="sb.Append(\"]\")"; + //BA.debugLineNum = 657;BA.debugLine="sb.Append(\"]\")"; _sb.Append("]"); -RDebugUtils.currentLine=41943051; - //BA.debugLineNum = 41943051;BA.debugLine="StackString = sb.ToString"; -__ref._stackstring /*String*/ = _sb.ToString(); -RDebugUtils.currentLine=41943052; - //BA.debugLineNum = 41943052;BA.debugLine="End Sub"; + //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"); } @@ -1557,4 +1072,4 @@ public static class PagesMenuListener implements android.view.MenuItem.OnMenuIte return true; } } -} \ No newline at end of file +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xplusminus.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xplusminus.java index 9ccab52..ba305ab 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xplusminus.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xplusminus.java @@ -10,7 +10,7 @@ public class b4xplusminus extends B4AClass.ImplB4AClass implements BA.SubDelegat private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xplusminus"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xplusminus"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xplusminus extends B4AClass.ImplB4AClass implements BA.SubDelegat ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -71,666 +64,391 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.b4xplusminus __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=57409536; - //BA.debugLineNum = 57409536;BA.debugLine="Public Sub Base_Resize (Width As Double, Height As"; -RDebugUtils.currentLine=57409537; - //BA.debugLineNum = 57409537;BA.debugLine="If Formation = \"Horizontal\" Then"; -if ((__ref._formation /*String*/ ).equals("Horizontal")) { -RDebugUtils.currentLine=57409538; - //BA.debugLineNum = 57409538;BA.debugLine="pnlMinus.SetLayoutAnimated(0, 0, 0, ArrowsSize,"; -__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._arrowssize /*int*/ ,(int) (_height)); -RDebugUtils.currentLine=57409539; - //BA.debugLineNum = 57409539;BA.debugLine="pnlPlus.SetLayoutAnimated(0, Width - ArrowsSize,"; -__ref._pnlplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (_width-__ref._arrowssize /*int*/ ),(int) (0),__ref._arrowssize /*int*/ ,(int) (_height)); -RDebugUtils.currentLine=57409540; - //BA.debugLineNum = 57409540;BA.debugLine="MainLabel.SetLayoutAnimated(0, 0, 0, Width, Heig"; -__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); - }else -{RDebugUtils.currentLine=57409541; - //BA.debugLineNum = 57409541;BA.debugLine="Else if Formation = \"Vertical\" Then"; -if ((__ref._formation /*String*/ ).equals("Vertical")) { -RDebugUtils.currentLine=57409542; - //BA.debugLineNum = 57409542;BA.debugLine="pnlPlus.SetLayoutAnimated(0, 0, 0, Width, Arrows"; -__ref._pnlplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),__ref._arrowssize /*int*/ ); -RDebugUtils.currentLine=57409543; - //BA.debugLineNum = 57409543;BA.debugLine="pnlMinus.SetLayoutAnimated(0, 0, Height - Arrows"; -__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (_height-__ref._arrowssize /*int*/ ),(int) (_width),__ref._arrowssize /*int*/ ); -RDebugUtils.currentLine=57409544; - //BA.debugLineNum = 57409544;BA.debugLine="MainLabel.SetLayoutAnimated(0, 0, 0, Width, Heig"; -__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); +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 { -RDebugUtils.currentLine=57409546; - //BA.debugLineNum = 57409546;BA.debugLine="pnlMinus.SetLayoutAnimated(0, 0, Height - Arrows"; -__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (_height-__ref._arrowssize /*int*/ ),(int) (_width/(double)2),__ref._arrowssize /*int*/ ); -RDebugUtils.currentLine=57409547; - //BA.debugLineNum = 57409547;BA.debugLine="pnlPlus.SetLayoutAnimated(0, Width / 2, pnlMinus"; -__ref._pnlplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (_width/(double)2),__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTop(),__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=57409548; - //BA.debugLineNum = 57409548;BA.debugLine="MainLabel.SetLayoutAnimated(0, 0, 0, Width, Heig"; -__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height-__ref._arrowssize /*int*/ +__c.DipToCurrent((int) (5)))); - }} -; -RDebugUtils.currentLine=57409550; - //BA.debugLineNum = 57409550;BA.debugLine="lblMinus.SetLayoutAnimated(0, 0, 0, pnlMinus.Widt"; -__ref._lblminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=57409551; - //BA.debugLineNum = 57409551;BA.debugLine="lblPlus.SetLayoutAnimated(0, 0, 0, pnlPlus.Width,"; -__ref._lblplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__ref._pnlplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._pnlplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=57409552; - //BA.debugLineNum = 57409552;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xplusminus __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -RDebugUtils.currentLine=57212928; - //BA.debugLineNum = 57212928;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=57212929; - //BA.debugLineNum = 57212929;BA.debugLine="Private mEventName As String 'ignore"; +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 = ""; -RDebugUtils.currentLine=57212930; - //BA.debugLineNum = 57212930;BA.debugLine="Private mCallBack As Object 'ignore"; + //BA.debugLineNum = 8;BA.debugLine="Private mCallBack As Object 'ignore"; _mcallback = new Object(); -RDebugUtils.currentLine=57212931; - //BA.debugLineNum = 57212931;BA.debugLine="Public mBase As B4XView 'ignore"; + //BA.debugLineNum = 9;BA.debugLine="Public mBase As B4XView 'ignore"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=57212932; - //BA.debugLineNum = 57212932;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 10;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=57212933; - //BA.debugLineNum = 57212933;BA.debugLine="Public Tag As Object"; + //BA.debugLineNum = 11;BA.debugLine="Public Tag As Object"; _tag = new Object(); -RDebugUtils.currentLine=57212934; - //BA.debugLineNum = 57212934;BA.debugLine="Public pnlPlus, pnlMinus As B4XView"; + //BA.debugLineNum = 12;BA.debugLine="Public pnlPlus, pnlMinus As B4XView"; _pnlplus = new anywheresoftware.b4a.objects.B4XViewWrapper(); _pnlminus = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=57212935; - //BA.debugLineNum = 57212935;BA.debugLine="Public lblPlus, lblMinus As B4XView"; + //BA.debugLineNum = 13;BA.debugLine="Public lblPlus, lblMinus As B4XView"; _lblplus = new anywheresoftware.b4a.objects.B4XViewWrapper(); _lblminus = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=57212936; - //BA.debugLineNum = 57212936;BA.debugLine="Public Formation As String"; + //BA.debugLineNum = 14;BA.debugLine="Public Formation As String"; _formation = ""; -RDebugUtils.currentLine=57212937; - //BA.debugLineNum = 57212937;BA.debugLine="Public mCyclic As Boolean"; + //BA.debugLineNum = 15;BA.debugLine="Public mCyclic As Boolean"; _mcyclic = false; -RDebugUtils.currentLine=57212938; - //BA.debugLineNum = 57212938;BA.debugLine="Public mRapid As Boolean"; + //BA.debugLineNum = 16;BA.debugLine="Public mRapid As Boolean"; _mrapid = false; -RDebugUtils.currentLine=57212939; - //BA.debugLineNum = 57212939;BA.debugLine="Public MainLabel As B4XView"; + //BA.debugLineNum = 17;BA.debugLine="Public MainLabel As B4XView"; _mainlabel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=57212940; - //BA.debugLineNum = 57212940;BA.debugLine="Public ArrowsSize As Int = 30dip"; + //BA.debugLineNum = 18;BA.debugLine="Public ArrowsSize As Int = 30dip"; _arrowssize = __c.DipToCurrent((int) (30)); -RDebugUtils.currentLine=57212941; - //BA.debugLineNum = 57212941;BA.debugLine="Private mStringItems As List"; + //BA.debugLineNum = 19;BA.debugLine="Private mStringItems As List"; _mstringitems = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=57212942; - //BA.debugLineNum = 57212942;BA.debugLine="Private mStartRange, mInterval, mEndRange As Doub"; + //BA.debugLineNum = 20;BA.debugLine="Private mStartRange, mInterval, mEndRange As Doub"; _mstartrange = 0; _minterval = 0; _mendrange = 0; -RDebugUtils.currentLine=57212943; - //BA.debugLineNum = 57212943;BA.debugLine="Private mSelectedIndex As Int = -1"; + //BA.debugLineNum = 21;BA.debugLine="Private mSelectedIndex As Int = -1"; _mselectedindex = (int) (-1); -RDebugUtils.currentLine=57212944; - //BA.debugLineNum = 57212944;BA.debugLine="Private LoopIndex As Int"; + //BA.debugLineNum = 22;BA.debugLine="Private LoopIndex As Int"; _loopindex = 0; -RDebugUtils.currentLine=57212945; - //BA.debugLineNum = 57212945;BA.debugLine="Public RapidPeriod1 As Int = 1000"; + //BA.debugLineNum = 23;BA.debugLine="Public RapidPeriod1 As Int = 1000"; _rapidperiod1 = (int) (1000); -RDebugUtils.currentLine=57212946; - //BA.debugLineNum = 57212946;BA.debugLine="Public RapidPeriod2 As Int = 30"; + //BA.debugLineNum = 24;BA.debugLine="Public RapidPeriod2 As Int = 30"; _rapidperiod2 = (int) (30); -RDebugUtils.currentLine=57212947; - //BA.debugLineNum = 57212947;BA.debugLine="Public Formatter As B4XFormatter"; + //BA.debugLineNum = 25;BA.debugLine="Public Formatter As B4XFormatter"; _formatter = new reparto_izca.keymon.lat.b4xformatter(); -RDebugUtils.currentLine=57212948; - //BA.debugLineNum = 57212948;BA.debugLine="Private StringMode As Boolean"; + //BA.debugLineNum = 26;BA.debugLine="Private StringMode As Boolean"; _stringmode = false; -RDebugUtils.currentLine=57212949; - //BA.debugLineNum = 57212949;BA.debugLine="Private Size As Int"; + //BA.debugLineNum = 27;BA.debugLine="Private Size As Int"; _size = 0; -RDebugUtils.currentLine=57212950; - //BA.debugLineNum = 57212950;BA.debugLine="Public mHaptic As Boolean"; + //BA.debugLineNum = 28;BA.debugLine="Public mHaptic As Boolean"; _mhaptic = false; -RDebugUtils.currentLine=57212951; - //BA.debugLineNum = 57212951;BA.debugLine="End Sub"; + //BA.debugLineNum = 29;BA.debugLine="End Sub"; return ""; } -public anywheresoftware.b4a.objects.B4XViewWrapper _createlabel(reparto_izca.keymon.lat.b4xplusminus __ref,String _text) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "createlabel", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "createlabel", new Object[] {_text}));} +public anywheresoftware.b4a.objects.B4XViewWrapper _createlabel(String _text) throws Exception{ anywheresoftware.b4a.objects.LabelWrapper _lbl = null; anywheresoftware.b4a.objects.B4XViewWrapper _xlbl = null; -RDebugUtils.currentLine=58195968; - //BA.debugLineNum = 58195968;BA.debugLine="Private Sub CreateLabel (text As String) As B4XVie"; -RDebugUtils.currentLine=58195969; - //BA.debugLineNum = 58195969;BA.debugLine="Dim lbl As Label"; + //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(); -RDebugUtils.currentLine=58195970; - //BA.debugLineNum = 58195970;BA.debugLine="lbl.Initialize(\"\")"; + //BA.debugLineNum = 249;BA.debugLine="lbl.Initialize(\"\")"; _lbl.Initialize(ba,""); -RDebugUtils.currentLine=58195971; - //BA.debugLineNum = 58195971;BA.debugLine="Dim xlbl As B4XView = lbl"; + //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())); -RDebugUtils.currentLine=58195972; - //BA.debugLineNum = 58195972;BA.debugLine="xlbl.Font = xui.CreateMaterialIcons(30)"; -_xlbl.setFont(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateMaterialIcons((float) (30))); -RDebugUtils.currentLine=58195973; - //BA.debugLineNum = 58195973;BA.debugLine="xlbl.Text = text"; + //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)); -RDebugUtils.currentLine=58195974; - //BA.debugLineNum = 58195974;BA.debugLine="xlbl.TextColor = MainLabel.TextColor"; -_xlbl.setTextColor(__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTextColor()); -RDebugUtils.currentLine=58195975; - //BA.debugLineNum = 58195975;BA.debugLine="Return xlbl"; + //BA.debugLineNum = 253;BA.debugLine="xlbl.TextColor = MainLabel.TextColor"; +_xlbl.setTextColor(_mainlabel.getTextColor()); + //BA.debugLineNum = 254;BA.debugLine="Return xlbl"; if (true) return _xlbl; -RDebugUtils.currentLine=58195976; - //BA.debugLineNum = 58195976;BA.debugLine="End Sub"; + //BA.debugLineNum = 255;BA.debugLine="End Sub"; return null; } -public String _decrement(reparto_izca.keymon.lat.b4xplusminus __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "decrement", true)) - {return ((String) Debug.delegate(ba, "decrement", null));} -RDebugUtils.currentLine=57933824; - //BA.debugLineNum = 57933824;BA.debugLine="Public Sub Decrement"; -RDebugUtils.currentLine=57933825; - //BA.debugLineNum = 57933825;BA.debugLine="If mSelectedIndex <= 0 Then"; -if (__ref._mselectedindex /*int*/ <=0) { -RDebugUtils.currentLine=57933826; - //BA.debugLineNum = 57933826;BA.debugLine="If mCyclic Then"; -if (__ref._mcyclic /*boolean*/ ) { -RDebugUtils.currentLine=57933827; - //BA.debugLineNum = 57933827;BA.debugLine="mSelectedIndex = Size"; -__ref._mselectedindex /*int*/ = __ref._size /*int*/ ; +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 { -RDebugUtils.currentLine=57933829; - //BA.debugLineNum = 57933829;BA.debugLine="mSelectedIndex = 0"; -__ref._mselectedindex /*int*/ = (int) (0); -RDebugUtils.currentLine=57933830; - //BA.debugLineNum = 57933830;BA.debugLine="LoopIndex = LoopIndex + 1"; -__ref._loopindex /*int*/ = (int) (__ref._loopindex /*int*/ +1); -RDebugUtils.currentLine=57933831; - //BA.debugLineNum = 57933831;BA.debugLine="Return"; + //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 ""; }; }; -RDebugUtils.currentLine=57933834; - //BA.debugLineNum = 57933834;BA.debugLine="SetIndex(mSelectedIndex - 1, True)"; -__ref._setindex /*String*/ (null,(int) (__ref._mselectedindex /*int*/ -1),__c.True); -RDebugUtils.currentLine=57933835; - //BA.debugLineNum = 57933835;BA.debugLine="End Sub"; + //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 _setindex(reparto_izca.keymon.lat.b4xplusminus __ref,int _i,boolean _raiseevent) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "setindex", true)) - {return ((String) Debug.delegate(ba, "setindex", new Object[] {_i,_raiseevent}));} -Object _value = null; -RDebugUtils.currentLine=57802752; - //BA.debugLineNum = 57802752;BA.debugLine="Private Sub SetIndex(i As Int, RaiseEvent As Boole"; -RDebugUtils.currentLine=57802753; - //BA.debugLineNum = 57802753;BA.debugLine="If i >= Size Then i = -1"; -if (_i>=__ref._size /*int*/ ) { -_i = (int) (-1);}; -RDebugUtils.currentLine=57802754; - //BA.debugLineNum = 57802754;BA.debugLine="mSelectedIndex = i"; -__ref._mselectedindex /*int*/ = _i; -RDebugUtils.currentLine=57802755; - //BA.debugLineNum = 57802755;BA.debugLine="If mSelectedIndex = -1 Then"; -if (__ref._mselectedindex /*int*/ ==-1) { -RDebugUtils.currentLine=57802756; - //BA.debugLineNum = 57802756;BA.debugLine="MainLabel.Text = \"\""; -__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence("")); - }else { -RDebugUtils.currentLine=57802758; - //BA.debugLineNum = 57802758;BA.debugLine="Dim value As Object = GetValueImpl (mSelectedInd"; -_value = __ref._getvalueimpl /*Object*/ (null,__ref._mselectedindex /*int*/ ); -RDebugUtils.currentLine=57802759; - //BA.debugLineNum = 57802759;BA.debugLine="If StringMode Then"; -if (__ref._stringmode /*boolean*/ ) { -RDebugUtils.currentLine=57802760; - //BA.debugLineNum = 57802760;BA.debugLine="InternalSetTextOrCSBuilderToLabel(MainLabel, va"; -__ref._internalsettextorcsbuildertolabel /*String*/ (null,__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ,_value); - }else { -RDebugUtils.currentLine=57802762; - //BA.debugLineNum = 57802762;BA.debugLine="MainLabel.Text = Formatter.Format(value)"; -__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(__ref._formatter /*reparto_izca.keymon.lat.b4xformatter*/ ._format /*String*/ (null,(double)(BA.ObjectToNumber(_value))))); - }; -RDebugUtils.currentLine=57802764; - //BA.debugLineNum = 57802764;BA.debugLine="If RaiseEvent And xui.SubExists(mCallBack, mEven"; -if (_raiseevent && __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_valuechanged",(int) (1))) { -RDebugUtils.currentLine=57802765; - //BA.debugLineNum = 57802765;BA.debugLine="CallSub2(mCallBack, mEventName & \"_valuechanged"; -__c.CallSubNew2(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_valuechanged",_value); - }; - }; -RDebugUtils.currentLine=57802768; - //BA.debugLineNum = 57802768;BA.debugLine="lblPlus.Enabled = Size > 0 And (mCyclic Or mSelec"; -__ref._lblplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setEnabled(__ref._size /*int*/ >0 && (__ref._mcyclic /*boolean*/ || __ref._mselectedindex /*int*/ <__ref._size /*int*/ -1)); -RDebugUtils.currentLine=57802769; - //BA.debugLineNum = 57802769;BA.debugLine="lblMinus.Enabled = Size > 0 And (mCyclic Or mSele"; -__ref._lblminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setEnabled(__ref._size /*int*/ >0 && (__ref._mcyclic /*boolean*/ || __ref._mselectedindex /*int*/ >0)); -RDebugUtils.currentLine=57802770; - //BA.debugLineNum = 57802770;BA.debugLine="End Sub"; -return ""; -} -public String _designercreateview(reparto_izca.keymon.lat.b4xplusminus __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} +public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; -RDebugUtils.currentLine=57344000; - //BA.debugLineNum = 57344000;BA.debugLine="Public Sub DesignerCreateView (Base As Object, lbl"; -RDebugUtils.currentLine=57344001; - //BA.debugLineNum = 57344001;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=57344002; - //BA.debugLineNum = 57344002;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=57344002; - //BA.debugLineNum = 57344002;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=57344003; - //BA.debugLineNum = 57344003;BA.debugLine="MainLabel = lbl"; -__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject())); -RDebugUtils.currentLine=57344004; - //BA.debugLineNum = 57344004;BA.debugLine="MainLabel.SetTextAlignment(\"CENTER\", \"CENTER\")"; -__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetTextAlignment("CENTER","CENTER"); -RDebugUtils.currentLine=57344005; - //BA.debugLineNum = 57344005;BA.debugLine="Dim pnl As B4XView = Props.Get(\"page\")"; + //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")))); -RDebugUtils.currentLine=57344015; - //BA.debugLineNum = 57344015;BA.debugLine="pnlPlus = xui.CreatePanel(\"pnlArrow\")"; -__ref._pnlplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"pnlArrow"); -RDebugUtils.currentLine=57344016; - //BA.debugLineNum = 57344016;BA.debugLine="pnlMinus = xui.CreatePanel(\"pnlArrow\")"; -__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"pnlArrow"); -RDebugUtils.currentLine=57344018; - //BA.debugLineNum = 57344018;BA.debugLine="pnlPlus.Tag = True"; -__ref._pnlplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag((Object)(__c.True)); -RDebugUtils.currentLine=57344019; - //BA.debugLineNum = 57344019;BA.debugLine="pnlMinus.Tag = False"; -__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag((Object)(__c.False)); -RDebugUtils.currentLine=57344020; - //BA.debugLineNum = 57344020;BA.debugLine="Formation = Props.Get(\"Orientation\")"; -__ref._formation /*String*/ = BA.ObjectToString(_props.Get((Object)("Orientation"))); -RDebugUtils.currentLine=57344021; - //BA.debugLineNum = 57344021;BA.debugLine="mCyclic = Props.Get(\"Cyclic\")"; -__ref._mcyclic /*boolean*/ = BA.ObjectToBoolean(_props.Get((Object)("Cyclic"))); -RDebugUtils.currentLine=57344022; - //BA.debugLineNum = 57344022;BA.debugLine="mRapid = Props.Get(\"Rapid\")"; -__ref._mrapid /*boolean*/ = BA.ObjectToBoolean(_props.Get((Object)("Rapid"))); -RDebugUtils.currentLine=57344023; - //BA.debugLineNum = 57344023;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals"; -__ref._mhaptic /*boolean*/ = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False))); -RDebugUtils.currentLine=57344024; - //BA.debugLineNum = 57344024;BA.debugLine="Formatter.GetDefaultFormat.FormatFont = MainLabel"; -__ref._formatter /*reparto_izca.keymon.lat.b4xformatter*/ ._getdefaultformat /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ (null).FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = __ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getFont(); -RDebugUtils.currentLine=57344025; - //BA.debugLineNum = 57344025;BA.debugLine="Formatter.GetDefaultFormat.TextColor = MainLabel."; -__ref._formatter /*reparto_izca.keymon.lat.b4xformatter*/ ._getdefaultformat /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ (null).TextColor /*int*/ = __ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTextColor(); -RDebugUtils.currentLine=57344026; - //BA.debugLineNum = 57344026;BA.debugLine="If Formation = \"Horizontal\" Then"; -if ((__ref._formation /*String*/ ).equals("Horizontal")) { -RDebugUtils.currentLine=57344027; - //BA.debugLineNum = 57344027;BA.debugLine="lblPlus = CreateLabel(Chr(0xE315))"; -__ref._lblplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._createlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null,BA.ObjectToString(__c.Chr(((int)0xe315)))); -RDebugUtils.currentLine=57344028; - //BA.debugLineNum = 57344028;BA.debugLine="lblMinus = CreateLabel(Chr(0xE314))"; -__ref._lblminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._createlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null,BA.ObjectToString(__c.Chr(((int)0xe314)))); + //BA.debugLineNum = 53;BA.debugLine="pnlPlus = xui.CreatePanel(\"pnlArrow\")"; +_pnlplus = _xui.CreatePanel(ba,"pnlArrow"); + //BA.debugLineNum = 54;BA.debugLine="pnlMinus = xui.CreatePanel(\"pnlArrow\")"; +_pnlminus = _xui.CreatePanel(ba,"pnlArrow"); + //BA.debugLineNum = 56;BA.debugLine="pnlPlus.Tag = True"; +_pnlplus.setTag((Object)(__c.True)); + //BA.debugLineNum = 57;BA.debugLine="pnlMinus.Tag = False"; +_pnlminus.setTag((Object)(__c.False)); + //BA.debugLineNum = 58;BA.debugLine="Formation = Props.Get(\"Orientation\")"; +_formation = BA.ObjectToString(_props.Get((Object)("Orientation"))); + //BA.debugLineNum = 59;BA.debugLine="mCyclic = Props.Get(\"Cyclic\")"; +_mcyclic = BA.ObjectToBoolean(_props.Get((Object)("Cyclic"))); + //BA.debugLineNum = 60;BA.debugLine="mRapid = Props.Get(\"Rapid\")"; +_mrapid = BA.ObjectToBoolean(_props.Get((Object)("Rapid"))); + //BA.debugLineNum = 61;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals"; +_mhaptic = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False))); + //BA.debugLineNum = 62;BA.debugLine="Formatter.GetDefaultFormat.FormatFont = MainLabel"; +_formatter._getdefaultformat /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ ().FormatFont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = _mainlabel.getFont(); + //BA.debugLineNum = 63;BA.debugLine="Formatter.GetDefaultFormat.TextColor = MainLabel."; +_formatter._getdefaultformat /*reparto_izca.keymon.lat.b4xformatter._b4xformatdata*/ ().TextColor /*int*/ = _mainlabel.getTextColor(); + //BA.debugLineNum = 64;BA.debugLine="If Formation = \"Horizontal\" Then"; +if ((_formation).equals("Horizontal")) { + //BA.debugLineNum = 65;BA.debugLine="lblPlus = CreateLabel(Chr(0xE315))"; +_lblplus = _createlabel(BA.ObjectToString(__c.Chr(((int)0xe315)))); + //BA.debugLineNum = 66;BA.debugLine="lblMinus = CreateLabel(Chr(0xE314))"; +_lblminus = _createlabel(BA.ObjectToString(__c.Chr(((int)0xe314)))); }else { -RDebugUtils.currentLine=57344030; - //BA.debugLineNum = 57344030;BA.debugLine="lblPlus = CreateLabel(Chr(0xE316))"; -__ref._lblplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._createlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null,BA.ObjectToString(__c.Chr(((int)0xe316)))); -RDebugUtils.currentLine=57344031; - //BA.debugLineNum = 57344031;BA.debugLine="lblMinus = CreateLabel(Chr(0xE313))"; -__ref._lblminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._createlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null,BA.ObjectToString(__c.Chr(((int)0xe313)))); + //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)))); }; -RDebugUtils.currentLine=57344033; - //BA.debugLineNum = 57344033;BA.debugLine="lblMinus.SetTextAlignment(\"CENTER\", \"CENTER\")"; -__ref._lblminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetTextAlignment("CENTER","CENTER"); -RDebugUtils.currentLine=57344034; - //BA.debugLineNum = 57344034;BA.debugLine="lblPlus.SetTextAlignment(\"CENTER\", \"CENTER\")"; -__ref._lblplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetTextAlignment("CENTER","CENTER"); -RDebugUtils.currentLine=57344035; - //BA.debugLineNum = 57344035;BA.debugLine="MainLabel.SetTextAlignment(\"CENTER\", \"CENTER\")"; -__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetTextAlignment("CENTER","CENTER"); -RDebugUtils.currentLine=57344036; - //BA.debugLineNum = 57344036;BA.debugLine="mBase.AddView(MainLabel, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._mainlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=57344037; - //BA.debugLineNum = 57344037;BA.debugLine="mBase.AddView(pnlPlus, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._pnlplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=57344038; - //BA.debugLineNum = 57344038;BA.debugLine="mBase.AddView(pnlMinus, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=57344039; - //BA.debugLineNum = 57344039;BA.debugLine="pnlPlus.AddView(lblPlus, 0, 0, 0, 0)"; -__ref._pnlplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._lblplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=57344040; - //BA.debugLineNum = 57344040;BA.debugLine="pnlMinus.AddView(lblMinus, 0, 0, 0, 0)"; -__ref._pnlminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._lblminus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=57344041; - //BA.debugLineNum = 57344041;BA.debugLine="SetIndex(-1, False)"; -__ref._setindex /*String*/ (null,(int) (-1),__c.False); -RDebugUtils.currentLine=57344042; - //BA.debugLineNum = 57344042;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)"; -__ref._base_resize /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=57344043; - //BA.debugLineNum = 57344043;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xplusminus __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "getselectedvalue", true)) - {return ((Object) Debug.delegate(ba, "getselectedvalue", null));} -RDebugUtils.currentLine=57606144; - //BA.debugLineNum = 57606144;BA.debugLine="Public Sub getSelectedValue As Object"; -RDebugUtils.currentLine=57606145; - //BA.debugLineNum = 57606145;BA.debugLine="Return GetValueImpl (mSelectedIndex)"; -if (true) return __ref._getvalueimpl /*Object*/ (null,__ref._mselectedindex /*int*/ ); -RDebugUtils.currentLine=57606146; - //BA.debugLineNum = 57606146;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xplusminus __ref,int _index) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "getvalueimpl", true)) - {return ((Object) Debug.delegate(ba, "getvalueimpl", new Object[] {_index}));} -RDebugUtils.currentLine=57737216; - //BA.debugLineNum = 57737216;BA.debugLine="Private Sub GetValueImpl (Index As Int) As Object"; -RDebugUtils.currentLine=57737217; - //BA.debugLineNum = 57737217;BA.debugLine="If StringMode Then"; -if (__ref._stringmode /*boolean*/ ) { -RDebugUtils.currentLine=57737218; - //BA.debugLineNum = 57737218;BA.debugLine="Return mStringItems.Get(Index)"; -if (true) return __ref._mstringitems /*anywheresoftware.b4a.objects.collections.List*/ .Get(_index); +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 { -RDebugUtils.currentLine=57737220; - //BA.debugLineNum = 57737220;BA.debugLine="If Index = Size - 1 Then"; -if (_index==__ref._size /*int*/ -1) { -RDebugUtils.currentLine=57737221; - //BA.debugLineNum = 57737221;BA.debugLine="Return mEndRange"; -if (true) return (Object)(__ref._mendrange /*double*/ ); + //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 { -RDebugUtils.currentLine=57737223; - //BA.debugLineNum = 57737223;BA.debugLine="Return mStartRange + Index * mInterval"; -if (true) return (Object)(__ref._mstartrange /*double*/ +_index*__ref._minterval /*double*/ ); + //BA.debugLineNum = 137;BA.debugLine="Return mStartRange + Index * mInterval"; +if (true) return (Object)(_mstartrange+_index*_minterval); }; }; -RDebugUtils.currentLine=57737226; - //BA.debugLineNum = 57737226;BA.debugLine="End Sub"; + //BA.debugLineNum = 140;BA.debugLine="End Sub"; return null; } -public String _increment(reparto_izca.keymon.lat.b4xplusminus __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "increment", true)) - {return ((String) Debug.delegate(ba, "increment", null));} +public String _increment() throws Exception{ double _v1 = 0; double _v2 = 0; -RDebugUtils.currentLine=57868288; - //BA.debugLineNum = 57868288;BA.debugLine="Public Sub Increment"; -RDebugUtils.currentLine=57868289; - //BA.debugLineNum = 57868289;BA.debugLine="If mSelectedIndex = Size - 3 And StringMode = Fal"; -if (__ref._mselectedindex /*int*/ ==__ref._size /*int*/ -3 && __ref._stringmode /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=57868290; - //BA.debugLineNum = 57868290;BA.debugLine="Dim v1 As Double = GetValueImpl(mSelectedIndex +"; -_v1 = (double)(BA.ObjectToNumber(__ref._getvalueimpl /*Object*/ (null,(int) (__ref._mselectedindex /*int*/ +1)))); -RDebugUtils.currentLine=57868291; - //BA.debugLineNum = 57868291;BA.debugLine="Dim v2 As Double = GetValueImpl(mSelectedIndex +"; -_v2 = (double)(BA.ObjectToNumber(__ref._getvalueimpl /*Object*/ (null,(int) (__ref._mselectedindex /*int*/ +2)))); -RDebugUtils.currentLine=57868292; - //BA.debugLineNum = 57868292;BA.debugLine="If Formatter.Format(v1) = Formatter.Format(v2) T"; -if ((__ref._formatter /*reparto_izca.keymon.lat.b4xformatter*/ ._format /*String*/ (null,_v1)).equals(__ref._formatter /*reparto_izca.keymon.lat.b4xformatter*/ ._format /*String*/ (null,_v2))) { -RDebugUtils.currentLine=57868293; - //BA.debugLineNum = 57868293;BA.debugLine="mSelectedIndex = mSelectedIndex + 1"; -__ref._mselectedindex /*int*/ = (int) (__ref._mselectedindex /*int*/ +1); + //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); }; }; -RDebugUtils.currentLine=57868296; - //BA.debugLineNum = 57868296;BA.debugLine="If mSelectedIndex >= Size - 1 Then"; -if (__ref._mselectedindex /*int*/ >=__ref._size /*int*/ -1) { -RDebugUtils.currentLine=57868297; - //BA.debugLineNum = 57868297;BA.debugLine="If mCyclic Then"; -if (__ref._mcyclic /*boolean*/ ) { -RDebugUtils.currentLine=57868298; - //BA.debugLineNum = 57868298;BA.debugLine="mSelectedIndex = -1"; -__ref._mselectedindex /*int*/ = (int) (-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 { -RDebugUtils.currentLine=57868300; - //BA.debugLineNum = 57868300;BA.debugLine="mSelectedIndex = Size - 1"; -__ref._mselectedindex /*int*/ = (int) (__ref._size /*int*/ -1); -RDebugUtils.currentLine=57868301; - //BA.debugLineNum = 57868301;BA.debugLine="LoopIndex = LoopIndex + 1"; -__ref._loopindex /*int*/ = (int) (__ref._loopindex /*int*/ +1); -RDebugUtils.currentLine=57868302; - //BA.debugLineNum = 57868302;BA.debugLine="Return"; + //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 ""; }; }; -RDebugUtils.currentLine=57868305; - //BA.debugLineNum = 57868305;BA.debugLine="SetIndex(mSelectedIndex + 1, True)"; -__ref._setindex /*String*/ (null,(int) (__ref._mselectedindex /*int*/ +1),__c.True); -RDebugUtils.currentLine=57868306; - //BA.debugLineNum = 57868306;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xplusminus __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=57278464; - //BA.debugLineNum = 57278464;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=57278465; - //BA.debugLineNum = 57278465;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=57278466; - //BA.debugLineNum = 57278466;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=57278467; - //BA.debugLineNum = 57278467;BA.debugLine="Formatter.Initialize"; -__ref._formatter /*reparto_izca.keymon.lat.b4xformatter*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=57278468; - //BA.debugLineNum = 57278468;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xplusminus __ref,anywheresoftware.b4a.objects.B4XViewWrapper _xlbl,Object _text) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "internalsettextorcsbuildertolabel", true)) - {return ((String) Debug.delegate(ba, "internalsettextorcsbuildertolabel", new Object[] {_xlbl,_text}));} -RDebugUtils.currentLine=58261504; - //BA.debugLineNum = 58261504;BA.debugLine="Private Sub InternalSetTextOrCSBuilderToLabel(xlbl"; -RDebugUtils.currentLine=58261506; - //BA.debugLineNum = 58261506;BA.debugLine="xlbl.Text = Text"; +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)); -RDebugUtils.currentLine=58261516; - //BA.debugLineNum = 58261516;BA.debugLine="End Sub"; + //BA.debugLineNum = 269;BA.debugLine="End Sub"; return ""; } -public String _pnlarrow_touch(reparto_izca.keymon.lat.b4xplusminus __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "pnlarrow_touch", true)) - {return ((String) Debug.delegate(ba, "pnlarrow_touch", new Object[] {_action,_x,_y}));} -RDebugUtils.currentLine=57999360; - //BA.debugLineNum = 57999360;BA.debugLine="Private Sub pnlArrow_Touch (Action As Int, X As Fl"; -RDebugUtils.currentLine=57999361; - //BA.debugLineNum = 57999361;BA.debugLine="Touch(Action = lblPlus.TOUCH_ACTION_DOWN, Action"; -__ref._touch /*String*/ (null,_action==__ref._lblplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_DOWN,_action!=__ref._lblplus /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_MOVE,(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=57999362; - //BA.debugLineNum = 57999362;BA.debugLine="End Sub"; +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 _touch(reparto_izca.keymon.lat.b4xplusminus __ref,boolean _start,boolean _stop,anywheresoftware.b4a.objects.B4XViewWrapper _pnl) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "touch", true)) - {return ((String) Debug.delegate(ba, "touch", new Object[] {_start,_stop,_pnl}));} -RDebugUtils.currentLine=58064896; - //BA.debugLineNum = 58064896;BA.debugLine="Private Sub Touch (Start As Boolean, Stop As Boole"; -RDebugUtils.currentLine=58064897; - //BA.debugLineNum = 58064897;BA.debugLine="If pnl.GetView(0).Enabled = False Then Return"; -if (_pnl.GetView((int) (0)).getEnabled()==__c.False) { -if (true) return "";}; -RDebugUtils.currentLine=58064898; - //BA.debugLineNum = 58064898;BA.debugLine="If Start Then"; -if (_start) { -RDebugUtils.currentLine=58064899; - //BA.debugLineNum = 58064899;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFeedb"; -if (__ref._mhaptic /*boolean*/ ) { -_xuiviewsutils._performhapticfeedback /*String*/ (ba,_pnl);}; -RDebugUtils.currentLine=58064900; - //BA.debugLineNum = 58064900;BA.debugLine="If pnl.Tag = True Then"; -if ((_pnl.getTag()).equals((Object)(__c.True))) { -RDebugUtils.currentLine=58064901; - //BA.debugLineNum = 58064901;BA.debugLine="Increment"; -__ref._increment /*String*/ (null); -RDebugUtils.currentLine=58064902; - //BA.debugLineNum = 58064902;BA.debugLine="StartDownLoop(True)"; -__ref._startdownloop /*void*/ (null,__c.True); +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 { -RDebugUtils.currentLine=58064904; - //BA.debugLineNum = 58064904;BA.debugLine="Decrement"; -__ref._decrement /*String*/ (null); -RDebugUtils.currentLine=58064905; - //BA.debugLineNum = 58064905;BA.debugLine="StartDownLoop(False)"; -__ref._startdownloop /*void*/ (null,__c.False); + //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))))); }; - }else -{RDebugUtils.currentLine=58064907; - //BA.debugLineNum = 58064907;BA.debugLine="Else If Stop Then"; -if (_stop) { -RDebugUtils.currentLine=58064908; - //BA.debugLineNum = 58064908;BA.debugLine="LoopIndex = LoopIndex + 1"; -__ref._loopindex /*int*/ = (int) (__ref._loopindex /*int*/ +1); - }} -; -RDebugUtils.currentLine=58064910; - //BA.debugLineNum = 58064910;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xplusminus __ref,double _startrange,double _endrange,double _interval) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "setnumericrange", true)) - {return ((String) Debug.delegate(ba, "setnumericrange", new Object[] {_startrange,_endrange,_interval}));} -RDebugUtils.currentLine=57540608; - //BA.debugLineNum = 57540608;BA.debugLine="Public Sub SetNumericRange (StartRange As Double,"; -RDebugUtils.currentLine=57540609; - //BA.debugLineNum = 57540609;BA.debugLine="Size = Ceil((EndRange - StartRange) / Interval) +"; -__ref._size /*int*/ = (int) (__c.Ceil((_endrange-_startrange)/(double)_interval)+1); -RDebugUtils.currentLine=57540610; - //BA.debugLineNum = 57540610;BA.debugLine="mStartRange = StartRange"; -__ref._mstartrange /*double*/ = _startrange; -RDebugUtils.currentLine=57540611; - //BA.debugLineNum = 57540611;BA.debugLine="mEndRange = EndRange"; -__ref._mendrange /*double*/ = _endrange; -RDebugUtils.currentLine=57540612; - //BA.debugLineNum = 57540612;BA.debugLine="mInterval = Interval"; -__ref._minterval /*double*/ = _interval; -RDebugUtils.currentLine=57540613; - //BA.debugLineNum = 57540613;BA.debugLine="StringMode = False"; -__ref._stringmode /*boolean*/ = __c.False; -RDebugUtils.currentLine=57540614; - //BA.debugLineNum = 57540614;BA.debugLine="SetIndex(0, False)"; -__ref._setindex /*String*/ (null,(int) (0),__c.False); -RDebugUtils.currentLine=57540615; - //BA.debugLineNum = 57540615;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xplusminus __ref,Object _v) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "setselectedvalue", true)) - {return ((String) Debug.delegate(ba, "setselectedvalue", new Object[] {_v}));} +public String _setselectedvalue(Object _v) throws Exception{ double _n = 0; -RDebugUtils.currentLine=57671680; - //BA.debugLineNum = 57671680;BA.debugLine="Public Sub setSelectedValue (v As Object)"; -RDebugUtils.currentLine=57671681; - //BA.debugLineNum = 57671681;BA.debugLine="If StringMode Then"; -if (__ref._stringmode /*boolean*/ ) { -RDebugUtils.currentLine=57671682; - //BA.debugLineNum = 57671682;BA.debugLine="SetIndex(mStringItems.IndexOf(v), False)"; -__ref._setindex /*String*/ (null,__ref._mstringitems /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf(_v),__c.False); + //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 { -RDebugUtils.currentLine=57671684; - //BA.debugLineNum = 57671684;BA.debugLine="Dim n As Double = v"; + //BA.debugLineNum = 125;BA.debugLine="Dim n As Double = v"; _n = (double)(BA.ObjectToNumber(_v)); -RDebugUtils.currentLine=57671685; - //BA.debugLineNum = 57671685;BA.debugLine="SetIndex(Min(Size - 1, Max(0, Round((n - mStartR"; -__ref._setindex /*String*/ (null,(int) (__c.Min(__ref._size /*int*/ -1,__c.Max(0,__c.Round((_n-__ref._mstartrange /*double*/ )/(double)__ref._minterval /*double*/ )))),__c.False); + //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); }; -RDebugUtils.currentLine=57671687; - //BA.debugLineNum = 57671687;BA.debugLine="End Sub"; + //BA.debugLineNum = 128;BA.debugLine="End Sub"; return ""; } -public String _setstringitems(reparto_izca.keymon.lat.b4xplusminus __ref,anywheresoftware.b4a.objects.collections.List _list) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "setstringitems", true)) - {return ((String) Debug.delegate(ba, "setstringitems", new Object[] {_list}));} -RDebugUtils.currentLine=57475072; - //BA.debugLineNum = 57475072;BA.debugLine="Public Sub SetStringItems (list As List)"; -RDebugUtils.currentLine=57475073; - //BA.debugLineNum = 57475073;BA.debugLine="mStringItems = list"; -__ref._mstringitems /*anywheresoftware.b4a.objects.collections.List*/ = _list; -RDebugUtils.currentLine=57475074; - //BA.debugLineNum = 57475074;BA.debugLine="StringMode = True"; -__ref._stringmode /*boolean*/ = __c.True; -RDebugUtils.currentLine=57475075; - //BA.debugLineNum = 57475075;BA.debugLine="Size = mStringItems.Size"; -__ref._size /*int*/ = __ref._mstringitems /*anywheresoftware.b4a.objects.collections.List*/ .getSize(); -RDebugUtils.currentLine=57475076; - //BA.debugLineNum = 57475076;BA.debugLine="SetIndex(-1, False)"; -__ref._setindex /*String*/ (null,(int) (-1),__c.False); -RDebugUtils.currentLine=57475077; - //BA.debugLineNum = 57475077;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xplusminus __ref,boolean _up) throws Exception{ -RDebugUtils.currentModule="b4xplusminus"; -if (Debug.shouldDelegate(ba, "startdownloop", true)) - {Debug.delegate(ba, "startdownloop", new Object[] {_up}); return;} -ResumableSub_StartDownLoop rsub = new ResumableSub_StartDownLoop(this,__ref,_up); +public void _startdownloop(boolean _up) throws Exception{ +ResumableSub_StartDownLoop rsub = new ResumableSub_StartDownLoop(this,_up); rsub.resume(ba, null); } public static class ResumableSub_StartDownLoop extends BA.ResumableSub { -public ResumableSub_StartDownLoop(reparto_izca.keymon.lat.b4xplusminus parent,reparto_izca.keymon.lat.b4xplusminus __ref,boolean _up) { +public ResumableSub_StartDownLoop(reparto_izca.keymon.lat.b4xplusminus parent,boolean _up) { this.parent = parent; -this.__ref = __ref; this._up = _up; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xplusminus __ref; reparto_izca.keymon.lat.b4xplusminus parent; boolean _up; int _myindex = 0; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xplusminus"; while (true) { switch (state) { @@ -740,17 +458,15 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=58130433; - //BA.debugLineNum = 58130433;BA.debugLine="LoopIndex = LoopIndex + 1"; -__ref._loopindex /*int*/ = (int) (__ref._loopindex /*int*/ +1); -RDebugUtils.currentLine=58130434; - //BA.debugLineNum = 58130434;BA.debugLine="If mRapid = False Then Return"; + //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 (__ref._mrapid /*boolean*/ ==parent.__c.False) { +if (parent._mrapid==parent.__c.False) { this.state = 3; ;}if (true) break; @@ -764,26 +480,23 @@ case 6: //C this.state = 7; ; -RDebugUtils.currentLine=58130435; - //BA.debugLineNum = 58130435;BA.debugLine="Dim MyIndex As Int = LoopIndex"; -_myindex = __ref._loopindex /*int*/ ; -RDebugUtils.currentLine=58130436; - //BA.debugLineNum = 58130436;BA.debugLine="Sleep(RapidPeriod1)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xplusminus", "startdownloop"),__ref._rapidperiod1 /*int*/ ); + //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; ; -RDebugUtils.currentLine=58130437; - //BA.debugLineNum = 58130437;BA.debugLine="Do While MyIndex = LoopIndex"; + //BA.debugLineNum = 239;BA.debugLine="Do While MyIndex = LoopIndex"; if (true) break; case 7: //do while this.state = 18; -while (_myindex==__ref._loopindex /*int*/ ) { +while (_myindex==parent._loopindex) { this.state = 9; if (true) break; } @@ -792,8 +505,7 @@ if (true) break; case 9: //C this.state = 10; -RDebugUtils.currentLine=58130438; - //BA.debugLineNum = 58130438;BA.debugLine="If Up Then Increment Else Decrement"; + //BA.debugLineNum = 240;BA.debugLine="If Up Then Increment Else Decrement"; if (true) break; case 10: @@ -809,22 +521,21 @@ this.state = 14; case 12: //C this.state = 17; -__ref._increment /*String*/ (null); +parent._increment(); if (true) break; case 14: //C this.state = 17; -__ref._decrement /*String*/ (null); +parent._decrement(); if (true) break; case 17: //C this.state = 7; ; -RDebugUtils.currentLine=58130439; - //BA.debugLineNum = 58130439;BA.debugLine="Sleep(RapidPeriod2)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xplusminus", "startdownloop"),__ref._rapidperiod2 /*int*/ ); + //BA.debugLineNum = 241;BA.debugLine="Sleep(RapidPeriod2)"; +parent.__c.Sleep(ba,this,parent._rapidperiod2); this.state = 20; return; case 20: @@ -837,12 +548,44 @@ case 18: //C this.state = -1; ; -RDebugUtils.currentLine=58130441; - //BA.debugLineNum = 58130441;BA.debugLine="End Sub"; + //BA.debugLineNum = 243;BA.debugLine="End Sub"; if (true) break; } } } } -} \ No newline at end of file +public String _touch(boolean _start,boolean _stop,anywheresoftware.b4a.objects.B4XViewWrapper _pnl) throws Exception{ + //BA.debugLineNum = 199;BA.debugLine="Private Sub Touch (Start As Boolean, Stop As Boole"; + //BA.debugLineNum = 200;BA.debugLine="If pnl.GetView(0).Enabled = False Then Return"; +if (_pnl.GetView((int) (0)).getEnabled()==__c.False) { +if (true) return "";}; + //BA.debugLineNum = 201;BA.debugLine="If Start Then"; +if (_start) { + //BA.debugLineNum = 202;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFeedb"; +if (_mhaptic) { +_xuiviewsutils._performhapticfeedback /*String*/ (ba,_pnl);}; + //BA.debugLineNum = 203;BA.debugLine="If pnl.Tag = True Then"; +if ((_pnl.getTag()).equals((Object)(__c.True))) { + //BA.debugLineNum = 204;BA.debugLine="Increment"; +_increment(); + //BA.debugLineNum = 205;BA.debugLine="StartDownLoop(True)"; +_startdownloop(__c.True); + }else { + //BA.debugLineNum = 207;BA.debugLine="Decrement"; +_decrement(); + //BA.debugLineNum = 208;BA.debugLine="StartDownLoop(False)"; +_startdownloop(__c.False); + }; + }else if(_stop) { + //BA.debugLineNum = 211;BA.debugLine="LoopIndex = LoopIndex + 1"; +_loopindex = (int) (_loopindex+1); + }; + //BA.debugLineNum = 213;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xradiobutton.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xradiobutton.java index 3cadad8..f0f4c51 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xradiobutton.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xradiobutton.java @@ -10,7 +10,7 @@ public class b4xradiobutton extends B4AClass.ImplB4AClass implements BA.SubDeleg private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xradiobutton"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xradiobutton"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xradiobutton extends B4AClass.ImplB4AClass implements BA.SubDeleg ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -65,75 +58,237 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.b4xradiobutton __ref,double _width1,double _height1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width1,_height1}));} +public String _base_resize(double _width1,double _height1) throws Exception{ int _newsize = 0; int _gap = 0; -RDebugUtils.currentLine=58523648; - //BA.debugLineNum = 58523648;BA.debugLine="Private Sub Base_Resize (Width1 As Double, Height1"; -RDebugUtils.currentLine=58523649; - //BA.debugLineNum = 58523649;BA.debugLine="Dim NewSize As Int = Max(5dip, Height1)"; + //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)); -RDebugUtils.currentLine=58523650; - //BA.debugLineNum = 58523650;BA.debugLine="If NewSize = Size Then Return"; -if (_newsize==__ref._size /*int*/ ) { + //BA.debugLineNum = 61;BA.debugLine="If NewSize = Size Then Return"; +if (_newsize==_size) { if (true) return "";}; -RDebugUtils.currentLine=58523651; - //BA.debugLineNum = 58523651;BA.debugLine="Size = NewSize"; -__ref._size /*int*/ = _newsize; -RDebugUtils.currentLine=58523652; - //BA.debugLineNum = 58523652;BA.debugLine="Dim gap As Int = 3dip"; + //BA.debugLineNum = 62;BA.debugLine="Size = NewSize"; +_size = _newsize; + //BA.debugLineNum = 63;BA.debugLine="Dim gap As Int = 3dip"; _gap = __c.DipToCurrent((int) (3)); -RDebugUtils.currentLine=58523654; - //BA.debugLineNum = 58523654;BA.debugLine="bc.Initialize(NewSize - 2 * gap, NewSize - 2 * ga"; -__ref._bc /*b4a.example.bitmapcreator*/ ._initialize(ba,(int) (_newsize-2*_gap),(int) (_newsize-2*_gap)); -RDebugUtils.currentLine=58523655; - //BA.debugLineNum = 58523655;BA.debugLine="Scale = xui.Scale"; -__ref._scale /*float*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getScale(); -RDebugUtils.currentLine=58523660; - //BA.debugLineNum = 58523660;BA.debugLine="iv.SetLayoutAnimated(0, gap, gap, Size - 2 * gap,"; -__ref._iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),_gap,_gap,(int) (__ref._size /*int*/ -2*_gap),(int) (__ref._size /*int*/ -2*_gap)); -RDebugUtils.currentLine=58523661; - //BA.debugLineNum = 58523661;BA.debugLine="pnl.SetLayoutAnimated(0, 0, 0, Width1, Height1)"; -__ref._pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width1),(int) (_height1)); -RDebugUtils.currentLine=58523662; - //BA.debugLineNum = 58523662;BA.debugLine="mLabel.SetLayoutAnimated(0, Size + gap, 0, Width1"; -__ref._mlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (__ref._size /*int*/ +_gap),(int) (0),(int) (_width1-__ref._size /*int*/ -_gap),(int) (_height1)); -RDebugUtils.currentLine=58523663; - //BA.debugLineNum = 58523663;BA.debugLine="OnBrush = bc.CreateBrushFromColor(OnColor)"; -__ref._onbrush /*b4a.example.bcpath._bcbrush*/ = __ref._bc /*b4a.example.bitmapcreator*/ ._createbrushfromcolor(__ref._oncolor /*int*/ ); -RDebugUtils.currentLine=58523664; - //BA.debugLineNum = 58523664;BA.debugLine="OffBrush = bc.CreateBrushFromColor(OffColor)"; -__ref._offbrush /*b4a.example.bcpath._bcbrush*/ = __ref._bc /*b4a.example.bitmapcreator*/ ._createbrushfromcolor(__ref._offcolor /*int*/ ); -RDebugUtils.currentLine=58523665; - //BA.debugLineNum = 58523665;BA.debugLine="transparent = bc.CreateBrushFromColor(xui.Color_T"; -__ref._transparent /*b4a.example.bcpath._bcbrush*/ = __ref._bc /*b4a.example.bitmapcreator*/ ._createbrushfromcolor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); -RDebugUtils.currentLine=58523666; - //BA.debugLineNum = 58523666;BA.debugLine="SetValueImpl(mValue, True)"; -__ref._setvalueimpl /*void*/ (null,__ref._mvalue /*boolean*/ ,__c.True); -RDebugUtils.currentLine=58523667; - //BA.debugLineNum = 58523667;BA.debugLine="End Sub"; + //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 void _setvalueimpl(reparto_izca.keymon.lat.b4xradiobutton __ref,boolean _b,boolean _immediate) throws Exception{ -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "setvalueimpl", true)) - {Debug.delegate(ba, "setvalueimpl", new Object[] {_b,_immediate}); return;} -ResumableSub_SetValueImpl rsub = new ResumableSub_SetValueImpl(this,__ref,_b,_immediate); +public String _class_globals() throws Exception{ + //BA.debugLineNum = 6;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 7;BA.debugLine="Private mEventName As String 'ignore"; +_meventname = ""; + //BA.debugLineNum = 8;BA.debugLine="Private mCallBack As Object 'ignore"; +_mcallback = new Object(); + //BA.debugLineNum = 9;BA.debugLine="Public mBase As B4XView 'ignore"; +_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 10;BA.debugLine="Private xui As XUI 'ignore"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 11;BA.debugLine="Public OnColor, OffColor As Int"; +_oncolor = 0; +_offcolor = 0; + //BA.debugLineNum = 12;BA.debugLine="Private bc As BitmapCreator"; +_bc = new b4a.example.bitmapcreator(); + //BA.debugLineNum = 13;BA.debugLine="Private iv As B4XView"; +_iv = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 14;BA.debugLine="Private mValue As Boolean"; +_mvalue = false; + //BA.debugLineNum = 15;BA.debugLine="Private transparent As BCBrush"; +_transparent = new b4a.example.bcpath._bcbrush(); + //BA.debugLineNum = 16;BA.debugLine="Private LoopIndex As Int"; +_loopindex = 0; + //BA.debugLineNum = 17;BA.debugLine="Public Tag As Object"; +_tag = new Object(); + //BA.debugLineNum = 18;BA.debugLine="Private OnBrush, OffBrush As BCBrush"; +_onbrush = new b4a.example.bcpath._bcbrush(); +_offbrush = new b4a.example.bcpath._bcbrush(); + //BA.debugLineNum = 19;BA.debugLine="Private mEnabled As Boolean = True"; +_menabled = __c.True; + //BA.debugLineNum = 20;BA.debugLine="Public mHaptic As Boolean"; +_mhaptic = false; + //BA.debugLineNum = 21;BA.debugLine="Private Size As Int"; +_size = 0; + //BA.debugLineNum = 22;BA.debugLine="Public mLabel As B4XView"; +_mlabel = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 23;BA.debugLine="Private pnl As B4XView"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 24;BA.debugLine="Private Scale As Float 'ignore"; +_scale = 0f; + //BA.debugLineNum = 25;BA.debugLine="End Sub"; +return ""; +} +public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ +anywheresoftware.b4a.objects.ImageViewWrapper _iiv = null; + //BA.debugLineNum = 33;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; + //BA.debugLineNum = 34;BA.debugLine="mBase = Base"; +_mbase = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); + //BA.debugLineNum = 35;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; +_tag = _mbase.getTag(); + //BA.debugLineNum = 35;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; +_mbase.setTag(this); + //BA.debugLineNum = 36;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,"; +_mbase.SetColorAndBorder(_xui.Color_Transparent,(int) (0),(int) (0),(int) (0)); + //BA.debugLineNum = 37;BA.debugLine="pnl = xui.CreatePanel(\"pnl\")"; +_pnl = _xui.CreatePanel(ba,"pnl"); + //BA.debugLineNum = 38;BA.debugLine="pnl.Color = xui.Color_Transparent"; +_pnl.setColor(_xui.Color_Transparent); + //BA.debugLineNum = 39;BA.debugLine="Dim iiv As ImageView"; +_iiv = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 40;BA.debugLine="iiv.Initialize(\"\")"; +_iiv.Initialize(ba,""); + //BA.debugLineNum = 41;BA.debugLine="iv = iiv"; +_iv = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iiv.getObject())); + //BA.debugLineNum = 42;BA.debugLine="mBase.AddView(iv, 0, 0, 0, 0)"; +_mbase.AddView((android.view.View)(_iv.getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); + //BA.debugLineNum = 43;BA.debugLine="mLabel = Lbl"; +_mlabel = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject())); + //BA.debugLineNum = 44;BA.debugLine="mLabel.SetTextAlignment(\"CENTER\", \"LEFT\")"; +_mlabel.SetTextAlignment("CENTER","LEFT"); + //BA.debugLineNum = 45;BA.debugLine="mBase.AddView(mLabel, 0, 0, 0, 0)"; +_mbase.AddView((android.view.View)(_mlabel.getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); + //BA.debugLineNum = 46;BA.debugLine="mBase.AddView(pnl, 0, 0, 0, 0)"; +_mbase.AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); + //BA.debugLineNum = 48;BA.debugLine="OnColor = xui.PaintOrColorToColor(Props.Get(\"OnCo"; +_oncolor = _xui.PaintOrColorToColor(_props.Get((Object)("OnColor"))); + //BA.debugLineNum = 49;BA.debugLine="OffColor = xui.PaintOrColorToColor(Props.Get(\"Off"; +_offcolor = _xui.PaintOrColorToColor(_props.Get((Object)("OffColor"))); + //BA.debugLineNum = 50;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals"; +_mhaptic = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False))); + //BA.debugLineNum = 52;BA.debugLine="mEnabled = mBase.Enabled"; +_menabled = _mbase.getEnabled(); + //BA.debugLineNum = 53;BA.debugLine="mBase.Enabled = True"; +_mbase.setEnabled(__c.True); + //BA.debugLineNum = 54;BA.debugLine="mValue = Props.Get(\"Value\")"; +_mvalue = BA.ObjectToBoolean(_props.Get((Object)("Value"))); + //BA.debugLineNum = 55;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)"; +_base_resize(_mbase.getWidth(),_mbase.getHeight()); + //BA.debugLineNum = 56;BA.debugLine="End Sub"; +return ""; +} +public String _draw(float _state) throws Exception{ +float _r = 0f; + //BA.debugLineNum = 153;BA.debugLine="Private Sub Draw (State As Float)"; + //BA.debugLineNum = 154;BA.debugLine="bc.DrawRect2(bc.TargetRect, transparent, True, 0)"; +_bc._drawrect2(_bc._targetrect,_transparent,__c.True,(int) (0)); + //BA.debugLineNum = 155;BA.debugLine="Dim r As Float = Floor(bc.mHeight / 2)"; +_r = (float) (__c.Floor(_bc._mheight/(double)2)); + //BA.debugLineNum = 156;BA.debugLine="If State < 1 Then bc.DrawCircle2(r, r, r, OffBrus"; +if (_state<1) { +_bc._drawcircle2(_r,_r,_r,_offbrush,__c.True,(int) (0));}; + //BA.debugLineNum = 157;BA.debugLine="If State > 0 Then bc.DrawCircle2(r, r, r * State,"; +if (_state>0) { +_bc._drawcircle2(_r,_r,(float) (_r*_state),_onbrush,__c.True,(int) (0));}; + //BA.debugLineNum = 158;BA.debugLine="bc.SetBitmapToImageView(bc.Bitmap, iv)"; +_bc._setbitmaptoimageview(_bc._getbitmap(),_iv); + //BA.debugLineNum = 159;BA.debugLine="End Sub"; +return ""; +} +public boolean _getchecked() throws Exception{ + //BA.debugLineNum = 140;BA.debugLine="Public Sub getChecked As Boolean"; + //BA.debugLineNum = 141;BA.debugLine="Return mValue"; +if (true) return _mvalue; + //BA.debugLineNum = 142;BA.debugLine="End Sub"; +return false; +} +public boolean _getenabled() throws Exception{ + //BA.debugLineNum = 149;BA.debugLine="Public Sub getEnabled As Boolean"; + //BA.debugLineNum = 150;BA.debugLine="Return mEnabled"; +if (true) return _menabled; + //BA.debugLineNum = 151;BA.debugLine="End Sub"; +return false; +} +public Object _gettext() throws Exception{ + //BA.debugLineNum = 165;BA.debugLine="Public Sub getText As Object"; + //BA.debugLineNum = 166;BA.debugLine="Return mLabel.Text"; +if (true) return (Object)(_mlabel.getText()); + //BA.debugLineNum = 167;BA.debugLine="End Sub"; +return null; +} +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 27;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; + //BA.debugLineNum = 28;BA.debugLine="mEventName = EventName"; +_meventname = _eventname; + //BA.debugLineNum = 29;BA.debugLine="mCallBack = Callback"; +_mcallback = _callback; + //BA.debugLineNum = 30;BA.debugLine="End Sub"; +return ""; +} +public String _pnl_click() throws Exception{ + //BA.debugLineNum = 86;BA.debugLine="Private Sub pnl_Click"; + //BA.debugLineNum = 88;BA.debugLine="If mValue Then Return"; +if (_mvalue) { +if (true) return "";}; + //BA.debugLineNum = 89;BA.debugLine="If mEnabled Then"; +if (_menabled) { + //BA.debugLineNum = 90;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFeedb"; +if (_mhaptic) { +_xuiviewsutils._performhapticfeedback /*String*/ (ba,_mbase);}; + //BA.debugLineNum = 91;BA.debugLine="SetValueImpl(Not(mValue), False)"; +_setvalueimpl(__c.Not(_mvalue),__c.False); + //BA.debugLineNum = 92;BA.debugLine="If mValue And xui.SubExists(mCallBack, mEventNam"; +if (_mvalue && _xui.SubExists(ba,_mcallback,_meventname+"_Checked",(int) (0))) { + //BA.debugLineNum = 93;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_Checke"; +__c.CallSubDelayed(ba,_mcallback,_meventname+"_Checked"); + }; + }; + //BA.debugLineNum = 96;BA.debugLine="End Sub"; +return ""; +} +public String _setchecked(boolean _b) throws Exception{ + //BA.debugLineNum = 135;BA.debugLine="Public Sub setChecked(b As Boolean)"; + //BA.debugLineNum = 136;BA.debugLine="If b = mValue Then Return"; +if (_b==_mvalue) { +if (true) return "";}; + //BA.debugLineNum = 137;BA.debugLine="SetValueImpl(b, False)"; +_setvalueimpl(_b,__c.False); + //BA.debugLineNum = 138;BA.debugLine="End Sub"; +return ""; +} +public String _setenabled(boolean _b) throws Exception{ + //BA.debugLineNum = 144;BA.debugLine="Public Sub setEnabled (b As Boolean)"; + //BA.debugLineNum = 145;BA.debugLine="mEnabled = b"; +_menabled = _b; + //BA.debugLineNum = 146;BA.debugLine="SetValueImpl(mValue, True)"; +_setvalueimpl(_mvalue,__c.True); + //BA.debugLineNum = 147;BA.debugLine="End Sub"; +return ""; +} +public String _settext(Object _t) throws Exception{ + //BA.debugLineNum = 161;BA.debugLine="Public Sub setText (t As Object)"; + //BA.debugLineNum = 162;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(mLabel, t"; +_xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,_mlabel,_t); + //BA.debugLineNum = 163;BA.debugLine="End Sub"; +return ""; +} +public void _setvalueimpl(boolean _b,boolean _immediate) throws Exception{ +ResumableSub_SetValueImpl rsub = new ResumableSub_SetValueImpl(this,_b,_immediate); rsub.resume(ba, null); } public static class ResumableSub_SetValueImpl extends BA.ResumableSub { -public ResumableSub_SetValueImpl(reparto_izca.keymon.lat.b4xradiobutton parent,reparto_izca.keymon.lat.b4xradiobutton __ref,boolean _b,boolean _immediate) { +public ResumableSub_SetValueImpl(reparto_izca.keymon.lat.b4xradiobutton parent,boolean _b,boolean _immediate) { this.parent = parent; -this.__ref = __ref; this._b = _b; this._immediate = _immediate; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xradiobutton __ref; reparto_izca.keymon.lat.b4xradiobutton parent; boolean _b; boolean _immediate; @@ -149,7 +304,6 @@ int limit3; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xradiobutton"; while (true) { switch (state) { @@ -159,11 +313,9 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=58654721; - //BA.debugLineNum = 58654721;BA.debugLine="mValue = b"; -__ref._mvalue /*boolean*/ = _b; -RDebugUtils.currentLine=58654722; - //BA.debugLineNum = 58654722;BA.debugLine="If b = True Then"; + //BA.debugLineNum = 99;BA.debugLine="mValue = b"; +parent._mvalue = _b; + //BA.debugLineNum = 100;BA.debugLine="If b = True Then"; if (true) break; case 1: @@ -176,15 +328,14 @@ this.state = 3; case 3: //C this.state = 4; -RDebugUtils.currentLine=58654723; - //BA.debugLineNum = 58654723;BA.debugLine="For i = 0 To mBase.Parent.NumberOfViews - 1"; + //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) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getParent().getNumberOfViews()-1); +limit3 = (int) (parent._mbase.getParent().getNumberOfViews()-1); _i = (int) (0) ; this.state = 59; if (true) break; @@ -204,30 +355,26 @@ if (true) break; case 6: //C this.state = 7; -RDebugUtils.currentLine=58654724; - //BA.debugLineNum = 58654724;BA.debugLine="Dim v As B4XView = mBase.Parent.GetView(i)"; + //BA.debugLineNum = 102;BA.debugLine="Dim v As B4XView = mBase.Parent.GetView(i)"; _v = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_v = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getParent().GetView(_i); -RDebugUtils.currentLine=58654725; - //BA.debugLineNum = 58654725;BA.debugLine="If v <> mBase And v.Tag Is B4XRadioButton Then"; +_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(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ) == false && _v.getTag() instanceof reparto_izca.keymon.lat.b4xradiobutton) { +if ((_v).equals(parent._mbase) == false && _v.getTag() instanceof reparto_izca.keymon.lat.b4xradiobutton) { this.state = 9; }if (true) break; case 9: //C this.state = 10; -RDebugUtils.currentLine=58654726; - //BA.debugLineNum = 58654726;BA.debugLine="Dim rb As B4XRadioButton = v.Tag"; + //BA.debugLineNum = 104;BA.debugLine="Dim rb As B4XRadioButton = v.Tag"; _rb = (reparto_izca.keymon.lat.b4xradiobutton)(_v.getTag()); -RDebugUtils.currentLine=58654727; - //BA.debugLineNum = 58654727;BA.debugLine="rb.Checked = False"; -_rb._setchecked /*boolean*/ (null,parent.__c.False); + //BA.debugLineNum = 105;BA.debugLine="rb.Checked = False"; +_rb._setchecked /*boolean*/ (parent.__c.False); if (true) break; case 10: @@ -247,11 +394,9 @@ case 12: //C this.state = 13; ; -RDebugUtils.currentLine=58654731; - //BA.debugLineNum = 58654731;BA.debugLine="LoopIndex = LoopIndex + 1"; -__ref._loopindex /*int*/ = (int) (__ref._loopindex /*int*/ +1); -RDebugUtils.currentLine=58654732; - //BA.debugLineNum = 58654732;BA.debugLine="If Immediate Then"; + //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: @@ -266,14 +411,13 @@ this.state = 25; case 15: //C this.state = 16; -RDebugUtils.currentLine=58654733; - //BA.debugLineNum = 58654733;BA.debugLine="If mValue Then Draw(1) Else Draw(0)"; + //BA.debugLineNum = 111;BA.debugLine="If mValue Then Draw(1) Else Draw(0)"; if (true) break; case 16: //if this.state = 23; -if (__ref._mvalue /*boolean*/ ) { +if (parent._mvalue) { this.state = 18; ;} else { @@ -283,13 +427,13 @@ this.state = 20; case 18: //C this.state = 23; -__ref._draw /*String*/ (null,(float) (1)); +parent._draw((float) (1)); if (true) break; case 20: //C this.state = 23; -__ref._draw /*String*/ (null,(float) (0)); +parent._draw((float) (0)); if (true) break; case 23: @@ -301,17 +445,13 @@ this.state = 53; case 25: //C this.state = 26; -RDebugUtils.currentLine=58654735; - //BA.debugLineNum = 58654735;BA.debugLine="Dim MyIndex As Int = LoopIndex"; -_myindex = __ref._loopindex /*int*/ ; -RDebugUtils.currentLine=58654736; - //BA.debugLineNum = 58654736;BA.debugLine="Dim start As Long = DateTime.Now"; + //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(); -RDebugUtils.currentLine=58654737; - //BA.debugLineNum = 58654737;BA.debugLine="Dim duration As Int = 200"; + //BA.debugLineNum = 115;BA.debugLine="Dim duration As Int = 200"; _duration = (int) (200); -RDebugUtils.currentLine=58654738; - //BA.debugLineNum = 58654738;BA.debugLine="Do While DateTime.Now < start + duration"; + //BA.debugLineNum = 116;BA.debugLine="Do While DateTime.Now < start + duration"; if (true) break; case 26: @@ -326,17 +466,15 @@ if (true) break; case 28: //C this.state = 29; -RDebugUtils.currentLine=58654739; - //BA.debugLineNum = 58654739;BA.debugLine="Dim state1 As Float = (DateTime.Now - start) /"; + //BA.debugLineNum = 117;BA.debugLine="Dim state1 As Float = (DateTime.Now - start) /"; _state1 = (float) ((parent.__c.DateTime.getNow()-_start)/(double)_duration); -RDebugUtils.currentLine=58654740; - //BA.debugLineNum = 58654740;BA.debugLine="If mValue = False Then state1 = 1 - state1"; + //BA.debugLineNum = 118;BA.debugLine="If mValue = False Then state1 = 1 - state1"; if (true) break; case 29: //if this.state = 34; -if (__ref._mvalue /*boolean*/ ==parent.__c.False) { +if (parent._mvalue==parent.__c.False) { this.state = 31; ;}if (true) break; @@ -350,26 +488,23 @@ case 34: //C this.state = 35; ; -RDebugUtils.currentLine=58654741; - //BA.debugLineNum = 58654741;BA.debugLine="Draw(state1)"; -__ref._draw /*String*/ (null,_state1); -RDebugUtils.currentLine=58654742; - //BA.debugLineNum = 58654742;BA.debugLine="Sleep(16)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xradiobutton", "setvalueimpl"),(int) (16)); + //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; ; -RDebugUtils.currentLine=58654743; - //BA.debugLineNum = 58654743;BA.debugLine="If MyIndex <> LoopIndex Then Exit"; + //BA.debugLineNum = 121;BA.debugLine="If MyIndex <> LoopIndex Then Exit"; if (true) break; case 35: //if this.state = 40; -if (_myindex!=__ref._loopindex /*int*/ ) { +if (_myindex!=parent._loopindex) { this.state = 37; ;}if (true) break; @@ -386,27 +521,25 @@ this.state = 26; ; if (true) break; ; -RDebugUtils.currentLine=58654745; - //BA.debugLineNum = 58654745;BA.debugLine="If MyIndex = LoopIndex Then"; + //BA.debugLineNum = 123;BA.debugLine="If MyIndex = LoopIndex Then"; case 41: //if this.state = 52; -if (_myindex==__ref._loopindex /*int*/ ) { +if (_myindex==parent._loopindex) { this.state = 43; }if (true) break; case 43: //C this.state = 44; -RDebugUtils.currentLine=58654746; - //BA.debugLineNum = 58654746;BA.debugLine="If mValue Then Draw(1) Else Draw(0)"; + //BA.debugLineNum = 124;BA.debugLine="If mValue Then Draw(1) Else Draw(0)"; if (true) break; case 44: //if this.state = 51; -if (__ref._mvalue /*boolean*/ ) { +if (parent._mvalue) { this.state = 46; ;} else { @@ -416,13 +549,13 @@ this.state = 48; case 46: //C this.state = 51; -__ref._draw /*String*/ (null,(float) (1)); +parent._draw((float) (1)); if (true) break; case 48: //C this.state = 51; -__ref._draw /*String*/ (null,(float) (0)); +parent._draw((float) (0)); if (true) break; case 51: @@ -437,13 +570,12 @@ this.state = 53; ; if (true) break; ; -RDebugUtils.currentLine=58654749; - //BA.debugLineNum = 58654749;BA.debugLine="If mEnabled Then"; + //BA.debugLineNum = 127;BA.debugLine="If mEnabled Then"; case 53: //if this.state = 58; -if (__ref._menabled /*boolean*/ ) { +if (parent._menabled) { this.state = 55; }else { this.state = 57; @@ -452,340 +584,30 @@ this.state = 57; case 55: //C this.state = 58; -RDebugUtils.currentLine=58654750; - //BA.debugLineNum = 58654750;BA.debugLine="XUIViewsUtils.SetAlpha(mBase, 1)"; -parent._xuiviewsutils._setalpha /*String*/ (ba,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ,(float) (1)); + //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; -RDebugUtils.currentLine=58654752; - //BA.debugLineNum = 58654752;BA.debugLine="XUIViewsUtils.SetAlpha(mBase, 0.4)"; -parent._xuiviewsutils._setalpha /*String*/ (ba,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ,(float) (0.4)); + //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; ; -RDebugUtils.currentLine=58654755; - //BA.debugLineNum = 58654755;BA.debugLine="End Sub"; + //BA.debugLineNum = 133;BA.debugLine="End Sub"; if (true) break; } } } } -public String _class_globals(reparto_izca.keymon.lat.b4xradiobutton __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -RDebugUtils.currentLine=58327040; - //BA.debugLineNum = 58327040;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=58327041; - //BA.debugLineNum = 58327041;BA.debugLine="Private mEventName As String 'ignore"; -_meventname = ""; -RDebugUtils.currentLine=58327042; - //BA.debugLineNum = 58327042;BA.debugLine="Private mCallBack As Object 'ignore"; -_mcallback = new Object(); -RDebugUtils.currentLine=58327043; - //BA.debugLineNum = 58327043;BA.debugLine="Public mBase As B4XView 'ignore"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=58327044; - //BA.debugLineNum = 58327044;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=58327045; - //BA.debugLineNum = 58327045;BA.debugLine="Public OnColor, OffColor As Int"; -_oncolor = 0; -_offcolor = 0; -RDebugUtils.currentLine=58327046; - //BA.debugLineNum = 58327046;BA.debugLine="Private bc As BitmapCreator"; -_bc = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=58327047; - //BA.debugLineNum = 58327047;BA.debugLine="Private iv As B4XView"; -_iv = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=58327048; - //BA.debugLineNum = 58327048;BA.debugLine="Private mValue As Boolean"; -_mvalue = false; -RDebugUtils.currentLine=58327049; - //BA.debugLineNum = 58327049;BA.debugLine="Private transparent As BCBrush"; -_transparent = new b4a.example.bcpath._bcbrush(); -RDebugUtils.currentLine=58327050; - //BA.debugLineNum = 58327050;BA.debugLine="Private LoopIndex As Int"; -_loopindex = 0; -RDebugUtils.currentLine=58327051; - //BA.debugLineNum = 58327051;BA.debugLine="Public Tag As Object"; -_tag = new Object(); -RDebugUtils.currentLine=58327052; - //BA.debugLineNum = 58327052;BA.debugLine="Private OnBrush, OffBrush As BCBrush"; -_onbrush = new b4a.example.bcpath._bcbrush(); -_offbrush = new b4a.example.bcpath._bcbrush(); -RDebugUtils.currentLine=58327053; - //BA.debugLineNum = 58327053;BA.debugLine="Private mEnabled As Boolean = True"; -_menabled = __c.True; -RDebugUtils.currentLine=58327054; - //BA.debugLineNum = 58327054;BA.debugLine="Public mHaptic As Boolean"; -_mhaptic = false; -RDebugUtils.currentLine=58327055; - //BA.debugLineNum = 58327055;BA.debugLine="Private Size As Int"; -_size = 0; -RDebugUtils.currentLine=58327056; - //BA.debugLineNum = 58327056;BA.debugLine="Public mLabel As B4XView"; -_mlabel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=58327057; - //BA.debugLineNum = 58327057;BA.debugLine="Private pnl As B4XView"; -_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=58327058; - //BA.debugLineNum = 58327058;BA.debugLine="Private Scale As Float 'ignore"; -_scale = 0f; -RDebugUtils.currentLine=58327059; - //BA.debugLineNum = 58327059;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 String _designercreateview(reparto_izca.keymon.lat.b4xradiobutton __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} -anywheresoftware.b4a.objects.ImageViewWrapper _iiv = null; -RDebugUtils.currentLine=58458112; - //BA.debugLineNum = 58458112;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=58458113; - //BA.debugLineNum = 58458113;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=58458114; - //BA.debugLineNum = 58458114;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=58458114; - //BA.debugLineNum = 58458114;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=58458115; - //BA.debugLineNum = 58458115;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=58458116; - //BA.debugLineNum = 58458116;BA.debugLine="pnl = xui.CreatePanel(\"pnl\")"; -__ref._pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"pnl"); -RDebugUtils.currentLine=58458117; - //BA.debugLineNum = 58458117;BA.debugLine="pnl.Color = xui.Color_Transparent"; -__ref._pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); -RDebugUtils.currentLine=58458118; - //BA.debugLineNum = 58458118;BA.debugLine="Dim iiv As ImageView"; -_iiv = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=58458119; - //BA.debugLineNum = 58458119;BA.debugLine="iiv.Initialize(\"\")"; -_iiv.Initialize(ba,""); -RDebugUtils.currentLine=58458120; - //BA.debugLineNum = 58458120;BA.debugLine="iv = iiv"; -__ref._iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iiv.getObject())); -RDebugUtils.currentLine=58458121; - //BA.debugLineNum = 58458121;BA.debugLine="mBase.AddView(iv, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=58458122; - //BA.debugLineNum = 58458122;BA.debugLine="mLabel = Lbl"; -__ref._mlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject())); -RDebugUtils.currentLine=58458123; - //BA.debugLineNum = 58458123;BA.debugLine="mLabel.SetTextAlignment(\"CENTER\", \"LEFT\")"; -__ref._mlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetTextAlignment("CENTER","LEFT"); -RDebugUtils.currentLine=58458124; - //BA.debugLineNum = 58458124;BA.debugLine="mBase.AddView(mLabel, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._mlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=58458125; - //BA.debugLineNum = 58458125;BA.debugLine="mBase.AddView(pnl, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=58458127; - //BA.debugLineNum = 58458127;BA.debugLine="OnColor = xui.PaintOrColorToColor(Props.Get(\"OnCo"; -__ref._oncolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("OnColor"))); -RDebugUtils.currentLine=58458128; - //BA.debugLineNum = 58458128;BA.debugLine="OffColor = xui.PaintOrColorToColor(Props.Get(\"Off"; -__ref._offcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("OffColor"))); -RDebugUtils.currentLine=58458129; - //BA.debugLineNum = 58458129;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals"; -__ref._mhaptic /*boolean*/ = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False))); -RDebugUtils.currentLine=58458131; - //BA.debugLineNum = 58458131;BA.debugLine="mEnabled = mBase.Enabled"; -__ref._menabled /*boolean*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getEnabled(); -RDebugUtils.currentLine=58458132; - //BA.debugLineNum = 58458132;BA.debugLine="mBase.Enabled = True"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setEnabled(__c.True); -RDebugUtils.currentLine=58458133; - //BA.debugLineNum = 58458133;BA.debugLine="mValue = Props.Get(\"Value\")"; -__ref._mvalue /*boolean*/ = BA.ObjectToBoolean(_props.Get((Object)("Value"))); -RDebugUtils.currentLine=58458134; - //BA.debugLineNum = 58458134;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)"; -__ref._base_resize /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=58458135; - //BA.debugLineNum = 58458135;BA.debugLine="End Sub"; -return ""; } -public String _draw(reparto_izca.keymon.lat.b4xradiobutton __ref,float _state) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "draw", true)) - {return ((String) Debug.delegate(ba, "draw", new Object[] {_state}));} -float _r = 0f; -RDebugUtils.currentLine=58982400; - //BA.debugLineNum = 58982400;BA.debugLine="Private Sub Draw (State As Float)"; -RDebugUtils.currentLine=58982401; - //BA.debugLineNum = 58982401;BA.debugLine="bc.DrawRect2(bc.TargetRect, transparent, True, 0)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._drawrect2(__ref._bc /*b4a.example.bitmapcreator*/ ._targetrect,__ref._transparent /*b4a.example.bcpath._bcbrush*/ ,__c.True,(int) (0)); -RDebugUtils.currentLine=58982402; - //BA.debugLineNum = 58982402;BA.debugLine="Dim r As Float = Floor(bc.mHeight / 2)"; -_r = (float) (__c.Floor(__ref._bc /*b4a.example.bitmapcreator*/ ._mheight/(double)2)); -RDebugUtils.currentLine=58982403; - //BA.debugLineNum = 58982403;BA.debugLine="If State < 1 Then bc.DrawCircle2(r, r, r, OffBrus"; -if (_state<1) { -__ref._bc /*b4a.example.bitmapcreator*/ ._drawcircle2(_r,_r,_r,__ref._offbrush /*b4a.example.bcpath._bcbrush*/ ,__c.True,(int) (0));}; -RDebugUtils.currentLine=58982404; - //BA.debugLineNum = 58982404;BA.debugLine="If State > 0 Then bc.DrawCircle2(r, r, r * State,"; -if (_state>0) { -__ref._bc /*b4a.example.bitmapcreator*/ ._drawcircle2(_r,_r,(float) (_r*_state),__ref._onbrush /*b4a.example.bcpath._bcbrush*/ ,__c.True,(int) (0));}; -RDebugUtils.currentLine=58982405; - //BA.debugLineNum = 58982405;BA.debugLine="bc.SetBitmapToImageView(bc.Bitmap, iv)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._setbitmaptoimageview(__ref._bc /*b4a.example.bitmapcreator*/ ._getbitmap(),__ref._iv /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=58982406; - //BA.debugLineNum = 58982406;BA.debugLine="End Sub"; -return ""; -} -public boolean _getchecked(reparto_izca.keymon.lat.b4xradiobutton __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "getchecked", true)) - {return ((Boolean) Debug.delegate(ba, "getchecked", null));} -RDebugUtils.currentLine=58785792; - //BA.debugLineNum = 58785792;BA.debugLine="Public Sub getChecked As Boolean"; -RDebugUtils.currentLine=58785793; - //BA.debugLineNum = 58785793;BA.debugLine="Return mValue"; -if (true) return __ref._mvalue /*boolean*/ ; -RDebugUtils.currentLine=58785794; - //BA.debugLineNum = 58785794;BA.debugLine="End Sub"; -return false; -} -public boolean _getenabled(reparto_izca.keymon.lat.b4xradiobutton __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "getenabled", true)) - {return ((Boolean) Debug.delegate(ba, "getenabled", null));} -RDebugUtils.currentLine=58916864; - //BA.debugLineNum = 58916864;BA.debugLine="Public Sub getEnabled As Boolean"; -RDebugUtils.currentLine=58916865; - //BA.debugLineNum = 58916865;BA.debugLine="Return mEnabled"; -if (true) return __ref._menabled /*boolean*/ ; -RDebugUtils.currentLine=58916866; - //BA.debugLineNum = 58916866;BA.debugLine="End Sub"; -return false; -} -public Object _gettext(reparto_izca.keymon.lat.b4xradiobutton __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "gettext", true)) - {return ((Object) Debug.delegate(ba, "gettext", null));} -RDebugUtils.currentLine=59113472; - //BA.debugLineNum = 59113472;BA.debugLine="Public Sub getText As Object"; -RDebugUtils.currentLine=59113473; - //BA.debugLineNum = 59113473;BA.debugLine="Return mLabel.Text"; -if (true) return (Object)(__ref._mlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getText()); -RDebugUtils.currentLine=59113474; - //BA.debugLineNum = 59113474;BA.debugLine="End Sub"; -return null; -} -public String _initialize(reparto_izca.keymon.lat.b4xradiobutton __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=58392576; - //BA.debugLineNum = 58392576;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=58392577; - //BA.debugLineNum = 58392577;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=58392578; - //BA.debugLineNum = 58392578;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=58392579; - //BA.debugLineNum = 58392579;BA.debugLine="End Sub"; -return ""; -} -public String _pnl_click(reparto_izca.keymon.lat.b4xradiobutton __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "pnl_click", true)) - {return ((String) Debug.delegate(ba, "pnl_click", null));} -RDebugUtils.currentLine=58589184; - //BA.debugLineNum = 58589184;BA.debugLine="Private Sub pnl_Click"; -RDebugUtils.currentLine=58589186; - //BA.debugLineNum = 58589186;BA.debugLine="If mValue Then Return"; -if (__ref._mvalue /*boolean*/ ) { -if (true) return "";}; -RDebugUtils.currentLine=58589187; - //BA.debugLineNum = 58589187;BA.debugLine="If mEnabled Then"; -if (__ref._menabled /*boolean*/ ) { -RDebugUtils.currentLine=58589188; - //BA.debugLineNum = 58589188;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFeedb"; -if (__ref._mhaptic /*boolean*/ ) { -_xuiviewsutils._performhapticfeedback /*String*/ (ba,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ );}; -RDebugUtils.currentLine=58589189; - //BA.debugLineNum = 58589189;BA.debugLine="SetValueImpl(Not(mValue), False)"; -__ref._setvalueimpl /*void*/ (null,__c.Not(__ref._mvalue /*boolean*/ ),__c.False); -RDebugUtils.currentLine=58589190; - //BA.debugLineNum = 58589190;BA.debugLine="If mValue And xui.SubExists(mCallBack, mEventNam"; -if (__ref._mvalue /*boolean*/ && __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_Checked",(int) (0))) { -RDebugUtils.currentLine=58589191; - //BA.debugLineNum = 58589191;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_Checke"; -__c.CallSubDelayed(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_Checked"); - }; - }; -RDebugUtils.currentLine=58589194; - //BA.debugLineNum = 58589194;BA.debugLine="End Sub"; -return ""; -} -public String _setchecked(reparto_izca.keymon.lat.b4xradiobutton __ref,boolean _b) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "setchecked", true)) - {return ((String) Debug.delegate(ba, "setchecked", new Object[] {_b}));} -RDebugUtils.currentLine=58720256; - //BA.debugLineNum = 58720256;BA.debugLine="Public Sub setChecked(b As Boolean)"; -RDebugUtils.currentLine=58720257; - //BA.debugLineNum = 58720257;BA.debugLine="If b = mValue Then Return"; -if (_b==__ref._mvalue /*boolean*/ ) { -if (true) return "";}; -RDebugUtils.currentLine=58720258; - //BA.debugLineNum = 58720258;BA.debugLine="SetValueImpl(b, False)"; -__ref._setvalueimpl /*void*/ (null,_b,__c.False); -RDebugUtils.currentLine=58720259; - //BA.debugLineNum = 58720259;BA.debugLine="End Sub"; -return ""; -} -public String _setenabled(reparto_izca.keymon.lat.b4xradiobutton __ref,boolean _b) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "setenabled", true)) - {return ((String) Debug.delegate(ba, "setenabled", new Object[] {_b}));} -RDebugUtils.currentLine=58851328; - //BA.debugLineNum = 58851328;BA.debugLine="Public Sub setEnabled (b As Boolean)"; -RDebugUtils.currentLine=58851329; - //BA.debugLineNum = 58851329;BA.debugLine="mEnabled = b"; -__ref._menabled /*boolean*/ = _b; -RDebugUtils.currentLine=58851330; - //BA.debugLineNum = 58851330;BA.debugLine="SetValueImpl(mValue, True)"; -__ref._setvalueimpl /*void*/ (null,__ref._mvalue /*boolean*/ ,__c.True); -RDebugUtils.currentLine=58851331; - //BA.debugLineNum = 58851331;BA.debugLine="End Sub"; -return ""; -} -public String _settext(reparto_izca.keymon.lat.b4xradiobutton __ref,Object _t) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xradiobutton"; -if (Debug.shouldDelegate(ba, "settext", true)) - {return ((String) Debug.delegate(ba, "settext", new Object[] {_t}));} -RDebugUtils.currentLine=59047936; - //BA.debugLineNum = 59047936;BA.debugLine="Public Sub setText (t As Object)"; -RDebugUtils.currentLine=59047937; - //BA.debugLineNum = 59047937;BA.debugLine="XUIViewsUtils.SetTextOrCSBuilderToLabel(mLabel, t"; -_xuiviewsutils._settextorcsbuildertolabel /*String*/ (ba,__ref._mlabel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ,_t); -RDebugUtils.currentLine=59047938; - //BA.debugLineNum = 59047938;BA.debugLine="End Sub"; -return ""; -} -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xsearchtemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xsearchtemplate.java index 4828306..58dac24 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xsearchtemplate.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xsearchtemplate.java @@ -10,7 +10,7 @@ public class b4xsearchtemplate extends B4AClass.ImplB4AClass implements BA.SubDe private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xsearchtemplate"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xsearchtemplate"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xsearchtemplate extends B4AClass.ImplB4AClass implements BA.SubDe ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -63,529 +56,238 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xsearchtemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "getpanel", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "getpanel", new Object[] {_dialog}));} -RDebugUtils.currentLine=59375616; - //BA.debugLineNum = 59375616;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; -RDebugUtils.currentLine=59375617; - //BA.debugLineNum = 59375617;BA.debugLine="Return mBase"; -if (true) return __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=59375618; - //BA.debugLineNum = 59375618;BA.debugLine="End Sub"; -return null; -} -public void _show(reparto_izca.keymon.lat.b4xsearchtemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "show", true)) - {Debug.delegate(ba, "show", new Object[] {_dialog}); return;} -ResumableSub_Show rsub = new ResumableSub_Show(this,__ref,_dialog); -rsub.resume(ba, null); -} -public static class ResumableSub_Show extends BA.ResumableSub { -public ResumableSub_Show(reparto_izca.keymon.lat.b4xsearchtemplate parent,reparto_izca.keymon.lat.b4xsearchtemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) { -this.parent = parent; -this.__ref = __ref; -this._dialog = _dialog; -this.__ref = parent; -} -reparto_izca.keymon.lat.b4xsearchtemplate __ref; -reparto_izca.keymon.lat.b4xsearchtemplate parent; -reparto_izca.keymon.lat.b4xdialog _dialog; - -@Override -public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xsearchtemplate"; - - while (true) { - switch (state) { - case -1: -return; - -case 0: -//C -this.state = -1; -RDebugUtils.currentLine=59441153; - //BA.debugLineNum = 59441153;BA.debugLine="xDialog = Dialog"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ = _dialog; -RDebugUtils.currentLine=59441154; - //BA.debugLineNum = 59441154;BA.debugLine="xDialog.PutAtTop = xui.IsB4A Or xui.IsB4i"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._putattop /*boolean*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A() || __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i(); -RDebugUtils.currentLine=59441155; - //BA.debugLineNum = 59441155;BA.debugLine="CustomListView1.AsView.Color = xui.Color_Transpar"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._asview().setColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); -RDebugUtils.currentLine=59441156; - //BA.debugLineNum = 59441156;BA.debugLine="CustomListView1.sv.Color = xui.Color_Transparent"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._sv.setColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); -RDebugUtils.currentLine=59441157; - //BA.debugLineNum = 59441157;BA.debugLine="mBase.Color = xui.Color_Transparent"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); -RDebugUtils.currentLine=59441158; - //BA.debugLineNum = 59441158;BA.debugLine="Sleep(20)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xsearchtemplate", "show"),(int) (20)); -this.state = 1; -return; -case 1: -//C -this.state = -1; -; -RDebugUtils.currentLine=59441159; - //BA.debugLineNum = 59441159;BA.debugLine="Update(\"\", True)"; -__ref._update /*String*/ (null,"",parent.__c.True); -RDebugUtils.currentLine=59441160; - //BA.debugLineNum = 59441160;BA.debugLine="CustomListView1.JumpToItem(0)"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._jumptoitem((int) (0)); -RDebugUtils.currentLine=59441161; - //BA.debugLineNum = 59441161;BA.debugLine="SearchField.Text = \"\""; -__ref._searchfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ ._settext /*String*/ (null,""); -RDebugUtils.currentLine=59441162; - //BA.debugLineNum = 59441162;BA.debugLine="SearchField.TextField.RequestFocus"; -__ref._searchfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ ._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null).RequestFocus(); -RDebugUtils.currentLine=59441164; - //BA.debugLineNum = 59441164;BA.debugLine="IME.ShowKeyboard(SearchField.TextField)"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .ShowKeyboard((android.view.View)(__ref._searchfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ ._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null).getObject())); -RDebugUtils.currentLine=59441166; - //BA.debugLineNum = 59441166;BA.debugLine="End Sub"; -if (true) break; - - } - } - } -} -public String _dialogclosed(reparto_izca.keymon.lat.b4xsearchtemplate __ref,int _result) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "dialogclosed", true)) - {return ((String) Debug.delegate(ba, "dialogclosed", new Object[] {_result}));} -RDebugUtils.currentLine=59965440; - //BA.debugLineNum = 59965440;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore"; -RDebugUtils.currentLine=59965442; - //BA.debugLineNum = 59965442;BA.debugLine="End Sub"; -return ""; -} -public String _additemstolist(reparto_izca.keymon.lat.b4xsearchtemplate __ref,anywheresoftware.b4a.objects.collections.List _li,String _full) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "additemstolist", true)) - {return ((String) Debug.delegate(ba, "additemstolist", new Object[] {_li,_full}));} +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; -RDebugUtils.currentLine=59768832; - //BA.debugLineNum = 59768832;BA.debugLine="Private Sub AddItemsToList(li As List, full As Str"; -RDebugUtils.currentLine=59768833; - //BA.debugLineNum = 59768833;BA.debugLine="If li.IsInitialized = False Then Return"; + //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 "";}; -RDebugUtils.currentLine=59768838; - //BA.debugLineNum = 59768838;BA.debugLine="For i = 0 To li.Size - 1"; + //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 ) { -RDebugUtils.currentLine=59768839; - //BA.debugLineNum = 59768839;BA.debugLine="If CustomListView1.Size >= MaxNumberOfItemsToSho"; -if (__ref._customlistview1 /*b4a.example3.customlistview*/ ._getsize()>=__ref._maxnumberofitemstoshow /*int*/ ) { + //BA.debugLineNum = 135;BA.debugLine="If CustomListView1.Size >= MaxNumberOfItemsToSho"; +if (_customlistview1._getsize()>=_maxnumberofitemstoshow) { if (true) return "";}; -RDebugUtils.currentLine=59768840; - //BA.debugLineNum = 59768840;BA.debugLine="Dim item As String = li.Get(i)"; + //BA.debugLineNum = 136;BA.debugLine="Dim item As String = li.Get(i)"; _item = BA.ObjectToString(_li.Get(_i)); -RDebugUtils.currentLine=59768841; - //BA.debugLineNum = 59768841;BA.debugLine="Dim x As Int = item.ToLowerCase.IndexOf(full)"; + //BA.debugLineNum = 137;BA.debugLine="Dim x As Int = item.ToLowerCase.IndexOf(full)"; _x = _item.toLowerCase().indexOf(_full); -RDebugUtils.currentLine=59768842; - //BA.debugLineNum = 59768842;BA.debugLine="If x = -1 Then"; + //BA.debugLineNum = 138;BA.debugLine="If x = -1 Then"; if (_x==-1) { -RDebugUtils.currentLine=59768843; - //BA.debugLineNum = 59768843;BA.debugLine="Continue"; + //BA.debugLineNum = 139;BA.debugLine="Continue"; if (true) continue; }; -RDebugUtils.currentLine=59768845; - //BA.debugLineNum = 59768845;BA.debugLine="Dim pnlColor As Int"; + //BA.debugLineNum = 141;BA.debugLine="Dim pnlColor As Int"; _pnlcolor = 0; -RDebugUtils.currentLine=59768846; - //BA.debugLineNum = 59768846;BA.debugLine="If CustomListView1.Size = 0 And full.Length > 0"; -if (__ref._customlistview1 /*b4a.example3.customlistview*/ ._getsize()==0 && _full.length()>0 && __ref._allowunlistedtext /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=59768847; - //BA.debugLineNum = 59768847;BA.debugLine="pnlColor = ItemHightlightColor"; -_pnlcolor = __ref._itemhightlightcolor /*int*/ ; + //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 { -RDebugUtils.currentLine=59768849; - //BA.debugLineNum = 59768849;BA.debugLine="pnlColor = CustomListView1.DefaultTextBackgroun"; -_pnlcolor = __ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextbackgroundcolor; + //BA.debugLineNum = 145;BA.debugLine="pnlColor = CustomListView1.DefaultTextBackgroun"; +_pnlcolor = _customlistview1._defaulttextbackgroundcolor; }; -RDebugUtils.currentLine=59768852; - //BA.debugLineNum = 59768852;BA.debugLine="Dim cs As CSBuilder"; + //BA.debugLineNum = 148;BA.debugLine="Dim cs As CSBuilder"; _cs = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=59768853; - //BA.debugLineNum = 59768853;BA.debugLine="cs.Initialize.Append(item.SubString2(0, x)).Colo"; -_cs.Initialize().Append(BA.ObjectToCharSequence(_item.substring((int) (0),_x))).Color(__ref._texthighlightcolor /*int*/ ).Append(BA.ObjectToCharSequence(_item.substring(_x,(int) (_x+_full.length())))).Pop(); -RDebugUtils.currentLine=59768854; - //BA.debugLineNum = 59768854;BA.debugLine="cs.Append(item.SubString(x + full.Length))"; + //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())))); -RDebugUtils.currentLine=59768855; - //BA.debugLineNum = 59768855;BA.debugLine="If ItemsCache.Size > 0 Then"; -if (__ref._itemscache /*anywheresoftware.b4a.objects.collections.List*/ .getSize()>0) { -RDebugUtils.currentLine=59768856; - //BA.debugLineNum = 59768856;BA.debugLine="Dim p As B4XView = ItemsCache.Get(ItemsCache.Si"; + //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)(__ref._itemscache /*anywheresoftware.b4a.objects.collections.List*/ .Get((int) (__ref._itemscache /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1)))); -RDebugUtils.currentLine=59768857; - //BA.debugLineNum = 59768857;BA.debugLine="ItemsCache.RemoveAt(ItemsCache.Size - 1)"; -__ref._itemscache /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt((int) (__ref._itemscache /*anywheresoftware.b4a.objects.collections.List*/ .getSize()-1)); -RDebugUtils.currentLine=59768859; - //BA.debugLineNum = 59768859;BA.debugLine="p.GetView(0).Text = cs"; +_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())); -RDebugUtils.currentLine=59768864; - //BA.debugLineNum = 59768864;BA.debugLine="p.Color = pnlColor"; + //BA.debugLineNum = 160;BA.debugLine="p.Color = pnlColor"; _p.setColor(_pnlcolor); -RDebugUtils.currentLine=59768865; - //BA.debugLineNum = 59768865;BA.debugLine="CustomListView1.Add(p, item)"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._add(_p,(Object)(_item)); + //BA.debugLineNum = 161;BA.debugLine="CustomListView1.Add(p, item)"; +_customlistview1._add(_p,(Object)(_item)); }else { -RDebugUtils.currentLine=59768867; - //BA.debugLineNum = 59768867;BA.debugLine="CustomListView1.AddTextItem(cs, item)"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._addtextitem((Object)(_cs.getObject()),(Object)(_item)); + //BA.debugLineNum = 163;BA.debugLine="CustomListView1.AddTextItem(cs, item)"; +_customlistview1._addtextitem((Object)(_cs.getObject()),(Object)(_item)); }; } }; -RDebugUtils.currentLine=59768888; - //BA.debugLineNum = 59768888;BA.debugLine="For i = 0 To li.Size - 1"; + //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 ) { -RDebugUtils.currentLine=59768889; - //BA.debugLineNum = 59768889;BA.debugLine="Dim item As String = li.Get(i)"; + //BA.debugLineNum = 185;BA.debugLine="Dim item As String = li.Get(i)"; _item = BA.ObjectToString(_li.Get(_i)); -RDebugUtils.currentLine=59768890; - //BA.debugLineNum = 59768890;BA.debugLine="Dim x As Int = item.ToLowerCase.IndexOf(full)"; + //BA.debugLineNum = 186;BA.debugLine="Dim x As Int = item.ToLowerCase.IndexOf(full)"; _x = _item.toLowerCase().indexOf(_full); -RDebugUtils.currentLine=59768891; - //BA.debugLineNum = 59768891;BA.debugLine="If x = -1 Then"; + //BA.debugLineNum = 187;BA.debugLine="If x = -1 Then"; if (_x==-1) { -RDebugUtils.currentLine=59768892; - //BA.debugLineNum = 59768892;BA.debugLine="Continue"; + //BA.debugLineNum = 188;BA.debugLine="Continue"; if (true) continue; }; } }; -RDebugUtils.currentLine=59768895; - //BA.debugLineNum = 59768895;BA.debugLine="End Sub"; + //BA.debugLineNum = 191;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.b4xsearchtemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -RDebugUtils.currentLine=59179008; - //BA.debugLineNum = 59179008;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=59179009; - //BA.debugLineNum = 59179009;BA.debugLine="Private xui As XUI"; +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(); -RDebugUtils.currentLine=59179010; - //BA.debugLineNum = 59179010;BA.debugLine="Public mBase As B4XView"; + //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=59179011; - //BA.debugLineNum = 59179011;BA.debugLine="Public CustomListView1 As CustomListView"; + //BA.debugLineNum = 4;BA.debugLine="Public CustomListView1 As CustomListView"; _customlistview1 = new b4a.example3.customlistview(); -RDebugUtils.currentLine=59179012; - //BA.debugLineNum = 59179012;BA.debugLine="Private xDialog As B4XDialog"; + //BA.debugLineNum = 5;BA.debugLine="Private xDialog As B4XDialog"; _xdialog = new reparto_izca.keymon.lat.b4xdialog(); -RDebugUtils.currentLine=59179013; - //BA.debugLineNum = 59179013;BA.debugLine="Public SearchField As B4XFloatTextField"; + //BA.debugLineNum = 6;BA.debugLine="Public SearchField As B4XFloatTextField"; _searchfield = new reparto_izca.keymon.lat.b4xfloattextfield(); -RDebugUtils.currentLine=59179014; - //BA.debugLineNum = 59179014;BA.debugLine="Private prefixList As Map"; + //BA.debugLineNum = 7;BA.debugLine="Private prefixList As Map"; _prefixlist = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=59179015; - //BA.debugLineNum = 59179015;BA.debugLine="Private substringList As Map"; + //BA.debugLineNum = 8;BA.debugLine="Private substringList As Map"; _substringlist = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=59179016; - //BA.debugLineNum = 59179016;BA.debugLine="Public TextHighlightColor As Int = 0xFFFD5C5C"; + //BA.debugLineNum = 9;BA.debugLine="Public TextHighlightColor As Int = 0xFFFD5C5C"; _texthighlightcolor = ((int)0xfffd5c5c); -RDebugUtils.currentLine=59179017; - //BA.debugLineNum = 59179017;BA.debugLine="Public ItemHightlightColor As Int = 0x7E008EFF"; + //BA.debugLineNum = 10;BA.debugLine="Public ItemHightlightColor As Int = 0x7E008EFF"; _itemhightlightcolor = ((int)0x7e008eff); -RDebugUtils.currentLine=59179018; - //BA.debugLineNum = 59179018;BA.debugLine="Private MAX_LIMIT = 4 As Int"; + //BA.debugLineNum = 11;BA.debugLine="Private MAX_LIMIT = 4 As Int"; _max_limit = (int) (4); -RDebugUtils.currentLine=59179019; - //BA.debugLineNum = 59179019;BA.debugLine="Public MaxNumberOfItemsToShow As Int = 100"; + //BA.debugLineNum = 12;BA.debugLine="Public MaxNumberOfItemsToShow As Int = 100"; _maxnumberofitemstoshow = (int) (100); -RDebugUtils.currentLine=59179020; - //BA.debugLineNum = 59179020;BA.debugLine="Private ItemsCache As List"; + //BA.debugLineNum = 13;BA.debugLine="Private ItemsCache As List"; _itemscache = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=59179021; - //BA.debugLineNum = 59179021;BA.debugLine="Private AllItems As List"; + //BA.debugLineNum = 14;BA.debugLine="Private AllItems As List"; _allitems = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=59179022; - //BA.debugLineNum = 59179022;BA.debugLine="Public SelectedItem As String"; + //BA.debugLineNum = 15;BA.debugLine="Public SelectedItem As String"; _selecteditem = ""; -RDebugUtils.currentLine=59179023; - //BA.debugLineNum = 59179023;BA.debugLine="Private LastTerm As String"; + //BA.debugLineNum = 16;BA.debugLine="Private LastTerm As String"; _lastterm = ""; -RDebugUtils.currentLine=59179025; - //BA.debugLineNum = 59179025;BA.debugLine="Private IME As IME"; + //BA.debugLineNum = 18;BA.debugLine="Private IME As IME"; _ime = new anywheresoftware.b4a.objects.IME(); -RDebugUtils.currentLine=59179027; - //BA.debugLineNum = 59179027;BA.debugLine="Public AllowUnlistedText As Boolean"; + //BA.debugLineNum = 20;BA.debugLine="Public AllowUnlistedText As Boolean"; _allowunlistedtext = false; -RDebugUtils.currentLine=59179028; - //BA.debugLineNum = 59179028;BA.debugLine="Public PrefixOnly As Boolean"; + //BA.debugLineNum = 21;BA.debugLine="Public PrefixOnly As Boolean"; _prefixonly = false; -RDebugUtils.currentLine=59179029; - //BA.debugLineNum = 59179029;BA.debugLine="End Sub"; + //BA.debugLineNum = 22;BA.debugLine="End Sub"; return ""; } -public String _customlistview1_itemclick(reparto_izca.keymon.lat.b4xsearchtemplate __ref,int _index,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "customlistview1_itemclick", true)) - {return ((String) Debug.delegate(ba, "customlistview1_itemclick", new Object[] {_index,_value}));} -RDebugUtils.currentLine=59703296; - //BA.debugLineNum = 59703296;BA.debugLine="Private Sub CustomListView1_ItemClick (Index As In"; -RDebugUtils.currentLine=59703297; - //BA.debugLineNum = 59703297;BA.debugLine="If Value = \"\" Then 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 "";}; -RDebugUtils.currentLine=59703298; - //BA.debugLineNum = 59703298;BA.debugLine="SelectedItem = Value"; -__ref._selecteditem /*String*/ = BA.ObjectToString(_value); -RDebugUtils.currentLine=59703299; - //BA.debugLineNum = 59703299;BA.debugLine="xDialog.Close(xui.DialogResponse_Positive)"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._close /*boolean*/ (null,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive); -RDebugUtils.currentLine=59703300; - //BA.debugLineNum = 59703300;BA.debugLine="End Sub"; + //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 _initialize(reparto_izca.keymon.lat.b4xsearchtemplate __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public String _dialogclosed(int _result) throws Exception{ + //BA.debugLineNum = 241;BA.debugLine="Private Sub DialogClosed(Result As Int) 'ignore"; + //BA.debugLineNum = 243;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ + //BA.debugLineNum = 61;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; + //BA.debugLineNum = 62;BA.debugLine="Return mBase"; +if (true) return _mbase; + //BA.debugLineNum = 63;BA.debugLine="End Sub"; +return null; +} +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} int _height = 0; anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=59244544; - //BA.debugLineNum = 59244544;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=59244545; - //BA.debugLineNum = 59244545;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"mBase"); -RDebugUtils.currentLine=59244547; - //BA.debugLineNum = 59244547;BA.debugLine="Dim height As Int"; + //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; -RDebugUtils.currentLine=59244548; - //BA.debugLineNum = 59244548;BA.debugLine="If xui.IsB4A Or xui.IsB4i Then height = 220dip El"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A() || __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i()) { + //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));}; -RDebugUtils.currentLine=59244549; - //BA.debugLineNum = 59244549;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, height)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),_height); -RDebugUtils.currentLine=59244550; - //BA.debugLineNum = 59244550;BA.debugLine="mBase.LoadLayout(\"SearchTemplate\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("SearchTemplate",ba); -RDebugUtils.currentLine=59244551; - //BA.debugLineNum = 59244551;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=59244552; - //BA.debugLineNum = 59244552;BA.debugLine="CustomListView1.sv.SetColorAndBorder(xui.Color_Tr"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._sv.SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=59244553; - //BA.debugLineNum = 59244553;BA.debugLine="CustomListView1.DefaultTextBackgroundColor = 0xFF"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextbackgroundcolor = ((int)0xff555555); -RDebugUtils.currentLine=59244554; - //BA.debugLineNum = 59244554;BA.debugLine="CustomListView1.DefaultTextColor = xui.Color_Whit"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._defaulttextcolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -RDebugUtils.currentLine=59244564; - //BA.debugLineNum = 59244564;BA.debugLine="ItemsCache.Initialize"; -__ref._itemscache /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=59244565; - //BA.debugLineNum = 59244565;BA.debugLine="prefixList.Initialize"; -__ref._prefixlist /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); -RDebugUtils.currentLine=59244566; - //BA.debugLineNum = 59244566;BA.debugLine="substringList.Initialize"; -__ref._substringlist /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); -RDebugUtils.currentLine=59244568; - //BA.debugLineNum = 59244568;BA.debugLine="IME.Initialize(\"\")"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .Initialize(""); -RDebugUtils.currentLine=59244569; - //BA.debugLineNum = 59244569;BA.debugLine="Dim jo As JavaObject = SearchField.TextField"; + //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)(__ref._searchfield /*reparto_izca.keymon.lat.b4xfloattextfield*/ ._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ (null).getObject())); -RDebugUtils.currentLine=59244570; - //BA.debugLineNum = 59244570;BA.debugLine="jo.RunMethod(\"setImeOptions\", Array(Bit.Or(335544"; +_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)))}); -RDebugUtils.currentLine=59244572; - //BA.debugLineNum = 59244572;BA.debugLine="End Sub"; + //BA.debugLineNum = 52;BA.debugLine="End Sub"; return ""; } -public String _resize(reparto_izca.keymon.lat.b4xsearchtemplate __ref,int _width,int _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "resize", true)) - {return ((String) Debug.delegate(ba, "resize", new Object[] {_width,_height}));} +public String _resize(int _width,int _height) throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _c = null; -RDebugUtils.currentLine=59310080; - //BA.debugLineNum = 59310080;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)"; -RDebugUtils.currentLine=59310081; - //BA.debugLineNum = 59310081;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=59310082; - //BA.debugLineNum = 59310082;BA.debugLine="Dim c As B4XView = CustomListView1.AsView"; + //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 = __ref._customlistview1 /*b4a.example3.customlistview*/ ._asview(); -RDebugUtils.currentLine=59310083; - //BA.debugLineNum = 59310083;BA.debugLine="c.SetLayoutAnimated(0, 0, c.Top, Width, Height -"; +_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())); -RDebugUtils.currentLine=59310084; - //BA.debugLineNum = 59310084;BA.debugLine="CustomListView1.Base_Resize(Width, c.Height)"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._base_resize(_width,_c.getHeight()); -RDebugUtils.currentLine=59310085; - //BA.debugLineNum = 59310085;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xsearchtemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "searchfield_enterpressed", true)) - {return ((String) Debug.delegate(ba, "searchfield_enterpressed", null));} -RDebugUtils.currentLine=59637760; - //BA.debugLineNum = 59637760;BA.debugLine="Private Sub SearchField_EnterPressed"; -RDebugUtils.currentLine=59637761; - //BA.debugLineNum = 59637761;BA.debugLine="If AllowUnlistedText Then"; -if (__ref._allowunlistedtext /*boolean*/ ) { -RDebugUtils.currentLine=59637762; - //BA.debugLineNum = 59637762;BA.debugLine="SelectedItem = LastTerm"; -__ref._selecteditem /*String*/ = __ref._lastterm /*String*/ ; -RDebugUtils.currentLine=59637763; - //BA.debugLineNum = 59637763;BA.debugLine="xDialog.Close(xui.DialogResponse_Positive)"; -__ref._xdialog /*reparto_izca.keymon.lat.b4xdialog*/ ._close /*boolean*/ (null,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive); - }else -{RDebugUtils.currentLine=59637764; - //BA.debugLineNum = 59637764;BA.debugLine="Else If CustomListView1.Size > 0 And LastTerm.Len"; -if (__ref._customlistview1 /*b4a.example3.customlistview*/ ._getsize()>0 && __ref._lastterm /*String*/ .length()>0) { -RDebugUtils.currentLine=59637765; - //BA.debugLineNum = 59637765;BA.debugLine="CustomListView1_ItemClick(0, CustomListView1.Get"; -__ref._customlistview1_itemclick /*String*/ (null,(int) (0),__ref._customlistview1 /*b4a.example3.customlistview*/ ._getvalue((int) (0))); - }} -; -RDebugUtils.currentLine=59637767; - //BA.debugLineNum = 59637767;BA.debugLine="End Sub"; -return ""; -} -public String _searchfield_textchanged(reparto_izca.keymon.lat.b4xsearchtemplate __ref,String _old,String _new) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "searchfield_textchanged", true)) - {return ((String) Debug.delegate(ba, "searchfield_textchanged", new Object[] {_old,_new}));} -RDebugUtils.currentLine=59506688; - //BA.debugLineNum = 59506688;BA.debugLine="Private Sub SearchField_TextChanged (Old As String"; -RDebugUtils.currentLine=59506689; - //BA.debugLineNum = 59506689;BA.debugLine="Update(New, False)"; -__ref._update /*String*/ (null,_new,__c.False); -RDebugUtils.currentLine=59506690; - //BA.debugLineNum = 59506690;BA.debugLine="End Sub"; -return ""; -} -public String _update(reparto_izca.keymon.lat.b4xsearchtemplate __ref,String _term,boolean _force) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "update", true)) - {return ((String) Debug.delegate(ba, "update", new Object[] {_term,_force}));} -int _i = 0; -anywheresoftware.b4a.objects.B4XViewWrapper _p = null; -String _str1 = ""; -String _str2 = ""; -RDebugUtils.currentLine=59572224; - //BA.debugLineNum = 59572224;BA.debugLine="Private Sub Update(Term As String, Force As Boolea"; -RDebugUtils.currentLine=59572225; - //BA.debugLineNum = 59572225;BA.debugLine="If Term = LastTerm And Force = False Then Return"; -if ((_term).equals(__ref._lastterm /*String*/ ) && _force==__c.False) { -if (true) return "";}; -RDebugUtils.currentLine=59572226; - //BA.debugLineNum = 59572226;BA.debugLine="LastTerm = Term"; -__ref._lastterm /*String*/ = _term; -RDebugUtils.currentLine=59572227; - //BA.debugLineNum = 59572227;BA.debugLine="If xui.IsB4J = False Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()==__c.False) { -RDebugUtils.currentLine=59572228; - //BA.debugLineNum = 59572228;BA.debugLine="For i = 0 To CustomListView1.Size - 1"; -{ -final int step4 = 1; -final int limit4 = (int) (__ref._customlistview1 /*b4a.example3.customlistview*/ ._getsize()-1); -_i = (int) (0) ; -for (;_i <= limit4 ;_i = _i + step4 ) { -RDebugUtils.currentLine=59572229; - //BA.debugLineNum = 59572229;BA.debugLine="Dim p As B4XView = CustomListView1.GetPanel(i)"; -_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._customlistview1 /*b4a.example3.customlistview*/ ._getpanel(_i); -RDebugUtils.currentLine=59572230; - //BA.debugLineNum = 59572230;BA.debugLine="p.RemoveViewFromParent"; -_p.RemoveViewFromParent(); -RDebugUtils.currentLine=59572231; - //BA.debugLineNum = 59572231;BA.debugLine="ItemsCache.Add(p)"; -__ref._itemscache /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_p.getObject())); - } -}; +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))); }; -RDebugUtils.currentLine=59572234; - //BA.debugLineNum = 59572234;BA.debugLine="CustomListView1.Clear"; -__ref._customlistview1 /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=59572236; - //BA.debugLineNum = 59572236;BA.debugLine="Dim str1, str2 As String"; -_str1 = ""; -_str2 = ""; -RDebugUtils.currentLine=59572237; - //BA.debugLineNum = 59572237;BA.debugLine="str1 = Term.ToLowerCase"; -_str1 = _term.toLowerCase(); -RDebugUtils.currentLine=59572238; - //BA.debugLineNum = 59572238;BA.debugLine="If Term = \"\" Then"; -if ((_term).equals("")) { -RDebugUtils.currentLine=59572239; - //BA.debugLineNum = 59572239;BA.debugLine="AddItemsToList(AllItems, str1)"; -__ref._additemstolist /*String*/ (null,__ref._allitems /*anywheresoftware.b4a.objects.collections.List*/ ,_str1); - }else { -RDebugUtils.currentLine=59572241; - //BA.debugLineNum = 59572241;BA.debugLine="If str1.Length > MAX_LIMIT Then"; -if (_str1.length()>__ref._max_limit /*int*/ ) { -RDebugUtils.currentLine=59572242; - //BA.debugLineNum = 59572242;BA.debugLine="str2 = str1.SubString2(0, MAX_LIMIT)"; -_str2 = _str1.substring((int) (0),__ref._max_limit /*int*/ ); - }else { -RDebugUtils.currentLine=59572244; - //BA.debugLineNum = 59572244;BA.debugLine="str2 = str1"; -_str2 = _str1; - }; -RDebugUtils.currentLine=59572246; - //BA.debugLineNum = 59572246;BA.debugLine="AddItemsToList(prefixList.Get(str2), str1)"; -__ref._additemstolist /*String*/ (null,(anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(__ref._prefixlist /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_str2)))),_str1); -RDebugUtils.currentLine=59572247; - //BA.debugLineNum = 59572247;BA.debugLine="AddItemsToList(substringList.Get(str2), str1)"; -__ref._additemstolist /*String*/ (null,(anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(__ref._substringlist /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_str2)))),_str1); - }; -RDebugUtils.currentLine=59572249; - //BA.debugLineNum = 59572249;BA.debugLine="End Sub"; + //BA.debugLineNum = 119;BA.debugLine="End Sub"; return ""; } -public String _setindex(reparto_izca.keymon.lat.b4xsearchtemplate __ref,Object _index) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "setindex", true)) - {return ((String) Debug.delegate(ba, "setindex", new Object[] {_index}));} +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; -RDebugUtils.currentLine=59899904; - //BA.debugLineNum = 59899904;BA.debugLine="Public Sub SetIndex(Index As Object)"; -RDebugUtils.currentLine=59899905; - //BA.debugLineNum = 59899905;BA.debugLine="Dim obj() As Object"; + //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; @@ -594,28 +296,19 @@ _obj[i0] = new Object(); } } ; -RDebugUtils.currentLine=59899906; - //BA.debugLineNum = 59899906;BA.debugLine="obj = Index"; + //BA.debugLineNum = 235;BA.debugLine="obj = Index"; _obj = (Object[])(_index); -RDebugUtils.currentLine=59899907; - //BA.debugLineNum = 59899907;BA.debugLine="prefixList = obj(0)"; -__ref._prefixlist /*anywheresoftware.b4a.objects.collections.Map*/ = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_obj[(int) (0)])); -RDebugUtils.currentLine=59899908; - //BA.debugLineNum = 59899908;BA.debugLine="substringList = obj(1)"; -__ref._substringlist /*anywheresoftware.b4a.objects.collections.Map*/ = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_obj[(int) (1)])); -RDebugUtils.currentLine=59899909; - //BA.debugLineNum = 59899909;BA.debugLine="Dim AllItems As List = obj(2)"; + //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)])); -RDebugUtils.currentLine=59899910; - //BA.debugLineNum = 59899910;BA.debugLine="End Sub"; + //BA.debugLineNum = 239;BA.debugLine="End Sub"; return ""; } -public Object _setitems(reparto_izca.keymon.lat.b4xsearchtemplate __ref,anywheresoftware.b4a.objects.collections.List _items) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsearchtemplate"; -if (Debug.shouldDelegate(ba, "setitems", true)) - {return ((Object) Debug.delegate(ba, "setitems", new Object[] {_items}));} +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; @@ -626,95 +319,69 @@ String _itemtolower = ""; int _start = 0; int _count = 0; String _str = ""; -RDebugUtils.currentLine=59834368; - //BA.debugLineNum = 59834368;BA.debugLine="Public Sub SetItems(Items As List) As Object"; -RDebugUtils.currentLine=59834369; - //BA.debugLineNum = 59834369;BA.debugLine="Dim startTime As Long"; + //BA.debugLineNum = 196;BA.debugLine="Public Sub SetItems(Items As List) As Object"; + //BA.debugLineNum = 197;BA.debugLine="Dim startTime As Long"; _starttime = 0L; -RDebugUtils.currentLine=59834370; - //BA.debugLineNum = 59834370;BA.debugLine="startTime = DateTime.Now"; + //BA.debugLineNum = 198;BA.debugLine="startTime = DateTime.Now"; _starttime = __c.DateTime.getNow(); -RDebugUtils.currentLine=59834371; - //BA.debugLineNum = 59834371;BA.debugLine="Dim noDuplicates As Map"; + //BA.debugLineNum = 199;BA.debugLine="Dim noDuplicates As Map"; _noduplicates = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=59834372; - //BA.debugLineNum = 59834372;BA.debugLine="noDuplicates.Initialize"; + //BA.debugLineNum = 200;BA.debugLine="noDuplicates.Initialize"; _noduplicates.Initialize(); -RDebugUtils.currentLine=59834373; - //BA.debugLineNum = 59834373;BA.debugLine="prefixList.Clear"; -__ref._prefixlist /*anywheresoftware.b4a.objects.collections.Map*/ .Clear(); -RDebugUtils.currentLine=59834374; - //BA.debugLineNum = 59834374;BA.debugLine="substringList.Clear"; -__ref._substringlist /*anywheresoftware.b4a.objects.collections.Map*/ .Clear(); -RDebugUtils.currentLine=59834375; - //BA.debugLineNum = 59834375;BA.debugLine="Dim m As Map"; + //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(); -RDebugUtils.currentLine=59834376; - //BA.debugLineNum = 59834376;BA.debugLine="Dim li As List"; + //BA.debugLineNum = 204;BA.debugLine="Dim li As List"; _li = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=59834377; - //BA.debugLineNum = 59834377;BA.debugLine="For i = 0 To Items.Size - 1"; + //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 ) { -RDebugUtils.currentLine=59834378; - //BA.debugLineNum = 59834378;BA.debugLine="Dim itemNotLower As String = Items.Get(i)"; + //BA.debugLineNum = 206;BA.debugLine="Dim itemNotLower As String = Items.Get(i)"; _itemnotlower = BA.ObjectToString(_items.Get(_i)); -RDebugUtils.currentLine=59834379; - //BA.debugLineNum = 59834379;BA.debugLine="Dim itemToLower As String = itemNotLower.ToLower"; + //BA.debugLineNum = 207;BA.debugLine="Dim itemToLower As String = itemNotLower.ToLower"; _itemtolower = _itemnotlower.toLowerCase(); -RDebugUtils.currentLine=59834380; - //BA.debugLineNum = 59834380;BA.debugLine="noDuplicates.Clear"; + //BA.debugLineNum = 208;BA.debugLine="noDuplicates.Clear"; _noduplicates.Clear(); -RDebugUtils.currentLine=59834381; - //BA.debugLineNum = 59834381;BA.debugLine="For start = 0 To IIf(PrefixOnly, 0, itemToLower."; + //BA.debugLineNum = 209;BA.debugLine="For start = 0 To IIf(PrefixOnly, 0, itemToLower."; { final int step13 = 1; -final int limit13 = (int)(BA.ObjectToNumber(((__ref._prefixonly /*boolean*/ ) ? ((Object)(0)) : ((Object)(_itemtolower.length()-1))))); +final int limit13 = (int)(BA.ObjectToNumber(((_prefixonly) ? ((Object)(0)) : ((Object)(_itemtolower.length()-1))))); _start = (int) (0) ; for (;_start <= limit13 ;_start = _start + step13 ) { -RDebugUtils.currentLine=59834382; - //BA.debugLineNum = 59834382;BA.debugLine="Dim count As Int = 1"; + //BA.debugLineNum = 210;BA.debugLine="Dim count As Int = 1"; _count = (int) (1); -RDebugUtils.currentLine=59834383; - //BA.debugLineNum = 59834383;BA.debugLine="Do While count <= MAX_LIMIT And start + count <"; -while (_count<=__ref._max_limit /*int*/ && _start+_count<=_itemtolower.length()) { -RDebugUtils.currentLine=59834384; - //BA.debugLineNum = 59834384;BA.debugLine="Dim str As String = itemToLower.SubString2(sta"; + //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)); -RDebugUtils.currentLine=59834385; - //BA.debugLineNum = 59834385;BA.debugLine="If noDuplicates.ContainsKey(str) = False Then"; + //BA.debugLineNum = 213;BA.debugLine="If noDuplicates.ContainsKey(str) = False Then"; if (_noduplicates.ContainsKey((Object)(_str))==__c.False) { -RDebugUtils.currentLine=59834386; - //BA.debugLineNum = 59834386;BA.debugLine="noDuplicates.Put(str, \"\")"; + //BA.debugLineNum = 214;BA.debugLine="noDuplicates.Put(str, \"\")"; _noduplicates.Put((Object)(_str),(Object)("")); -RDebugUtils.currentLine=59834387; - //BA.debugLineNum = 59834387;BA.debugLine="If start = 0 Then m = prefixList Else m = sub"; + //BA.debugLineNum = 215;BA.debugLine="If start = 0 Then m = prefixList Else m = sub"; if (_start==0) { -_m = __ref._prefixlist /*anywheresoftware.b4a.objects.collections.Map*/ ;} +_m = _prefixlist;} else { -_m = __ref._substringlist /*anywheresoftware.b4a.objects.collections.Map*/ ;}; -RDebugUtils.currentLine=59834388; - //BA.debugLineNum = 59834388;BA.debugLine="li = m.Get(str)"; +_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)))); -RDebugUtils.currentLine=59834389; - //BA.debugLineNum = 59834389;BA.debugLine="If li.IsInitialized = False Then"; + //BA.debugLineNum = 217;BA.debugLine="If li.IsInitialized = False Then"; if (_li.IsInitialized()==__c.False) { -RDebugUtils.currentLine=59834390; - //BA.debugLineNum = 59834390;BA.debugLine="li.Initialize"; + //BA.debugLineNum = 218;BA.debugLine="li.Initialize"; _li.Initialize(); -RDebugUtils.currentLine=59834391; - //BA.debugLineNum = 59834391;BA.debugLine="m.Put(str, li)"; + //BA.debugLineNum = 219;BA.debugLine="m.Put(str, li)"; _m.Put((Object)(_str),(Object)(_li.getObject())); }; -RDebugUtils.currentLine=59834393; - //BA.debugLineNum = 59834393;BA.debugLine="li.Add(itemNotLower)"; + //BA.debugLineNum = 221;BA.debugLine="li.Add(itemNotLower)"; _li.Add((Object)(_itemnotlower)); }; -RDebugUtils.currentLine=59834395; - //BA.debugLineNum = 59834395;BA.debugLine="count = count + 1"; + //BA.debugLineNum = 223;BA.debugLine="count = count + 1"; _count = (int) (_count+1); } ; @@ -722,28 +389,136 @@ _count = (int) (_count+1); }; } }; -RDebugUtils.currentLine=59834399; - //BA.debugLineNum = 59834399;BA.debugLine="Log(\"Index time: \" & (DateTime.Now - startTime) &"; -__c.LogImpl("959834399","Index time: "+BA.NumberToString((__c.DateTime.getNow()-_starttime))+" ms ("+BA.NumberToString(_items.getSize())+" Items)",0); -RDebugUtils.currentLine=59834400; - //BA.debugLineNum = 59834400;BA.debugLine="AllItems = Items"; -__ref._allitems /*anywheresoftware.b4a.objects.collections.List*/ = _items; -RDebugUtils.currentLine=59834401; - //BA.debugLineNum = 59834401;BA.debugLine="Return Array(prefixList, substringList, AllItems)"; -if (true) return (Object)(new Object[]{(Object)(__ref._prefixlist /*anywheresoftware.b4a.objects.collections.Map*/ .getObject()),(Object)(__ref._substringlist /*anywheresoftware.b4a.objects.collections.Map*/ .getObject()),(Object)(__ref._allitems /*anywheresoftware.b4a.objects.collections.List*/ .getObject())}); -RDebugUtils.currentLine=59834402; - //BA.debugLineNum = 59834402;BA.debugLine="End Sub"; + //BA.debugLineNum = 227;BA.debugLine="Log(\"Index time: \" & (DateTime.Now - startTime) &"; +__c.LogImpl("968354079","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 RemoveWarning() throws Exception{ - anywheresoftware.b4a.shell.Shell s = anywheresoftware.b4a.shell.Shell.INSTANCE; - java.lang.reflect.Field f = s.getClass().getDeclaredField("errorMessagesForSyncEvents"); - f.setAccessible(true); - java.util.HashSet h = (java.util.HashSet)f.get(s); - if (h == null) { - h = new java.util.HashSet(); - f.set(s, h); - } - h.add("tf_focuschanged"); +public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ +ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog); +rsub.resume(ba, null); +} +public static class ResumableSub_Show extends BA.ResumableSub { +public ResumableSub_Show(reparto_izca.keymon.lat.b4xsearchtemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) { +this.parent = parent; +this._dialog = _dialog; +} +reparto_izca.keymon.lat.b4xsearchtemplate parent; +reparto_izca.keymon.lat.b4xdialog _dialog; + +@Override +public void resume(BA ba, Object[] result) throws Exception{ + + while (true) { + switch (state) { + case -1: +return; + +case 0: +//C +this.state = -1; + //BA.debugLineNum = 66;BA.debugLine="xDialog = Dialog"; +parent._xdialog = _dialog; + //BA.debugLineNum = 67;BA.debugLine="xDialog.PutAtTop = xui.IsB4A Or xui.IsB4i"; +parent._xdialog._putattop /*boolean*/ = parent._xui.getIsB4A() || parent._xui.getIsB4i(); + //BA.debugLineNum = 68;BA.debugLine="CustomListView1.AsView.Color = xui.Color_Transpar"; +parent._customlistview1._asview().setColor(parent._xui.Color_Transparent); + //BA.debugLineNum = 69;BA.debugLine="CustomListView1.sv.Color = xui.Color_Transparent"; +parent._customlistview1._sv.setColor(parent._xui.Color_Transparent); + //BA.debugLineNum = 70;BA.debugLine="mBase.Color = xui.Color_Transparent"; +parent._mbase.setColor(parent._xui.Color_Transparent); + //BA.debugLineNum = 71;BA.debugLine="Sleep(20)"; +parent.__c.Sleep(ba,this,(int) (20)); +this.state = 1; +return; +case 1: +//C +this.state = -1; +; + //BA.debugLineNum = 72;BA.debugLine="Update(\"\", True)"; +parent._update("",parent.__c.True); + //BA.debugLineNum = 73;BA.debugLine="CustomListView1.JumpToItem(0)"; +parent._customlistview1._jumptoitem((int) (0)); + //BA.debugLineNum = 74;BA.debugLine="SearchField.Text = \"\""; +parent._searchfield._settext /*String*/ (""); + //BA.debugLineNum = 75;BA.debugLine="SearchField.TextField.RequestFocus"; +parent._searchfield._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ().RequestFocus(); + //BA.debugLineNum = 77;BA.debugLine="IME.ShowKeyboard(SearchField.TextField)"; +parent._ime.ShowKeyboard((android.view.View)(parent._searchfield._gettextfield /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ().getObject())); + //BA.debugLineNum = 79;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _update(String _term,boolean _force) throws Exception{ +int _i = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; +String _str1 = ""; +String _str2 = ""; + //BA.debugLineNum = 85;BA.debugLine="Private Sub Update(Term As String, Force As Boolea"; + //BA.debugLineNum = 86;BA.debugLine="If Term = LastTerm And Force = False Then Return"; +if ((_term).equals(_lastterm) && _force==__c.False) { +if (true) return "";}; + //BA.debugLineNum = 87;BA.debugLine="LastTerm = Term"; +_lastterm = _term; + //BA.debugLineNum = 88;BA.debugLine="If xui.IsB4J = False Then"; +if (_xui.getIsB4J()==__c.False) { + //BA.debugLineNum = 89;BA.debugLine="For i = 0 To CustomListView1.Size - 1"; +{ +final int step4 = 1; +final int limit4 = (int) (_customlistview1._getsize()-1); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 90;BA.debugLine="Dim p As B4XView = CustomListView1.GetPanel(i)"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _customlistview1._getpanel(_i); + //BA.debugLineNum = 91;BA.debugLine="p.RemoveViewFromParent"; +_p.RemoveViewFromParent(); + //BA.debugLineNum = 92;BA.debugLine="ItemsCache.Add(p)"; +_itemscache.Add((Object)(_p.getObject())); + } +}; + }; + //BA.debugLineNum = 95;BA.debugLine="CustomListView1.Clear"; +_customlistview1._clear(); + //BA.debugLineNum = 97;BA.debugLine="Dim str1, str2 As String"; +_str1 = ""; +_str2 = ""; + //BA.debugLineNum = 98;BA.debugLine="str1 = Term.ToLowerCase"; +_str1 = _term.toLowerCase(); + //BA.debugLineNum = 99;BA.debugLine="If Term = \"\" Then"; +if ((_term).equals("")) { + //BA.debugLineNum = 100;BA.debugLine="AddItemsToList(AllItems, str1)"; +_additemstolist(_allitems,_str1); + }else { + //BA.debugLineNum = 102;BA.debugLine="If str1.Length > MAX_LIMIT Then"; +if (_str1.length()>_max_limit) { + //BA.debugLineNum = 103;BA.debugLine="str2 = str1.SubString2(0, MAX_LIMIT)"; +_str2 = _str1.substring((int) (0),_max_limit); + }else { + //BA.debugLineNum = 105;BA.debugLine="str2 = str1"; +_str2 = _str1; + }; + //BA.debugLineNum = 107;BA.debugLine="AddItemsToList(prefixList.Get(str2), str1)"; +_additemstolist((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_prefixlist.Get((Object)(_str2)))),_str1); + //BA.debugLineNum = 108;BA.debugLine="AddItemsToList(substringList.Get(str2), str1)"; +_additemstolist((anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_substringlist.Get((Object)(_str2)))),_str1); + }; + //BA.debugLineNum = 110;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "DIALOGCLOSED")) + return _dialogclosed(((Number)args[0]).intValue()); +if (BA.fastSubCompare(sub, "GETPANEL")) + return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xseekbar.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xseekbar.java index 22eeb70..d52a2de 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xseekbar.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xseekbar.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xseekbar"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xseekbar"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xseekbar extends B4AClass.ImplB4AClass implements BA.SubDelegator ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -66,380 +59,241 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.b4xseekbar __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xseekbar"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=60227584; - //BA.debugLineNum = 60227584;BA.debugLine="Public Sub Base_Resize (Width As Double, Height As"; -RDebugUtils.currentLine=60227585; - //BA.debugLineNum = 60227585;BA.debugLine="cvs.Resize(Width, Height)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Resize((float) (_width),(float) (_height)); -RDebugUtils.currentLine=60227586; - //BA.debugLineNum = 60227586;BA.debugLine="TouchPanel.SetLayoutAnimated(0, 0, 0, Width, Heig"; -__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); -RDebugUtils.currentLine=60227587; - //BA.debugLineNum = 60227587;BA.debugLine="Vertical = mBase.Height > mBase.Width"; -__ref._vertical /*boolean*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()>__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(); -RDebugUtils.currentLine=60227588; - //BA.debugLineNum = 60227588;BA.debugLine="size = Max(mBase.Height, mBase.Width) - 2 * Radiu"; -__ref._size /*int*/ = (int) (__c.Max(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth())-2*__ref._radius2 /*int*/ ); -RDebugUtils.currentLine=60227589; - //BA.debugLineNum = 60227589;BA.debugLine="Update"; -__ref._update /*String*/ (null); -RDebugUtils.currentLine=60227590; - //BA.debugLineNum = 60227590;BA.debugLine="End Sub"; +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 _update(reparto_izca.keymon.lat.b4xseekbar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xseekbar"; -if (Debug.shouldDelegate(ba, "update", true)) - {return ((String) Debug.delegate(ba, "update", null));} -int _s1 = 0; -int _y = 0; -int _x = 0; -RDebugUtils.currentLine=60293120; - //BA.debugLineNum = 60293120;BA.debugLine="Public Sub Update"; -RDebugUtils.currentLine=60293122; - //BA.debugLineNum = 60293122;BA.debugLine="cvs.ClearRect(cvs.TargetRect)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=60293123; - //BA.debugLineNum = 60293123;BA.debugLine="If size > 0 Then"; -if (__ref._size /*int*/ >0) { -RDebugUtils.currentLine=60293124; - //BA.debugLineNum = 60293124;BA.debugLine="If Vertical = False Then"; -if (__ref._vertical /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=60293125; - //BA.debugLineNum = 60293125;BA.debugLine="Dim s1 As Int = Radius2 + (mValue - MinValue) /"; -_s1 = (int) (__ref._radius2 /*int*/ +(__ref._mvalue /*int*/ -__ref._minvalue /*int*/ )/(double)(__ref._maxvalue /*int*/ -__ref._minvalue /*int*/ )*__ref._size /*int*/ ); -RDebugUtils.currentLine=60293126; - //BA.debugLineNum = 60293126;BA.debugLine="Dim y As Int = mBase.Height / 2"; -_y = (int) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()/(double)2); -RDebugUtils.currentLine=60293127; - //BA.debugLineNum = 60293127;BA.debugLine="cvs.DrawLine(Radius2, y, s1, y, Color1, Size1)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawLine((float) (__ref._radius2 /*int*/ ),(float) (_y),(float) (_s1),(float) (_y),__ref._color1 /*int*/ ,(float) (__ref._size1 /*int*/ )); -RDebugUtils.currentLine=60293128; - //BA.debugLineNum = 60293128;BA.debugLine="cvs.DrawLine(s1, y, mBase.Width - Radius2, y, C"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawLine((float) (_s1),(float) (_y),(float) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-__ref._radius2 /*int*/ ),(float) (_y),__ref._color2 /*int*/ ,(float) (__ref._size2 /*int*/ )); -RDebugUtils.currentLine=60293129; - //BA.debugLineNum = 60293129;BA.debugLine="cvs.DrawCircle(s1, y, Radius1, Color1, True, 0)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle((float) (_s1),(float) (_y),(float) (__ref._radius1 /*int*/ ),__ref._color1 /*int*/ ,__c.True,(float) (0)); -RDebugUtils.currentLine=60293130; - //BA.debugLineNum = 60293130;BA.debugLine="If Pressed Then"; -if (__ref._pressed /*boolean*/ ) { -RDebugUtils.currentLine=60293131; - //BA.debugLineNum = 60293131;BA.debugLine="cvs.DrawCircle(s1, y, Radius2, ThumbColor, Tru"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle((float) (_s1),(float) (_y),(float) (__ref._radius2 /*int*/ ),__ref._thumbcolor /*int*/ ,__c.True,(float) (0)); - }; - }else { -RDebugUtils.currentLine=60293134; - //BA.debugLineNum = 60293134;BA.debugLine="Dim s1 As Int = Radius2 + (MaxValue - mValue) /"; -_s1 = (int) (__ref._radius2 /*int*/ +(__ref._maxvalue /*int*/ -__ref._mvalue /*int*/ )/(double)(__ref._maxvalue /*int*/ -__ref._minvalue /*int*/ )*__ref._size /*int*/ ); -RDebugUtils.currentLine=60293135; - //BA.debugLineNum = 60293135;BA.debugLine="Dim x As Int = mBase.Width / 2"; -_x = (int) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()/(double)2); -RDebugUtils.currentLine=60293136; - //BA.debugLineNum = 60293136;BA.debugLine="cvs.DrawLine(x, Radius2, x, s1, Color2, Size2)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawLine((float) (_x),(float) (__ref._radius2 /*int*/ ),(float) (_x),(float) (_s1),__ref._color2 /*int*/ ,(float) (__ref._size2 /*int*/ )); -RDebugUtils.currentLine=60293137; - //BA.debugLineNum = 60293137;BA.debugLine="cvs.DrawLine(x, s1, x, mBase.Height - Radius2,"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawLine((float) (_x),(float) (_s1),(float) (_x),(float) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-__ref._radius2 /*int*/ ),__ref._color1 /*int*/ ,(float) (__ref._size1 /*int*/ )); -RDebugUtils.currentLine=60293138; - //BA.debugLineNum = 60293138;BA.debugLine="cvs.DrawCircle(x, s1, Radius1, Color1, True, 0)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle((float) (_x),(float) (_s1),(float) (__ref._radius1 /*int*/ ),__ref._color1 /*int*/ ,__c.True,(float) (0)); -RDebugUtils.currentLine=60293139; - //BA.debugLineNum = 60293139;BA.debugLine="If Pressed Then"; -if (__ref._pressed /*boolean*/ ) { -RDebugUtils.currentLine=60293140; - //BA.debugLineNum = 60293140;BA.debugLine="cvs.DrawCircle(x, s1, Radius2, ThumbColor, Tru"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle((float) (_x),(float) (_s1),(float) (__ref._radius2 /*int*/ ),__ref._thumbcolor /*int*/ ,__c.True,(float) (0)); - }; - }; - }; -RDebugUtils.currentLine=60293144; - //BA.debugLineNum = 60293144;BA.debugLine="cvs.Invalidate"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=60293145; - //BA.debugLineNum = 60293145;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.b4xseekbar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xseekbar"; -RDebugUtils.currentLine=60030976; - //BA.debugLineNum = 60030976;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=60030977; - //BA.debugLineNum = 60030977;BA.debugLine="Private mEventName As String 'ignore"; +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 = ""; -RDebugUtils.currentLine=60030978; - //BA.debugLineNum = 60030978;BA.debugLine="Private mCallBack As Object 'ignore"; + //BA.debugLineNum = 13;BA.debugLine="Private mCallBack As Object 'ignore"; _mcallback = new Object(); -RDebugUtils.currentLine=60030979; - //BA.debugLineNum = 60030979;BA.debugLine="Public mBase As B4XView 'ignore"; + //BA.debugLineNum = 14;BA.debugLine="Public mBase As B4XView 'ignore"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=60030980; - //BA.debugLineNum = 60030980;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 15;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=60030981; - //BA.debugLineNum = 60030981;BA.debugLine="Public Color1, Color2, ThumbColor As Int"; + //BA.debugLineNum = 16;BA.debugLine="Public Color1, Color2, ThumbColor As Int"; _color1 = 0; _color2 = 0; _thumbcolor = 0; -RDebugUtils.currentLine=60030982; - //BA.debugLineNum = 60030982;BA.debugLine="Private cvs As B4XCanvas"; + //BA.debugLineNum = 17;BA.debugLine="Private cvs As B4XCanvas"; _cvs = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=60030983; - //BA.debugLineNum = 60030983;BA.debugLine="Public Tag As Object"; + //BA.debugLineNum = 18;BA.debugLine="Public Tag As Object"; _tag = new Object(); -RDebugUtils.currentLine=60030984; - //BA.debugLineNum = 60030984;BA.debugLine="Private TouchPanel As B4XView"; + //BA.debugLineNum = 19;BA.debugLine="Private TouchPanel As B4XView"; _touchpanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=60030985; - //BA.debugLineNum = 60030985;BA.debugLine="Private mValue As Int"; + //BA.debugLineNum = 20;BA.debugLine="Private mValue As Int"; _mvalue = 0; -RDebugUtils.currentLine=60030986; - //BA.debugLineNum = 60030986;BA.debugLine="Public MinValue, MaxValue As Int"; + //BA.debugLineNum = 21;BA.debugLine="Public MinValue, MaxValue As Int"; _minvalue = 0; _maxvalue = 0; -RDebugUtils.currentLine=60030987; - //BA.debugLineNum = 60030987;BA.debugLine="Public Interval As Int = 1"; + //BA.debugLineNum = 22;BA.debugLine="Public Interval As Int = 1"; _interval = (int) (1); -RDebugUtils.currentLine=60030988; - //BA.debugLineNum = 60030988;BA.debugLine="Private Vertical As Boolean"; + //BA.debugLineNum = 23;BA.debugLine="Private Vertical As Boolean"; _vertical = false; -RDebugUtils.currentLine=60030989; - //BA.debugLineNum = 60030989;BA.debugLine="Public Size1 = 4dip, Size2 = 2dip, Radius1 = 6dip"; + //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)); -RDebugUtils.currentLine=60030990; - //BA.debugLineNum = 60030990;BA.debugLine="Private Pressed As Boolean"; + //BA.debugLineNum = 25;BA.debugLine="Private Pressed As Boolean"; _pressed = false; -RDebugUtils.currentLine=60030991; - //BA.debugLineNum = 60030991;BA.debugLine="Private size As Int"; + //BA.debugLineNum = 26;BA.debugLine="Private size As Int"; _size = 0; -RDebugUtils.currentLine=60030992; - //BA.debugLineNum = 60030992;BA.debugLine="End Sub"; + //BA.debugLineNum = 27;BA.debugLine="End Sub"; return ""; } -public String _designercreateview(reparto_izca.keymon.lat.b4xseekbar __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xseekbar"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} -RDebugUtils.currentLine=60162048; - //BA.debugLineNum = 60162048;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=60162049; - //BA.debugLineNum = 60162049;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=60162050; - //BA.debugLineNum = 60162050;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=60162050; - //BA.debugLineNum = 60162050;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=60162051; - //BA.debugLineNum = 60162051;BA.debugLine="Color1 = xui.PaintOrColorToColor(Props.Get(\"Color"; -__ref._color1 /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("Color1"))); -RDebugUtils.currentLine=60162052; - //BA.debugLineNum = 60162052;BA.debugLine="Color2 = xui.PaintOrColorToColor(Props.Get(\"Color"; -__ref._color2 /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("Color2"))); -RDebugUtils.currentLine=60162053; - //BA.debugLineNum = 60162053;BA.debugLine="ThumbColor = xui.PaintOrColorToColor(Props.Get(\"T"; -__ref._thumbcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("ThumbColor"))); -RDebugUtils.currentLine=60162054; - //BA.debugLineNum = 60162054;BA.debugLine="Interval = Max(1, Props.GetDefault(\"Interval\", 1)"; -__ref._interval /*int*/ = (int) (__c.Max(1,(double)(BA.ObjectToNumber(_props.GetDefault((Object)("Interval"),(Object)(1)))))); -RDebugUtils.currentLine=60162055; - //BA.debugLineNum = 60162055;BA.debugLine="MinValue = Props.Get(\"Min\")"; -__ref._minvalue /*int*/ = (int)(BA.ObjectToNumber(_props.Get((Object)("Min")))); -RDebugUtils.currentLine=60162056; - //BA.debugLineNum = 60162056;BA.debugLine="MaxValue = Props.Get(\"Max\")"; -__ref._maxvalue /*int*/ = (int)(BA.ObjectToNumber(_props.Get((Object)("Max")))); -RDebugUtils.currentLine=60162057; - //BA.debugLineNum = 60162057;BA.debugLine="mValue = Max(MinValue, Min(MaxValue, Props.Get(\"V"; -__ref._mvalue /*int*/ = (int) (__c.Max(__ref._minvalue /*int*/ ,__c.Min(__ref._maxvalue /*int*/ ,(double)(BA.ObjectToNumber(_props.Get((Object)("Value"))))))); -RDebugUtils.currentLine=60162058; - //BA.debugLineNum = 60162058;BA.debugLine="cvs.Initialize(mBase)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=60162059; - //BA.debugLineNum = 60162059;BA.debugLine="TouchPanel = xui.CreatePanel(\"TouchPanel\")"; -__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"TouchPanel"); -RDebugUtils.currentLine=60162060; - //BA.debugLineNum = 60162060;BA.debugLine="mBase.AddView(TouchPanel, 0, 0, mBase.Width, mBas"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=60162061; - //BA.debugLineNum = 60162061;BA.debugLine="If xui.IsB4A Or xui.IsB4i Then Radius2 = 20dip"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A() || __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i()) { -__ref._radius2 /*int*/ = __c.DipToCurrent((int) (20));}; -RDebugUtils.currentLine=60162062; - //BA.debugLineNum = 60162062;BA.debugLine="If xui.IsB4A Then Base_Resize(mBase.Width, mBase."; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A()) { -__ref._base_resize /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight());}; -RDebugUtils.currentLine=60162063; - //BA.debugLineNum = 60162063;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xseekbar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xseekbar"; -if (Debug.shouldDelegate(ba, "getvalue", true)) - {return ((Integer) Debug.delegate(ba, "getvalue", null));} -RDebugUtils.currentLine=60620800; - //BA.debugLineNum = 60620800;BA.debugLine="Public Sub getValue As Int"; -RDebugUtils.currentLine=60620801; - //BA.debugLineNum = 60620801;BA.debugLine="Return mValue"; -if (true) return __ref._mvalue /*int*/ ; -RDebugUtils.currentLine=60620802; - //BA.debugLineNum = 60620802;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xseekbar __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xseekbar"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=60096512; - //BA.debugLineNum = 60096512;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=60096513; - //BA.debugLineNum = 60096513;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=60096514; - //BA.debugLineNum = 60096514;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=60096515; - //BA.debugLineNum = 60096515;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xseekbar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xseekbar"; -if (Debug.shouldDelegate(ba, "raisetouchstateevent", true)) - {return ((String) Debug.delegate(ba, "raisetouchstateevent", null));} -RDebugUtils.currentLine=60424192; - //BA.debugLineNum = 60424192;BA.debugLine="Private Sub RaiseTouchStateEvent"; -RDebugUtils.currentLine=60424193; - //BA.debugLineNum = 60424193;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_TouchS"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_TouchStateChanged",(int) (1))) { -RDebugUtils.currentLine=60424194; - //BA.debugLineNum = 60424194;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_TouchS"; -__c.CallSubDelayed2(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_TouchStateChanged",(Object)(__ref._pressed /*boolean*/ )); +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)); }; -RDebugUtils.currentLine=60424196; - //BA.debugLineNum = 60424196;BA.debugLine="End Sub"; + //BA.debugLineNum = 106;BA.debugLine="End Sub"; return ""; } -public String _setvalue(reparto_izca.keymon.lat.b4xseekbar __ref,int _v) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xseekbar"; -if (Debug.shouldDelegate(ba, "setvalue", true)) - {return ((String) Debug.delegate(ba, "setvalue", new Object[] {_v}));} -RDebugUtils.currentLine=60555264; - //BA.debugLineNum = 60555264;BA.debugLine="Public Sub setValue(v As Int)"; -RDebugUtils.currentLine=60555265; - //BA.debugLineNum = 60555265;BA.debugLine="mValue = Max(MinValue, Min(MaxValue, v))"; -__ref._mvalue /*int*/ = (int) (__c.Max(__ref._minvalue /*int*/ ,__c.Min(__ref._maxvalue /*int*/ ,_v))); -RDebugUtils.currentLine=60555266; - //BA.debugLineNum = 60555266;BA.debugLine="Update"; -__ref._update /*String*/ (null); -RDebugUtils.currentLine=60555267; - //BA.debugLineNum = 60555267;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xseekbar __ref,int _x,int _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xseekbar"; -if (Debug.shouldDelegate(ba, "setvaluebasedontouch", true)) - {return ((String) Debug.delegate(ba, "setvaluebasedontouch", new Object[] {_x,_y}));} +public String _setvaluebasedontouch(int _x,int _y) throws Exception{ int _v = 0; int _newvalue = 0; -RDebugUtils.currentLine=60489728; - //BA.debugLineNum = 60489728;BA.debugLine="Private Sub SetValueBasedOnTouch(x As Int, y As In"; -RDebugUtils.currentLine=60489729; - //BA.debugLineNum = 60489729;BA.debugLine="Dim v As Int"; + //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; -RDebugUtils.currentLine=60489730; - //BA.debugLineNum = 60489730;BA.debugLine="If Vertical Then"; -if (__ref._vertical /*boolean*/ ) { -RDebugUtils.currentLine=60489731; - //BA.debugLineNum = 60489731;BA.debugLine="v = (mBase.Height - Radius2 - y) / size * (MaxVa"; -_v = (int) ((__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-__ref._radius2 /*int*/ -_y)/(double)__ref._size /*int*/ *(__ref._maxvalue /*int*/ -__ref._minvalue /*int*/ )+__ref._minvalue /*int*/ ); + //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 { -RDebugUtils.currentLine=60489733; - //BA.debugLineNum = 60489733;BA.debugLine="v = (x - Radius2) / size * (MaxValue - MinValue)"; -_v = (int) ((_x-__ref._radius2 /*int*/ )/(double)__ref._size /*int*/ *(__ref._maxvalue /*int*/ -__ref._minvalue /*int*/ )+__ref._minvalue /*int*/ ); + //BA.debugLineNum = 113;BA.debugLine="v = (x - Radius2) / size * (MaxValue - MinValue)"; +_v = (int) ((_x-_radius2)/(double)_size*(_maxvalue-_minvalue)+_minvalue); }; -RDebugUtils.currentLine=60489735; - //BA.debugLineNum = 60489735;BA.debugLine="v = Round (v / Interval) * Interval"; -_v = (int) (__c.Round(_v/(double)__ref._interval /*int*/ )*__ref._interval /*int*/ ); -RDebugUtils.currentLine=60489736; - //BA.debugLineNum = 60489736;BA.debugLine="Dim NewValue As Int = Max(MinValue, Min(MaxValue,"; -_newvalue = (int) (__c.Max(__ref._minvalue /*int*/ ,__c.Min(__ref._maxvalue /*int*/ ,_v))); -RDebugUtils.currentLine=60489737; - //BA.debugLineNum = 60489737;BA.debugLine="If NewValue <> mValue Then"; -if (_newvalue!=__ref._mvalue /*int*/ ) { -RDebugUtils.currentLine=60489738; - //BA.debugLineNum = 60489738;BA.debugLine="mValue = NewValue"; -__ref._mvalue /*int*/ = _newvalue; -RDebugUtils.currentLine=60489739; - //BA.debugLineNum = 60489739;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Value"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_ValueChanged",(int) (1))) { -RDebugUtils.currentLine=60489740; - //BA.debugLineNum = 60489740;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_Value"; -__c.CallSubDelayed2(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_ValueChanged",(Object)(__ref._mvalue /*int*/ )); + //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)); }; }; -RDebugUtils.currentLine=60489743; - //BA.debugLineNum = 60489743;BA.debugLine="End Sub"; + //BA.debugLineNum = 123;BA.debugLine="End Sub"; return ""; } -public String _touchpanel_touch(reparto_izca.keymon.lat.b4xseekbar __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xseekbar"; -if (Debug.shouldDelegate(ba, "touchpanel_touch", true)) - {return ((String) Debug.delegate(ba, "touchpanel_touch", new Object[] {_action,_x,_y}));} -RDebugUtils.currentLine=60358656; - //BA.debugLineNum = 60358656;BA.debugLine="Private Sub TouchPanel_Touch (Action As Int, X As"; -RDebugUtils.currentLine=60358657; - //BA.debugLineNum = 60358657;BA.debugLine="If Action = TouchPanel.TOUCH_ACTION_DOWN Then"; -if (_action==__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_DOWN) { -RDebugUtils.currentLine=60358658; - //BA.debugLineNum = 60358658;BA.debugLine="Pressed = True"; -__ref._pressed /*boolean*/ = __c.True; -RDebugUtils.currentLine=60358659; - //BA.debugLineNum = 60358659;BA.debugLine="RaiseTouchStateEvent"; -__ref._raisetouchstateevent /*String*/ (null); -RDebugUtils.currentLine=60358660; - //BA.debugLineNum = 60358660;BA.debugLine="SetValueBasedOnTouch(X, Y)"; -__ref._setvaluebasedontouch /*String*/ (null,(int) (_x),(int) (_y)); - }else -{RDebugUtils.currentLine=60358661; - //BA.debugLineNum = 60358661;BA.debugLine="Else If Action = TouchPanel.TOUCH_ACTION_MOVE The"; -if (_action==__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_MOVE) { -RDebugUtils.currentLine=60358662; - //BA.debugLineNum = 60358662;BA.debugLine="SetValueBasedOnTouch(X, Y)"; -__ref._setvaluebasedontouch /*String*/ (null,(int) (_x),(int) (_y)); - }else -{RDebugUtils.currentLine=60358663; - //BA.debugLineNum = 60358663;BA.debugLine="Else If Action = TouchPanel.TOUCH_ACTION_UP Then"; -if (_action==__ref._touchpanel /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_UP) { -RDebugUtils.currentLine=60358664; - //BA.debugLineNum = 60358664;BA.debugLine="Pressed = False"; -__ref._pressed /*boolean*/ = __c.False; -RDebugUtils.currentLine=60358665; - //BA.debugLineNum = 60358665;BA.debugLine="RaiseTouchStateEvent"; -__ref._raisetouchstateevent /*String*/ (null); - }}} -; -RDebugUtils.currentLine=60358667; - //BA.debugLineNum = 60358667;BA.debugLine="Update"; -__ref._update /*String*/ (null); -RDebugUtils.currentLine=60358668; - //BA.debugLineNum = 60358668;BA.debugLine="End Sub"; +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 ""; } -} \ No newline at end of file +public String _update() throws Exception{ +int _s1 = 0; +int _y = 0; +int _x = 0; + //BA.debugLineNum = 61;BA.debugLine="Public Sub Update"; + //BA.debugLineNum = 63;BA.debugLine="cvs.ClearRect(cvs.TargetRect)"; +_cvs.ClearRect(_cvs.getTargetRect()); + //BA.debugLineNum = 64;BA.debugLine="If size > 0 Then"; +if (_size>0) { + //BA.debugLineNum = 65;BA.debugLine="If Vertical = False Then"; +if (_vertical==__c.False) { + //BA.debugLineNum = 66;BA.debugLine="Dim s1 As Int = Radius2 + (mValue - MinValue) /"; +_s1 = (int) (_radius2+(_mvalue-_minvalue)/(double)(_maxvalue-_minvalue)*_size); + //BA.debugLineNum = 67;BA.debugLine="Dim y As Int = mBase.Height / 2"; +_y = (int) (_mbase.getHeight()/(double)2); + //BA.debugLineNum = 68;BA.debugLine="cvs.DrawLine(Radius2, y, s1, y, Color1, Size1)"; +_cvs.DrawLine((float) (_radius2),(float) (_y),(float) (_s1),(float) (_y),_color1,(float) (_size1)); + //BA.debugLineNum = 69;BA.debugLine="cvs.DrawLine(s1, y, mBase.Width - Radius2, y, C"; +_cvs.DrawLine((float) (_s1),(float) (_y),(float) (_mbase.getWidth()-_radius2),(float) (_y),_color2,(float) (_size2)); + //BA.debugLineNum = 70;BA.debugLine="cvs.DrawCircle(s1, y, Radius1, Color1, True, 0)"; +_cvs.DrawCircle((float) (_s1),(float) (_y),(float) (_radius1),_color1,__c.True,(float) (0)); + //BA.debugLineNum = 71;BA.debugLine="If Pressed Then"; +if (_pressed) { + //BA.debugLineNum = 72;BA.debugLine="cvs.DrawCircle(s1, y, Radius2, ThumbColor, Tru"; +_cvs.DrawCircle((float) (_s1),(float) (_y),(float) (_radius2),_thumbcolor,__c.True,(float) (0)); + }; + }else { + //BA.debugLineNum = 75;BA.debugLine="Dim s1 As Int = Radius2 + (MaxValue - mValue) /"; +_s1 = (int) (_radius2+(_maxvalue-_mvalue)/(double)(_maxvalue-_minvalue)*_size); + //BA.debugLineNum = 76;BA.debugLine="Dim x As Int = mBase.Width / 2"; +_x = (int) (_mbase.getWidth()/(double)2); + //BA.debugLineNum = 77;BA.debugLine="cvs.DrawLine(x, Radius2, x, s1, Color2, Size2)"; +_cvs.DrawLine((float) (_x),(float) (_radius2),(float) (_x),(float) (_s1),_color2,(float) (_size2)); + //BA.debugLineNum = 78;BA.debugLine="cvs.DrawLine(x, s1, x, mBase.Height - Radius2,"; +_cvs.DrawLine((float) (_x),(float) (_s1),(float) (_x),(float) (_mbase.getHeight()-_radius2),_color1,(float) (_size1)); + //BA.debugLineNum = 79;BA.debugLine="cvs.DrawCircle(x, s1, Radius1, Color1, True, 0)"; +_cvs.DrawCircle((float) (_x),(float) (_s1),(float) (_radius1),_color1,__c.True,(float) (0)); + //BA.debugLineNum = 80;BA.debugLine="If Pressed Then"; +if (_pressed) { + //BA.debugLineNum = 81;BA.debugLine="cvs.DrawCircle(x, s1, Radius2, ThumbColor, Tru"; +_cvs.DrawCircle((float) (_x),(float) (_s1),(float) (_radius2),_thumbcolor,__c.True,(float) (0)); + }; + }; + }; + //BA.debugLineNum = 85;BA.debugLine="cvs.Invalidate"; +_cvs.Invalidate(); + //BA.debugLineNum = 86;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xset.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xset.java index 2e89b90..ed5a35d 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xset.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xset.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xset"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xset"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xset extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public reparto_izca.keymon.lat.b4xorderedmap _map = null; public b4a.example.dateutils _dateutils = null; public reparto_izca.keymon.lat.main _main = null; @@ -46,115 +39,65 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _initialize(reparto_izca.keymon.lat.b4xset __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xset"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=38535168; - //BA.debugLineNum = 38535168;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=38535169; - //BA.debugLineNum = 38535169;BA.debugLine="map.Initialize"; -__ref._map /*reparto_izca.keymon.lat.b4xorderedmap*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=38535170; - //BA.debugLineNum = 38535170;BA.debugLine="End Sub"; +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 String _add(reparto_izca.keymon.lat.b4xset __ref,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xset"; -if (Debug.shouldDelegate(ba, "add", true)) - {return ((String) Debug.delegate(ba, "add", new Object[] {_value}));} -RDebugUtils.currentLine=38600704; - //BA.debugLineNum = 38600704;BA.debugLine="Public Sub Add(Value As Object)"; -RDebugUtils.currentLine=38600705; - //BA.debugLineNum = 38600705;BA.debugLine="map.Put(Value, \"\")"; -__ref._map /*reparto_izca.keymon.lat.b4xorderedmap*/ ._put /*String*/ (null,_value,(Object)("")); -RDebugUtils.currentLine=38600706; - //BA.debugLineNum = 38600706;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.collections.List _aslist(reparto_izca.keymon.lat.b4xset __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xset"; -if (Debug.shouldDelegate(ba, "aslist", true)) - {return ((anywheresoftware.b4a.objects.collections.List) Debug.delegate(ba, "aslist", null));} -RDebugUtils.currentLine=38928384; - //BA.debugLineNum = 38928384;BA.debugLine="Public Sub AsList As List"; -RDebugUtils.currentLine=38928385; - //BA.debugLineNum = 38928385;BA.debugLine="Return map.Keys"; -if (true) return __ref._map /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null); -RDebugUtils.currentLine=38928386; - //BA.debugLineNum = 38928386;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xset __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xset"; -RDebugUtils.currentLine=38469632; - //BA.debugLineNum = 38469632;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=38469633; - //BA.debugLineNum = 38469633;BA.debugLine="Private map As B4XOrderedMap"; +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private map As B4XOrderedMap"; _map = new reparto_izca.keymon.lat.b4xorderedmap(); -RDebugUtils.currentLine=38469634; - //BA.debugLineNum = 38469634;BA.debugLine="End Sub"; + //BA.debugLineNum = 3;BA.debugLine="End Sub"; return ""; } -public String _clear(reparto_izca.keymon.lat.b4xset __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xset"; -if (Debug.shouldDelegate(ba, "clear", true)) - {return ((String) Debug.delegate(ba, "clear", null));} -RDebugUtils.currentLine=38862848; - //BA.debugLineNum = 38862848;BA.debugLine="Public Sub Clear"; -RDebugUtils.currentLine=38862849; - //BA.debugLineNum = 38862849;BA.debugLine="map.Clear"; -__ref._map /*reparto_izca.keymon.lat.b4xorderedmap*/ ._clear /*String*/ (null); -RDebugUtils.currentLine=38862850; - //BA.debugLineNum = 38862850;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xset __ref,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xset"; -if (Debug.shouldDelegate(ba, "contains", true)) - {return ((Boolean) Debug.delegate(ba, "contains", new Object[] {_value}));} -RDebugUtils.currentLine=38731776; - //BA.debugLineNum = 38731776;BA.debugLine="Public Sub Contains (Value As Object) As Boolean"; -RDebugUtils.currentLine=38731777; - //BA.debugLineNum = 38731777;BA.debugLine="Return map.ContainsKey(Value)"; -if (true) return __ref._map /*reparto_izca.keymon.lat.b4xorderedmap*/ ._containskey /*boolean*/ (null,_value); -RDebugUtils.currentLine=38731778; - //BA.debugLineNum = 38731778;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xset __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xset"; -if (Debug.shouldDelegate(ba, "getsize", true)) - {return ((Integer) Debug.delegate(ba, "getsize", null));} -RDebugUtils.currentLine=38797312; - //BA.debugLineNum = 38797312;BA.debugLine="Public Sub getSize As Int"; -RDebugUtils.currentLine=38797313; - //BA.debugLineNum = 38797313;BA.debugLine="Return map.Size"; -if (true) return __ref._map /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getsize /*int*/ (null); -RDebugUtils.currentLine=38797314; - //BA.debugLineNum = 38797314;BA.debugLine="End Sub"; +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 _remove(reparto_izca.keymon.lat.b4xset __ref,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xset"; -if (Debug.shouldDelegate(ba, "remove", true)) - {return ((String) Debug.delegate(ba, "remove", new Object[] {_value}));} -RDebugUtils.currentLine=38666240; - //BA.debugLineNum = 38666240;BA.debugLine="Public Sub Remove(Value As Object)"; -RDebugUtils.currentLine=38666241; - //BA.debugLineNum = 38666241;BA.debugLine="map.Remove(Value)"; -__ref._map /*reparto_izca.keymon.lat.b4xorderedmap*/ ._remove /*String*/ (null,_value); -RDebugUtils.currentLine=38666242; - //BA.debugLineNum = 38666242;BA.debugLine="End Sub"; +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 ""; } -} \ No newline at end of file +public String _remove(Object _value) throws Exception{ + //BA.debugLineNum = 13;BA.debugLine="Public Sub Remove(Value As Object)"; + //BA.debugLineNum = 14;BA.debugLine="map.Remove(Value)"; +_map._remove /*String*/ (_value); + //BA.debugLineNum = 15;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xsignaturetemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xsignaturetemplate.java index 2737277..c580042 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xsignaturetemplate.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xsignaturetemplate.java @@ -10,7 +10,7 @@ public class b4xsignaturetemplate extends B4AClass.ImplB4AClass implements BA.Su private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xsignaturetemplate"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xsignaturetemplate"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xsignaturetemplate extends B4AClass.ImplB4AClass implements BA.Su ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -57,203 +50,133 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xsignaturetemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsignaturetemplate"; -if (Debug.shouldDelegate(ba, "getpanel", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "getpanel", new Object[] {_dialog}));} -RDebugUtils.currentLine=60882944; - //BA.debugLineNum = 60882944;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; -RDebugUtils.currentLine=60882945; - //BA.debugLineNum = 60882945;BA.debugLine="Return mBase"; -if (true) return __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=60882946; - //BA.debugLineNum = 60882946;BA.debugLine="End Sub"; -return null; -} -public String _show(reparto_izca.keymon.lat.b4xsignaturetemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsignaturetemplate"; -if (Debug.shouldDelegate(ba, "show", true)) - {return ((String) Debug.delegate(ba, "show", new Object[] {_dialog}));} -RDebugUtils.currentLine=60948480; - //BA.debugLineNum = 60948480;BA.debugLine="Private Sub Show (Dialog As B4XDialog) 'ignore"; -RDebugUtils.currentLine=60948481; - //BA.debugLineNum = 60948481;BA.debugLine="cvs.DrawRect(cvs.TargetRect, BackgroundColor, Tru"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawRect(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect(),__ref._backgroundcolor /*int*/ ,__c.True,(float) (0)); -RDebugUtils.currentLine=60948482; - //BA.debugLineNum = 60948482;BA.debugLine="cvs.Invalidate"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=60948483; - //BA.debugLineNum = 60948483;BA.debugLine="NumberOfPoints = 0"; -__ref._numberofpoints /*int*/ = (int) (0); -RDebugUtils.currentLine=60948484; - //BA.debugLineNum = 60948484;BA.debugLine="End Sub"; -return ""; -} -public String _dialogclosed(reparto_izca.keymon.lat.b4xsignaturetemplate __ref,int _result) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsignaturetemplate"; -if (Debug.shouldDelegate(ba, "dialogclosed", true)) - {return ((String) Debug.delegate(ba, "dialogclosed", new Object[] {_result}));} -anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null; -int _baseline = 0; -RDebugUtils.currentLine=61145088; - //BA.debugLineNum = 61145088;BA.debugLine="Private Sub DialogClosed (Result As Int)"; -RDebugUtils.currentLine=61145089; - //BA.debugLineNum = 61145089;BA.debugLine="If Result = xui.DialogResponse_Positive And AddDa"; -if (_result==__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Positive && __ref._adddateandtime /*boolean*/ ) { -RDebugUtils.currentLine=61145090; - //BA.debugLineNum = 61145090;BA.debugLine="Dim r As B4XRect = cvs.MeasureText(\"M\", TextFont"; -_r = __ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .MeasureText("M",__ref._textfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ); -RDebugUtils.currentLine=61145091; - //BA.debugLineNum = 61145091;BA.debugLine="Dim Baseline As Int = cvs.TargetRect.Bottom - r."; -_baseline = (int) (__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect().getBottom()-_r.getHeight()-_r.getTop()-__c.DipToCurrent((int) (2))); -RDebugUtils.currentLine=61145092; - //BA.debugLineNum = 61145092;BA.debugLine="cvs.DrawText($\"$DateTime{DateTime.Now}\"$, 2dip,"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawText(ba,(""+__c.SmartStringFormatter("datetime",(Object)(__c.DateTime.getNow()))+""),(float) (__c.DipToCurrent((int) (2))),(float) (_baseline),__ref._textfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ,__ref._textcolor /*int*/ ,BA.getEnumFromString(android.graphics.Paint.Align.class,"LEFT")); - }; -RDebugUtils.currentLine=61145094; - //BA.debugLineNum = 61145094;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.b4xsignaturetemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsignaturetemplate"; -RDebugUtils.currentLine=60686336; - //BA.debugLineNum = 60686336;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=60686337; - //BA.debugLineNum = 60686337;BA.debugLine="Private xui As XUI"; +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(); -RDebugUtils.currentLine=60686338; - //BA.debugLineNum = 60686338;BA.debugLine="Public mBase As B4XView"; + //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=60686339; - //BA.debugLineNum = 60686339;BA.debugLine="Private cvs As B4XCanvas"; + //BA.debugLineNum = 4;BA.debugLine="Private cvs As B4XCanvas"; _cvs = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=60686340; - //BA.debugLineNum = 60686340;BA.debugLine="Private LastX, LastY As Float"; + //BA.debugLineNum = 5;BA.debugLine="Private LastX, LastY As Float"; _lastx = 0f; _lasty = 0f; -RDebugUtils.currentLine=60686341; - //BA.debugLineNum = 60686341;BA.debugLine="Public StrokeWidth As Float = 2dip"; + //BA.debugLineNum = 6;BA.debugLine="Public StrokeWidth As Float = 2dip"; _strokewidth = (float) (__c.DipToCurrent((int) (2))); -RDebugUtils.currentLine=60686342; - //BA.debugLineNum = 60686342;BA.debugLine="Public StrokeColor As Int = xui.Color_Black"; -_strokecolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Black; -RDebugUtils.currentLine=60686343; - //BA.debugLineNum = 60686343;BA.debugLine="Public TextColor As Int = 0xFFFF8800"; + //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); -RDebugUtils.currentLine=60686344; - //BA.debugLineNum = 60686344;BA.debugLine="Public BackgroundColor As Int = xui.Color_White"; -_backgroundcolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -RDebugUtils.currentLine=60686345; - //BA.debugLineNum = 60686345;BA.debugLine="Public AddDateAndTime As Boolean = True"; + //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; -RDebugUtils.currentLine=60686346; - //BA.debugLineNum = 60686346;BA.debugLine="Public TextFont As B4XFont"; + //BA.debugLineNum = 11;BA.debugLine="Public TextFont As B4XFont"; _textfont = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont(); -RDebugUtils.currentLine=60686347; - //BA.debugLineNum = 60686347;BA.debugLine="Public NumberOfPoints As Int"; + //BA.debugLineNum = 12;BA.debugLine="Public NumberOfPoints As Int"; _numberofpoints = 0; -RDebugUtils.currentLine=60686348; - //BA.debugLineNum = 60686348;BA.debugLine="End Sub"; + //BA.debugLineNum = 13;BA.debugLine="End Sub"; return ""; } -public anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper _getbitmap(reparto_izca.keymon.lat.b4xsignaturetemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsignaturetemplate"; -if (Debug.shouldDelegate(ba, "getbitmap", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper) Debug.delegate(ba, "getbitmap", null));} -RDebugUtils.currentLine=61079552; - //BA.debugLineNum = 61079552;BA.debugLine="Public Sub getBitmap As B4XBitmap"; -RDebugUtils.currentLine=61079553; - //BA.debugLineNum = 61079553;BA.debugLine="Return cvs.CreateBitmap"; -if (true) return __ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .CreateBitmap(); -RDebugUtils.currentLine=61079554; - //BA.debugLineNum = 61079554;BA.debugLine="End Sub"; +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 String _initialize(reparto_izca.keymon.lat.b4xsignaturetemplate __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ + //BA.debugLineNum = 28;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; + //BA.debugLineNum = 29;BA.debugLine="Return mBase"; +if (true) return _mbase; + //BA.debugLineNum = 30;BA.debugLine="End Sub"; +return null; +} +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="b4xsignaturetemplate"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=60751872; - //BA.debugLineNum = 60751872;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=60751873; - //BA.debugLineNum = 60751873;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"mBase"); -RDebugUtils.currentLine=60751874; - //BA.debugLineNum = 60751874;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, 300dip, 200dip)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),__c.DipToCurrent((int) (300)),__c.DipToCurrent((int) (200))); -RDebugUtils.currentLine=60751875; - //BA.debugLineNum = 60751875;BA.debugLine="cvs.Initialize(mBase)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=60751876; - //BA.debugLineNum = 60751876;BA.debugLine="TextFont = xui.CreateDefaultFont(14)"; -__ref._textfont /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreateDefaultFont((float) (14)); -RDebugUtils.currentLine=60751877; - //BA.debugLineNum = 60751877;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.b4xsignaturetemplate __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsignaturetemplate"; -if (Debug.shouldDelegate(ba, "mbase_touch", true)) - {return ((String) Debug.delegate(ba, "mbase_touch", new Object[] {_action,_x,_y}));} -RDebugUtils.currentLine=61014016; - //BA.debugLineNum = 61014016;BA.debugLine="Private Sub mBase_Touch (Action As Int, X As Float"; -RDebugUtils.currentLine=61014017; - //BA.debugLineNum = 61014017;BA.debugLine="Select Action"; -switch (BA.switchObjectToInt(_action,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_DOWN,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_MOVE)) { +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: { -RDebugUtils.currentLine=61014019; - //BA.debugLineNum = 61014019;BA.debugLine="LastX = X"; -__ref._lastx /*float*/ = _x; -RDebugUtils.currentLine=61014020; - //BA.debugLineNum = 61014020;BA.debugLine="LastY = Y"; -__ref._lasty /*float*/ = _y; + //BA.debugLineNum = 41;BA.debugLine="LastX = X"; +_lastx = _x; + //BA.debugLineNum = 42;BA.debugLine="LastY = Y"; +_lasty = _y; break; } case 1: { -RDebugUtils.currentLine=61014022; - //BA.debugLineNum = 61014022;BA.debugLine="cvs.DrawLine(LastX, LastY, X, Y, StrokeColor, S"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawLine(__ref._lastx /*float*/ ,__ref._lasty /*float*/ ,_x,_y,__ref._strokecolor /*int*/ ,__ref._strokewidth /*float*/ ); -RDebugUtils.currentLine=61014023; - //BA.debugLineNum = 61014023;BA.debugLine="LastX = X"; -__ref._lastx /*float*/ = _x; -RDebugUtils.currentLine=61014024; - //BA.debugLineNum = 61014024;BA.debugLine="LastY = Y"; -__ref._lasty /*float*/ = _y; -RDebugUtils.currentLine=61014025; - //BA.debugLineNum = 61014025;BA.debugLine="cvs.Invalidate"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=61014026; - //BA.debugLineNum = 61014026;BA.debugLine="NumberOfPoints = NumberOfPoints + 1"; -__ref._numberofpoints /*int*/ = (int) (__ref._numberofpoints /*int*/ +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; } } ; -RDebugUtils.currentLine=61014028; - //BA.debugLineNum = 61014028;BA.debugLine="End Sub"; + //BA.debugLineNum = 50;BA.debugLine="End Sub"; return ""; } -public String _resize(reparto_izca.keymon.lat.b4xsignaturetemplate __ref,int _width,int _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xsignaturetemplate"; -if (Debug.shouldDelegate(ba, "resize", true)) - {return ((String) Debug.delegate(ba, "resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=60817408; - //BA.debugLineNum = 60817408;BA.debugLine="Public Sub Resize(Width As Int, Height As Int)"; -RDebugUtils.currentLine=60817409; - //BA.debugLineNum = 60817409;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, Width, Height)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=60817410; - //BA.debugLineNum = 60817410;BA.debugLine="cvs.Resize(Width, Height)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Resize((float) (_width),(float) (_height)); -RDebugUtils.currentLine=60817411; - //BA.debugLineNum = 60817411;BA.debugLine="End Sub"; +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 ""; } -} \ No newline at end of file +public String _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ + //BA.debugLineNum = 32;BA.debugLine="Private Sub Show (Dialog As B4XDialog) 'ignore"; + //BA.debugLineNum = 33;BA.debugLine="cvs.DrawRect(cvs.TargetRect, BackgroundColor, Tru"; +_cvs.DrawRect(_cvs.getTargetRect(),_backgroundcolor,__c.True,(float) (0)); + //BA.debugLineNum = 34;BA.debugLine="cvs.Invalidate"; +_cvs.Invalidate(); + //BA.debugLineNum = 35;BA.debugLine="NumberOfPoints = 0"; +_numberofpoints = (int) (0); + //BA.debugLineNum = 36;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "DIALOGCLOSED")) + return _dialogclosed(((Number)args[0]).intValue()); +if (BA.fastSubCompare(sub, "GETPANEL")) + return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]); +if (BA.fastSubCompare(sub, "SHOW")) + return _show((reparto_izca.keymon.lat.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xswitch.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xswitch.java index fd42e23..29c3a48 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xswitch.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xswitch.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xswitch"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xswitch"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xswitch extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -63,167 +56,217 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.b4xswitch __ref,double _width1,double _height1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xswitch"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width1,_height1}));} -RDebugUtils.currentLine=61865984; - //BA.debugLineNum = 61865984;BA.debugLine="Private Sub Base_Resize (Width1 As Double, Height1"; -RDebugUtils.currentLine=61865986; - //BA.debugLineNum = 61865986;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.b4xswitch __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xswitch"; -RDebugUtils.currentLine=61210624; - //BA.debugLineNum = 61210624;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=61210625; - //BA.debugLineNum = 61210625;BA.debugLine="Private mEventName As String 'ignore"; +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 = ""; -RDebugUtils.currentLine=61210626; - //BA.debugLineNum = 61210626;BA.debugLine="Private mCallBack As Object 'ignore"; + //BA.debugLineNum = 9;BA.debugLine="Private mCallBack As Object 'ignore"; _mcallback = new Object(); -RDebugUtils.currentLine=61210627; - //BA.debugLineNum = 61210627;BA.debugLine="Public mBase As B4XView 'ignore"; + //BA.debugLineNum = 10;BA.debugLine="Public mBase As B4XView 'ignore"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=61210628; - //BA.debugLineNum = 61210628;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 11;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=61210629; - //BA.debugLineNum = 61210629;BA.debugLine="Private OnColor, OffColor As BCBrush"; + //BA.debugLineNum = 12;BA.debugLine="Private OnColor, OffColor As BCBrush"; _oncolor = new b4a.example.bcpath._bcbrush(); _offcolor = new b4a.example.bcpath._bcbrush(); -RDebugUtils.currentLine=61210630; - //BA.debugLineNum = 61210630;BA.debugLine="Private bc As BitmapCreator"; + //BA.debugLineNum = 13;BA.debugLine="Private bc As BitmapCreator"; _bc = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=61210631; - //BA.debugLineNum = 61210631;BA.debugLine="Private Width As Int = 55dip"; + //BA.debugLineNum = 14;BA.debugLine="Private Width As Int = 55dip"; _width = __c.DipToCurrent((int) (55)); -RDebugUtils.currentLine=61210632; - //BA.debugLineNum = 61210632;BA.debugLine="Private Height As Int = 31dip"; + //BA.debugLineNum = 15;BA.debugLine="Private Height As Int = 31dip"; _height = __c.DipToCurrent((int) (31)); -RDebugUtils.currentLine=61210633; - //BA.debugLineNum = 61210633;BA.debugLine="Private ThumbColor As BCBrush"; + //BA.debugLineNum = 16;BA.debugLine="Private ThumbColor As BCBrush"; _thumbcolor = new b4a.example.bcpath._bcbrush(); -RDebugUtils.currentLine=61210634; - //BA.debugLineNum = 61210634;BA.debugLine="Private iv As ImageView"; + //BA.debugLineNum = 17;BA.debugLine="Private iv As ImageView"; _iv = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=61210635; - //BA.debugLineNum = 61210635;BA.debugLine="Private mValue As Boolean"; + //BA.debugLineNum = 18;BA.debugLine="Private mValue As Boolean"; _mvalue = false; -RDebugUtils.currentLine=61210636; - //BA.debugLineNum = 61210636;BA.debugLine="Private transparent As BCBrush"; + //BA.debugLineNum = 19;BA.debugLine="Private transparent As BCBrush"; _transparent = new b4a.example.bcpath._bcbrush(); -RDebugUtils.currentLine=61210637; - //BA.debugLineNum = 61210637;BA.debugLine="Private LoopIndex As Int"; + //BA.debugLineNum = 20;BA.debugLine="Private LoopIndex As Int"; _loopindex = 0; -RDebugUtils.currentLine=61210638; - //BA.debugLineNum = 61210638;BA.debugLine="Public Tag As Object"; + //BA.debugLineNum = 21;BA.debugLine="Public Tag As Object"; _tag = new Object(); -RDebugUtils.currentLine=61210639; - //BA.debugLineNum = 61210639;BA.debugLine="Private Scale As Float"; + //BA.debugLineNum = 22;BA.debugLine="Private Scale As Float"; _scale = 0f; -RDebugUtils.currentLine=61210640; - //BA.debugLineNum = 61210640;BA.debugLine="Private mEnabled As Boolean = True"; + //BA.debugLineNum = 23;BA.debugLine="Private mEnabled As Boolean = True"; _menabled = __c.True; -RDebugUtils.currentLine=61210641; - //BA.debugLineNum = 61210641;BA.debugLine="Public mHaptic As Boolean"; + //BA.debugLineNum = 24;BA.debugLine="Public mHaptic As Boolean"; _mhaptic = false; -RDebugUtils.currentLine=61210642; - //BA.debugLineNum = 61210642;BA.debugLine="End Sub"; + //BA.debugLineNum = 25;BA.debugLine="End Sub"; return ""; } -public String _designercreateview(reparto_izca.keymon.lat.b4xswitch __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xswitch"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} +public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; -RDebugUtils.currentLine=61341696; - //BA.debugLineNum = 61341696;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=61341697; - //BA.debugLineNum = 61341697;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=61341698; - //BA.debugLineNum = 61341698;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=61341698; - //BA.debugLineNum = 61341698;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=61341699; - //BA.debugLineNum = 61341699;BA.debugLine="mBase.SetLayoutAnimated(0, mBase.Left, mBase.Top,"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getLeft(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTop(),__ref._width /*int*/ ,__ref._height /*int*/ ); -RDebugUtils.currentLine=61341700; - //BA.debugLineNum = 61341700;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0,"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=61341701; - //BA.debugLineNum = 61341701;BA.debugLine="Dim pnl As B4XView = xui.CreatePanel(\"pnl\")"; + //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 = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"pnl"); -RDebugUtils.currentLine=61341702; - //BA.debugLineNum = 61341702;BA.debugLine="pnl.Color = xui.Color_Transparent"; -_pnl.setColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); -RDebugUtils.currentLine=61341703; - //BA.debugLineNum = 61341703;BA.debugLine="iv.Initialize(\"\")"; -__ref._iv /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .Initialize(ba,""); -RDebugUtils.currentLine=61341704; - //BA.debugLineNum = 61341704;BA.debugLine="mBase.AddView(iv, 0, 0, Width, Height)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._iv /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .getObject()),(int) (0),(int) (0),__ref._width /*int*/ ,__ref._height /*int*/ ); -RDebugUtils.currentLine=61341705; - //BA.debugLineNum = 61341705;BA.debugLine="mBase.AddView(pnl, 0, 0, Width, Height)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_pnl.getObject()),(int) (0),(int) (0),__ref._width /*int*/ ,__ref._height /*int*/ ); -RDebugUtils.currentLine=61341707; - //BA.debugLineNum = 61341707;BA.debugLine="bc.Initialize(Width, Height)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._initialize(ba,__ref._width /*int*/ ,__ref._height /*int*/ ); -RDebugUtils.currentLine=61341708; - //BA.debugLineNum = 61341708;BA.debugLine="Scale = xui.Scale"; -__ref._scale /*float*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getScale(); -RDebugUtils.currentLine=61341713; - //BA.debugLineNum = 61341713;BA.debugLine="OnColor = bc.CreateBrushFromColor(xui.PaintOrColo"; -__ref._oncolor /*b4a.example.bcpath._bcbrush*/ = __ref._bc /*b4a.example.bitmapcreator*/ ._createbrushfromcolor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("OnColor")))); -RDebugUtils.currentLine=61341714; - //BA.debugLineNum = 61341714;BA.debugLine="OffColor = bc.CreateBrushFromColor(xui.PaintOrCol"; -__ref._offcolor /*b4a.example.bcpath._bcbrush*/ = __ref._bc /*b4a.example.bitmapcreator*/ ._createbrushfromcolor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("OffColor")))); -RDebugUtils.currentLine=61341715; - //BA.debugLineNum = 61341715;BA.debugLine="ThumbColor = bc.CreateBrushFromColor(xui.PaintOrC"; -__ref._thumbcolor /*b4a.example.bcpath._bcbrush*/ = __ref._bc /*b4a.example.bitmapcreator*/ ._createbrushfromcolor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("ThumbColor")))); -RDebugUtils.currentLine=61341716; - //BA.debugLineNum = 61341716;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals"; -__ref._mhaptic /*boolean*/ = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False))); -RDebugUtils.currentLine=61341717; - //BA.debugLineNum = 61341717;BA.debugLine="transparent = bc.CreateBrushFromColor(xui.Color_T"; -__ref._transparent /*b4a.example.bcpath._bcbrush*/ = __ref._bc /*b4a.example.bitmapcreator*/ ._createbrushfromcolor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); -RDebugUtils.currentLine=61341718; - //BA.debugLineNum = 61341718;BA.debugLine="mEnabled = mBase.Enabled"; -__ref._menabled /*boolean*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getEnabled(); -RDebugUtils.currentLine=61341719; - //BA.debugLineNum = 61341719;BA.debugLine="mBase.Enabled = True"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setEnabled(__c.True); -RDebugUtils.currentLine=61341720; - //BA.debugLineNum = 61341720;BA.debugLine="SetValueImpl(Props.Get(\"Value\"), True)"; -__ref._setvalueimpl /*void*/ (null,BA.ObjectToBoolean(_props.Get((Object)("Value"))),__c.True); -RDebugUtils.currentLine=61341721; - //BA.debugLineNum = 61341721;BA.debugLine="End Sub"; +_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 void _setvalueimpl(reparto_izca.keymon.lat.b4xswitch __ref,boolean _b,boolean _immediate) throws Exception{ -RDebugUtils.currentModule="b4xswitch"; -if (Debug.shouldDelegate(ba, "setvalueimpl", true)) - {Debug.delegate(ba, "setvalueimpl", new Object[] {_b,_immediate}); return;} -ResumableSub_SetValueImpl rsub = new ResumableSub_SetValueImpl(this,__ref,_b,_immediate); +public String _draw(float _state) throws Exception{ +float _r = 0f; +float _cx = 0f; +int _cy = 0; +anywheresoftware.b4a.objects.B4XCanvas.B4XRect _smallrect = null; +float _w = 0f; +float _h = 0f; + //BA.debugLineNum = 126;BA.debugLine="Private Sub Draw (State As Float)"; + //BA.debugLineNum = 127;BA.debugLine="bc.DrawRect2(bc.TargetRect, transparent, True, 0)"; +_bc._drawrect2(_bc._targetrect,_transparent,__c.True,(int) (0)); + //BA.debugLineNum = 128;BA.debugLine="Dim r As Float = Round(bc.mHeight / 2)"; +_r = (float) (__c.Round(_bc._mheight/(double)2)); + //BA.debugLineNum = 129;BA.debugLine="Dim cx As Float = r - 1 * Scale + (bc.mWidth - 2"; +_cx = (float) (_r-1*_scale+(_bc._mwidth-2*_r)*_state); + //BA.debugLineNum = 130;BA.debugLine="If State = 0 Then"; +if (_state==0) { + //BA.debugLineNum = 131;BA.debugLine="cx = r"; +_cx = _r; + }else if(_state==1) { + //BA.debugLineNum = 133;BA.debugLine="cx = Round(bc.mWidth - 1 * Scale - r)"; +_cx = (float) (__c.Round(_bc._mwidth-1*_scale-_r)); + }; + //BA.debugLineNum = 135;BA.debugLine="Dim cy As Int = bc.mHeight / 2"; +_cy = (int) (_bc._mheight/(double)2); + //BA.debugLineNum = 136;BA.debugLine="Dim smallrect As B4XRect"; +_smallrect = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect(); + //BA.debugLineNum = 137;BA.debugLine="Dim w As Float = State * bc.mWidth"; +_w = (float) (_state*_bc._mwidth); + //BA.debugLineNum = 138;BA.debugLine="Dim h As Float = State * bc.mHeight"; +_h = (float) (_state*_bc._mheight); + //BA.debugLineNum = 139;BA.debugLine="If State < 1 Then bc.DrawRectRounded2(bc.TargetRe"; +if (_state<1) { +_bc._drawrectrounded2(_bc._targetrect,_offcolor,__c.True,(int) (2*_scale),(int) (_r));}; + //BA.debugLineNum = 140;BA.debugLine="smallrect.Initialize(bc.mWidth / 2 - w / 2, cy -"; +_smallrect.Initialize((float) (_bc._mwidth/(double)2-_w/(double)2),(float) (_cy-_h/(double)2),(float) (_bc._mwidth/(double)2+_w/(double)2),(float) (_cy+_h/(double)2)); + //BA.debugLineNum = 141;BA.debugLine="If State > 0 Then bc.DrawRectRounded2(smallrect,"; +if (_state>0) { +_bc._drawrectrounded2(_smallrect,_oncolor,__c.True,(int) (2*_scale),(int) (_smallrect.getHeight()/(double)2));}; + //BA.debugLineNum = 142;BA.debugLine="If mEnabled Then"; +if (_menabled) { + //BA.debugLineNum = 143;BA.debugLine="bc.DrawCircle2(cx, cy, r - 2 * Scale, ThumbColor"; +_bc._drawcircle2(_cx,(float) (_cy),(float) (_r-2*_scale),_thumbcolor,__c.True,(int) (0)); + }; + //BA.debugLineNum = 145;BA.debugLine="bc.SetBitmapToImageView(bc.Bitmap, iv)"; +_bc._setbitmaptoimageview(_bc._getbitmap(),(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_iv.getObject()))); + //BA.debugLineNum = 146;BA.debugLine="End Sub"; +return ""; +} +public boolean _getenabled() throws Exception{ + //BA.debugLineNum = 122;BA.debugLine="Public Sub getEnabled As Boolean"; + //BA.debugLineNum = 123;BA.debugLine="Return mEnabled"; +if (true) return _menabled; + //BA.debugLineNum = 124;BA.debugLine="End Sub"; +return false; +} +public boolean _getvalue() throws Exception{ + //BA.debugLineNum = 113;BA.debugLine="Public Sub getValue As Boolean"; + //BA.debugLineNum = 114;BA.debugLine="Return mValue"; +if (true) return _mvalue; + //BA.debugLineNum = 115;BA.debugLine="End Sub"; +return false; +} +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 27;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; + //BA.debugLineNum = 28;BA.debugLine="mEventName = EventName"; +_meventname = _eventname; + //BA.debugLineNum = 29;BA.debugLine="mCallBack = Callback"; +_mcallback = _callback; + //BA.debugLineNum = 30;BA.debugLine="End Sub"; +return ""; +} +public String _pnl_click() throws Exception{ + //BA.debugLineNum = 70;BA.debugLine="Private Sub pnl_Click"; + //BA.debugLineNum = 72;BA.debugLine="If mEnabled Then"; +if (_menabled) { + //BA.debugLineNum = 73;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFeedb"; +if (_mhaptic) { +_xuiviewsutils._performhapticfeedback /*String*/ (ba,_mbase);}; + //BA.debugLineNum = 74;BA.debugLine="SetValueImpl(Not(mValue), False)"; +_setvalueimpl(__c.Not(_mvalue),__c.False); + //BA.debugLineNum = 75;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Value"; +if (_xui.SubExists(ba,_mcallback,_meventname+"_ValueChanged",(int) (1))) { + //BA.debugLineNum = 76;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_Value"; +__c.CallSubDelayed2(ba,_mcallback,_meventname+"_ValueChanged",(Object)(_mvalue)); + }; + }; + //BA.debugLineNum = 79;BA.debugLine="End Sub"; +return ""; +} +public String _setenabled(boolean _b) throws Exception{ + //BA.debugLineNum = 117;BA.debugLine="Public Sub setEnabled (b As Boolean)"; + //BA.debugLineNum = 118;BA.debugLine="mEnabled = b"; +_menabled = _b; + //BA.debugLineNum = 119;BA.debugLine="SetValueImpl(mValue, True)"; +_setvalueimpl(_mvalue,__c.True); + //BA.debugLineNum = 120;BA.debugLine="End Sub"; +return ""; +} +public String _setvalue(boolean _b) throws Exception{ + //BA.debugLineNum = 108;BA.debugLine="Public Sub setValue(b As Boolean)"; + //BA.debugLineNum = 109;BA.debugLine="If b = mValue Then Return"; +if (_b==_mvalue) { +if (true) return "";}; + //BA.debugLineNum = 110;BA.debugLine="SetValueImpl(b, False)"; +_setvalueimpl(_b,__c.False); + //BA.debugLineNum = 111;BA.debugLine="End Sub"; +return ""; +} +public void _setvalueimpl(boolean _b,boolean _immediate) throws Exception{ +ResumableSub_SetValueImpl rsub = new ResumableSub_SetValueImpl(this,_b,_immediate); rsub.resume(ba, null); } public static class ResumableSub_SetValueImpl extends BA.ResumableSub { -public ResumableSub_SetValueImpl(reparto_izca.keymon.lat.b4xswitch parent,reparto_izca.keymon.lat.b4xswitch __ref,boolean _b,boolean _immediate) { +public ResumableSub_SetValueImpl(reparto_izca.keymon.lat.b4xswitch parent,boolean _b,boolean _immediate) { this.parent = parent; -this.__ref = __ref; this._b = _b; this._immediate = _immediate; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xswitch __ref; reparto_izca.keymon.lat.b4xswitch parent; boolean _b; boolean _immediate; @@ -234,7 +277,6 @@ float _state1 = 0f; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xswitch"; while (true) { switch (state) { @@ -244,14 +286,11 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=61472769; - //BA.debugLineNum = 61472769;BA.debugLine="mValue = b"; -__ref._mvalue /*boolean*/ = _b; -RDebugUtils.currentLine=61472770; - //BA.debugLineNum = 61472770;BA.debugLine="LoopIndex = LoopIndex + 1"; -__ref._loopindex /*int*/ = (int) (__ref._loopindex /*int*/ +1); -RDebugUtils.currentLine=61472771; - //BA.debugLineNum = 61472771;BA.debugLine="If Immediate Then"; + //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: @@ -266,14 +305,13 @@ this.state = 13; case 3: //C this.state = 4; -RDebugUtils.currentLine=61472772; - //BA.debugLineNum = 61472772;BA.debugLine="If mValue Then Draw(1) Else Draw(0)"; + //BA.debugLineNum = 85;BA.debugLine="If mValue Then Draw(1) Else Draw(0)"; if (true) break; case 4: //if this.state = 11; -if (__ref._mvalue /*boolean*/ ) { +if (parent._mvalue) { this.state = 6; ;} else { @@ -283,13 +321,13 @@ this.state = 8; case 6: //C this.state = 11; -__ref._draw /*String*/ (null,(float) (1)); +parent._draw((float) (1)); if (true) break; case 8: //C this.state = 11; -__ref._draw /*String*/ (null,(float) (0)); +parent._draw((float) (0)); if (true) break; case 11: @@ -301,17 +339,13 @@ this.state = 41; case 13: //C this.state = 14; -RDebugUtils.currentLine=61472774; - //BA.debugLineNum = 61472774;BA.debugLine="Dim MyIndex As Int = LoopIndex"; -_myindex = __ref._loopindex /*int*/ ; -RDebugUtils.currentLine=61472775; - //BA.debugLineNum = 61472775;BA.debugLine="Dim start As Long = DateTime.Now"; + //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(); -RDebugUtils.currentLine=61472776; - //BA.debugLineNum = 61472776;BA.debugLine="Dim duration As Int = 200"; + //BA.debugLineNum = 89;BA.debugLine="Dim duration As Int = 200"; _duration = (int) (200); -RDebugUtils.currentLine=61472777; - //BA.debugLineNum = 61472777;BA.debugLine="Do While DateTime.Now < start + duration"; + //BA.debugLineNum = 90;BA.debugLine="Do While DateTime.Now < start + duration"; if (true) break; case 14: @@ -326,17 +360,15 @@ if (true) break; case 16: //C this.state = 17; -RDebugUtils.currentLine=61472778; - //BA.debugLineNum = 61472778;BA.debugLine="Dim state1 As Float = (DateTime.Now - start) /"; + //BA.debugLineNum = 91;BA.debugLine="Dim state1 As Float = (DateTime.Now - start) /"; _state1 = (float) ((parent.__c.DateTime.getNow()-_start)/(double)_duration); -RDebugUtils.currentLine=61472779; - //BA.debugLineNum = 61472779;BA.debugLine="If mValue = False Then state1 = 1 - state1"; + //BA.debugLineNum = 92;BA.debugLine="If mValue = False Then state1 = 1 - state1"; if (true) break; case 17: //if this.state = 22; -if (__ref._mvalue /*boolean*/ ==parent.__c.False) { +if (parent._mvalue==parent.__c.False) { this.state = 19; ;}if (true) break; @@ -350,26 +382,23 @@ case 22: //C this.state = 23; ; -RDebugUtils.currentLine=61472780; - //BA.debugLineNum = 61472780;BA.debugLine="Draw(state1)"; -__ref._draw /*String*/ (null,_state1); -RDebugUtils.currentLine=61472781; - //BA.debugLineNum = 61472781;BA.debugLine="Sleep(16)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xswitch", "setvalueimpl"),(int) (16)); + //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; ; -RDebugUtils.currentLine=61472782; - //BA.debugLineNum = 61472782;BA.debugLine="If MyIndex <> LoopIndex Then Exit"; + //BA.debugLineNum = 95;BA.debugLine="If MyIndex <> LoopIndex Then Exit"; if (true) break; case 23: //if this.state = 28; -if (_myindex!=__ref._loopindex /*int*/ ) { +if (_myindex!=parent._loopindex) { this.state = 25; ;}if (true) break; @@ -386,27 +415,25 @@ this.state = 14; ; if (true) break; ; -RDebugUtils.currentLine=61472784; - //BA.debugLineNum = 61472784;BA.debugLine="If MyIndex = LoopIndex Then"; + //BA.debugLineNum = 97;BA.debugLine="If MyIndex = LoopIndex Then"; case 29: //if this.state = 40; -if (_myindex==__ref._loopindex /*int*/ ) { +if (_myindex==parent._loopindex) { this.state = 31; }if (true) break; case 31: //C this.state = 32; -RDebugUtils.currentLine=61472785; - //BA.debugLineNum = 61472785;BA.debugLine="If mValue Then Draw(1) Else Draw(0)"; + //BA.debugLineNum = 98;BA.debugLine="If mValue Then Draw(1) Else Draw(0)"; if (true) break; case 32: //if this.state = 39; -if (__ref._mvalue /*boolean*/ ) { +if (parent._mvalue) { this.state = 34; ;} else { @@ -416,13 +443,13 @@ this.state = 36; case 34: //C this.state = 39; -__ref._draw /*String*/ (null,(float) (1)); +parent._draw((float) (1)); if (true) break; case 36: //C this.state = 39; -__ref._draw /*String*/ (null,(float) (0)); +parent._draw((float) (0)); if (true) break; case 39: @@ -437,13 +464,12 @@ this.state = 41; ; if (true) break; ; -RDebugUtils.currentLine=61472788; - //BA.debugLineNum = 61472788;BA.debugLine="If mEnabled Then"; + //BA.debugLineNum = 101;BA.debugLine="If mEnabled Then"; case 41: //if this.state = 46; -if (__ref._menabled /*boolean*/ ) { +if (parent._menabled) { this.state = 43; }else { this.state = 45; @@ -452,213 +478,30 @@ this.state = 45; case 43: //C this.state = 46; -RDebugUtils.currentLine=61472789; - //BA.debugLineNum = 61472789;BA.debugLine="XUIViewsUtils.SetAlpha(mBase, 1)"; -parent._xuiviewsutils._setalpha /*String*/ (ba,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ,(float) (1)); + //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; -RDebugUtils.currentLine=61472791; - //BA.debugLineNum = 61472791;BA.debugLine="XUIViewsUtils.SetAlpha(mBase, 0.6)"; -parent._xuiviewsutils._setalpha /*String*/ (ba,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ,(float) (0.6)); + //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; ; -RDebugUtils.currentLine=61472793; - //BA.debugLineNum = 61472793;BA.debugLine="End Sub"; + //BA.debugLineNum = 106;BA.debugLine="End Sub"; if (true) break; } } } } -public String _draw(reparto_izca.keymon.lat.b4xswitch __ref,float _state) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xswitch"; -if (Debug.shouldDelegate(ba, "draw", true)) - {return ((String) Debug.delegate(ba, "draw", new Object[] {_state}));} -float _r = 0f; -float _cx = 0f; -int _cy = 0; -anywheresoftware.b4a.objects.B4XCanvas.B4XRect _smallrect = null; -float _w = 0f; -float _h = 0f; -RDebugUtils.currentLine=61800448; - //BA.debugLineNum = 61800448;BA.debugLine="Private Sub Draw (State As Float)"; -RDebugUtils.currentLine=61800449; - //BA.debugLineNum = 61800449;BA.debugLine="bc.DrawRect2(bc.TargetRect, transparent, True, 0)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._drawrect2(__ref._bc /*b4a.example.bitmapcreator*/ ._targetrect,__ref._transparent /*b4a.example.bcpath._bcbrush*/ ,__c.True,(int) (0)); -RDebugUtils.currentLine=61800450; - //BA.debugLineNum = 61800450;BA.debugLine="Dim r As Float = Round(bc.mHeight / 2)"; -_r = (float) (__c.Round(__ref._bc /*b4a.example.bitmapcreator*/ ._mheight/(double)2)); -RDebugUtils.currentLine=61800451; - //BA.debugLineNum = 61800451;BA.debugLine="Dim cx As Float = r - 1 * Scale + (bc.mWidth - 2"; -_cx = (float) (_r-1*__ref._scale /*float*/ +(__ref._bc /*b4a.example.bitmapcreator*/ ._mwidth-2*_r)*_state); -RDebugUtils.currentLine=61800452; - //BA.debugLineNum = 61800452;BA.debugLine="If State = 0 Then"; -if (_state==0) { -RDebugUtils.currentLine=61800453; - //BA.debugLineNum = 61800453;BA.debugLine="cx = r"; -_cx = _r; - }else -{RDebugUtils.currentLine=61800454; - //BA.debugLineNum = 61800454;BA.debugLine="Else If State = 1 Then"; -if (_state==1) { -RDebugUtils.currentLine=61800455; - //BA.debugLineNum = 61800455;BA.debugLine="cx = Round(bc.mWidth - 1 * Scale - r)"; -_cx = (float) (__c.Round(__ref._bc /*b4a.example.bitmapcreator*/ ._mwidth-1*__ref._scale /*float*/ -_r)); - }} -; -RDebugUtils.currentLine=61800457; - //BA.debugLineNum = 61800457;BA.debugLine="Dim cy As Int = bc.mHeight / 2"; -_cy = (int) (__ref._bc /*b4a.example.bitmapcreator*/ ._mheight/(double)2); -RDebugUtils.currentLine=61800458; - //BA.debugLineNum = 61800458;BA.debugLine="Dim smallrect As B4XRect"; -_smallrect = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect(); -RDebugUtils.currentLine=61800459; - //BA.debugLineNum = 61800459;BA.debugLine="Dim w As Float = State * bc.mWidth"; -_w = (float) (_state*__ref._bc /*b4a.example.bitmapcreator*/ ._mwidth); -RDebugUtils.currentLine=61800460; - //BA.debugLineNum = 61800460;BA.debugLine="Dim h As Float = State * bc.mHeight"; -_h = (float) (_state*__ref._bc /*b4a.example.bitmapcreator*/ ._mheight); -RDebugUtils.currentLine=61800461; - //BA.debugLineNum = 61800461;BA.debugLine="If State < 1 Then bc.DrawRectRounded2(bc.TargetRe"; -if (_state<1) { -__ref._bc /*b4a.example.bitmapcreator*/ ._drawrectrounded2(__ref._bc /*b4a.example.bitmapcreator*/ ._targetrect,__ref._offcolor /*b4a.example.bcpath._bcbrush*/ ,__c.True,(int) (2*__ref._scale /*float*/ ),(int) (_r));}; -RDebugUtils.currentLine=61800462; - //BA.debugLineNum = 61800462;BA.debugLine="smallrect.Initialize(bc.mWidth / 2 - w / 2, cy -"; -_smallrect.Initialize((float) (__ref._bc /*b4a.example.bitmapcreator*/ ._mwidth/(double)2-_w/(double)2),(float) (_cy-_h/(double)2),(float) (__ref._bc /*b4a.example.bitmapcreator*/ ._mwidth/(double)2+_w/(double)2),(float) (_cy+_h/(double)2)); -RDebugUtils.currentLine=61800463; - //BA.debugLineNum = 61800463;BA.debugLine="If State > 0 Then bc.DrawRectRounded2(smallrect,"; -if (_state>0) { -__ref._bc /*b4a.example.bitmapcreator*/ ._drawrectrounded2(_smallrect,__ref._oncolor /*b4a.example.bcpath._bcbrush*/ ,__c.True,(int) (2*__ref._scale /*float*/ ),(int) (_smallrect.getHeight()/(double)2));}; -RDebugUtils.currentLine=61800464; - //BA.debugLineNum = 61800464;BA.debugLine="If mEnabled Then"; -if (__ref._menabled /*boolean*/ ) { -RDebugUtils.currentLine=61800465; - //BA.debugLineNum = 61800465;BA.debugLine="bc.DrawCircle2(cx, cy, r - 2 * Scale, ThumbColor"; -__ref._bc /*b4a.example.bitmapcreator*/ ._drawcircle2(_cx,(float) (_cy),(float) (_r-2*__ref._scale /*float*/ ),__ref._thumbcolor /*b4a.example.bcpath._bcbrush*/ ,__c.True,(int) (0)); - }; -RDebugUtils.currentLine=61800467; - //BA.debugLineNum = 61800467;BA.debugLine="bc.SetBitmapToImageView(bc.Bitmap, iv)"; -__ref._bc /*b4a.example.bitmapcreator*/ ._setbitmaptoimageview(__ref._bc /*b4a.example.bitmapcreator*/ ._getbitmap(),(anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._iv /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .getObject()))); -RDebugUtils.currentLine=61800468; - //BA.debugLineNum = 61800468;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 _getenabled(reparto_izca.keymon.lat.b4xswitch __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xswitch"; -if (Debug.shouldDelegate(ba, "getenabled", true)) - {return ((Boolean) Debug.delegate(ba, "getenabled", null));} -RDebugUtils.currentLine=61734912; - //BA.debugLineNum = 61734912;BA.debugLine="Public Sub getEnabled As Boolean"; -RDebugUtils.currentLine=61734913; - //BA.debugLineNum = 61734913;BA.debugLine="Return mEnabled"; -if (true) return __ref._menabled /*boolean*/ ; -RDebugUtils.currentLine=61734914; - //BA.debugLineNum = 61734914;BA.debugLine="End Sub"; -return false; } -public boolean _getvalue(reparto_izca.keymon.lat.b4xswitch __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xswitch"; -if (Debug.shouldDelegate(ba, "getvalue", true)) - {return ((Boolean) Debug.delegate(ba, "getvalue", null));} -RDebugUtils.currentLine=61603840; - //BA.debugLineNum = 61603840;BA.debugLine="Public Sub getValue As Boolean"; -RDebugUtils.currentLine=61603841; - //BA.debugLineNum = 61603841;BA.debugLine="Return mValue"; -if (true) return __ref._mvalue /*boolean*/ ; -RDebugUtils.currentLine=61603842; - //BA.debugLineNum = 61603842;BA.debugLine="End Sub"; -return false; -} -public String _initialize(reparto_izca.keymon.lat.b4xswitch __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xswitch"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=61276160; - //BA.debugLineNum = 61276160;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=61276161; - //BA.debugLineNum = 61276161;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=61276162; - //BA.debugLineNum = 61276162;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=61276163; - //BA.debugLineNum = 61276163;BA.debugLine="End Sub"; -return ""; -} -public String _pnl_click(reparto_izca.keymon.lat.b4xswitch __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xswitch"; -if (Debug.shouldDelegate(ba, "pnl_click", true)) - {return ((String) Debug.delegate(ba, "pnl_click", null));} -RDebugUtils.currentLine=61407232; - //BA.debugLineNum = 61407232;BA.debugLine="Private Sub pnl_Click"; -RDebugUtils.currentLine=61407234; - //BA.debugLineNum = 61407234;BA.debugLine="If mEnabled Then"; -if (__ref._menabled /*boolean*/ ) { -RDebugUtils.currentLine=61407235; - //BA.debugLineNum = 61407235;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFeedb"; -if (__ref._mhaptic /*boolean*/ ) { -_xuiviewsutils._performhapticfeedback /*String*/ (ba,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ );}; -RDebugUtils.currentLine=61407236; - //BA.debugLineNum = 61407236;BA.debugLine="SetValueImpl(Not(mValue), False)"; -__ref._setvalueimpl /*void*/ (null,__c.Not(__ref._mvalue /*boolean*/ ),__c.False); -RDebugUtils.currentLine=61407237; - //BA.debugLineNum = 61407237;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Value"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_ValueChanged",(int) (1))) { -RDebugUtils.currentLine=61407238; - //BA.debugLineNum = 61407238;BA.debugLine="CallSubDelayed2(mCallBack, mEventName & \"_Value"; -__c.CallSubDelayed2(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_ValueChanged",(Object)(__ref._mvalue /*boolean*/ )); - }; - }; -RDebugUtils.currentLine=61407241; - //BA.debugLineNum = 61407241;BA.debugLine="End Sub"; -return ""; -} -public String _setenabled(reparto_izca.keymon.lat.b4xswitch __ref,boolean _b) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xswitch"; -if (Debug.shouldDelegate(ba, "setenabled", true)) - {return ((String) Debug.delegate(ba, "setenabled", new Object[] {_b}));} -RDebugUtils.currentLine=61669376; - //BA.debugLineNum = 61669376;BA.debugLine="Public Sub setEnabled (b As Boolean)"; -RDebugUtils.currentLine=61669377; - //BA.debugLineNum = 61669377;BA.debugLine="mEnabled = b"; -__ref._menabled /*boolean*/ = _b; -RDebugUtils.currentLine=61669378; - //BA.debugLineNum = 61669378;BA.debugLine="SetValueImpl(mValue, True)"; -__ref._setvalueimpl /*void*/ (null,__ref._mvalue /*boolean*/ ,__c.True); -RDebugUtils.currentLine=61669379; - //BA.debugLineNum = 61669379;BA.debugLine="End Sub"; -return ""; -} -public String _setvalue(reparto_izca.keymon.lat.b4xswitch __ref,boolean _b) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xswitch"; -if (Debug.shouldDelegate(ba, "setvalue", true)) - {return ((String) Debug.delegate(ba, "setvalue", new Object[] {_b}));} -RDebugUtils.currentLine=61538304; - //BA.debugLineNum = 61538304;BA.debugLine="Public Sub setValue(b As Boolean)"; -RDebugUtils.currentLine=61538305; - //BA.debugLineNum = 61538305;BA.debugLine="If b = mValue Then Return"; -if (_b==__ref._mvalue /*boolean*/ ) { -if (true) return "";}; -RDebugUtils.currentLine=61538306; - //BA.debugLineNum = 61538306;BA.debugLine="SetValueImpl(b, False)"; -__ref._setvalueimpl /*void*/ (null,_b,__c.False); -RDebugUtils.currentLine=61538307; - //BA.debugLineNum = 61538307;BA.debugLine="End Sub"; -return ""; -} -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/b4xtimedtemplate.java b/B4A/Objects/src/reparto_izca/keymon/lat/b4xtimedtemplate.java index c36e267..bfbab19 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/b4xtimedtemplate.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/b4xtimedtemplate.java @@ -10,7 +10,7 @@ public class b4xtimedtemplate extends B4AClass.ImplB4AClass implements BA.SubDel private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xtimedtemplate"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.b4xtimedtemplate"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class b4xtimedtemplate extends B4AClass.ImplB4AClass implements BA.SubDel ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; public reparto_izca.keymon.lat.anotherprogressbar _anotherprogressbar1 = null; @@ -51,67 +44,82 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xtimedtemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xtimedtemplate"; -if (Debug.shouldDelegate(ba, "getpanel", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(ba, "getpanel", new Object[] {_dialog}));} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private xui As XUI"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 3;BA.debugLine="Public mBase As B4XView"; +_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 4;BA.debugLine="Private AnotherProgressBar1 As AnotherProgressBar"; +_anotherprogressbar1 = new reparto_izca.keymon.lat.anotherprogressbar(); + //BA.debugLineNum = 5;BA.debugLine="Private mTemplate As Object"; +_mtemplate = new Object(); + //BA.debugLineNum = 6;BA.debugLine="Public TimeoutMilliseconds As Int = 10000"; +_timeoutmilliseconds = (int) (10000); + //BA.debugLineNum = 7;BA.debugLine="Private Index As Int"; +_index = 0; + //BA.debugLineNum = 8;BA.debugLine="End Sub"; +return ""; +} +public String _dialogclosed(int _result) throws Exception{ + //BA.debugLineNum = 41;BA.debugLine="Private Sub DialogClosed(Result As Int)"; + //BA.debugLineNum = 42;BA.debugLine="Index = Index + 1"; +_index = (int) (_index+1); + //BA.debugLineNum = 43;BA.debugLine="CallSub2(mTemplate, \"DialogClosed\", Result)"; +__c.CallSubNew2(ba,_mtemplate,"DialogClosed",(Object)(_result)); + //BA.debugLineNum = 44;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.objects.B4XViewWrapper _getpanel(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null; -RDebugUtils.currentLine=62062592; - //BA.debugLineNum = 62062592;BA.debugLine="Public Sub GetPanel (Dialog As B4XDialog) As B4XVi"; -RDebugUtils.currentLine=62062593; - //BA.debugLineNum = 62062593;BA.debugLine="If mBase.NumberOfViews = 0 Then"; -if (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getNumberOfViews()==0) { -RDebugUtils.currentLine=62062594; - //BA.debugLineNum = 62062594;BA.debugLine="Dim InnerPanel As B4XView = CallSub2(mTemplate,"; + //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.CallSubDebug2(ba,__ref._mtemplate /*Object*/ ,"GetPanel",(Object)(_dialog)))); -RDebugUtils.currentLine=62062595; - //BA.debugLineNum = 62062595;BA.debugLine="If InnerPanel.Parent.IsInitialized Then InnerPan"; +_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();}; -RDebugUtils.currentLine=62062596; - //BA.debugLineNum = 62062596;BA.debugLine="mBase.SetLayoutAnimated(0, 0, 0, InnerPanel.Widt"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),_innerpanel.getWidth(),(int) (_innerpanel.getHeight()+__c.DipToCurrent((int) (19)))); -RDebugUtils.currentLine=62062597; - //BA.debugLineNum = 62062597;BA.debugLine="mBase.LoadLayout(\"TimedDialogTemplate\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("TimedDialogTemplate",ba); -RDebugUtils.currentLine=62062598; - //BA.debugLineNum = 62062598;BA.debugLine="mBase.SetColorAndBorder(xui.Color_Transparent, 0"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetColorAndBorder(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent,(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=62062599; - //BA.debugLineNum = 62062599;BA.debugLine="mBase.AddView(InnerPanel, 0, 19dip, InnerPanel.W"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_innerpanel.getObject()),(int) (0),__c.DipToCurrent((int) (19)),_innerpanel.getWidth(),_innerpanel.getHeight()); + //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()); }; -RDebugUtils.currentLine=62062601; - //BA.debugLineNum = 62062601;BA.debugLine="Return mBase"; -if (true) return __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ; -RDebugUtils.currentLine=62062602; - //BA.debugLineNum = 62062602;BA.debugLine="End Sub"; + //BA.debugLineNum = 25;BA.debugLine="Return mBase"; +if (true) return _mbase; + //BA.debugLineNum = 26;BA.debugLine="End Sub"; return null; } -public void _show(reparto_izca.keymon.lat.b4xtimedtemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ -RDebugUtils.currentModule="b4xtimedtemplate"; -if (Debug.shouldDelegate(ba, "show", true)) - {Debug.delegate(ba, "show", new Object[] {_dialog}); return;} -ResumableSub_Show rsub = new ResumableSub_Show(this,__ref,_dialog); +public String _initialize(anywheresoftware.b4a.BA _ba,Object _innertemplate) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 10;BA.debugLine="Public Sub Initialize (InnerTemplate As Object)"; + //BA.debugLineNum = 11;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")"; +_mbase = _xui.CreatePanel(ba,"mBase"); + //BA.debugLineNum = 12;BA.debugLine="mTemplate = InnerTemplate"; +_mtemplate = _innertemplate; + //BA.debugLineNum = 14;BA.debugLine="End Sub"; +return ""; +} +public void _show(reparto_izca.keymon.lat.b4xdialog _dialog) throws Exception{ +ResumableSub_Show rsub = new ResumableSub_Show(this,_dialog); rsub.resume(ba, null); } public static class ResumableSub_Show extends BA.ResumableSub { -public ResumableSub_Show(reparto_izca.keymon.lat.b4xtimedtemplate parent,reparto_izca.keymon.lat.b4xtimedtemplate __ref,reparto_izca.keymon.lat.b4xdialog _dialog) { +public ResumableSub_Show(reparto_izca.keymon.lat.b4xtimedtemplate parent,reparto_izca.keymon.lat.b4xdialog _dialog) { this.parent = parent; -this.__ref = __ref; this._dialog = _dialog; -this.__ref = parent; } -reparto_izca.keymon.lat.b4xtimedtemplate __ref; reparto_izca.keymon.lat.b4xtimedtemplate parent; reparto_izca.keymon.lat.b4xdialog _dialog; int _myindex = 0; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="b4xtimedtemplate"; while (true) { switch (state) { @@ -121,124 +129,60 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=62128129; - //BA.debugLineNum = 62128129;BA.debugLine="CallSub2(mTemplate, \"Show\", Dialog)"; -parent.__c.CallSubDebug2(ba,__ref._mtemplate /*Object*/ ,"Show",(Object)(_dialog)); -RDebugUtils.currentLine=62128130; - //BA.debugLineNum = 62128130;BA.debugLine="AnotherProgressBar1.SetValueNoAnimation(0)"; -__ref._anotherprogressbar1 /*reparto_izca.keymon.lat.anotherprogressbar*/ ._setvaluenoanimation /*String*/ (null,(int) (0)); -RDebugUtils.currentLine=62128131; - //BA.debugLineNum = 62128131;BA.debugLine="AnotherProgressBar1.ValueChangePerSecond = 100 /"; -__ref._anotherprogressbar1 /*reparto_izca.keymon.lat.anotherprogressbar*/ ._valuechangepersecond /*float*/ = (float) (100/(double)(__ref._timeoutmilliseconds /*int*/ /(double)1000)); -RDebugUtils.currentLine=62128132; - //BA.debugLineNum = 62128132;BA.debugLine="AnotherProgressBar1.Value = 100"; -__ref._anotherprogressbar1 /*reparto_izca.keymon.lat.anotherprogressbar*/ ._setvalue /*int*/ (null,(int) (100)); -RDebugUtils.currentLine=62128133; - //BA.debugLineNum = 62128133;BA.debugLine="Index = Index + 1"; -__ref._index /*int*/ = (int) (__ref._index /*int*/ +1); -RDebugUtils.currentLine=62128134; - //BA.debugLineNum = 62128134;BA.debugLine="Dim MyIndex As Int = Index"; -_myindex = __ref._index /*int*/ ; -RDebugUtils.currentLine=62128135; - //BA.debugLineNum = 62128135;BA.debugLine="Sleep(TimeoutMilliseconds)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "b4xtimedtemplate", "show"),__ref._timeoutmilliseconds /*int*/ ); + //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; ; -RDebugUtils.currentLine=62128136; - //BA.debugLineNum = 62128136;BA.debugLine="If MyIndex = Index Then"; + //BA.debugLineNum = 36;BA.debugLine="If MyIndex = Index Then"; if (true) break; case 1: //if this.state = 4; -if (_myindex==__ref._index /*int*/ ) { +if (_myindex==parent._index) { this.state = 3; }if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=62128137; - //BA.debugLineNum = 62128137;BA.debugLine="Dialog.Close(xui.DialogResponse_Cancel)"; -_dialog._close /*boolean*/ (null,__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .DialogResponse_Cancel); + //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; ; -RDebugUtils.currentLine=62128139; - //BA.debugLineNum = 62128139;BA.debugLine="End Sub"; + //BA.debugLineNum = 39;BA.debugLine="End Sub"; if (true) break; } } } } -public String _dialogclosed(reparto_izca.keymon.lat.b4xtimedtemplate __ref,int _result) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xtimedtemplate"; -if (Debug.shouldDelegate(ba, "dialogclosed", true)) - {return ((String) Debug.delegate(ba, "dialogclosed", new Object[] {_result}));} -RDebugUtils.currentLine=62193664; - //BA.debugLineNum = 62193664;BA.debugLine="Private Sub DialogClosed(Result As Int)"; -RDebugUtils.currentLine=62193665; - //BA.debugLineNum = 62193665;BA.debugLine="Index = Index + 1"; -__ref._index /*int*/ = (int) (__ref._index /*int*/ +1); -RDebugUtils.currentLine=62193666; - //BA.debugLineNum = 62193666;BA.debugLine="CallSub2(mTemplate, \"DialogClosed\", Result)"; -__c.CallSubDebug2(ba,__ref._mtemplate /*Object*/ ,"DialogClosed",(Object)(_result)); -RDebugUtils.currentLine=62193667; - //BA.debugLineNum = 62193667;BA.debugLine="End Sub"; -return ""; +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "DIALOGCLOSED")) + return _dialogclosed(((Number)args[0]).intValue()); +if (BA.fastSubCompare(sub, "GETPANEL")) + return _getpanel((reparto_izca.keymon.lat.b4xdialog) args[0]); +return BA.SubDelegator.SubNotFound; } -public String _class_globals(reparto_izca.keymon.lat.b4xtimedtemplate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="b4xtimedtemplate"; -RDebugUtils.currentLine=61931520; - //BA.debugLineNum = 61931520;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=61931521; - //BA.debugLineNum = 61931521;BA.debugLine="Private xui As XUI"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=61931522; - //BA.debugLineNum = 61931522;BA.debugLine="Public mBase As B4XView"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=61931523; - //BA.debugLineNum = 61931523;BA.debugLine="Private AnotherProgressBar1 As AnotherProgressBar"; -_anotherprogressbar1 = new reparto_izca.keymon.lat.anotherprogressbar(); -RDebugUtils.currentLine=61931524; - //BA.debugLineNum = 61931524;BA.debugLine="Private mTemplate As Object"; -_mtemplate = new Object(); -RDebugUtils.currentLine=61931525; - //BA.debugLineNum = 61931525;BA.debugLine="Public TimeoutMilliseconds As Int = 10000"; -_timeoutmilliseconds = (int) (10000); -RDebugUtils.currentLine=61931526; - //BA.debugLineNum = 61931526;BA.debugLine="Private Index As Int"; -_index = 0; -RDebugUtils.currentLine=61931527; - //BA.debugLineNum = 61931527;BA.debugLine="End Sub"; -return ""; } -public String _initialize(reparto_izca.keymon.lat.b4xtimedtemplate __ref,anywheresoftware.b4a.BA _ba,Object _innertemplate) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="b4xtimedtemplate"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_innertemplate}));} -RDebugUtils.currentLine=61997056; - //BA.debugLineNum = 61997056;BA.debugLine="Public Sub Initialize (InnerTemplate As Object)"; -RDebugUtils.currentLine=61997057; - //BA.debugLineNum = 61997057;BA.debugLine="mBase = xui.CreatePanel(\"mBase\")"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"mBase"); -RDebugUtils.currentLine=61997058; - //BA.debugLineNum = 61997058;BA.debugLine="mTemplate = InnerTemplate"; -__ref._mtemplate /*Object*/ = _innertemplate; -RDebugUtils.currentLine=61997060; - //BA.debugLineNum = 61997060;BA.debugLine="End Sub"; -return ""; -} -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/batteryutilities.java b/B4A/Objects/src/reparto_izca/keymon/lat/batteryutilities.java index 7096b1d..7394bdb 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/batteryutilities.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/batteryutilities.java @@ -17,7 +17,7 @@ public class batteryutilities extends B4AClass.ImplB4AClass implements BA.SubDel private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.batteryutilities"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.batteryutilities"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -30,14 +30,7 @@ public class batteryutilities extends B4AClass.ImplB4AClass implements BA.SubDel ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4j.object.JavaObject _nativeme = null; public b4a.example.dateutils _dateutils = null; public reparto_izca.keymon.lat.main _main = null; @@ -53,75 +46,49 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _class_globals(reparto_izca.keymon.lat.batteryutilities __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="batteryutilities"; -RDebugUtils.currentLine=3276800; - //BA.debugLineNum = 3276800;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=3276801; - //BA.debugLineNum = 3276801;BA.debugLine="Private nativeMe As JavaObject"; +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(); -RDebugUtils.currentLine=3276802; - //BA.debugLineNum = 3276802;BA.debugLine="End Sub"; + //BA.debugLineNum = 4;BA.debugLine="End Sub"; return ""; } -public int[] _getbatteryinformation(reparto_izca.keymon.lat.batteryutilities __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="batteryutilities"; -if (Debug.shouldDelegate(ba, "getbatteryinformation", false)) - {return ((int[]) Debug.delegate(ba, "getbatteryinformation", null));} +public int[] _getbatteryinformation() throws Exception{ int[] _batteryinfo = null; -RDebugUtils.currentLine=3407872; - //BA.debugLineNum = 3407872;BA.debugLine="Public Sub getBatteryInformation () As Int()"; -RDebugUtils.currentLine=3407874; - //BA.debugLineNum = 3407874;BA.debugLine="Dim batteryInfo(11) As Int"; + //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)]; ; -RDebugUtils.currentLine=3407875; - //BA.debugLineNum = 3407875;BA.debugLine="batteryInfo = nativeMe.RunMethod(\"getBatteryInfor"; -_batteryinfo = (int[])(__ref._nativeme /*anywheresoftware.b4j.object.JavaObject*/ .RunMethod("getBatteryInformation",(Object[])(__c.Null))); -RDebugUtils.currentLine=3407876; - //BA.debugLineNum = 3407876;BA.debugLine="Return batteryInfo"; + //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; -RDebugUtils.currentLine=3407877; - //BA.debugLineNum = 3407877;BA.debugLine="End Sub"; + //BA.debugLineNum = 27;BA.debugLine="End Sub"; return null; } -public String _getbatterytechnolgy(reparto_izca.keymon.lat.batteryutilities __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="batteryutilities"; -if (Debug.shouldDelegate(ba, "getbatterytechnolgy", false)) - {return ((String) Debug.delegate(ba, "getbatterytechnolgy", null));} +public String _getbatterytechnolgy() throws Exception{ String _batterytech = ""; -RDebugUtils.currentLine=3473408; - //BA.debugLineNum = 3473408;BA.debugLine="Public Sub getBatteryTechnolgy() As String"; -RDebugUtils.currentLine=3473410; - //BA.debugLineNum = 3473410;BA.debugLine="Dim batterytech As String"; + //BA.debugLineNum = 29;BA.debugLine="Public Sub getBatteryTechnolgy() As String"; + //BA.debugLineNum = 31;BA.debugLine="Dim batterytech As String"; _batterytech = ""; -RDebugUtils.currentLine=3473411; - //BA.debugLineNum = 3473411;BA.debugLine="batterytech = nativeMe.RunMethod(\"getBatteryTechn"; -_batterytech = BA.ObjectToString(__ref._nativeme /*anywheresoftware.b4j.object.JavaObject*/ .RunMethod("getBatteryTechnology",(Object[])(__c.Null))); -RDebugUtils.currentLine=3473412; - //BA.debugLineNum = 3473412;BA.debugLine="Return batterytech"; + //BA.debugLineNum = 32;BA.debugLine="batterytech = nativeMe.RunMethod(\"getBatteryTechn"; +_batterytech = BA.ObjectToString(_nativeme.RunMethod("getBatteryTechnology",(Object[])(__c.Null))); + //BA.debugLineNum = 33;BA.debugLine="Return batterytech"; if (true) return _batterytech; -RDebugUtils.currentLine=3473414; - //BA.debugLineNum = 3473414;BA.debugLine="End Sub"; + //BA.debugLineNum = 35;BA.debugLine="End Sub"; return ""; } -public String _initialize(reparto_izca.keymon.lat.batteryutilities __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="batteryutilities"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=3342336; - //BA.debugLineNum = 3342336;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=3342337; - //BA.debugLineNum = 3342337;BA.debugLine="nativeMe = Me"; -__ref._nativeme /*anywheresoftware.b4j.object.JavaObject*/ = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(this)); -RDebugUtils.currentLine=3342338; - //BA.debugLineNum = 3342338;BA.debugLine="End Sub"; + //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; } @@ -195,4 +162,4 @@ return ""; -} \ No newline at end of file +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_buscar.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_buscar.java index 5037302..52b349a 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_buscar.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_buscar.java @@ -10,7 +10,7 @@ public class c_buscar extends B4AClass.ImplB4AClass implements BA.SubDelegator{ private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_buscar"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_buscar"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_buscar extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -51,179 +44,113 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_buscar __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="c_buscar"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=3604480; - //BA.debugLineNum = 3604480;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=3604481; - //BA.debugLineNum = 3604481;BA.debugLine="Return Me"; -if (true) return this; -RDebugUtils.currentLine=3604482; - //BA.debugLineNum = 3604482;BA.debugLine="End Sub"; -return null; -} -public String _b_noventa_click(reparto_izca.keymon.lat.c_buscar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_buscar"; -if (Debug.shouldDelegate(ba, "b_noventa_click", false)) - {return ((String) Debug.delegate(ba, "b_noventa_click", null));} +public String _b_noventa_click() throws Exception{ int _i = 0; anywheresoftware.b4a.objects.LabelWrapper _label1 = null; anywheresoftware.b4a.objects.LabelWrapper _label2 = null; -RDebugUtils.currentLine=3997696; - //BA.debugLineNum = 3997696;BA.debugLine="Sub b_noventa_Click"; -RDebugUtils.currentLine=3997697; - //BA.debugLineNum = 3997697;BA.debugLine="c=Starter.skmt.ExecQuery(\"select NV_CLIENTE,NV_MO"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select NV_CLIENTE,NV_MOTIVO,NV_COMM FROM NOVENTA ORDER BY NV_CLIENTE asc"))); -RDebugUtils.currentLine=3997698; - //BA.debugLineNum = 3997698;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=3997700; - //BA.debugLineNum = 3997700;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=3997701; - //BA.debugLineNum = 3997701;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 85;BA.debugLine="Sub b_noventa_Click"; + //BA.debugLineNum = 86;BA.debugLine="c=Starter.skmt.ExecQuery(\"select NV_CLIENTE,NV_MO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select NV_CLIENTE,NV_MOTIVO,NV_COMM FROM NOVENTA ORDER BY NV_CLIENTE asc"))); + //BA.debugLineNum = 87;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 89;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 90;BA.debugLine="For i=0 To c.RowCount -1"; { final int step4 = 1; -final int limit4 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit4 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit4 ;_i = _i + step4 ) { -RDebugUtils.currentLine=3997702; - //BA.debugLineNum = 3997702;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=3997703; - //BA.debugLineNum = 3997703;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 91;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 92;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=3997704; - //BA.debugLineNum = 3997704;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=3997705; - //BA.debugLineNum = 3997705;BA.debugLine="label1.TextSize = 10"; + //BA.debugLineNum = 93;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 94;BA.debugLine="label1.TextSize = 10"; _label1.setTextSize((float) (10)); -RDebugUtils.currentLine=3997706; - //BA.debugLineNum = 3997706;BA.debugLine="label1.TextColor = Colors.Black"; + //BA.debugLineNum = 95;BA.debugLine="label1.TextColor = Colors.Black"; _label1.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=3997707; - //BA.debugLineNum = 3997707;BA.debugLine="Dim label2 As Label"; + //BA.debugLineNum = 96;BA.debugLine="Dim label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=3997708; - //BA.debugLineNum = 3997708;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=3997709; - //BA.debugLineNum = 3997709;BA.debugLine="label2.TextSize = 10"; + //BA.debugLineNum = 97;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 98;BA.debugLine="label2.TextSize = 10"; _label2.setTextSize((float) (10)); -RDebugUtils.currentLine=3997710; - //BA.debugLineNum = 3997710;BA.debugLine="label2.TextColor = Colors.Blue"; + //BA.debugLineNum = 99;BA.debugLine="label2.TextColor = Colors.Blue"; _label2.setTextColor(__c.Colors.Blue); -RDebugUtils.currentLine=3997711; - //BA.debugLineNum = 3997711;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"NV_CLIENTE\")"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_CLIENTE")),BA.ObjectToCharSequence("Motivo #"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_MOTIVO")+" Comentario $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_COMM"))); + //BA.debugLineNum = 100;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"NV_CLIENTE\")"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("NV_CLIENTE")),BA.ObjectToCharSequence("Motivo #"+_c.GetString("NV_MOTIVO")+" Comentario $"+_c.GetString("NV_COMM"))); } }; }; -RDebugUtils.currentLine=3997714; - //BA.debugLineNum = 3997714;BA.debugLine="End Sub"; + //BA.debugLineNum = 103;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_buscar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_buscar"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} +public String _b4xpage_appear() throws Exception{ int _i = 0; anywheresoftware.b4a.objects.LabelWrapper _label1 = null; anywheresoftware.b4a.objects.LabelWrapper _label2 = null; -RDebugUtils.currentLine=3735552; - //BA.debugLineNum = 3735552;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=3735553; - //BA.debugLineNum = 3735553;BA.debugLine="p_principal.Width = Root.Width"; -__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=3735554; - //BA.debugLineNum = 3735554;BA.debugLine="p_principal.Height = Root.Height"; -__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=3735555; - //BA.debugLineNum = 3735555;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; -_subs._centrapanel /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=3735557; - //BA.debugLineNum = 3735557;BA.debugLine="c=Starter.skmt.ExecQuery(\"select REP_CLIENTE, REP"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT FROM REPARTO"))); -RDebugUtils.currentLine=3735558; - //BA.debugLineNum = 3735558;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=3735560; - //BA.debugLineNum = 3735560;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=3735561; - //BA.debugLineNum = 3735561;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 41;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 42;BA.debugLine="p_principal.Width = Root.Width"; +_p_principal.setWidth(_root.getWidth()); + //BA.debugLineNum = 43;BA.debugLine="p_principal.Height = Root.Height"; +_p_principal.setHeight(_root.getHeight()); + //BA.debugLineNum = 44;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth()); + //BA.debugLineNum = 46;BA.debugLine="c=Starter.skmt.ExecQuery(\"select REP_CLIENTE, REP"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT FROM REPARTO"))); + //BA.debugLineNum = 47;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 49;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 50;BA.debugLine="For i=0 To c.RowCount -1"; { final int step7 = 1; -final int limit7 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit7 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit7 ;_i = _i + step7 ) { -RDebugUtils.currentLine=3735562; - //BA.debugLineNum = 3735562;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=3735563; - //BA.debugLineNum = 3735563;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 51;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 52;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=3735564; - //BA.debugLineNum = 3735564;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=3735565; - //BA.debugLineNum = 3735565;BA.debugLine="label1.TextSize = 10"; + //BA.debugLineNum = 53;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 54;BA.debugLine="label1.TextSize = 10"; _label1.setTextSize((float) (10)); -RDebugUtils.currentLine=3735566; - //BA.debugLineNum = 3735566;BA.debugLine="label1.TextColor = Colors.Black"; + //BA.debugLineNum = 55;BA.debugLine="label1.TextColor = Colors.Black"; _label1.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=3735567; - //BA.debugLineNum = 3735567;BA.debugLine="Dim label2 As Label"; + //BA.debugLineNum = 56;BA.debugLine="Dim label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=3735568; - //BA.debugLineNum = 3735568;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=3735569; - //BA.debugLineNum = 3735569;BA.debugLine="label2.TextSize = 10"; + //BA.debugLineNum = 57;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 58;BA.debugLine="label2.TextSize = 10"; _label2.setTextSize((float) (10)); -RDebugUtils.currentLine=3735570; - //BA.debugLineNum = 3735570;BA.debugLine="label2.TextColor = Colors.Blue"; + //BA.debugLineNum = 59;BA.debugLine="label2.TextColor = Colors.Blue"; _label2.setTextColor(__c.Colors.Blue); -RDebugUtils.currentLine=3735571; - //BA.debugLineNum = 3735571;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"REP_CLIENTE\""; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_CLIENTE")),BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_PRONOMBRE")+" Cantidad #"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_CANT")+" SubTotal $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_COSTO_TOT"))); + //BA.debugLineNum = 60;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"REP_CLIENTE\""; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("REP_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("REP_PRONOMBRE")+" Cantidad #"+_c.GetString("REP_CANT")+" SubTotal $"+_c.GetString("REP_COSTO_TOT"))); } }; }; -RDebugUtils.currentLine=3735574; - //BA.debugLineNum = 3735574;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=3735575; - //BA.debugLineNum = 3735575;BA.debugLine="End Sub"; + //BA.debugLineNum = 63;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 64;BA.debugLine="End Sub"; return ""; } -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest(reparto_izca.keymon.lat.c_buscar __ref) throws Exception{ -RDebugUtils.currentModule="c_buscar"; -if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));} -ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref); +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{ +ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { -public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_buscar parent,reparto_izca.keymon.lat.c_buscar __ref) { +public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_buscar parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_buscar __ref; reparto_izca.keymon.lat.c_buscar parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_buscar"; while (true) { switch (state) { @@ -233,152 +160,114 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = -1; -RDebugUtils.currentLine=3866627; - //BA.debugLineNum = 3866627;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 73;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; parent._b4xpages._showpage /*String*/ (ba,"Principal"); -RDebugUtils.currentLine=3866630; - //BA.debugLineNum = 3866630;BA.debugLine="Return False"; + //BA.debugLineNum = 76;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; -RDebugUtils.currentLine=3866631; - //BA.debugLineNum = 3866631;BA.debugLine="End Sub"; + //BA.debugLineNum = 77;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b4xpage_created(reparto_izca.keymon.lat.c_buscar __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_buscar"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} +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; -RDebugUtils.currentLine=3670016; - //BA.debugLineNum = 3670016;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=3670017; - //BA.debugLineNum = 3670017;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=3670019; - //BA.debugLineNum = 3670019;BA.debugLine="Root.LoadLayout(\"buscar\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("buscar",ba); -RDebugUtils.currentLine=3670020; - //BA.debugLineNum = 3670020;BA.debugLine="c=Starter.skmt.ExecQuery(\"select REP_CLIENTE, REP"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT FROM REPARTO"))); -RDebugUtils.currentLine=3670021; - //BA.debugLineNum = 3670021;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=3670022; - //BA.debugLineNum = 3670022;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=3670023; - //BA.debugLineNum = 3670023;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 16;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 17;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 19;BA.debugLine="Root.LoadLayout(\"buscar\")"; +_root.LoadLayout("buscar",ba); + //BA.debugLineNum = 20;BA.debugLine="c=Starter.skmt.ExecQuery(\"select REP_CLIENTE, REP"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT FROM REPARTO"))); + //BA.debugLineNum = 21;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 22;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 23;BA.debugLine="For i=0 To c.RowCount -1"; { final int step6 = 1; -final int limit6 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit6 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit6 ;_i = _i + step6 ) { -RDebugUtils.currentLine=3670024; - //BA.debugLineNum = 3670024;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=3670025; - //BA.debugLineNum = 3670025;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 24;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 25;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=3670026; - //BA.debugLineNum = 3670026;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=3670027; - //BA.debugLineNum = 3670027;BA.debugLine="label1.TextSize = 10"; + //BA.debugLineNum = 26;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 27;BA.debugLine="label1.TextSize = 10"; _label1.setTextSize((float) (10)); -RDebugUtils.currentLine=3670028; - //BA.debugLineNum = 3670028;BA.debugLine="label1.TextColor = Colors.Black"; + //BA.debugLineNum = 28;BA.debugLine="label1.TextColor = Colors.Black"; _label1.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=3670029; - //BA.debugLineNum = 3670029;BA.debugLine="Dim label2 As Label"; + //BA.debugLineNum = 29;BA.debugLine="Dim label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=3670030; - //BA.debugLineNum = 3670030;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=3670031; - //BA.debugLineNum = 3670031;BA.debugLine="label2.TextSize = 10"; + //BA.debugLineNum = 30;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 31;BA.debugLine="label2.TextSize = 10"; _label2.setTextSize((float) (10)); -RDebugUtils.currentLine=3670032; - //BA.debugLineNum = 3670032;BA.debugLine="label2.TextColor = Colors.Blue"; + //BA.debugLineNum = 32;BA.debugLine="label2.TextColor = Colors.Blue"; _label2.setTextColor(__c.Colors.Blue); -RDebugUtils.currentLine=3670033; - //BA.debugLineNum = 3670033;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"REP_CLIENTE\""; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_CLIENTE")),BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_PRONOMBRE")+" Cantidad #"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_CANT")+" SubTotal $"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("REP_COSTO_TOT"))); + //BA.debugLineNum = 33;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"REP_CLIENTE\""; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("REP_CLIENTE")),BA.ObjectToCharSequence(_c.GetString("REP_PRONOMBRE")+" Cantidad #"+_c.GetString("REP_CANT")+" SubTotal $"+_c.GetString("REP_COSTO_TOT"))); } }; }; -RDebugUtils.currentLine=3670036; - //BA.debugLineNum = 3670036;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=3670037; - //BA.debugLineNum = 3670037;BA.debugLine="End Sub"; + //BA.debugLineNum = 36;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 37;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.c_buscar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_buscar"; -RDebugUtils.currentLine=3538944; - //BA.debugLineNum = 3538944;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=3538945; - //BA.debugLineNum = 3538945;BA.debugLine="Private Root As B4XView 'ignore"; +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(); -RDebugUtils.currentLine=3538946; - //BA.debugLineNum = 3538946;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=3538947; - //BA.debugLineNum = 3538947;BA.debugLine="Dim c As Cursor"; + //BA.debugLineNum = 4;BA.debugLine="Dim c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=3538948; - //BA.debugLineNum = 3538948;BA.debugLine="Dim ListView1 As ListView"; + //BA.debugLineNum = 5;BA.debugLine="Dim ListView1 As ListView"; _listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=3538949; - //BA.debugLineNum = 3538949;BA.debugLine="Dim b_noventa As Button"; + //BA.debugLineNum = 6;BA.debugLine="Dim b_noventa As Button"; _b_noventa = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=3538950; - //BA.debugLineNum = 3538950;BA.debugLine="Private p_principal As Panel"; + //BA.debugLineNum = 7;BA.debugLine="Private p_principal As Panel"; _p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=3538951; - //BA.debugLineNum = 3538951;BA.debugLine="End Sub"; + //BA.debugLineNum = 8;BA.debugLine="End Sub"; return ""; } -public String _listview1_itemlongclick(reparto_izca.keymon.lat.c_buscar __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_buscar"; -if (Debug.shouldDelegate(ba, "listview1_itemlongclick", false)) - {return ((String) Debug.delegate(ba, "listview1_itemlongclick", new Object[] {_position,_value}));} -RDebugUtils.currentLine=3932160; - //BA.debugLineNum = 3932160;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; -RDebugUtils.currentLine=3932161; - //BA.debugLineNum = 3932161;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 11;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 12;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 13;BA.debugLine="End Sub"; +return null; +} +public String _listview1_itemlongclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 79;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; + //BA.debugLineNum = 80;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); -RDebugUtils.currentLine=3932162; - //BA.debugLineNum = 3932162;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V"; + //BA.debugLineNum = 81;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value})); -RDebugUtils.currentLine=3932163; - //BA.debugLineNum = 3932163;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; + //BA.debugLineNum = 82;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; _b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=3932164; - //BA.debugLineNum = 3932164;BA.debugLine="End Sub"; + //BA.debugLineNum = 83;BA.debugLine="End Sub"; return ""; } -public String _regresar_click(reparto_izca.keymon.lat.c_buscar __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_buscar"; -if (Debug.shouldDelegate(ba, "regresar_click", false)) - {return ((String) Debug.delegate(ba, "regresar_click", null));} -RDebugUtils.currentLine=3801088; - //BA.debugLineNum = 3801088;BA.debugLine="Sub Regresar_Click"; -RDebugUtils.currentLine=3801089; - //BA.debugLineNum = 3801089;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +public String _regresar_click() throws Exception{ + //BA.debugLineNum = 66;BA.debugLine="Sub Regresar_Click"; + //BA.debugLineNum = 67;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; _b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=3801090; - //BA.debugLineNum = 3801090;BA.debugLine="End Sub"; + //BA.debugLineNum = 68;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_cheklist.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_cheklist.java index 0c6fab0..75a2ef5 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_cheklist.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_cheklist.java @@ -10,7 +10,7 @@ public class c_cheklist extends B4AClass.ImplB4AClass implements BA.SubDelegator private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_cheklist"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_cheklist"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_cheklist extends B4AClass.ImplB4AClass implements BA.SubDelegator ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4a.objects.B4XViewWrapper _root = null; public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; public anywheresoftware.b4a.objects.PanelWrapper _p_check = null; @@ -144,539 +137,320 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_cheklist __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=4128768; - //BA.debugLineNum = 4128768;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=4128769; - //BA.debugLineNum = 4128769;BA.debugLine="Return Me"; -if (true) return this; -RDebugUtils.currentLine=4128770; - //BA.debugLineNum = 4128770;BA.debugLine="End Sub"; -return null; -} -public String _b_foto_click(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "b_foto_click", false)) - {return ((String) Debug.delegate(ba, "b_foto_click", null));} -RDebugUtils.currentLine=4653056; - //BA.debugLineNum = 4653056;BA.debugLine="Private Sub b_foto_Click"; -RDebugUtils.currentLine=4653057; - //BA.debugLineNum = 4653057;BA.debugLine="camEx.TakePicture"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._takepicture /*String*/ (null); -RDebugUtils.currentLine=4653058; - //BA.debugLineNum = 4653058;BA.debugLine="p_camara.Visible = False"; -__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=4653060; - //BA.debugLineNum = 4653060;BA.debugLine="End Sub"; +public String _b_foto_click() throws Exception{ + //BA.debugLineNum = 348;BA.debugLine="Private Sub b_foto_Click"; + //BA.debugLineNum = 349;BA.debugLine="camEx.TakePicture"; +_camex._takepicture /*String*/ (); + //BA.debugLineNum = 350;BA.debugLine="p_camara.Visible = False"; +_p_camara.setVisible(__c.False); + //BA.debugLineNum = 352;BA.debugLine="End Sub"; return ""; } -public String _b_guardar_click(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "b_guardar_click", false)) - {return ((String) Debug.delegate(ba, "b_guardar_click", null));} +public String _b_guardar_click() throws Exception{ String _dirp = ""; String _dir = ""; String _dir2 = ""; String _checkdate = ""; String _checktime = ""; String _rutacheck = ""; -RDebugUtils.currentLine=7405568; - //BA.debugLineNum = 7405568;BA.debugLine="Private Sub b_guardar_Click"; -RDebugUtils.currentLine=7405570; - //BA.debugLineNum = 7405570;BA.debugLine="Dim Dirp As String = File.DirInternal"; + //BA.debugLineNum = 541;BA.debugLine="Private Sub b_guardar_Click"; + //BA.debugLineNum = 543;BA.debugLine="Dim Dirp As String = File.DirInternal"; _dirp = __c.File.getDirInternal(); -RDebugUtils.currentLine=7405571; - //BA.debugLineNum = 7405571;BA.debugLine="Dim Dir As String"; + //BA.debugLineNum = 544;BA.debugLine="Dim Dir As String"; _dir = ""; -RDebugUtils.currentLine=7405572; - //BA.debugLineNum = 7405572;BA.debugLine="Dim Dir2 As String"; + //BA.debugLineNum = 545;BA.debugLine="Dim Dir2 As String"; _dir2 = ""; -RDebugUtils.currentLine=7405573; - //BA.debugLineNum = 7405573;BA.debugLine="Try"; -try {RDebugUtils.currentLine=7405574; - //BA.debugLineNum = 7405574;BA.debugLine="File.MakeDir(Dirp,\"/md\")"; + //BA.debugLineNum = 546;BA.debugLine="Try"; +try { //BA.debugLineNum = 547;BA.debugLine="File.MakeDir(Dirp,\"/md\")"; __c.File.MakeDir(_dirp,"/md"); -RDebugUtils.currentLine=7405575; - //BA.debugLineNum = 7405575;BA.debugLine="Dir = \"/md\""; + //BA.debugLineNum = 548;BA.debugLine="Dir = \"/md\""; _dir = "/md"; -RDebugUtils.currentLine=7405576; - //BA.debugLineNum = 7405576;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)"; -__c.LogImpl("27405576","creado en promotoria "+_dirp+_dir,0); + //BA.debugLineNum = 549;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)"; +__c.LogImpl("07667720","creado en promotoria "+_dirp+_dir,0); } catch (Exception e9) { - ba.setLastException(e9);RDebugUtils.currentLine=7405578; - //BA.debugLineNum = 7405578;BA.debugLine="Dir = \"\""; + ba.setLastException(e9); //BA.debugLineNum = 551;BA.debugLine="Dir = \"\""; _dir = ""; -RDebugUtils.currentLine=7405579; - //BA.debugLineNum = 7405579;BA.debugLine="Log(\"creado en raiz\")"; -__c.LogImpl("27405579","creado en raiz",0); + //BA.debugLineNum = 552;BA.debugLine="Log(\"creado en raiz\")"; +__c.LogImpl("07667723","creado en raiz",0); }; -RDebugUtils.currentLine=7405582; - //BA.debugLineNum = 7405582;BA.debugLine="Try"; -try {RDebugUtils.currentLine=7405583; - //BA.debugLineNum = 7405583;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")"; + //BA.debugLineNum = 555;BA.debugLine="Try"; +try { //BA.debugLineNum = 556;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")"; __c.File.MakeDir(_dirp+_dir,"/reduccion"); -RDebugUtils.currentLine=7405584; - //BA.debugLineNum = 7405584;BA.debugLine="Dir2 = \"/reduccion\""; + //BA.debugLineNum = 557;BA.debugLine="Dir2 = \"/reduccion\""; _dir2 = "/reduccion"; -RDebugUtils.currentLine=7405585; - //BA.debugLineNum = 7405585;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)"; -__c.LogImpl("27405585","creado en promotoria "+_dirp+_dir+_dir2,0); + //BA.debugLineNum = 558;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)"; +__c.LogImpl("07667729","creado en promotoria "+_dirp+_dir+_dir2,0); } catch (Exception e17) { - ba.setLastException(e17);RDebugUtils.currentLine=7405587; - //BA.debugLineNum = 7405587;BA.debugLine="Dir = \"\""; + ba.setLastException(e17); //BA.debugLineNum = 560;BA.debugLine="Dir = \"\""; _dir = ""; -RDebugUtils.currentLine=7405588; - //BA.debugLineNum = 7405588;BA.debugLine="Log(\"creado en raiz\")"; -__c.LogImpl("27405588","creado en raiz",0); + //BA.debugLineNum = 561;BA.debugLine="Log(\"creado en raiz\")"; +__c.LogImpl("07667732","creado en raiz",0); }; -RDebugUtils.currentLine=7405591; - //BA.debugLineNum = 7405591;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\""; + //BA.debugLineNum = 564;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\""; __c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=7405592; - //BA.debugLineNum = 7405592;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\""; + //BA.debugLineNum = 565;BA.debugLine="DateTime.DateFormat=\"dd/MM/yyyy\""; __c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=7405593; - //BA.debugLineNum = 7405593;BA.debugLine="Dim checkdate As String = DateTime.Date(DateTime."; + //BA.debugLineNum = 566;BA.debugLine="Dim checkdate As String = DateTime.Date(DateTime."; _checkdate = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=7405594; - //BA.debugLineNum = 7405594;BA.debugLine="Dim checktime As String = DateTime.Time(DateTime."; + //BA.debugLineNum = 567;BA.debugLine="Dim checktime As String = DateTime.Time(DateTime."; _checktime = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=7405595; - //BA.debugLineNum = 7405595;BA.debugLine="If et_km.Text <> \"\" Then"; -if ((__ref._et_km /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { -RDebugUtils.currentLine=7405596; - //BA.debugLineNum = 7405596;BA.debugLine="If rb_docno1.Checked Or rb_docsi1.Checked Then"; -if (__ref._rb_docno1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405597; - //BA.debugLineNum = 7405597;BA.debugLine="If rb_docno2.Checked Or rb_docsi2.Checked Then"; -if (__ref._rb_docno2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405598; - //BA.debugLineNum = 7405598;BA.debugLine="If rb_docno3.Checked Or rb_docsi3.Checked Then"; -if (__ref._rb_docno3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405599; - //BA.debugLineNum = 7405599;BA.debugLine="If rb_docno4.Checked Or rb_docsi4.Checked The"; -if (__ref._rb_docno4 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi4 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405600; - //BA.debugLineNum = 7405600;BA.debugLine="If rb_docno5.Checked Or rb_docsi5.Checked Th"; -if (__ref._rb_docno5 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi5 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405601; - //BA.debugLineNum = 7405601;BA.debugLine="If rb_docno6.Checked Or rb_docsi6.Checked T"; -if (__ref._rb_docno6 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi6 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405602; - //BA.debugLineNum = 7405602;BA.debugLine="If rb_docno7.Checked Or rb_docsi7.Checked"; -if (__ref._rb_docno7 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi7 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405603; - //BA.debugLineNum = 7405603;BA.debugLine="If rb_docno8.Checked Or rb_docsi8.Checked"; -if (__ref._rb_docno8 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi8 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405604; - //BA.debugLineNum = 7405604;BA.debugLine="If rb_docno9.Checked Or rb_docsi9.Checke"; -if (__ref._rb_docno9 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi9 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405605; - //BA.debugLineNum = 7405605;BA.debugLine="If (rb_docno9.Checked And et_carroceria"; -if ((__ref._rb_docno9 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() && (__ref._et_carroceria /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) || (__ref._rb_docsi9 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() && (__ref._et_carroceria /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals(""))) { -RDebugUtils.currentLine=7405606; - //BA.debugLineNum = 7405606;BA.debugLine="If rb_docno11.Checked Or rb_docsi11.Ch"; -if (__ref._rb_docno11 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi11 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405607; - //BA.debugLineNum = 7405607;BA.debugLine="If (rb_docno11.Checked And et_luces.T"; -if ((__ref._rb_docno11 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() && (__ref._et_luces /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) || (__ref._rb_docsi11 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() && (__ref._et_luces /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals(""))) { -RDebugUtils.currentLine=7405608; - //BA.debugLineNum = 7405608;BA.debugLine="If rb_docno13.Checked Or rb_docsi13."; -if (__ref._rb_docno13 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi13 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405609; - //BA.debugLineNum = 7405609;BA.debugLine="If (rb_docno12.Checked And et_placa"; -if ((__ref._rb_docno12 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() && (__ref._et_placas /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) || (__ref._rb_docsi13 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() && (__ref._et_placas /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals(""))) { -RDebugUtils.currentLine=7405610; - //BA.debugLineNum = 7405610;BA.debugLine="If rb_docno15.Checked Or rb_docsi1"; -if (__ref._rb_docno15 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi15 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405611; - //BA.debugLineNum = 7405611;BA.debugLine="If rb_docno16.Checked Or rb_docsi"; -if (__ref._rb_docno16 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi16 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405612; - //BA.debugLineNum = 7405612;BA.debugLine="If rb_docno17.Checked Or rb_docs"; -if (__ref._rb_docno17 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi17 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405613; - //BA.debugLineNum = 7405613;BA.debugLine="If rb_docno18.Checked Or rb_doc"; -if (__ref._rb_docno18 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi18 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405614; - //BA.debugLineNum = 7405614;BA.debugLine="If rb_docno19.Checked Or rb_do"; -if (__ref._rb_docno19 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docsi19 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=7405615; - //BA.debugLineNum = 7405615;BA.debugLine="If et_liquidos.Text <> \"\" An"; -if ((__ref._et_liquidos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false && (__ref._rb_docno15 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docno16 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docno17 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docno18 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() || __ref._rb_docno19 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) || (__ref._et_liquidos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") && (__ref._rb_docsi15 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() && __ref._rb_docsi16 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() && __ref._rb_docsi17 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() && __ref._rb_docsi18 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked() && __ref._rb_docsi19 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked())) { -RDebugUtils.currentLine=7405616; - //BA.debugLineNum = 7405616;BA.debugLine="If nombrefoto <> \"0\" And nom"; -if ((__ref._nombrefoto /*String*/ ).equals("0") == false && (__ref._nombrefoto1 /*String*/ ).equals("0") == false && (__ref._nombrefoto2 /*String*/ ).equals("0") == false && (__ref._nombrefoto3 /*String*/ ).equals("0") == false) { -RDebugUtils.currentLine=7405617; - //BA.debugLineNum = 7405617;BA.debugLine="c = Starter.skmt.ExecQuery("; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); -RDebugUtils.currentLine=7405618; - //BA.debugLineNum = 7405618;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=7405619; - //BA.debugLineNum = 7405619;BA.debugLine="Private rutacheck As String"; -_rutacheck = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"); -RDebugUtils.currentLine=7405620; - //BA.debugLineNum = 7405620;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=7405621; - //BA.debugLineNum = 7405621;BA.debugLine="Starter.skmt.ExecNonQuery(\""; + //BA.debugLineNum = 568;BA.debugLine="If et_km.Text <> \"\" Then"; +if ((_et_km.getText()).equals("") == false) { + //BA.debugLineNum = 569;BA.debugLine="If rb_docno1.Checked Or rb_docsi1.Checked Then"; +if (_rb_docno1.getChecked() || _rb_docsi1.getChecked()) { + //BA.debugLineNum = 570;BA.debugLine="If rb_docno2.Checked Or rb_docsi2.Checked Then"; +if (_rb_docno2.getChecked() || _rb_docsi2.getChecked()) { + //BA.debugLineNum = 571;BA.debugLine="If rb_docno3.Checked Or rb_docsi3.Checked Then"; +if (_rb_docno3.getChecked() || _rb_docsi3.getChecked()) { + //BA.debugLineNum = 572;BA.debugLine="If rb_docno4.Checked Or rb_docsi4.Checked The"; +if (_rb_docno4.getChecked() || _rb_docsi4.getChecked()) { + //BA.debugLineNum = 573;BA.debugLine="If rb_docno5.Checked Or rb_docsi5.Checked Th"; +if (_rb_docno5.getChecked() || _rb_docsi5.getChecked()) { + //BA.debugLineNum = 574;BA.debugLine="If rb_docno6.Checked Or rb_docsi6.Checked T"; +if (_rb_docno6.getChecked() || _rb_docsi6.getChecked()) { + //BA.debugLineNum = 575;BA.debugLine="If rb_docno7.Checked Or rb_docsi7.Checked"; +if (_rb_docno7.getChecked() || _rb_docsi7.getChecked()) { + //BA.debugLineNum = 576;BA.debugLine="If rb_docno8.Checked Or rb_docsi8.Checked"; +if (_rb_docno8.getChecked() || _rb_docsi8.getChecked()) { + //BA.debugLineNum = 577;BA.debugLine="If rb_docno9.Checked Or rb_docsi9.Checke"; +if (_rb_docno9.getChecked() || _rb_docsi9.getChecked()) { + //BA.debugLineNum = 578;BA.debugLine="If (rb_docno9.Checked And et_carroceria"; +if ((_rb_docno9.getChecked() && (_et_carroceria.getText()).equals("") == false) || (_rb_docsi9.getChecked() && (_et_carroceria.getText()).equals(""))) { + //BA.debugLineNum = 579;BA.debugLine="If rb_docno11.Checked Or rb_docsi11.Ch"; +if (_rb_docno11.getChecked() || _rb_docsi11.getChecked()) { + //BA.debugLineNum = 580;BA.debugLine="If (rb_docno11.Checked And et_luces.T"; +if ((_rb_docno11.getChecked() && (_et_luces.getText()).equals("") == false) || (_rb_docsi11.getChecked() && (_et_luces.getText()).equals(""))) { + //BA.debugLineNum = 581;BA.debugLine="If rb_docno13.Checked Or rb_docsi13."; +if (_rb_docno13.getChecked() || _rb_docsi13.getChecked()) { + //BA.debugLineNum = 582;BA.debugLine="If (rb_docno12.Checked And et_placa"; +if ((_rb_docno12.getChecked() && (_et_placas.getText()).equals("") == false) || (_rb_docsi13.getChecked() && (_et_placas.getText()).equals(""))) { + //BA.debugLineNum = 583;BA.debugLine="If rb_docno15.Checked Or rb_docsi1"; +if (_rb_docno15.getChecked() || _rb_docsi15.getChecked()) { + //BA.debugLineNum = 584;BA.debugLine="If rb_docno16.Checked Or rb_docsi"; +if (_rb_docno16.getChecked() || _rb_docsi16.getChecked()) { + //BA.debugLineNum = 585;BA.debugLine="If rb_docno17.Checked Or rb_docs"; +if (_rb_docno17.getChecked() || _rb_docsi17.getChecked()) { + //BA.debugLineNum = 586;BA.debugLine="If rb_docno18.Checked Or rb_doc"; +if (_rb_docno18.getChecked() || _rb_docsi18.getChecked()) { + //BA.debugLineNum = 587;BA.debugLine="If rb_docno19.Checked Or rb_do"; +if (_rb_docno19.getChecked() || _rb_docsi19.getChecked()) { + //BA.debugLineNum = 588;BA.debugLine="If et_liquidos.Text <> \"\" An"; +if ((_et_liquidos.getText()).equals("") == false && (_rb_docno15.getChecked() || _rb_docno16.getChecked() || _rb_docno17.getChecked() || _rb_docno18.getChecked() || _rb_docno19.getChecked()) || (_et_liquidos.getText()).equals("") && (_rb_docsi15.getChecked() && _rb_docsi16.getChecked() && _rb_docsi17.getChecked() && _rb_docsi18.getChecked() && _rb_docsi19.getChecked())) { + //BA.debugLineNum = 589;BA.debugLine="If nombrefoto <> \"0\" And nom"; +if ((_nombrefoto).equals("0") == false && (_nombrefoto1).equals("0") == false && (_nombrefoto2).equals("0") == false && (_nombrefoto3).equals("0") == false) { + //BA.debugLineNum = 590;BA.debugLine="c = Starter.skmt.ExecQuery("; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); + //BA.debugLineNum = 591;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 592;BA.debugLine="Private rutacheck As String"; +_rutacheck = _c.GetString("RUTAA"); + //BA.debugLineNum = 593;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 594;BA.debugLine="Starter.skmt.ExecNonQuery(\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM CHECKLIST2"); -RDebugUtils.currentLine=7405622; - //BA.debugLineNum = 7405622;BA.debugLine="Starter.skmt.ExecNonQuery2("; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CHECKLIST2(USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE,RUTA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._usuario /*String*/ ),(Object)(__ref._l_placa /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_checkdate+" "+_checktime),(Object)(__ref._p1 /*String*/ ),(Object)(__ref._p2 /*String*/ ),(Object)(__ref._p3 /*String*/ ),(Object)(__ref._p4 /*String*/ ),(Object)(__ref._p5 /*String*/ ),(Object)(__ref._p6 /*String*/ ),(Object)(__ref._p7 /*String*/ ),(Object)(__ref._p8 /*String*/ ),(Object)(__ref._p9 /*String*/ ),(Object)(__ref._et_carroceria /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._p11 /*String*/ ),(Object)(__ref._et_luces /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._p13 /*String*/ ),(Object)(__ref._et_placas /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._itemselect1 /*String*/ ),(Object)(__ref._itemselect2 /*String*/ ),(Object)(__ref._itemselect3 /*String*/ ),(Object)(__ref._itemselect4 /*String*/ ),(Object)(__ref._p15 /*String*/ ),(Object)(__ref._p16 /*String*/ ),(Object)(__ref._p17 /*String*/ ),(Object)(__ref._p18 /*String*/ ),(Object)(__ref._p19 /*String*/ ),(Object)(__ref._et_liquidos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,__ref._nombrefoto /*String*/ )),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,__ref._nombrefoto1 /*String*/ )),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,__ref._nombrefoto2 /*String*/ )),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,__ref._nombrefoto3 /*String*/ )),(Object)(__ref._et_km /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(_rutacheck)})); -RDebugUtils.currentLine=7405625; - //BA.debugLineNum = 7405625;BA.debugLine="mandaPendientes"; -__ref._mandapendientes /*String*/ (null); -RDebugUtils.currentLine=7405627; - //BA.debugLineNum = 7405627;BA.debugLine="rb_docno1.Checked = False"; -__ref._rb_docno1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405628; - //BA.debugLineNum = 7405628;BA.debugLine="rb_docno2.Checked = False"; -__ref._rb_docno2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405629; - //BA.debugLineNum = 7405629;BA.debugLine="rb_docno3.Checked = False"; -__ref._rb_docno3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405630; - //BA.debugLineNum = 7405630;BA.debugLine="rb_docno4.Checked = False"; -__ref._rb_docno4 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405631; - //BA.debugLineNum = 7405631;BA.debugLine="rb_docno5.Checked = False"; -__ref._rb_docno5 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405632; - //BA.debugLineNum = 7405632;BA.debugLine="rb_docno6.Checked = False"; -__ref._rb_docno6 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405633; - //BA.debugLineNum = 7405633;BA.debugLine="rb_docno7.Checked = False"; -__ref._rb_docno7 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405634; - //BA.debugLineNum = 7405634;BA.debugLine="rb_docno8.Checked = False"; -__ref._rb_docno8 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405635; - //BA.debugLineNum = 7405635;BA.debugLine="rb_docno9.Checked = False"; -__ref._rb_docno9 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405636; - //BA.debugLineNum = 7405636;BA.debugLine="rb_docno11.Checked = False"; -__ref._rb_docno11 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405637; - //BA.debugLineNum = 7405637;BA.debugLine="rb_docno13.Checked = False"; -__ref._rb_docno13 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405638; - //BA.debugLineNum = 7405638;BA.debugLine="rb_docno15.Checked = False"; -__ref._rb_docno15 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405639; - //BA.debugLineNum = 7405639;BA.debugLine="rb_docno16.Checked = False"; -__ref._rb_docno16 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405640; - //BA.debugLineNum = 7405640;BA.debugLine="rb_docno17.Checked = False"; -__ref._rb_docno17 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405641; - //BA.debugLineNum = 7405641;BA.debugLine="rb_docno18.Checked = False"; -__ref._rb_docno18 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405642; - //BA.debugLineNum = 7405642;BA.debugLine="rb_docno19.Checked = False"; -__ref._rb_docno19 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405644; - //BA.debugLineNum = 7405644;BA.debugLine="rb_docsi1.Checked = False"; -__ref._rb_docsi1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405645; - //BA.debugLineNum = 7405645;BA.debugLine="rb_docsi2.Checked = False"; -__ref._rb_docsi2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405646; - //BA.debugLineNum = 7405646;BA.debugLine="rb_docsi3.Checked = False"; -__ref._rb_docsi3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405647; - //BA.debugLineNum = 7405647;BA.debugLine="rb_docsi4.Checked = False"; -__ref._rb_docsi4 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405648; - //BA.debugLineNum = 7405648;BA.debugLine="rb_docsi5.Checked = False"; -__ref._rb_docsi5 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405649; - //BA.debugLineNum = 7405649;BA.debugLine="rb_docsi6.Checked = False"; -__ref._rb_docsi6 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405650; - //BA.debugLineNum = 7405650;BA.debugLine="rb_docsi7.Checked = False"; -__ref._rb_docsi7 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405651; - //BA.debugLineNum = 7405651;BA.debugLine="rb_docsi8.Checked = False"; -__ref._rb_docsi8 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405652; - //BA.debugLineNum = 7405652;BA.debugLine="rb_docsi9.Checked = False"; -__ref._rb_docsi9 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405653; - //BA.debugLineNum = 7405653;BA.debugLine="rb_docsi11.Checked = False"; -__ref._rb_docsi11 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405654; - //BA.debugLineNum = 7405654;BA.debugLine="rb_docsi13.Checked = False"; -__ref._rb_docsi13 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405655; - //BA.debugLineNum = 7405655;BA.debugLine="rb_docsi15.Checked = False"; -__ref._rb_docsi15 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405656; - //BA.debugLineNum = 7405656;BA.debugLine="rb_docsi16.Checked = False"; -__ref._rb_docsi16 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405657; - //BA.debugLineNum = 7405657;BA.debugLine="rb_docsi17.Checked = False"; -__ref._rb_docsi17 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405658; - //BA.debugLineNum = 7405658;BA.debugLine="rb_docsi18.Checked = False"; -__ref._rb_docsi18 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405659; - //BA.debugLineNum = 7405659;BA.debugLine="rb_docsi19.Checked = False"; -__ref._rb_docsi19 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=7405661; - //BA.debugLineNum = 7405661;BA.debugLine="cb_deratras.SelectedIndex ="; -__ref._cb_deratras /*reparto_izca.keymon.lat.b4xcombobox*/ ._setselectedindex /*int*/ (null,(int) (0)); -RDebugUtils.currentLine=7405662; - //BA.debugLineNum = 7405662;BA.debugLine="cb_derdel.SelectedIndex = 0"; -__ref._cb_derdel /*reparto_izca.keymon.lat.b4xcombobox*/ ._setselectedindex /*int*/ (null,(int) (0)); -RDebugUtils.currentLine=7405663; - //BA.debugLineNum = 7405663;BA.debugLine="cb_izqatras.SelectedIndex ="; -__ref._cb_izqatras /*reparto_izca.keymon.lat.b4xcombobox*/ ._setselectedindex /*int*/ (null,(int) (0)); -RDebugUtils.currentLine=7405664; - //BA.debugLineNum = 7405664;BA.debugLine="cb_izqdel.SelectedIndex = 0"; -__ref._cb_izqdel /*reparto_izca.keymon.lat.b4xcombobox*/ ._setselectedindex /*int*/ (null,(int) (0)); -RDebugUtils.currentLine=7405666; - //BA.debugLineNum = 7405666;BA.debugLine="et_carroceria.Text = \"\""; -__ref._et_carroceria /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=7405667; - //BA.debugLineNum = 7405667;BA.debugLine="et_liquidos.Text = \"\""; -__ref._et_liquidos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=7405668; - //BA.debugLineNum = 7405668;BA.debugLine="et_luces.Text = \"\""; -__ref._et_luces /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=7405669; - //BA.debugLineNum = 7405669;BA.debugLine="et_placas.Text = \"\""; -__ref._et_placas /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=7405671; - //BA.debugLineNum = 7405671;BA.debugLine="ImageView1.Bitmap = LoadBit"; -__ref._imageview1 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"frontal1.png").getObject())); -RDebugUtils.currentLine=7405672; - //BA.debugLineNum = 7405672;BA.debugLine="ImageView2.Bitmap = LoadBit"; -__ref._imageview2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"derecha1.png").getObject())); -RDebugUtils.currentLine=7405673; - //BA.debugLineNum = 7405673;BA.debugLine="ImageView3.Bitmap = LoadBit"; -__ref._imageview3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"atras1.png").getObject())); -RDebugUtils.currentLine=7405674; - //BA.debugLineNum = 7405674;BA.debugLine="ImageView4.Bitmap = LoadBit"; -__ref._imageview4 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"izquierda1.png").getObject())); -RDebugUtils.currentLine=7405676; - //BA.debugLineNum = 7405676;BA.debugLine="nombrefoto = \"0\""; -__ref._nombrefoto /*String*/ = "0"; -RDebugUtils.currentLine=7405677; - //BA.debugLineNum = 7405677;BA.debugLine="nombrefoto1 = \"0\""; -__ref._nombrefoto1 /*String*/ = "0"; -RDebugUtils.currentLine=7405678; - //BA.debugLineNum = 7405678;BA.debugLine="nombrefoto2 = \"0\""; -__ref._nombrefoto2 /*String*/ = "0"; -RDebugUtils.currentLine=7405679; - //BA.debugLineNum = 7405679;BA.debugLine="nombrefoto3 = \"0\""; -__ref._nombrefoto3 /*String*/ = "0"; -RDebugUtils.currentLine=7405681; - //BA.debugLineNum = 7405681;BA.debugLine="B4XPages.ShowPage(\"Principa"; + //BA.debugLineNum = 595;BA.debugLine="Starter.skmt.ExecNonQuery2("; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CHECKLIST2(USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE,RUTA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._usuario /*String*/ ),(Object)(_l_placa.getText()),(Object)(_checkdate+" "+_checktime),(Object)(_p1),(Object)(_p2),(Object)(_p3),(Object)(_p4),(Object)(_p5),(Object)(_p6),(Object)(_p7),(Object)(_p8),(Object)(_p9),(Object)(_et_carroceria.getText()),(Object)(_p11),(Object)(_et_luces.getText()),(Object)(_p13),(Object)(_et_placas.getText()),(Object)(_itemselect1),(Object)(_itemselect2),(Object)(_itemselect3),(Object)(_itemselect4),(Object)(_p15),(Object)(_p16),(Object)(_p17),(Object)(_p18),(Object)(_p19),(Object)(_et_liquidos.getText()),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto)),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto1)),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto2)),(Object)(__c.File.ReadBytes(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto3)),(Object)(_et_km.getText()),(Object)(_rutacheck)})); + //BA.debugLineNum = 598;BA.debugLine="mandaPendientes"; +_mandapendientes(); + //BA.debugLineNum = 600;BA.debugLine="rb_docno1.Checked = False"; +_rb_docno1.setChecked(__c.False); + //BA.debugLineNum = 601;BA.debugLine="rb_docno2.Checked = False"; +_rb_docno2.setChecked(__c.False); + //BA.debugLineNum = 602;BA.debugLine="rb_docno3.Checked = False"; +_rb_docno3.setChecked(__c.False); + //BA.debugLineNum = 603;BA.debugLine="rb_docno4.Checked = False"; +_rb_docno4.setChecked(__c.False); + //BA.debugLineNum = 604;BA.debugLine="rb_docno5.Checked = False"; +_rb_docno5.setChecked(__c.False); + //BA.debugLineNum = 605;BA.debugLine="rb_docno6.Checked = False"; +_rb_docno6.setChecked(__c.False); + //BA.debugLineNum = 606;BA.debugLine="rb_docno7.Checked = False"; +_rb_docno7.setChecked(__c.False); + //BA.debugLineNum = 607;BA.debugLine="rb_docno8.Checked = False"; +_rb_docno8.setChecked(__c.False); + //BA.debugLineNum = 608;BA.debugLine="rb_docno9.Checked = False"; +_rb_docno9.setChecked(__c.False); + //BA.debugLineNum = 609;BA.debugLine="rb_docno11.Checked = False"; +_rb_docno11.setChecked(__c.False); + //BA.debugLineNum = 610;BA.debugLine="rb_docno13.Checked = False"; +_rb_docno13.setChecked(__c.False); + //BA.debugLineNum = 611;BA.debugLine="rb_docno15.Checked = False"; +_rb_docno15.setChecked(__c.False); + //BA.debugLineNum = 612;BA.debugLine="rb_docno16.Checked = False"; +_rb_docno16.setChecked(__c.False); + //BA.debugLineNum = 613;BA.debugLine="rb_docno17.Checked = False"; +_rb_docno17.setChecked(__c.False); + //BA.debugLineNum = 614;BA.debugLine="rb_docno18.Checked = False"; +_rb_docno18.setChecked(__c.False); + //BA.debugLineNum = 615;BA.debugLine="rb_docno19.Checked = False"; +_rb_docno19.setChecked(__c.False); + //BA.debugLineNum = 617;BA.debugLine="rb_docsi1.Checked = False"; +_rb_docsi1.setChecked(__c.False); + //BA.debugLineNum = 618;BA.debugLine="rb_docsi2.Checked = False"; +_rb_docsi2.setChecked(__c.False); + //BA.debugLineNum = 619;BA.debugLine="rb_docsi3.Checked = False"; +_rb_docsi3.setChecked(__c.False); + //BA.debugLineNum = 620;BA.debugLine="rb_docsi4.Checked = False"; +_rb_docsi4.setChecked(__c.False); + //BA.debugLineNum = 621;BA.debugLine="rb_docsi5.Checked = False"; +_rb_docsi5.setChecked(__c.False); + //BA.debugLineNum = 622;BA.debugLine="rb_docsi6.Checked = False"; +_rb_docsi6.setChecked(__c.False); + //BA.debugLineNum = 623;BA.debugLine="rb_docsi7.Checked = False"; +_rb_docsi7.setChecked(__c.False); + //BA.debugLineNum = 624;BA.debugLine="rb_docsi8.Checked = False"; +_rb_docsi8.setChecked(__c.False); + //BA.debugLineNum = 625;BA.debugLine="rb_docsi9.Checked = False"; +_rb_docsi9.setChecked(__c.False); + //BA.debugLineNum = 626;BA.debugLine="rb_docsi11.Checked = False"; +_rb_docsi11.setChecked(__c.False); + //BA.debugLineNum = 627;BA.debugLine="rb_docsi13.Checked = False"; +_rb_docsi13.setChecked(__c.False); + //BA.debugLineNum = 628;BA.debugLine="rb_docsi15.Checked = False"; +_rb_docsi15.setChecked(__c.False); + //BA.debugLineNum = 629;BA.debugLine="rb_docsi16.Checked = False"; +_rb_docsi16.setChecked(__c.False); + //BA.debugLineNum = 630;BA.debugLine="rb_docsi17.Checked = False"; +_rb_docsi17.setChecked(__c.False); + //BA.debugLineNum = 631;BA.debugLine="rb_docsi18.Checked = False"; +_rb_docsi18.setChecked(__c.False); + //BA.debugLineNum = 632;BA.debugLine="rb_docsi19.Checked = False"; +_rb_docsi19.setChecked(__c.False); + //BA.debugLineNum = 634;BA.debugLine="cb_deratras.SelectedIndex ="; +_cb_deratras._setselectedindex /*int*/ ((int) (0)); + //BA.debugLineNum = 635;BA.debugLine="cb_derdel.SelectedIndex = 0"; +_cb_derdel._setselectedindex /*int*/ ((int) (0)); + //BA.debugLineNum = 636;BA.debugLine="cb_izqatras.SelectedIndex ="; +_cb_izqatras._setselectedindex /*int*/ ((int) (0)); + //BA.debugLineNum = 637;BA.debugLine="cb_izqdel.SelectedIndex = 0"; +_cb_izqdel._setselectedindex /*int*/ ((int) (0)); + //BA.debugLineNum = 639;BA.debugLine="et_carroceria.Text = \"\""; +_et_carroceria.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 640;BA.debugLine="et_liquidos.Text = \"\""; +_et_liquidos.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 641;BA.debugLine="et_luces.Text = \"\""; +_et_luces.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 642;BA.debugLine="et_placas.Text = \"\""; +_et_placas.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 644;BA.debugLine="ImageView1.Bitmap = LoadBit"; +_imageview1.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"frontal1.png").getObject())); + //BA.debugLineNum = 645;BA.debugLine="ImageView2.Bitmap = LoadBit"; +_imageview2.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"derecha1.png").getObject())); + //BA.debugLineNum = 646;BA.debugLine="ImageView3.Bitmap = LoadBit"; +_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"atras1.png").getObject())); + //BA.debugLineNum = 647;BA.debugLine="ImageView4.Bitmap = LoadBit"; +_imageview4.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"izquierda1.png").getObject())); + //BA.debugLineNum = 649;BA.debugLine="nombrefoto = \"0\""; +_nombrefoto = "0"; + //BA.debugLineNum = 650;BA.debugLine="nombrefoto1 = \"0\""; +_nombrefoto1 = "0"; + //BA.debugLineNum = 651;BA.debugLine="nombrefoto2 = \"0\""; +_nombrefoto2 = "0"; + //BA.debugLineNum = 652;BA.debugLine="nombrefoto3 = \"0\""; +_nombrefoto3 = "0"; + //BA.debugLineNum = 654;BA.debugLine="B4XPages.ShowPage(\"Principa"; _b4xpages._showpage /*String*/ (ba,"Principal"); }else { -RDebugUtils.currentLine=7405683; - //BA.debugLineNum = 7405683;BA.debugLine="MsgboxAsync(\"Favor de tomar"; + //BA.debugLineNum = 656;BA.debugLine="MsgboxAsync(\"Favor de tomar"; __c.MsgboxAsync(BA.ObjectToCharSequence("Favor de tomar todas las fotos"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405686; - //BA.debugLineNum = 7405686;BA.debugLine="MsgboxAsync(\"Especifica Fuga"; + //BA.debugLineNum = 659;BA.debugLine="MsgboxAsync(\"Especifica Fuga"; __c.MsgboxAsync(BA.ObjectToCharSequence("Especifica Fugas o detallaes en los liquidos"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405689; - //BA.debugLineNum = 7405689;BA.debugLine="MsgboxAsync(\"Seleeciona una o"; + //BA.debugLineNum = 662;BA.debugLine="MsgboxAsync(\"Seleeciona una o"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Fugas"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405692; - //BA.debugLineNum = 7405692;BA.debugLine="MsgboxAsync(\"Seleeciona una op"; + //BA.debugLineNum = 665;BA.debugLine="MsgboxAsync(\"Seleeciona una op"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Aire"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405695; - //BA.debugLineNum = 7405695;BA.debugLine="MsgboxAsync(\"Seleeciona una opc"; + //BA.debugLineNum = 668;BA.debugLine="MsgboxAsync(\"Seleeciona una opc"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Frenos"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405698; - //BA.debugLineNum = 7405698;BA.debugLine="MsgboxAsync(\"Seleeciona una opci"; + //BA.debugLineNum = 671;BA.debugLine="MsgboxAsync(\"Seleeciona una opci"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Anticongelante"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405701; - //BA.debugLineNum = 7405701;BA.debugLine="MsgboxAsync(\"Seleeciona una opció"; + //BA.debugLineNum = 674;BA.debugLine="MsgboxAsync(\"Seleeciona una opció"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Niveles de Liquidos y aire de Aceite"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405704; - //BA.debugLineNum = 7405704;BA.debugLine="MsgboxAsync(\"Especifica daños en l"; + //BA.debugLineNum = 677;BA.debugLine="MsgboxAsync(\"Especifica daños en l"; __c.MsgboxAsync(BA.ObjectToCharSequence("Especifica daños en las condiciones de placas"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405707; - //BA.debugLineNum = 7405707;BA.debugLine="MsgboxAsync(\"Seleeciona una opción"; + //BA.debugLineNum = 680;BA.debugLine="MsgboxAsync(\"Seleeciona una opción"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Conciciones de placas de Correcto"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405710; - //BA.debugLineNum = 7405710;BA.debugLine="MsgboxAsync(\"Especifica daños en las"; + //BA.debugLineNum = 683;BA.debugLine="MsgboxAsync(\"Especifica daños en las"; __c.MsgboxAsync(BA.ObjectToCharSequence("Especifica daños en las luces"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405713; - //BA.debugLineNum = 7405713;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en"; + //BA.debugLineNum = 686;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Funcionamiento de luces de Correcto"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405716; - //BA.debugLineNum = 7405716;BA.debugLine="MsgboxAsync(\"Especifica daños en la ca"; + //BA.debugLineNum = 689;BA.debugLine="MsgboxAsync(\"Especifica daños en la ca"; __c.MsgboxAsync(BA.ObjectToCharSequence("Especifica daños en la carrocería"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405719; - //BA.debugLineNum = 7405719;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en C"; + //BA.debugLineNum = 692;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en C"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Carrocería de Buen estado"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405722; - //BA.debugLineNum = 7405722;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Se"; + //BA.debugLineNum = 695;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Se"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Seguridad y refación de Llanta de refacción"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405725; - //BA.debugLineNum = 7405725;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Seg"; + //BA.debugLineNum = 698;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Seg"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Seguridad y refación de gato"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405728; - //BA.debugLineNum = 7405728;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Segu"; + //BA.debugLineNum = 701;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Segu"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Seguridad y refación de Triagulo reflectante"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405731; - //BA.debugLineNum = 7405731;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Limpi"; + //BA.debugLineNum = 704;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Limpi"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Limpieza unidad interna"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405734; - //BA.debugLineNum = 7405734;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Limpie"; + //BA.debugLineNum = 707;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Limpie"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Limpieza unidad externa"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405737; - //BA.debugLineNum = 7405737;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Documen"; + //BA.debugLineNum = 710;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Documen"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Documentación viegnte de Licencia de conducir"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405740; - //BA.debugLineNum = 7405740;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Document"; + //BA.debugLineNum = 713;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Document"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Documentación viegnte de Póliza de seguro"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405743; - //BA.debugLineNum = 7405743;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Documenta"; + //BA.debugLineNum = 716;BA.debugLine="MsgboxAsync(\"Seleeciona una opción en Documenta"; __c.MsgboxAsync(BA.ObjectToCharSequence("Seleeciona una opción en Documentación viegnte de tarjeta de circulación"),BA.ObjectToCharSequence("Atención"),ba); }; }else { -RDebugUtils.currentLine=7405746; - //BA.debugLineNum = 7405746;BA.debugLine="MsgboxAsync(\"Captura el kilometraje inicial.\",\"A"; + //BA.debugLineNum = 719;BA.debugLine="MsgboxAsync(\"Captura el kilometraje inicial.\",\"A"; __c.MsgboxAsync(BA.ObjectToCharSequence("Captura el kilometraje inicial."),BA.ObjectToCharSequence("Atención"),ba); }; -RDebugUtils.currentLine=7405749; - //BA.debugLineNum = 7405749;BA.debugLine="End Sub"; + //BA.debugLineNum = 722;BA.debugLine="End Sub"; return ""; } -public String _mandapendientes(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "mandapendientes", false)) - {return ((String) Debug.delegate(ba, "mandapendientes", null));} -int _i = 0; -reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null; -RDebugUtils.currentLine=7471104; - //BA.debugLineNum = 7471104;BA.debugLine="Sub mandaPendientes"; -RDebugUtils.currentLine=7471105; - //BA.debugLineNum = 7471105;BA.debugLine="Log(\"MandaPendientes\")"; -__c.LogImpl("27471105","MandaPendientes",0); -RDebugUtils.currentLine=7471107; - //BA.debugLineNum = 7471107;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT USUARIO, PLACA,"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4 FROM CHECKLIST2"))); -RDebugUtils.currentLine=7471108; - //BA.debugLineNum = 7471108;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)"; -__c.LogImpl("27471108",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+""),0); -RDebugUtils.currentLine=7471109; - //BA.debugLineNum = 7471109;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=7471110; - //BA.debugLineNum = 7471110;BA.debugLine="For i = 0 To c.RowCount -1"; -{ -final int step5 = 1; -final int limit5 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit5 ;_i = _i + step5 ) { -RDebugUtils.currentLine=7471111; - //BA.debugLineNum = 7471111;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=7471112; - //BA.debugLineNum = 7471112;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=7471114; - //BA.debugLineNum = 7471114;BA.debugLine="foto1 = c.GetBlob(\"FOTO1\")"; -__ref._foto1 /*byte[]*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("FOTO1"); -RDebugUtils.currentLine=7471115; - //BA.debugLineNum = 7471115;BA.debugLine="foto2 = c.GetBlob(\"FOTO12\")"; -__ref._foto2 /*byte[]*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("FOTO12"); -RDebugUtils.currentLine=7471116; - //BA.debugLineNum = 7471116;BA.debugLine="foto3 = c.GetBlob(\"FOTO3\")"; -__ref._foto3 /*byte[]*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("FOTO3"); -RDebugUtils.currentLine=7471117; - //BA.debugLineNum = 7471117;BA.debugLine="foto4 = c.GetBlob(\"FOTO4\")"; -__ref._foto4 /*byte[]*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("FOTO4"); -RDebugUtils.currentLine=7471119; - //BA.debugLineNum = 7471119;BA.debugLine="cmd.Initialize"; -_cmd.Initialize(); -RDebugUtils.currentLine=7471120; - //BA.debugLineNum = 7471120;BA.debugLine="cmd.Name = \"insert_CHECK_MARDS\""; -_cmd.Name /*String*/ = "insert_CHECK_MARDS"; -RDebugUtils.currentLine=7471121; - //BA.debugLineNum = 7471121;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"U"; -_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PLACA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("FECHA_CAPTURA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TARJETA_CIRCULACION")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POLIZA_SEGURO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LICENCIA_CONDUCIR")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LIMPIA_EXTERNA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LIMPIA_INTERNA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TRIANGULO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("GATO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LLANTA_REFACCION")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CARROCERIA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CARROCERIA_COMENTARIOS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LUCES")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("LUCES_COMENTARIOS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONDICION_PLACAS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONDICION_PLACAS_COMENTARIOS"))}; -RDebugUtils.currentLine=7471122; - //BA.debugLineNum = 7471122;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_checkliPe"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,_cmd,(Object)(("ins_checkliPendientes_head_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO")))+""))); - } -}; - }; -RDebugUtils.currentLine=7471125; - //BA.debugLineNum = 7471125;BA.debugLine="End Sub"; -return ""; -} -public void _b4xpage_appear(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {Debug.delegate(ba, "b4xpage_appear", null); return;} -ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this,__ref); +public void _b4xpage_appear() throws Exception{ +ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this); rsub.resume(ba, null); } public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub { -public ResumableSub_B4XPage_Appear(reparto_izca.keymon.lat.c_cheklist parent,reparto_izca.keymon.lat.c_cheklist __ref) { +public ResumableSub_B4XPage_Appear(reparto_izca.keymon.lat.c_cheklist parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_cheklist __ref; reparto_izca.keymon.lat.c_cheklist parent; String _permission = ""; boolean _result = false; @@ -686,7 +460,6 @@ int _res = 0; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cheklist"; while (true) { switch (state) { @@ -696,37 +469,29 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=4259841; - //BA.debugLineNum = 4259841;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PLACA FROM HIS"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PLACA FROM HIST_VENTAS"))); -RDebugUtils.currentLine=4259842; - //BA.debugLineNum = 4259842;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=4259843; - //BA.debugLineNum = 4259843;BA.debugLine="Log(c.GetString(\"PLACA\"))"; -parent.__c.LogImpl("24259843",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PLACA"),0); -RDebugUtils.currentLine=4259844; - //BA.debugLineNum = 4259844;BA.debugLine="l_placa.Text = c.GetString(\"PLACA\")"; -__ref._l_placa /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PLACA"))); -RDebugUtils.currentLine=4259845; - //BA.debugLineNum = 4259845;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=4259846; - //BA.debugLineNum = 4259846;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_"; + //BA.debugLineNum = 143;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PLACA FROM HIS"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PLACA FROM HIST_VENTAS"))); + //BA.debugLineNum = 144;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 145;BA.debugLine="Log(c.GetString(\"PLACA\"))"; +parent.__c.LogImpl("04521987",parent._c.GetString("PLACA"),0); + //BA.debugLineNum = 146;BA.debugLine="l_placa.Text = c.GetString(\"PLACA\")"; +parent._l_placa.setText(BA.ObjectToCharSequence(parent._c.GetString("PLACA"))); + //BA.debugLineNum = 147;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 148;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_"; parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_CAMERA); -RDebugUtils.currentLine=4259847; - //BA.debugLineNum = 4259847;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; -parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cheklist", "b4xpage_appear"), null); + //BA.debugLineNum = 149;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; +parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null); this.state = 17; return; case 17: //C this.state = 1; -_permission = (String) result[1]; -_result = (Boolean) result[2]; +_permission = (String) result[0]; +_result = (Boolean) result[1]; ; -RDebugUtils.currentLine=4259848; - //BA.debugLineNum = 4259848;BA.debugLine="If Result Then"; + //BA.debugLineNum = 150;BA.debugLine="If Result Then"; if (true) break; case 1: @@ -741,16 +506,14 @@ this.state = 5; case 3: //C this.state = 6; -RDebugUtils.currentLine=4259851; - //BA.debugLineNum = 4259851;BA.debugLine="Log(\"inicializamos Camara\")"; -parent.__c.LogImpl("24259851","inicializamos Camara",0); + //BA.debugLineNum = 153;BA.debugLine="Log(\"inicializamos Camara\")"; +parent.__c.LogImpl("04521995","inicializamos Camara",0); if (true) break; case 5: //C this.state = 6; -RDebugUtils.currentLine=4259853; - //BA.debugLineNum = 4259853;BA.debugLine="ToastMessageShow(\"No permission Camara!!!\", True"; + //BA.debugLineNum = 155;BA.debugLine="ToastMessageShow(\"No permission Camara!!!\", True"; parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission Camara!!!"),parent.__c.True); if (true) break; @@ -758,14 +521,11 @@ case 6: //C this.state = 7; ; -RDebugUtils.currentLine=4259855; - //BA.debugLineNum = 4259855;BA.debugLine="MES1.Initialize(Me, \"MES1\")"; -__ref._mes1 /*reparto_izca.keymon.lat.manageexternalstorage*/ ._initialize /*String*/ (null,ba,parent,"MES1"); -RDebugUtils.currentLine=4259858; - //BA.debugLineNum = 4259858;BA.debugLine="Dim SdkVersion As Int = device.SdkVersion"; -_sdkversion = __ref._device /*anywheresoftware.b4a.phone.Phone*/ .getSdkVersion(); -RDebugUtils.currentLine=4259861; - //BA.debugLineNum = 4259861;BA.debugLine="If SdkVersion < 30 Then"; + //BA.debugLineNum = 157;BA.debugLine="MES1.Initialize(Me, \"MES1\")"; +parent._mes1._initialize /*String*/ (ba,parent,"MES1"); + //BA.debugLineNum = 160;BA.debugLine="Dim SdkVersion As Int = device.SdkVersion"; +_sdkversion = parent._device.getSdkVersion(); + //BA.debugLineNum = 163;BA.debugLine="If SdkVersion < 30 Then"; if (true) break; case 7: @@ -780,76 +540,63 @@ this.state = 11; case 9: //C this.state = 16; -RDebugUtils.currentLine=4259862; - //BA.debugLineNum = 4259862;BA.debugLine="Log(\"SDK = \" & SdkVersion & \" : Requesting WRITE"; -parent.__c.LogImpl("24259862","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting WRITE_EXTERNAL_STORAGE permission",0); -RDebugUtils.currentLine=4259863; - //BA.debugLineNum = 4259863;BA.debugLine="Dim rp As RuntimePermissions"; + //BA.debugLineNum = 164;BA.debugLine="Log(\"SDK = \" & SdkVersion & \" : Requesting WRITE"; +parent.__c.LogImpl("04522006","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting WRITE_EXTERNAL_STORAGE permission",0); + //BA.debugLineNum = 165;BA.debugLine="Dim rp As RuntimePermissions"; _rp = new anywheresoftware.b4a.objects.RuntimePermissions(); -RDebugUtils.currentLine=4259864; - //BA.debugLineNum = 4259864;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_"; + //BA.debugLineNum = 166;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_"; _rp.CheckAndRequest(ba,_rp.PERMISSION_WRITE_EXTERNAL_STORAGE); -RDebugUtils.currentLine=4259865; - //BA.debugLineNum = 4259865;BA.debugLine="Wait For Activity_PermissionResult (Permission A"; -parent.__c.WaitFor("activity_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cheklist", "b4xpage_appear"), null); + //BA.debugLineNum = 167;BA.debugLine="Wait For Activity_PermissionResult (Permission A"; +parent.__c.WaitFor("activity_permissionresult", ba, this, null); this.state = 18; return; case 18: //C this.state = 16; -_permission = (String) result[1]; -_result = (Boolean) result[2]; +_permission = (String) result[0]; +_result = (Boolean) result[1]; ; -RDebugUtils.currentLine=4259866; - //BA.debugLineNum = 4259866;BA.debugLine="Log($\"PERMISSION_WRITE_EXTERNAL_STORAGE = ${Resu"; -parent.__c.LogImpl("24259866",("PERMISSION_WRITE_EXTERNAL_STORAGE = "+parent.__c.SmartStringFormatter("",(Object)(_result))+""),0); + //BA.debugLineNum = 168;BA.debugLine="Log($\"PERMISSION_WRITE_EXTERNAL_STORAGE = ${Resu"; +parent.__c.LogImpl("04522010",("PERMISSION_WRITE_EXTERNAL_STORAGE = "+parent.__c.SmartStringFormatter("",(Object)(_result))+""),0); if (true) break; case 11: //C this.state = 12; -RDebugUtils.currentLine=4259868; - //BA.debugLineNum = 4259868;BA.debugLine="Log(\"SDK = \" & SdkVersion & \" : Requesting MANAG"; -parent.__c.LogImpl("24259868","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting MANAGE_EXTERNAL_STORAGE permission",0); -RDebugUtils.currentLine=4259869; - //BA.debugLineNum = 4259869;BA.debugLine="Log(\"On Entry MANAGE_EXTERNAL_STORAGE = \" & MES1"; -parent.__c.LogImpl("24259869","On Entry MANAGE_EXTERNAL_STORAGE = "+BA.ObjectToString(__ref._mes1 /*reparto_izca.keymon.lat.manageexternalstorage*/ ._haspermission /*boolean*/ (null)),0); -RDebugUtils.currentLine=4259870; - //BA.debugLineNum = 4259870;BA.debugLine="If Not(MES1.HasPermission) Then"; + //BA.debugLineNum = 170;BA.debugLine="Log(\"SDK = \" & SdkVersion & \" : Requesting MANAG"; +parent.__c.LogImpl("04522012","SDK = "+BA.NumberToString(_sdkversion)+" : Requesting MANAGE_EXTERNAL_STORAGE permission",0); + //BA.debugLineNum = 171;BA.debugLine="Log(\"On Entry MANAGE_EXTERNAL_STORAGE = \" & MES1"; +parent.__c.LogImpl("04522013","On Entry MANAGE_EXTERNAL_STORAGE = "+BA.ObjectToString(parent._mes1._haspermission /*boolean*/ ()),0); + //BA.debugLineNum = 172;BA.debugLine="If Not(MES1.HasPermission) Then"; if (true) break; case 12: //if this.state = 15; -if (parent.__c.Not(__ref._mes1 /*reparto_izca.keymon.lat.manageexternalstorage*/ ._haspermission /*boolean*/ (null))) { +if (parent.__c.Not(parent._mes1._haspermission /*boolean*/ ())) { this.state = 14; }if (true) break; case 14: //C this.state = 15; -RDebugUtils.currentLine=4259871; - //BA.debugLineNum = 4259871;BA.debugLine="MsgboxAsync(\"Esta aplicación requiere acceso a"; + //BA.debugLineNum = 173;BA.debugLine="MsgboxAsync(\"Esta aplicación requiere acceso a"; parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Esta aplicación requiere acceso a todos los archivos, habilite la opción"),BA.ObjectToCharSequence("Administrar todos los archivos"),ba); -RDebugUtils.currentLine=4259872; - //BA.debugLineNum = 4259872;BA.debugLine="Wait For Msgbox_Result(Res As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cheklist", "b4xpage_appear"), null); + //BA.debugLineNum = 174;BA.debugLine="Wait For Msgbox_Result(Res As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 19; return; case 19: //C this.state = 15; -_res = (Integer) result[1]; +_res = (Integer) result[0]; ; -RDebugUtils.currentLine=4259873; - //BA.debugLineNum = 4259873;BA.debugLine="Log(\"Getting permission\")"; -parent.__c.LogImpl("24259873","Getting permission",0); -RDebugUtils.currentLine=4259874; - //BA.debugLineNum = 4259874;BA.debugLine="MES1.GetPermission"; -__ref._mes1 /*reparto_izca.keymon.lat.manageexternalstorage*/ ._getpermission /*String*/ (null); -RDebugUtils.currentLine=4259875; - //BA.debugLineNum = 4259875;BA.debugLine="Wait For MES_StorageAvailable"; -parent.__c.WaitFor("mes_storageavailable", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cheklist", "b4xpage_appear"), null); + //BA.debugLineNum = 175;BA.debugLine="Log(\"Getting permission\")"; +parent.__c.LogImpl("04522017","Getting permission",0); + //BA.debugLineNum = 176;BA.debugLine="MES1.GetPermission"; +parent._mes1._getpermission /*String*/ (); + //BA.debugLineNum = 177;BA.debugLine="Wait For MES_StorageAvailable"; +parent.__c.WaitFor("mes_storageavailable", ba, this, null); this.state = 20; return; case 20: @@ -868,37 +615,36 @@ case 16: //C this.state = -1; ; -RDebugUtils.currentLine=4259878; - //BA.debugLineNum = 4259878;BA.debugLine="p_camara.Visible = False"; -__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); -RDebugUtils.currentLine=4259896; - //BA.debugLineNum = 4259896;BA.debugLine="End Sub"; + //BA.debugLineNum = 180;BA.debugLine="p_camara.Visible = False"; +parent._p_camara.setVisible(parent.__c.False); + //BA.debugLineNum = 198;BA.debugLine="End Sub"; if (true) break; } } } } -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));} -ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref); +public void _b4xpage_permissionresult(String _permission,boolean _result) throws Exception{ +} +public void _activity_permissionresult(String _permission,boolean _result) throws Exception{ +} +public void _msgbox_result(int _res) throws Exception{ +} +public void _mes_storageavailable() throws Exception{ +} +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{ +ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { -public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_cheklist parent,reparto_izca.keymon.lat.c_cheklist __ref) { +public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_cheklist parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_cheklist __ref; reparto_izca.keymon.lat.c_cheklist parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cheklist"; while (true) { switch (state) { @@ -908,14 +654,13 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = 1; -RDebugUtils.currentLine=4325378; - //BA.debugLineNum = 4325378;BA.debugLine="If p_camara.visible Then"; + //BA.debugLineNum = 202;BA.debugLine="If p_camara.visible Then"; if (true) break; case 1: //if this.state = 6; -if (__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { +if (parent._p_camara.getVisible()) { this.state = 3; }else { this.state = 5; @@ -924,19 +669,16 @@ this.state = 5; case 3: //C this.state = 6; -RDebugUtils.currentLine=4325379; - //BA.debugLineNum = 4325379;BA.debugLine="p_camara.visible = False"; -__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); -RDebugUtils.currentLine=4325380; - //BA.debugLineNum = 4325380;BA.debugLine="StopCamera2"; -__ref._stopcamera2 /*String*/ (null); + //BA.debugLineNum = 203;BA.debugLine="p_camara.visible = False"; +parent._p_camara.setVisible(parent.__c.False); + //BA.debugLineNum = 204;BA.debugLine="StopCamera2"; +parent._stopcamera2(); if (true) break; case 5: //C this.state = 6; -RDebugUtils.currentLine=4325382; - //BA.debugLineNum = 4325382;BA.debugLine="B4XPages.ShowPage(\"principal\")"; + //BA.debugLineNum = 206;BA.debugLine="B4XPages.ShowPage(\"principal\")"; parent._b4xpages._showpage /*String*/ (ba,"principal"); if (true) break; @@ -944,827 +686,569 @@ case 6: //C this.state = -1; ; -RDebugUtils.currentLine=4325385; - //BA.debugLineNum = 4325385;BA.debugLine="Return False"; + //BA.debugLineNum = 209;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; -RDebugUtils.currentLine=4325386; - //BA.debugLineNum = 4325386;BA.debugLine="End Sub"; + //BA.debugLineNum = 210;BA.debugLine="End Sub"; if (true) break; } } } } -public String _stopcamera2(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "stopcamera2", false)) - {return ((String) Debug.delegate(ba, "stopcamera2", null));} -RDebugUtils.currentLine=4718592; - //BA.debugLineNum = 4718592;BA.debugLine="Private Sub StopCamera2"; -RDebugUtils.currentLine=4718594; - //BA.debugLineNum = 4718594;BA.debugLine="If camEx.IsInitialized Then"; -if (__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ .IsInitialized /*boolean*/ ()) { -RDebugUtils.currentLine=4718595; - //BA.debugLineNum = 4718595;BA.debugLine="camEx.Release"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._release /*String*/ (null); - }; -RDebugUtils.currentLine=4718597; - //BA.debugLineNum = 4718597;BA.debugLine="End Sub"; -return ""; -} -public String _b4xpage_created(reparto_izca.keymon.lat.c_cheklist __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ anywheresoftware.b4a.objects.collections.List _items = null; -RDebugUtils.currentLine=4194304; - //BA.debugLineNum = 4194304;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=4194305; - //BA.debugLineNum = 4194305;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=4194306; - //BA.debugLineNum = 4194306;BA.debugLine="Root.LoadLayout(\"checklist\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("checklist",ba); -RDebugUtils.currentLine=4194308; - //BA.debugLineNum = 4194308;BA.debugLine="sv_datos.Height = Root.Height"; -__ref._sv_datos /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=4194309; - //BA.debugLineNum = 4194309;BA.debugLine="sv_datos.Width = Root.Width"; -__ref._sv_datos /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=4194310; - //BA.debugLineNum = 4194310;BA.debugLine="sv_datos.Panel.LoadLayout(\"check\")"; -__ref._sv_datos /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().LoadLayout("check",ba); -RDebugUtils.currentLine=4194311; - //BA.debugLineNum = 4194311;BA.debugLine="sv_datos.Panel.Height = p_check.Height"; -__ref._sv_datos /*anywheresoftware.b4a.objects.ScrollViewWrapper*/ .getPanel().setHeight(__ref._p_check /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()); -RDebugUtils.currentLine=4194312; - //BA.debugLineNum = 4194312;BA.debugLine="p_check.Width = Root.Width"; -__ref._p_check /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=4194313; - //BA.debugLineNum = 4194313;BA.debugLine="p_camara.Width = Root.Width"; -__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=4194314; - //BA.debugLineNum = 4194314;BA.debugLine="p_camara.Height = Root.Height"; -__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=4194317; - //BA.debugLineNum = 4194317;BA.debugLine="Dim items As List"; + //BA.debugLineNum = 111;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 112;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 113;BA.debugLine="Root.LoadLayout(\"checklist\")"; +_root.LoadLayout("checklist",ba); + //BA.debugLineNum = 115;BA.debugLine="sv_datos.Height = Root.Height"; +_sv_datos.setHeight(_root.getHeight()); + //BA.debugLineNum = 116;BA.debugLine="sv_datos.Width = Root.Width"; +_sv_datos.setWidth(_root.getWidth()); + //BA.debugLineNum = 117;BA.debugLine="sv_datos.Panel.LoadLayout(\"check\")"; +_sv_datos.getPanel().LoadLayout("check",ba); + //BA.debugLineNum = 118;BA.debugLine="sv_datos.Panel.Height = p_check.Height"; +_sv_datos.getPanel().setHeight(_p_check.getHeight()); + //BA.debugLineNum = 119;BA.debugLine="p_check.Width = Root.Width"; +_p_check.setWidth(_root.getWidth()); + //BA.debugLineNum = 120;BA.debugLine="p_camara.Width = Root.Width"; +_p_camara.setWidth(_root.getWidth()); + //BA.debugLineNum = 121;BA.debugLine="p_camara.Height = Root.Height"; +_p_camara.setHeight(_root.getHeight()); + //BA.debugLineNum = 124;BA.debugLine="Dim items As List"; _items = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=4194318; - //BA.debugLineNum = 4194318;BA.debugLine="items.Initialize"; + //BA.debugLineNum = 125;BA.debugLine="items.Initialize"; _items.Initialize(); -RDebugUtils.currentLine=4194319; - //BA.debugLineNum = 4194319;BA.debugLine="items.Add(\"100%\")"; + //BA.debugLineNum = 126;BA.debugLine="items.Add(\"100%\")"; _items.Add((Object)("100%")); -RDebugUtils.currentLine=4194320; - //BA.debugLineNum = 4194320;BA.debugLine="items.Add(\"75%\")"; + //BA.debugLineNum = 127;BA.debugLine="items.Add(\"75%\")"; _items.Add((Object)("75%")); -RDebugUtils.currentLine=4194321; - //BA.debugLineNum = 4194321;BA.debugLine="items.Add(\"50%\")"; + //BA.debugLineNum = 128;BA.debugLine="items.Add(\"50%\")"; _items.Add((Object)("50%")); -RDebugUtils.currentLine=4194322; - //BA.debugLineNum = 4194322;BA.debugLine="items.Add(\"25%\")"; + //BA.debugLineNum = 129;BA.debugLine="items.Add(\"25%\")"; _items.Add((Object)("25%")); -RDebugUtils.currentLine=4194323; - //BA.debugLineNum = 4194323;BA.debugLine="cb_deratras.SetItems(items)"; -__ref._cb_deratras /*reparto_izca.keymon.lat.b4xcombobox*/ ._setitems /*String*/ (null,_items); -RDebugUtils.currentLine=4194324; - //BA.debugLineNum = 4194324;BA.debugLine="cb_izqatras.SetItems(items)"; -__ref._cb_izqatras /*reparto_izca.keymon.lat.b4xcombobox*/ ._setitems /*String*/ (null,_items); -RDebugUtils.currentLine=4194325; - //BA.debugLineNum = 4194325;BA.debugLine="cb_derdel.SetItems(items)"; -__ref._cb_derdel /*reparto_izca.keymon.lat.b4xcombobox*/ ._setitems /*String*/ (null,_items); -RDebugUtils.currentLine=4194326; - //BA.debugLineNum = 4194326;BA.debugLine="cb_izqdel.SetItems(items)"; -__ref._cb_izqdel /*reparto_izca.keymon.lat.b4xcombobox*/ ._setitems /*String*/ (null,_items); -RDebugUtils.currentLine=4194327; - //BA.debugLineNum = 4194327;BA.debugLine="itemselect1 = \"100%\""; -__ref._itemselect1 /*String*/ = "100%"; -RDebugUtils.currentLine=4194328; - //BA.debugLineNum = 4194328;BA.debugLine="itemselect2 = \"100%\""; -__ref._itemselect2 /*String*/ = "100%"; -RDebugUtils.currentLine=4194329; - //BA.debugLineNum = 4194329;BA.debugLine="itemselect3 = \"100%\""; -__ref._itemselect3 /*String*/ = "100%"; -RDebugUtils.currentLine=4194330; - //BA.debugLineNum = 4194330;BA.debugLine="itemselect4 = \"100%\""; -__ref._itemselect4 /*String*/ = "100%"; -RDebugUtils.currentLine=4194332; - //BA.debugLineNum = 4194332;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=4194333; - //BA.debugLineNum = 4194333;BA.debugLine="End Sub"; + //BA.debugLineNum = 130;BA.debugLine="cb_deratras.SetItems(items)"; +_cb_deratras._setitems /*String*/ (_items); + //BA.debugLineNum = 131;BA.debugLine="cb_izqatras.SetItems(items)"; +_cb_izqatras._setitems /*String*/ (_items); + //BA.debugLineNum = 132;BA.debugLine="cb_derdel.SetItems(items)"; +_cb_derdel._setitems /*String*/ (_items); + //BA.debugLineNum = 133;BA.debugLine="cb_izqdel.SetItems(items)"; +_cb_izqdel._setitems /*String*/ (_items); + //BA.debugLineNum = 134;BA.debugLine="itemselect1 = \"100%\""; +_itemselect1 = "100%"; + //BA.debugLineNum = 135;BA.debugLine="itemselect2 = \"100%\""; +_itemselect2 = "100%"; + //BA.debugLineNum = 136;BA.debugLine="itemselect3 = \"100%\""; +_itemselect3 = "100%"; + //BA.debugLineNum = 137;BA.debugLine="itemselect4 = \"100%\""; +_itemselect4 = "100%"; + //BA.debugLineNum = 139;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 140;BA.debugLine="End Sub"; return ""; } -public String _camera1_picturetaken(reparto_izca.keymon.lat.c_cheklist __ref,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "camera1_picturetaken", false)) - {return ((String) Debug.delegate(ba, "camera1_picturetaken", new Object[] {_data}));} +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; -RDebugUtils.currentLine=4521984; - //BA.debugLineNum = 4521984;BA.debugLine="Sub Camera1_PictureTaken (Data()As Byte)"; -RDebugUtils.currentLine=4521985; - //BA.debugLineNum = 4521985;BA.debugLine="If x = 1 Then"; -if (__ref._x /*int*/ ==1) { -RDebugUtils.currentLine=4521986; - //BA.debugLineNum = 4521986;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\""; + //BA.debugLineNum = 238;BA.debugLine="Sub Camera1_PictureTaken (Data()As Byte)"; + //BA.debugLineNum = 239;BA.debugLine="If x = 1 Then"; +if (_x==1) { + //BA.debugLineNum = 240;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\""; __c.DateTime.setDateFormat("ddMMyyyyHHmmss"); -RDebugUtils.currentLine=4521987; - //BA.debugLineNum = 4521987;BA.debugLine="nombrefoto = DateTime.Now & \"_FOTO1.jpg\""; -__ref._nombrefoto /*String*/ = BA.NumberToString(__c.DateTime.getNow())+"_FOTO1.jpg"; -RDebugUtils.currentLine=4521988; - //BA.debugLineNum = 4521988;BA.debugLine="teclado.HideKeyboard"; -__ref._teclado /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba); -RDebugUtils.currentLine=4521989; - //BA.debugLineNum = 4521989;BA.debugLine="fototomada = nombrefoto"; -__ref._fototomada /*String*/ = __ref._nombrefoto /*String*/ ; - }else -{RDebugUtils.currentLine=4521991; - //BA.debugLineNum = 4521991;BA.debugLine="Else If x = 2 Then"; -if (__ref._x /*int*/ ==2) { -RDebugUtils.currentLine=4521992; - //BA.debugLineNum = 4521992;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\""; + //BA.debugLineNum = 241;BA.debugLine="nombrefoto = DateTime.Now & \"_FOTO1.jpg\""; +_nombrefoto = BA.NumberToString(__c.DateTime.getNow())+"_FOTO1.jpg"; + //BA.debugLineNum = 242;BA.debugLine="teclado.HideKeyboard"; +_teclado.HideKeyboard(ba); + //BA.debugLineNum = 243;BA.debugLine="fototomada = nombrefoto"; +_fototomada = _nombrefoto; + }else if(_x==2) { + //BA.debugLineNum = 246;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\""; __c.DateTime.setDateFormat("ddMMyyyyHHmmss"); -RDebugUtils.currentLine=4521993; - //BA.debugLineNum = 4521993;BA.debugLine="nombrefoto1 = DateTime.Now & \"_FOTO2.jpg\""; -__ref._nombrefoto1 /*String*/ = BA.NumberToString(__c.DateTime.getNow())+"_FOTO2.jpg"; -RDebugUtils.currentLine=4521994; - //BA.debugLineNum = 4521994;BA.debugLine="teclado.HideKeyboard"; -__ref._teclado /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba); -RDebugUtils.currentLine=4521995; - //BA.debugLineNum = 4521995;BA.debugLine="fototomada = nombrefoto1"; -__ref._fototomada /*String*/ = __ref._nombrefoto1 /*String*/ ; - }else -{RDebugUtils.currentLine=4521997; - //BA.debugLineNum = 4521997;BA.debugLine="Else If x = 3 Then"; -if (__ref._x /*int*/ ==3) { -RDebugUtils.currentLine=4521998; - //BA.debugLineNum = 4521998;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\""; + //BA.debugLineNum = 247;BA.debugLine="nombrefoto1 = DateTime.Now & \"_FOTO2.jpg\""; +_nombrefoto1 = BA.NumberToString(__c.DateTime.getNow())+"_FOTO2.jpg"; + //BA.debugLineNum = 248;BA.debugLine="teclado.HideKeyboard"; +_teclado.HideKeyboard(ba); + //BA.debugLineNum = 249;BA.debugLine="fototomada = nombrefoto1"; +_fototomada = _nombrefoto1; + }else if(_x==3) { + //BA.debugLineNum = 252;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\""; __c.DateTime.setDateFormat("ddMMyyyyHHmmss"); -RDebugUtils.currentLine=4521999; - //BA.debugLineNum = 4521999;BA.debugLine="nombrefoto2 = DateTime.Now & \"_FOTO3.jpg\""; -__ref._nombrefoto2 /*String*/ = BA.NumberToString(__c.DateTime.getNow())+"_FOTO3.jpg"; -RDebugUtils.currentLine=4522000; - //BA.debugLineNum = 4522000;BA.debugLine="teclado.HideKeyboard"; -__ref._teclado /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba); -RDebugUtils.currentLine=4522001; - //BA.debugLineNum = 4522001;BA.debugLine="fototomada = nombrefoto2"; -__ref._fototomada /*String*/ = __ref._nombrefoto2 /*String*/ ; - }else -{RDebugUtils.currentLine=4522003; - //BA.debugLineNum = 4522003;BA.debugLine="Else If x = 4 Then"; -if (__ref._x /*int*/ ==4) { -RDebugUtils.currentLine=4522004; - //BA.debugLineNum = 4522004;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\""; + //BA.debugLineNum = 253;BA.debugLine="nombrefoto2 = DateTime.Now & \"_FOTO3.jpg\""; +_nombrefoto2 = BA.NumberToString(__c.DateTime.getNow())+"_FOTO3.jpg"; + //BA.debugLineNum = 254;BA.debugLine="teclado.HideKeyboard"; +_teclado.HideKeyboard(ba); + //BA.debugLineNum = 255;BA.debugLine="fototomada = nombrefoto2"; +_fototomada = _nombrefoto2; + }else if(_x==4) { + //BA.debugLineNum = 258;BA.debugLine="DateTime.DateFormat=\"ddMMyyyyHHmmss\""; __c.DateTime.setDateFormat("ddMMyyyyHHmmss"); -RDebugUtils.currentLine=4522005; - //BA.debugLineNum = 4522005;BA.debugLine="nombrefoto3 = DateTime.Now & \"_FOTO4.jpg\""; -__ref._nombrefoto3 /*String*/ = BA.NumberToString(__c.DateTime.getNow())+"_FOTO4.jpg"; -RDebugUtils.currentLine=4522006; - //BA.debugLineNum = 4522006;BA.debugLine="teclado.HideKeyboard"; -__ref._teclado /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba); -RDebugUtils.currentLine=4522007; - //BA.debugLineNum = 4522007;BA.debugLine="fototomada = nombrefoto3"; -__ref._fototomada /*String*/ = __ref._nombrefoto3 /*String*/ ; - }}}} -; -RDebugUtils.currentLine=4522011; - //BA.debugLineNum = 4522011;BA.debugLine="Log(\"tome foto\")"; -__c.LogImpl("24522011","tome foto",0); -RDebugUtils.currentLine=4522012; - //BA.debugLineNum = 4522012;BA.debugLine="Dim filename As String = fototomada"; -_filename = __ref._fototomada /*String*/ ; -RDebugUtils.currentLine=4522013; - //BA.debugLineNum = 4522013;BA.debugLine="Dim Dirp As String = File.DirInternal"; + //BA.debugLineNum = 259;BA.debugLine="nombrefoto3 = DateTime.Now & \"_FOTO4.jpg\""; +_nombrefoto3 = BA.NumberToString(__c.DateTime.getNow())+"_FOTO4.jpg"; + //BA.debugLineNum = 260;BA.debugLine="teclado.HideKeyboard"; +_teclado.HideKeyboard(ba); + //BA.debugLineNum = 261;BA.debugLine="fototomada = nombrefoto3"; +_fototomada = _nombrefoto3; + }; + //BA.debugLineNum = 265;BA.debugLine="Log(\"tome foto\")"; +__c.LogImpl("04784155","tome foto",0); + //BA.debugLineNum = 266;BA.debugLine="Dim filename As String = fototomada"; +_filename = _fototomada; + //BA.debugLineNum = 267;BA.debugLine="Dim Dirp As String = File.DirInternal"; _dirp = __c.File.getDirInternal(); -RDebugUtils.currentLine=4522014; - //BA.debugLineNum = 4522014;BA.debugLine="Dim Dir As String"; + //BA.debugLineNum = 268;BA.debugLine="Dim Dir As String"; _dir = ""; -RDebugUtils.currentLine=4522015; - //BA.debugLineNum = 4522015;BA.debugLine="Dim Dir2 As String"; + //BA.debugLineNum = 269;BA.debugLine="Dim Dir2 As String"; _dir2 = ""; -RDebugUtils.currentLine=4522016; - //BA.debugLineNum = 4522016;BA.debugLine="Try"; -try {RDebugUtils.currentLine=4522017; - //BA.debugLineNum = 4522017;BA.debugLine="File.MakeDir(Dirp,\"/md\")"; + //BA.debugLineNum = 270;BA.debugLine="Try"; +try { //BA.debugLineNum = 271;BA.debugLine="File.MakeDir(Dirp,\"/md\")"; __c.File.MakeDir(_dirp,"/md"); -RDebugUtils.currentLine=4522018; - //BA.debugLineNum = 4522018;BA.debugLine="Dir = \"/md\""; + //BA.debugLineNum = 272;BA.debugLine="Dir = \"/md\""; _dir = "/md"; -RDebugUtils.currentLine=4522019; - //BA.debugLineNum = 4522019;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)"; -__c.LogImpl("24522019","creado en promotoria "+_dirp+_dir,0); + //BA.debugLineNum = 273;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir)"; +__c.LogImpl("04784163","creado en promotoria "+_dirp+_dir,0); } catch (Exception e32) { - ba.setLastException(e32);RDebugUtils.currentLine=4522021; - //BA.debugLineNum = 4522021;BA.debugLine="Dir = \"\""; + ba.setLastException(e32); //BA.debugLineNum = 275;BA.debugLine="Dir = \"\""; _dir = ""; -RDebugUtils.currentLine=4522022; - //BA.debugLineNum = 4522022;BA.debugLine="Log(\"creado en raiz\")"; -__c.LogImpl("24522022","creado en raiz",0); + //BA.debugLineNum = 276;BA.debugLine="Log(\"creado en raiz\")"; +__c.LogImpl("04784166","creado en raiz",0); }; -RDebugUtils.currentLine=4522025; - //BA.debugLineNum = 4522025;BA.debugLine="Try"; -try {RDebugUtils.currentLine=4522026; - //BA.debugLineNum = 4522026;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")"; + //BA.debugLineNum = 279;BA.debugLine="Try"; +try { //BA.debugLineNum = 280;BA.debugLine="File.MakeDir(Dirp & Dir,\"/reduccion\")"; __c.File.MakeDir(_dirp+_dir,"/reduccion"); -RDebugUtils.currentLine=4522027; - //BA.debugLineNum = 4522027;BA.debugLine="Dir2 = \"/reduccion\""; + //BA.debugLineNum = 281;BA.debugLine="Dir2 = \"/reduccion\""; _dir2 = "/reduccion"; -RDebugUtils.currentLine=4522028; - //BA.debugLineNum = 4522028;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)"; -__c.LogImpl("24522028","creado en promotoria "+_dirp+_dir+_dir2,0); + //BA.debugLineNum = 282;BA.debugLine="Log(\"creado en promotoria \" & Dirp & Dir & Dir2)"; +__c.LogImpl("04784172","creado en promotoria "+_dirp+_dir+_dir2,0); } catch (Exception e40) { - ba.setLastException(e40);RDebugUtils.currentLine=4522030; - //BA.debugLineNum = 4522030;BA.debugLine="Dir = \"\""; + ba.setLastException(e40); //BA.debugLineNum = 284;BA.debugLine="Dir = \"\""; _dir = ""; -RDebugUtils.currentLine=4522031; - //BA.debugLineNum = 4522031;BA.debugLine="Log(\"creado en raiz\")"; -__c.LogImpl("24522031","creado en raiz",0); + //BA.debugLineNum = 285;BA.debugLine="Log(\"creado en raiz\")"; +__c.LogImpl("04784175","creado en raiz",0); }; -RDebugUtils.currentLine=4522034; - //BA.debugLineNum = 4522034;BA.debugLine="camEx.SavePictureToFile(Data, Dirp&Dir, filename)"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._savepicturetofile /*String*/ (null,_data,_dirp+_dir,_filename); -RDebugUtils.currentLine=4522035; - //BA.debugLineNum = 4522035;BA.debugLine="camEx.StartPreview 'restart preview"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._startpreview /*String*/ (null); -RDebugUtils.currentLine=4522037; - //BA.debugLineNum = 4522037;BA.debugLine="Log(\"Picture saved.\" & CRLF & \"File size: \" & Fi"; -__c.LogImpl("24522037","Picture saved."+__c.CRLF+"File size: "+BA.NumberToString(__c.File.Size(_dir,_filename))+_dir+","+_filename,0); -RDebugUtils.currentLine=4522038; - //BA.debugLineNum = 4522038;BA.debugLine="p_camara.Visible = False"; -__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=4522040; - //BA.debugLineNum = 4522040;BA.debugLine="Log(nombrefoto)"; -__c.LogImpl("24522040",__ref._nombrefoto /*String*/ ,0); -RDebugUtils.currentLine=4522041; - //BA.debugLineNum = 4522041;BA.debugLine="Log(nombrefoto1)"; -__c.LogImpl("24522041",__ref._nombrefoto1 /*String*/ ,0); -RDebugUtils.currentLine=4522042; - //BA.debugLineNum = 4522042;BA.debugLine="Log(nombrefoto2)"; -__c.LogImpl("24522042",__ref._nombrefoto2 /*String*/ ,0); -RDebugUtils.currentLine=4522043; - //BA.debugLineNum = 4522043;BA.debugLine="Log(nombrefoto3)"; -__c.LogImpl("24522043",__ref._nombrefoto3 /*String*/ ,0); -RDebugUtils.currentLine=4522045; - //BA.debugLineNum = 4522045;BA.debugLine="If nombrefoto <> \"0\" Then"; -if ((__ref._nombrefoto /*String*/ ).equals("0") == false) { -RDebugUtils.currentLine=4522046; - //BA.debugLineNum = 4522046;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File"; + //BA.debugLineNum = 288;BA.debugLine="camEx.SavePictureToFile(Data, Dirp&Dir, filename)"; +_camex._savepicturetofile /*String*/ (_data,_dirp+_dir,_filename); + //BA.debugLineNum = 289;BA.debugLine="camEx.StartPreview 'restart preview"; +_camex._startpreview /*String*/ (); + //BA.debugLineNum = 291;BA.debugLine="Log(\"Picture saved.\" & CRLF & \"File size: \" & Fi"; +__c.LogImpl("04784181","Picture saved."+__c.CRLF+"File size: "+BA.NumberToString(__c.File.Size(_dir,_filename))+_dir+","+_filename,0); + //BA.debugLineNum = 292;BA.debugLine="p_camara.Visible = False"; +_p_camara.setVisible(__c.False); + //BA.debugLineNum = 294;BA.debugLine="Log(nombrefoto)"; +__c.LogImpl("04784184",_nombrefoto,0); + //BA.debugLineNum = 295;BA.debugLine="Log(nombrefoto1)"; +__c.LogImpl("04784185",_nombrefoto1,0); + //BA.debugLineNum = 296;BA.debugLine="Log(nombrefoto2)"; +__c.LogImpl("04784186",_nombrefoto2,0); + //BA.debugLineNum = 297;BA.debugLine="Log(nombrefoto3)"; +__c.LogImpl("04784187",_nombrefoto3,0); + //BA.debugLineNum = 299;BA.debugLine="If nombrefoto <> \"0\" Then"; +if ((_nombrefoto).equals("0") == false) { + //BA.debugLineNum = 300;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File"; _img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); -_img = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True); -RDebugUtils.currentLine=4522047; - //BA.debugLineNum = 4522047;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D"; +_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True); + //BA.debugLineNum = 301;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); _out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.True); -RDebugUtils.currentLine=4522048; - //BA.debugLineNum = 4522048;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")"; + //BA.debugLineNum = 302;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")"; _img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG")); -RDebugUtils.currentLine=4522051; - //BA.debugLineNum = 4522051;BA.debugLine="out.Close"; + //BA.debugLineNum = 305;BA.debugLine="out.Close"; _out.Close(); -RDebugUtils.currentLine=4522052; - //BA.debugLineNum = 4522052;BA.debugLine="ImageView1.Bitmap = LoadBitmap(File.DirInternal"; -__ref._imageview1 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,__ref._nombrefoto /*String*/ ).getObject())); + //BA.debugLineNum = 306;BA.debugLine="ImageView1.Bitmap = LoadBitmap(File.DirInternal"; +_imageview1.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto).getObject())); }; -RDebugUtils.currentLine=4522056; - //BA.debugLineNum = 4522056;BA.debugLine="If nombrefoto1 <> \"0\" Then"; -if ((__ref._nombrefoto1 /*String*/ ).equals("0") == false) { -RDebugUtils.currentLine=4522057; - //BA.debugLineNum = 4522057;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File"; + //BA.debugLineNum = 310;BA.debugLine="If nombrefoto1 <> \"0\" Then"; +if ((_nombrefoto1).equals("0") == false) { + //BA.debugLineNum = 311;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File"; _img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); -_img = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True); -RDebugUtils.currentLine=4522058; - //BA.debugLineNum = 4522058;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D"; +_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True); + //BA.debugLineNum = 312;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); _out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False); -RDebugUtils.currentLine=4522059; - //BA.debugLineNum = 4522059;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")"; + //BA.debugLineNum = 313;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")"; _img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG")); -RDebugUtils.currentLine=4522062; - //BA.debugLineNum = 4522062;BA.debugLine="out.Close"; + //BA.debugLineNum = 316;BA.debugLine="out.Close"; _out.Close(); -RDebugUtils.currentLine=4522063; - //BA.debugLineNum = 4522063;BA.debugLine="ImageView2.Bitmap = LoadBitmap(File.DirInternal"; -__ref._imageview2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,__ref._nombrefoto1 /*String*/ ).getObject())); + //BA.debugLineNum = 317;BA.debugLine="ImageView2.Bitmap = LoadBitmap(File.DirInternal"; +_imageview2.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto1).getObject())); }; -RDebugUtils.currentLine=4522066; - //BA.debugLineNum = 4522066;BA.debugLine="If nombrefoto2 <> \"0\" Then"; -if ((__ref._nombrefoto2 /*String*/ ).equals("0") == false) { -RDebugUtils.currentLine=4522067; - //BA.debugLineNum = 4522067;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File"; + //BA.debugLineNum = 320;BA.debugLine="If nombrefoto2 <> \"0\" Then"; +if ((_nombrefoto2).equals("0") == false) { + //BA.debugLineNum = 321;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File"; _img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); -_img = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True); -RDebugUtils.currentLine=4522068; - //BA.debugLineNum = 4522068;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D"; +_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True); + //BA.debugLineNum = 322;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); _out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False); -RDebugUtils.currentLine=4522069; - //BA.debugLineNum = 4522069;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")"; + //BA.debugLineNum = 323;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")"; _img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG")); -RDebugUtils.currentLine=4522072; - //BA.debugLineNum = 4522072;BA.debugLine="out.Close"; + //BA.debugLineNum = 326;BA.debugLine="out.Close"; _out.Close(); -RDebugUtils.currentLine=4522073; - //BA.debugLineNum = 4522073;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirInternal"; -__ref._imageview3 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,__ref._nombrefoto2 /*String*/ ).getObject())); + //BA.debugLineNum = 327;BA.debugLine="ImageView3.Bitmap = LoadBitmap(File.DirInternal"; +_imageview3.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto2).getObject())); }; -RDebugUtils.currentLine=4522076; - //BA.debugLineNum = 4522076;BA.debugLine="If nombrefoto3 <> \"0\" Then"; -if ((__ref._nombrefoto3 /*String*/ ).equals("0") == false) { -RDebugUtils.currentLine=4522077; - //BA.debugLineNum = 4522077;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File"; + //BA.debugLineNum = 330;BA.debugLine="If nombrefoto3 <> \"0\" Then"; +if ((_nombrefoto3).equals("0") == false) { + //BA.debugLineNum = 331;BA.debugLine="Dim img As B4XBitmap = xui.LoadBitmapResize(File"; _img = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); -_img = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True); -RDebugUtils.currentLine=4522078; - //BA.debugLineNum = 4522078;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D"; +_img = _xui.LoadBitmapResize(__c.File.getDirInternal()+_dir,_filename,(int) (450),(int) (600),__c.True); + //BA.debugLineNum = 332;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.D"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); _out = __c.File.OpenOutput(__c.File.getDirInternal()+_dir+_dir2,_filename,__c.False); -RDebugUtils.currentLine=4522079; - //BA.debugLineNum = 4522079;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")"; + //BA.debugLineNum = 333;BA.debugLine="img.WriteToStream(out, 100, \"PNG\")"; _img.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"PNG")); -RDebugUtils.currentLine=4522082; - //BA.debugLineNum = 4522082;BA.debugLine="out.Close"; + //BA.debugLineNum = 336;BA.debugLine="out.Close"; _out.Close(); -RDebugUtils.currentLine=4522083; - //BA.debugLineNum = 4522083;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirInternal"; -__ref._imageview4 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,__ref._nombrefoto3 /*String*/ ).getObject())); + //BA.debugLineNum = 337;BA.debugLine="ImageView4.Bitmap = LoadBitmap(File.DirInternal"; +_imageview4.setBitmap((android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirInternal()+_dir+_dir2,_nombrefoto3).getObject())); }; -RDebugUtils.currentLine=4522086; - //BA.debugLineNum = 4522086;BA.debugLine="StopCamera2"; -__ref._stopcamera2 /*String*/ (null); -RDebugUtils.currentLine=4522088; - //BA.debugLineNum = 4522088;BA.debugLine="End Sub"; + //BA.debugLineNum = 340;BA.debugLine="StopCamera2"; +_stopcamera2(); + //BA.debugLineNum = 342;BA.debugLine="End Sub"; return ""; } -public String _camera1_ready(reparto_izca.keymon.lat.c_cheklist __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "camera1_ready", false)) - {return ((String) Debug.delegate(ba, "camera1_ready", new Object[] {_success}));} -RDebugUtils.currentLine=4456448; - //BA.debugLineNum = 4456448;BA.debugLine="Sub Camera1_Ready (Success As Boolean)"; -RDebugUtils.currentLine=4456449; - //BA.debugLineNum = 4456449;BA.debugLine="Log(\"Camara ready\")"; -__c.LogImpl("24456449","Camara ready",0); -RDebugUtils.currentLine=4456450; - //BA.debugLineNum = 4456450;BA.debugLine="If Success Then"; +public String _camera1_ready(boolean _success) throws Exception{ + //BA.debugLineNum = 224;BA.debugLine="Sub Camera1_Ready (Success As Boolean)"; + //BA.debugLineNum = 225;BA.debugLine="Log(\"Camara ready\")"; +__c.LogImpl("04718593","Camara ready",0); + //BA.debugLineNum = 226;BA.debugLine="If Success Then"; if (_success) { -RDebugUtils.currentLine=4456451; - //BA.debugLineNum = 4456451;BA.debugLine="camEx.SetJpegQuality(90)"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._setjpegquality /*String*/ (null,(int) (90)); -RDebugUtils.currentLine=4456452; - //BA.debugLineNum = 4456452;BA.debugLine="camEx.SetContinuousAutoFocus"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._setcontinuousautofocus /*String*/ (null); -RDebugUtils.currentLine=4456453; - //BA.debugLineNum = 4456453;BA.debugLine="camEx.CommitParameters"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._commitparameters /*String*/ (null); -RDebugUtils.currentLine=4456454; - //BA.debugLineNum = 4456454;BA.debugLine="camEx.StartPreview"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._startpreview /*String*/ (null); -RDebugUtils.currentLine=4456455; - //BA.debugLineNum = 4456455;BA.debugLine="Log(camEx.GetPreviewSize)"; -__c.LogImpl("24456455",BA.ObjectToString(__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._getpreviewsize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ (null)),0); + //BA.debugLineNum = 227;BA.debugLine="camEx.SetJpegQuality(90)"; +_camex._setjpegquality /*String*/ ((int) (90)); + //BA.debugLineNum = 228;BA.debugLine="camEx.SetContinuousAutoFocus"; +_camex._setcontinuousautofocus /*String*/ (); + //BA.debugLineNum = 229;BA.debugLine="camEx.CommitParameters"; +_camex._commitparameters /*String*/ (); + //BA.debugLineNum = 230;BA.debugLine="camEx.StartPreview"; +_camex._startpreview /*String*/ (); + //BA.debugLineNum = 231;BA.debugLine="Log(camEx.GetPreviewSize)"; +__c.LogImpl("04718599",BA.ObjectToString(_camex._getpreviewsize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ ()),0); }else { -RDebugUtils.currentLine=4456457; - //BA.debugLineNum = 4456457;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)"; + //BA.debugLineNum = 233;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)"; __c.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),__c.True); -RDebugUtils.currentLine=4456458; - //BA.debugLineNum = 4456458;BA.debugLine="Log(\"Cannot open camera\")"; -__c.LogImpl("24456458","Cannot open camera",0); + //BA.debugLineNum = 234;BA.debugLine="Log(\"Cannot open camera\")"; +__c.LogImpl("04718602","Cannot open camera",0); }; -RDebugUtils.currentLine=4456460; - //BA.debugLineNum = 4456460;BA.debugLine="End Sub"; + //BA.debugLineNum = 236;BA.debugLine="End Sub"; return ""; } -public String _cb_deratras_selectedindexchanged(reparto_izca.keymon.lat.c_cheklist __ref,int _index) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "cb_deratras_selectedindexchanged", false)) - {return ((String) Debug.delegate(ba, "cb_deratras_selectedindexchanged", new Object[] {_index}));} -RDebugUtils.currentLine=7340032; - //BA.debugLineNum = 7340032;BA.debugLine="Private Sub cb_deratras_SelectedIndexChanged (Inde"; -RDebugUtils.currentLine=7340033; - //BA.debugLineNum = 7340033;BA.debugLine="itemselect4 = cb_deratras.SelectedItem"; -__ref._itemselect4 /*String*/ = __ref._cb_deratras /*reparto_izca.keymon.lat.b4xcombobox*/ ._getselecteditem /*String*/ (null); -RDebugUtils.currentLine=7340034; - //BA.debugLineNum = 7340034;BA.debugLine="Log(itemselect4)"; -__c.LogImpl("27340034",__ref._itemselect4 /*String*/ ,0); -RDebugUtils.currentLine=7340035; - //BA.debugLineNum = 7340035;BA.debugLine="End Sub"; +public String _cb_deratras_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 536;BA.debugLine="Private Sub cb_deratras_SelectedIndexChanged (Inde"; + //BA.debugLineNum = 537;BA.debugLine="itemselect4 = cb_deratras.SelectedItem"; +_itemselect4 = _cb_deratras._getselecteditem /*String*/ (); + //BA.debugLineNum = 538;BA.debugLine="Log(itemselect4)"; +__c.LogImpl("07602178",_itemselect4,0); + //BA.debugLineNum = 539;BA.debugLine="End Sub"; return ""; } -public String _cb_derdel_selectedindexchanged(reparto_izca.keymon.lat.c_cheklist __ref,int _index) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "cb_derdel_selectedindexchanged", false)) - {return ((String) Debug.delegate(ba, "cb_derdel_selectedindexchanged", new Object[] {_index}));} -RDebugUtils.currentLine=7274496; - //BA.debugLineNum = 7274496;BA.debugLine="Private Sub cb_derdel_SelectedIndexChanged (Index"; -RDebugUtils.currentLine=7274497; - //BA.debugLineNum = 7274497;BA.debugLine="itemselect3 = cb_derdel.SelectedItem"; -__ref._itemselect3 /*String*/ = __ref._cb_derdel /*reparto_izca.keymon.lat.b4xcombobox*/ ._getselecteditem /*String*/ (null); -RDebugUtils.currentLine=7274498; - //BA.debugLineNum = 7274498;BA.debugLine="Log(itemselect3)"; -__c.LogImpl("27274498",__ref._itemselect3 /*String*/ ,0); -RDebugUtils.currentLine=7274499; - //BA.debugLineNum = 7274499;BA.debugLine="End Sub"; +public String _cb_derdel_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 531;BA.debugLine="Private Sub cb_derdel_SelectedIndexChanged (Index"; + //BA.debugLineNum = 532;BA.debugLine="itemselect3 = cb_derdel.SelectedItem"; +_itemselect3 = _cb_derdel._getselecteditem /*String*/ (); + //BA.debugLineNum = 533;BA.debugLine="Log(itemselect3)"; +__c.LogImpl("07536642",_itemselect3,0); + //BA.debugLineNum = 534;BA.debugLine="End Sub"; return ""; } -public String _cb_izqatras_selectedindexchanged(reparto_izca.keymon.lat.c_cheklist __ref,int _index) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "cb_izqatras_selectedindexchanged", false)) - {return ((String) Debug.delegate(ba, "cb_izqatras_selectedindexchanged", new Object[] {_index}));} -RDebugUtils.currentLine=7208960; - //BA.debugLineNum = 7208960;BA.debugLine="Private Sub cb_izqatras_SelectedIndexChanged (Inde"; -RDebugUtils.currentLine=7208961; - //BA.debugLineNum = 7208961;BA.debugLine="itemselect2 = cb_izqatras.SelectedItem"; -__ref._itemselect2 /*String*/ = __ref._cb_izqatras /*reparto_izca.keymon.lat.b4xcombobox*/ ._getselecteditem /*String*/ (null); -RDebugUtils.currentLine=7208962; - //BA.debugLineNum = 7208962;BA.debugLine="Log(itemselect2)"; -__c.LogImpl("27208962",__ref._itemselect2 /*String*/ ,0); -RDebugUtils.currentLine=7208963; - //BA.debugLineNum = 7208963;BA.debugLine="End Sub"; +public String _cb_izqatras_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 526;BA.debugLine="Private Sub cb_izqatras_SelectedIndexChanged (Inde"; + //BA.debugLineNum = 527;BA.debugLine="itemselect2 = cb_izqatras.SelectedItem"; +_itemselect2 = _cb_izqatras._getselecteditem /*String*/ (); + //BA.debugLineNum = 528;BA.debugLine="Log(itemselect2)"; +__c.LogImpl("07471106",_itemselect2,0); + //BA.debugLineNum = 529;BA.debugLine="End Sub"; return ""; } -public String _cb_izqdel_selectedindexchanged(reparto_izca.keymon.lat.c_cheklist __ref,int _index) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "cb_izqdel_selectedindexchanged", false)) - {return ((String) Debug.delegate(ba, "cb_izqdel_selectedindexchanged", new Object[] {_index}));} -RDebugUtils.currentLine=7143424; - //BA.debugLineNum = 7143424;BA.debugLine="Private Sub cb_izqdel_SelectedIndexChanged (Index"; -RDebugUtils.currentLine=7143425; - //BA.debugLineNum = 7143425;BA.debugLine="itemselect1 = cb_izqdel.SelectedItem"; -__ref._itemselect1 /*String*/ = __ref._cb_izqdel /*reparto_izca.keymon.lat.b4xcombobox*/ ._getselecteditem /*String*/ (null); -RDebugUtils.currentLine=7143426; - //BA.debugLineNum = 7143426;BA.debugLine="Log(itemselect1)"; -__c.LogImpl("27143426",__ref._itemselect1 /*String*/ ,0); -RDebugUtils.currentLine=7143427; - //BA.debugLineNum = 7143427;BA.debugLine="End Sub"; +public String _cb_izqdel_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 521;BA.debugLine="Private Sub cb_izqdel_SelectedIndexChanged (Index"; + //BA.debugLineNum = 522;BA.debugLine="itemselect1 = cb_izqdel.SelectedItem"; +_itemselect1 = _cb_izqdel._getselecteditem /*String*/ (); + //BA.debugLineNum = 523;BA.debugLine="Log(itemselect1)"; +__c.LogImpl("07405570",_itemselect1,0); + //BA.debugLineNum = 524;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -RDebugUtils.currentLine=4063232; - //BA.debugLineNum = 4063232;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=4063233; - //BA.debugLineNum = 4063233;BA.debugLine="Private Root As B4XView 'ignore"; +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(); -RDebugUtils.currentLine=4063234; - //BA.debugLineNum = 4063234;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=4063235; - //BA.debugLineNum = 4063235;BA.debugLine="Private p_check As Panel"; + //BA.debugLineNum = 4;BA.debugLine="Private p_check As Panel"; _p_check = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=4063236; - //BA.debugLineNum = 4063236;BA.debugLine="Private sv_datos As ScrollView"; + //BA.debugLineNum = 5;BA.debugLine="Private sv_datos As ScrollView"; _sv_datos = new anywheresoftware.b4a.objects.ScrollViewWrapper(); -RDebugUtils.currentLine=4063238; - //BA.debugLineNum = 4063238;BA.debugLine="Private camEx As CameraExClass"; + //BA.debugLineNum = 7;BA.debugLine="Private camEx As CameraExClass"; _camex = new reparto_izca.keymon.lat.cameraexclass(); -RDebugUtils.currentLine=4063239; - //BA.debugLineNum = 4063239;BA.debugLine="Dim frontCamera As Boolean = False"; + //BA.debugLineNum = 8;BA.debugLine="Dim frontCamera As Boolean = False"; _frontcamera = __c.False; -RDebugUtils.currentLine=4063240; - //BA.debugLineNum = 4063240;BA.debugLine="Private p_cam As Panel"; + //BA.debugLineNum = 9;BA.debugLine="Private p_cam As Panel"; _p_cam = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=4063241; - //BA.debugLineNum = 4063241;BA.debugLine="Dim nombrefoto As String = \"0\""; + //BA.debugLineNum = 10;BA.debugLine="Dim nombrefoto As String = \"0\""; _nombrefoto = "0"; -RDebugUtils.currentLine=4063242; - //BA.debugLineNum = 4063242;BA.debugLine="Dim nombrefoto1 As String = \"0\""; + //BA.debugLineNum = 11;BA.debugLine="Dim nombrefoto1 As String = \"0\""; _nombrefoto1 = "0"; -RDebugUtils.currentLine=4063243; - //BA.debugLineNum = 4063243;BA.debugLine="Dim nombrefoto2 As String = \"0\""; + //BA.debugLineNum = 12;BA.debugLine="Dim nombrefoto2 As String = \"0\""; _nombrefoto2 = "0"; -RDebugUtils.currentLine=4063244; - //BA.debugLineNum = 4063244;BA.debugLine="Dim nombrefoto3 As String = \"0\""; + //BA.debugLineNum = 13;BA.debugLine="Dim nombrefoto3 As String = \"0\""; _nombrefoto3 = "0"; -RDebugUtils.currentLine=4063245; - //BA.debugLineNum = 4063245;BA.debugLine="Private p_camara As Panel"; + //BA.debugLineNum = 14;BA.debugLine="Private p_camara As Panel"; _p_camara = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=4063246; - //BA.debugLineNum = 4063246;BA.debugLine="Private teclado As IME"; + //BA.debugLineNum = 15;BA.debugLine="Private teclado As IME"; _teclado = new anywheresoftware.b4a.objects.IME(); -RDebugUtils.currentLine=4063247; - //BA.debugLineNum = 4063247;BA.debugLine="Dim fototomada As String"; + //BA.debugLineNum = 16;BA.debugLine="Dim fototomada As String"; _fototomada = ""; -RDebugUtils.currentLine=4063248; - //BA.debugLineNum = 4063248;BA.debugLine="Private ImageView1 As ImageView"; + //BA.debugLineNum = 17;BA.debugLine="Private ImageView1 As ImageView"; _imageview1 = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=4063249; - //BA.debugLineNum = 4063249;BA.debugLine="Private ImageView3 As ImageView"; + //BA.debugLineNum = 18;BA.debugLine="Private ImageView3 As ImageView"; _imageview3 = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=4063250; - //BA.debugLineNum = 4063250;BA.debugLine="Private ImageView2 As ImageView"; + //BA.debugLineNum = 19;BA.debugLine="Private ImageView2 As ImageView"; _imageview2 = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=4063251; - //BA.debugLineNum = 4063251;BA.debugLine="Private ImageView4 As ImageView"; + //BA.debugLineNum = 20;BA.debugLine="Private ImageView4 As ImageView"; _imageview4 = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=4063252; - //BA.debugLineNum = 4063252;BA.debugLine="Private b_foto As Button"; + //BA.debugLineNum = 21;BA.debugLine="Private b_foto As Button"; _b_foto = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=4063253; - //BA.debugLineNum = 4063253;BA.debugLine="Dim device As Phone"; + //BA.debugLineNum = 22;BA.debugLine="Dim device As Phone"; _device = new anywheresoftware.b4a.phone.Phone(); -RDebugUtils.currentLine=4063254; - //BA.debugLineNum = 4063254;BA.debugLine="Dim MES1 As ManageExternalStorage"; + //BA.debugLineNum = 23;BA.debugLine="Dim MES1 As ManageExternalStorage"; _mes1 = new reparto_izca.keymon.lat.manageexternalstorage(); -RDebugUtils.currentLine=4063255; - //BA.debugLineNum = 4063255;BA.debugLine="Dim x As Int = 0"; + //BA.debugLineNum = 24;BA.debugLine="Dim x As Int = 0"; _x = (int) (0); -RDebugUtils.currentLine=4063256; - //BA.debugLineNum = 4063256;BA.debugLine="Private rb_docsi1 As RadioButton"; + //BA.debugLineNum = 25;BA.debugLine="Private rb_docsi1 As RadioButton"; _rb_docsi1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063257; - //BA.debugLineNum = 4063257;BA.debugLine="Private rb_docno1 As RadioButton"; + //BA.debugLineNum = 26;BA.debugLine="Private rb_docno1 As RadioButton"; _rb_docno1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063258; - //BA.debugLineNum = 4063258;BA.debugLine="Private rb_docsi2 As RadioButton"; + //BA.debugLineNum = 27;BA.debugLine="Private rb_docsi2 As RadioButton"; _rb_docsi2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063259; - //BA.debugLineNum = 4063259;BA.debugLine="Private rb_docno2 As RadioButton"; + //BA.debugLineNum = 28;BA.debugLine="Private rb_docno2 As RadioButton"; _rb_docno2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063260; - //BA.debugLineNum = 4063260;BA.debugLine="Private rb_docsi3 As RadioButton"; + //BA.debugLineNum = 29;BA.debugLine="Private rb_docsi3 As RadioButton"; _rb_docsi3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063261; - //BA.debugLineNum = 4063261;BA.debugLine="Private rb_docno3 As RadioButton"; + //BA.debugLineNum = 30;BA.debugLine="Private rb_docno3 As RadioButton"; _rb_docno3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063262; - //BA.debugLineNum = 4063262;BA.debugLine="Private rb_docsi4 As RadioButton"; + //BA.debugLineNum = 31;BA.debugLine="Private rb_docsi4 As RadioButton"; _rb_docsi4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063263; - //BA.debugLineNum = 4063263;BA.debugLine="Private rb_docno4 As RadioButton"; + //BA.debugLineNum = 32;BA.debugLine="Private rb_docno4 As RadioButton"; _rb_docno4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063264; - //BA.debugLineNum = 4063264;BA.debugLine="Private rb_docsi5 As RadioButton"; + //BA.debugLineNum = 33;BA.debugLine="Private rb_docsi5 As RadioButton"; _rb_docsi5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063265; - //BA.debugLineNum = 4063265;BA.debugLine="Private rb_docno5 As RadioButton"; + //BA.debugLineNum = 34;BA.debugLine="Private rb_docno5 As RadioButton"; _rb_docno5 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063266; - //BA.debugLineNum = 4063266;BA.debugLine="Private rb_docsi6 As RadioButton"; + //BA.debugLineNum = 35;BA.debugLine="Private rb_docsi6 As RadioButton"; _rb_docsi6 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063267; - //BA.debugLineNum = 4063267;BA.debugLine="Private rb_docno6 As RadioButton"; + //BA.debugLineNum = 36;BA.debugLine="Private rb_docno6 As RadioButton"; _rb_docno6 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063268; - //BA.debugLineNum = 4063268;BA.debugLine="Private rb_docsi7 As RadioButton"; + //BA.debugLineNum = 37;BA.debugLine="Private rb_docsi7 As RadioButton"; _rb_docsi7 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063269; - //BA.debugLineNum = 4063269;BA.debugLine="Private rb_docno7 As RadioButton"; + //BA.debugLineNum = 38;BA.debugLine="Private rb_docno7 As RadioButton"; _rb_docno7 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063270; - //BA.debugLineNum = 4063270;BA.debugLine="Private rb_docsi8 As RadioButton"; + //BA.debugLineNum = 39;BA.debugLine="Private rb_docsi8 As RadioButton"; _rb_docsi8 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063271; - //BA.debugLineNum = 4063271;BA.debugLine="Private rb_docno8 As RadioButton"; + //BA.debugLineNum = 40;BA.debugLine="Private rb_docno8 As RadioButton"; _rb_docno8 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063272; - //BA.debugLineNum = 4063272;BA.debugLine="Private rb_docsi9 As RadioButton"; + //BA.debugLineNum = 41;BA.debugLine="Private rb_docsi9 As RadioButton"; _rb_docsi9 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063273; - //BA.debugLineNum = 4063273;BA.debugLine="Private rb_docno9 As RadioButton"; + //BA.debugLineNum = 42;BA.debugLine="Private rb_docno9 As RadioButton"; _rb_docno9 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063274; - //BA.debugLineNum = 4063274;BA.debugLine="Private rb_docsi10 As RadioButton"; + //BA.debugLineNum = 43;BA.debugLine="Private rb_docsi10 As RadioButton"; _rb_docsi10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063275; - //BA.debugLineNum = 4063275;BA.debugLine="Private rb_docno10 As RadioButton"; + //BA.debugLineNum = 44;BA.debugLine="Private rb_docno10 As RadioButton"; _rb_docno10 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063276; - //BA.debugLineNum = 4063276;BA.debugLine="Private rb_docsi11 As RadioButton"; + //BA.debugLineNum = 45;BA.debugLine="Private rb_docsi11 As RadioButton"; _rb_docsi11 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063277; - //BA.debugLineNum = 4063277;BA.debugLine="Private rb_docno11 As RadioButton"; + //BA.debugLineNum = 46;BA.debugLine="Private rb_docno11 As RadioButton"; _rb_docno11 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063278; - //BA.debugLineNum = 4063278;BA.debugLine="Private rb_docsi12 As RadioButton"; + //BA.debugLineNum = 47;BA.debugLine="Private rb_docsi12 As RadioButton"; _rb_docsi12 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063279; - //BA.debugLineNum = 4063279;BA.debugLine="Private rb_docno12 As RadioButton"; + //BA.debugLineNum = 48;BA.debugLine="Private rb_docno12 As RadioButton"; _rb_docno12 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063280; - //BA.debugLineNum = 4063280;BA.debugLine="Private rb_docsi13 As RadioButton"; + //BA.debugLineNum = 49;BA.debugLine="Private rb_docsi13 As RadioButton"; _rb_docsi13 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063281; - //BA.debugLineNum = 4063281;BA.debugLine="Private rb_docno13 As RadioButton"; + //BA.debugLineNum = 50;BA.debugLine="Private rb_docno13 As RadioButton"; _rb_docno13 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063282; - //BA.debugLineNum = 4063282;BA.debugLine="Private rb_docsi14 As RadioButton"; + //BA.debugLineNum = 51;BA.debugLine="Private rb_docsi14 As RadioButton"; _rb_docsi14 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063283; - //BA.debugLineNum = 4063283;BA.debugLine="Private rb_docno14 As RadioButton"; + //BA.debugLineNum = 52;BA.debugLine="Private rb_docno14 As RadioButton"; _rb_docno14 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063284; - //BA.debugLineNum = 4063284;BA.debugLine="Private rb_docsi15 As RadioButton"; + //BA.debugLineNum = 53;BA.debugLine="Private rb_docsi15 As RadioButton"; _rb_docsi15 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063285; - //BA.debugLineNum = 4063285;BA.debugLine="Private rb_docno15 As RadioButton"; + //BA.debugLineNum = 54;BA.debugLine="Private rb_docno15 As RadioButton"; _rb_docno15 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063286; - //BA.debugLineNum = 4063286;BA.debugLine="Private rb_docsi16 As RadioButton"; + //BA.debugLineNum = 55;BA.debugLine="Private rb_docsi16 As RadioButton"; _rb_docsi16 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063287; - //BA.debugLineNum = 4063287;BA.debugLine="Private rb_docno16 As RadioButton"; + //BA.debugLineNum = 56;BA.debugLine="Private rb_docno16 As RadioButton"; _rb_docno16 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063288; - //BA.debugLineNum = 4063288;BA.debugLine="Private rb_docsi17 As RadioButton"; + //BA.debugLineNum = 57;BA.debugLine="Private rb_docsi17 As RadioButton"; _rb_docsi17 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063289; - //BA.debugLineNum = 4063289;BA.debugLine="Private rb_docno17 As RadioButton"; + //BA.debugLineNum = 58;BA.debugLine="Private rb_docno17 As RadioButton"; _rb_docno17 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063290; - //BA.debugLineNum = 4063290;BA.debugLine="Private rb_docsi18 As RadioButton"; + //BA.debugLineNum = 59;BA.debugLine="Private rb_docsi18 As RadioButton"; _rb_docsi18 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063291; - //BA.debugLineNum = 4063291;BA.debugLine="Private rb_docno18 As RadioButton"; + //BA.debugLineNum = 60;BA.debugLine="Private rb_docno18 As RadioButton"; _rb_docno18 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063292; - //BA.debugLineNum = 4063292;BA.debugLine="Private rb_docsi19 As RadioButton"; + //BA.debugLineNum = 61;BA.debugLine="Private rb_docsi19 As RadioButton"; _rb_docsi19 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063293; - //BA.debugLineNum = 4063293;BA.debugLine="Private rb_docno19 As RadioButton"; + //BA.debugLineNum = 62;BA.debugLine="Private rb_docno19 As RadioButton"; _rb_docno19 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=4063294; - //BA.debugLineNum = 4063294;BA.debugLine="Private et_carroceria As EditText"; + //BA.debugLineNum = 63;BA.debugLine="Private et_carroceria As EditText"; _et_carroceria = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=4063295; - //BA.debugLineNum = 4063295;BA.debugLine="Private et_luces As EditText"; + //BA.debugLineNum = 64;BA.debugLine="Private et_luces As EditText"; _et_luces = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=4063296; - //BA.debugLineNum = 4063296;BA.debugLine="Private et_placas As EditText"; + //BA.debugLineNum = 65;BA.debugLine="Private et_placas As EditText"; _et_placas = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=4063297; - //BA.debugLineNum = 4063297;BA.debugLine="Private et_liquidos As EditText"; + //BA.debugLineNum = 66;BA.debugLine="Private et_liquidos As EditText"; _et_liquidos = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=4063299; - //BA.debugLineNum = 4063299;BA.debugLine="Dim p1 As String"; + //BA.debugLineNum = 68;BA.debugLine="Dim p1 As String"; _p1 = ""; -RDebugUtils.currentLine=4063300; - //BA.debugLineNum = 4063300;BA.debugLine="Dim p2 As String"; + //BA.debugLineNum = 69;BA.debugLine="Dim p2 As String"; _p2 = ""; -RDebugUtils.currentLine=4063301; - //BA.debugLineNum = 4063301;BA.debugLine="Dim p3 As String"; + //BA.debugLineNum = 70;BA.debugLine="Dim p3 As String"; _p3 = ""; -RDebugUtils.currentLine=4063302; - //BA.debugLineNum = 4063302;BA.debugLine="Dim p4 As String"; + //BA.debugLineNum = 71;BA.debugLine="Dim p4 As String"; _p4 = ""; -RDebugUtils.currentLine=4063303; - //BA.debugLineNum = 4063303;BA.debugLine="Dim p5 As String"; + //BA.debugLineNum = 72;BA.debugLine="Dim p5 As String"; _p5 = ""; -RDebugUtils.currentLine=4063304; - //BA.debugLineNum = 4063304;BA.debugLine="Dim p6 As String"; + //BA.debugLineNum = 73;BA.debugLine="Dim p6 As String"; _p6 = ""; -RDebugUtils.currentLine=4063305; - //BA.debugLineNum = 4063305;BA.debugLine="Dim p7 As String"; + //BA.debugLineNum = 74;BA.debugLine="Dim p7 As String"; _p7 = ""; -RDebugUtils.currentLine=4063306; - //BA.debugLineNum = 4063306;BA.debugLine="Dim p8 As String"; + //BA.debugLineNum = 75;BA.debugLine="Dim p8 As String"; _p8 = ""; -RDebugUtils.currentLine=4063307; - //BA.debugLineNum = 4063307;BA.debugLine="Dim p9 As String"; + //BA.debugLineNum = 76;BA.debugLine="Dim p9 As String"; _p9 = ""; -RDebugUtils.currentLine=4063308; - //BA.debugLineNum = 4063308;BA.debugLine="Dim p10 As String"; + //BA.debugLineNum = 77;BA.debugLine="Dim p10 As String"; _p10 = ""; -RDebugUtils.currentLine=4063309; - //BA.debugLineNum = 4063309;BA.debugLine="Dim p11 As String"; + //BA.debugLineNum = 78;BA.debugLine="Dim p11 As String"; _p11 = ""; -RDebugUtils.currentLine=4063310; - //BA.debugLineNum = 4063310;BA.debugLine="Dim p12 As String"; + //BA.debugLineNum = 79;BA.debugLine="Dim p12 As String"; _p12 = ""; -RDebugUtils.currentLine=4063311; - //BA.debugLineNum = 4063311;BA.debugLine="Dim p13 As String"; + //BA.debugLineNum = 80;BA.debugLine="Dim p13 As String"; _p13 = ""; -RDebugUtils.currentLine=4063312; - //BA.debugLineNum = 4063312;BA.debugLine="Dim p14 As String"; + //BA.debugLineNum = 81;BA.debugLine="Dim p14 As String"; _p14 = ""; -RDebugUtils.currentLine=4063313; - //BA.debugLineNum = 4063313;BA.debugLine="Dim p15 As String"; + //BA.debugLineNum = 82;BA.debugLine="Dim p15 As String"; _p15 = ""; -RDebugUtils.currentLine=4063314; - //BA.debugLineNum = 4063314;BA.debugLine="Dim p16 As String"; + //BA.debugLineNum = 83;BA.debugLine="Dim p16 As String"; _p16 = ""; -RDebugUtils.currentLine=4063315; - //BA.debugLineNum = 4063315;BA.debugLine="Dim p17 As String"; + //BA.debugLineNum = 84;BA.debugLine="Dim p17 As String"; _p17 = ""; -RDebugUtils.currentLine=4063316; - //BA.debugLineNum = 4063316;BA.debugLine="Dim p18 As String"; + //BA.debugLineNum = 85;BA.debugLine="Dim p18 As String"; _p18 = ""; -RDebugUtils.currentLine=4063317; - //BA.debugLineNum = 4063317;BA.debugLine="Dim p19 As String"; + //BA.debugLineNum = 86;BA.debugLine="Dim p19 As String"; _p19 = ""; -RDebugUtils.currentLine=4063318; - //BA.debugLineNum = 4063318;BA.debugLine="Private cb_izqdel As B4XComboBox"; + //BA.debugLineNum = 87;BA.debugLine="Private cb_izqdel As B4XComboBox"; _cb_izqdel = new reparto_izca.keymon.lat.b4xcombobox(); -RDebugUtils.currentLine=4063319; - //BA.debugLineNum = 4063319;BA.debugLine="Private cb_derdel As B4XComboBox"; + //BA.debugLineNum = 88;BA.debugLine="Private cb_derdel As B4XComboBox"; _cb_derdel = new reparto_izca.keymon.lat.b4xcombobox(); -RDebugUtils.currentLine=4063320; - //BA.debugLineNum = 4063320;BA.debugLine="Private cb_izqatras As B4XComboBox"; + //BA.debugLineNum = 89;BA.debugLine="Private cb_izqatras As B4XComboBox"; _cb_izqatras = new reparto_izca.keymon.lat.b4xcombobox(); -RDebugUtils.currentLine=4063321; - //BA.debugLineNum = 4063321;BA.debugLine="Private cb_deratras As B4XComboBox"; + //BA.debugLineNum = 90;BA.debugLine="Private cb_deratras As B4XComboBox"; _cb_deratras = new reparto_izca.keymon.lat.b4xcombobox(); -RDebugUtils.currentLine=4063322; - //BA.debugLineNum = 4063322;BA.debugLine="Dim itemselect1 As String"; + //BA.debugLineNum = 91;BA.debugLine="Dim itemselect1 As String"; _itemselect1 = ""; -RDebugUtils.currentLine=4063323; - //BA.debugLineNum = 4063323;BA.debugLine="Dim itemselect2 As String"; + //BA.debugLineNum = 92;BA.debugLine="Dim itemselect2 As String"; _itemselect2 = ""; -RDebugUtils.currentLine=4063324; - //BA.debugLineNum = 4063324;BA.debugLine="Dim itemselect3 As String"; + //BA.debugLineNum = 93;BA.debugLine="Dim itemselect3 As String"; _itemselect3 = ""; -RDebugUtils.currentLine=4063325; - //BA.debugLineNum = 4063325;BA.debugLine="Dim itemselect4 As String"; + //BA.debugLineNum = 94;BA.debugLine="Dim itemselect4 As String"; _itemselect4 = ""; -RDebugUtils.currentLine=4063326; - //BA.debugLineNum = 4063326;BA.debugLine="Dim foto1() As Byte"; + //BA.debugLineNum = 95;BA.debugLine="Dim foto1() As Byte"; _foto1 = new byte[(int) (0)]; ; -RDebugUtils.currentLine=4063327; - //BA.debugLineNum = 4063327;BA.debugLine="Dim foto2() As Byte"; + //BA.debugLineNum = 96;BA.debugLine="Dim foto2() As Byte"; _foto2 = new byte[(int) (0)]; ; -RDebugUtils.currentLine=4063328; - //BA.debugLineNum = 4063328;BA.debugLine="Dim foto3() As Byte"; + //BA.debugLineNum = 97;BA.debugLine="Dim foto3() As Byte"; _foto3 = new byte[(int) (0)]; ; -RDebugUtils.currentLine=4063329; - //BA.debugLineNum = 4063329;BA.debugLine="Dim foto4() As Byte"; + //BA.debugLineNum = 98;BA.debugLine="Dim foto4() As Byte"; _foto4 = new byte[(int) (0)]; ; -RDebugUtils.currentLine=4063330; - //BA.debugLineNum = 4063330;BA.debugLine="Dim c As Cursor"; + //BA.debugLineNum = 99;BA.debugLine="Dim c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=4063331; - //BA.debugLineNum = 4063331;BA.debugLine="Dim reqManager As DBRequestManager"; + //BA.debugLineNum = 100;BA.debugLine="Dim reqManager As DBRequestManager"; _reqmanager = new reparto_izca.keymon.lat.dbrequestmanager(); -RDebugUtils.currentLine=4063332; - //BA.debugLineNum = 4063332;BA.debugLine="Private l_placa As Label"; + //BA.debugLineNum = 101;BA.debugLine="Private l_placa As Label"; _l_placa = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=4063333; - //BA.debugLineNum = 4063333;BA.debugLine="Private et_km As EditText"; + //BA.debugLineNum = 102;BA.debugLine="Private et_km As EditText"; _et_km = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=4063334; - //BA.debugLineNum = 4063334;BA.debugLine="End Sub"; + //BA.debugLineNum = 103;BA.debugLine="End Sub"; return ""; } -public String _imageview1_click(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "imageview1_click", false)) - {return ((String) Debug.delegate(ba, "imageview1_click", null));} -RDebugUtils.currentLine=4784128; - //BA.debugLineNum = 4784128;BA.debugLine="Private Sub ImageView1_Click"; -RDebugUtils.currentLine=4784130; - //BA.debugLineNum = 4784130;BA.debugLine="x = 1"; -__ref._x /*int*/ = (int) (1); -RDebugUtils.currentLine=4784131; - //BA.debugLineNum = 4784131;BA.debugLine="InitializeCamera2"; -__ref._initializecamera2 /*void*/ (null); -RDebugUtils.currentLine=4784132; - //BA.debugLineNum = 4784132;BA.debugLine="p_camara.Visible = True"; -__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=4784134; - //BA.debugLineNum = 4784134;BA.debugLine="End Sub"; +public String _imageview1_click() throws Exception{ + //BA.debugLineNum = 361;BA.debugLine="Private Sub ImageView1_Click"; + //BA.debugLineNum = 363;BA.debugLine="x = 1"; +_x = (int) (1); + //BA.debugLineNum = 364;BA.debugLine="InitializeCamera2"; +_initializecamera2(); + //BA.debugLineNum = 365;BA.debugLine="p_camara.Visible = True"; +_p_camara.setVisible(__c.True); + //BA.debugLineNum = 367;BA.debugLine="End Sub"; return ""; } -public void _initializecamera2(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "initializecamera2", false)) - {Debug.delegate(ba, "initializecamera2", null); return;} -ResumableSub_InitializeCamera2 rsub = new ResumableSub_InitializeCamera2(this,__ref); +public String _imageview2_click() throws Exception{ + //BA.debugLineNum = 369;BA.debugLine="Private Sub ImageView2_Click"; + //BA.debugLineNum = 371;BA.debugLine="x = 2"; +_x = (int) (2); + //BA.debugLineNum = 372;BA.debugLine="InitializeCamera2"; +_initializecamera2(); + //BA.debugLineNum = 373;BA.debugLine="p_camara.Visible = True"; +_p_camara.setVisible(__c.True); + //BA.debugLineNum = 375;BA.debugLine="End Sub"; +return ""; +} +public String _imageview3_click() throws Exception{ + //BA.debugLineNum = 377;BA.debugLine="Private Sub ImageView3_Click"; + //BA.debugLineNum = 379;BA.debugLine="x = 3"; +_x = (int) (3); + //BA.debugLineNum = 380;BA.debugLine="InitializeCamera2"; +_initializecamera2(); + //BA.debugLineNum = 381;BA.debugLine="p_camara.Visible = True"; +_p_camara.setVisible(__c.True); + //BA.debugLineNum = 383;BA.debugLine="End Sub"; +return ""; +} +public String _imageview4_click() throws Exception{ + //BA.debugLineNum = 385;BA.debugLine="Private Sub ImageView4_Click"; + //BA.debugLineNum = 387;BA.debugLine="x = 4"; +_x = (int) (4); + //BA.debugLineNum = 388;BA.debugLine="InitializeCamera2"; +_initializecamera2(); + //BA.debugLineNum = 389;BA.debugLine="p_camara.Visible = True"; +_p_camara.setVisible(__c.True); + //BA.debugLineNum = 391;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 106;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 107;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 108;BA.debugLine="End Sub"; +return null; +} +public void _initializecamera2() throws Exception{ +ResumableSub_InitializeCamera2 rsub = new ResumableSub_InitializeCamera2(this); rsub.resume(ba, null); } public static class ResumableSub_InitializeCamera2 extends BA.ResumableSub { -public ResumableSub_InitializeCamera2(reparto_izca.keymon.lat.c_cheklist parent,reparto_izca.keymon.lat.c_cheklist __ref) { +public ResumableSub_InitializeCamera2(reparto_izca.keymon.lat.c_cheklist parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_cheklist __ref; reparto_izca.keymon.lat.c_cheklist parent; String _permission = ""; boolean _result = false; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cheklist"; while (true) { switch (state) { @@ -1774,22 +1258,19 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=4390913; - //BA.debugLineNum = 4390913;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_"; + //BA.debugLineNum = 213;BA.debugLine="Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_"; parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .CheckAndRequest(ba,parent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_CAMERA); -RDebugUtils.currentLine=4390914; - //BA.debugLineNum = 4390914;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; -parent.__c.WaitFor("b4xpage_permissionresult", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cheklist", "initializecamera2"), null); + //BA.debugLineNum = 214;BA.debugLine="Wait For B4XPage_PermissionResult (Permission As"; +parent.__c.WaitFor("b4xpage_permissionresult", ba, this, null); this.state = 7; return; case 7: //C this.state = 1; -_permission = (String) result[1]; -_result = (Boolean) result[2]; +_permission = (String) result[0]; +_result = (Boolean) result[1]; ; -RDebugUtils.currentLine=4390915; - //BA.debugLineNum = 4390915;BA.debugLine="If Result Then"; + //BA.debugLineNum = 215;BA.debugLine="If Result Then"; if (true) break; case 1: @@ -1804,22 +1285,18 @@ this.state = 5; case 3: //C this.state = 6; -RDebugUtils.currentLine=4390916; - //BA.debugLineNum = 4390916;BA.debugLine="camEx.Initialize(p_cam, frontCamera, Me, \"Camera"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._initialize /*String*/ (null,ba,__ref._p_cam /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._frontcamera /*boolean*/ ,parent,"Camera1"); -RDebugUtils.currentLine=4390917; - //BA.debugLineNum = 4390917;BA.debugLine="frontCamera = camEx.Front"; -__ref._frontcamera /*boolean*/ = __ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._front /*boolean*/ ; -RDebugUtils.currentLine=4390918; - //BA.debugLineNum = 4390918;BA.debugLine="Log(\"inicializamos Camara\")"; -parent.__c.LogImpl("24390918","inicializamos Camara",0); + //BA.debugLineNum = 216;BA.debugLine="camEx.Initialize(p_cam, frontCamera, Me, \"Camera"; +parent._camex._initialize /*String*/ (ba,parent._p_cam,parent._frontcamera,parent,"Camera1"); + //BA.debugLineNum = 217;BA.debugLine="frontCamera = camEx.Front"; +parent._frontcamera = parent._camex._front /*boolean*/ ; + //BA.debugLineNum = 218;BA.debugLine="Log(\"inicializamos Camara\")"; +parent.__c.LogImpl("04653062","inicializamos Camara",0); if (true) break; case 5: //C this.state = 6; -RDebugUtils.currentLine=4390920; - //BA.debugLineNum = 4390920;BA.debugLine="ToastMessageShow(\"No permission Camara!!!\", True"; + //BA.debugLineNum = 220;BA.debugLine="ToastMessageShow(\"No permission Camara!!!\", True"; parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No permission Camara!!!"),parent.__c.True); if (true) break; @@ -1827,169 +1304,78 @@ case 6: //C this.state = -1; ; -RDebugUtils.currentLine=4390922; - //BA.debugLineNum = 4390922;BA.debugLine="End Sub"; + //BA.debugLineNum = 222;BA.debugLine="End Sub"; if (true) break; } } } } -public String _imageview2_click(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "imageview2_click", false)) - {return ((String) Debug.delegate(ba, "imageview2_click", null));} -RDebugUtils.currentLine=4849664; - //BA.debugLineNum = 4849664;BA.debugLine="Private Sub ImageView2_Click"; -RDebugUtils.currentLine=4849666; - //BA.debugLineNum = 4849666;BA.debugLine="x = 2"; -__ref._x /*int*/ = (int) (2); -RDebugUtils.currentLine=4849667; - //BA.debugLineNum = 4849667;BA.debugLine="InitializeCamera2"; -__ref._initializecamera2 /*void*/ (null); -RDebugUtils.currentLine=4849668; - //BA.debugLineNum = 4849668;BA.debugLine="p_camara.Visible = True"; -__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=4849670; - //BA.debugLineNum = 4849670;BA.debugLine="End Sub"; -return ""; -} -public String _imageview3_click(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "imageview3_click", false)) - {return ((String) Debug.delegate(ba, "imageview3_click", null));} -RDebugUtils.currentLine=4915200; - //BA.debugLineNum = 4915200;BA.debugLine="Private Sub ImageView3_Click"; -RDebugUtils.currentLine=4915202; - //BA.debugLineNum = 4915202;BA.debugLine="x = 3"; -__ref._x /*int*/ = (int) (3); -RDebugUtils.currentLine=4915203; - //BA.debugLineNum = 4915203;BA.debugLine="InitializeCamera2"; -__ref._initializecamera2 /*void*/ (null); -RDebugUtils.currentLine=4915204; - //BA.debugLineNum = 4915204;BA.debugLine="p_camara.Visible = True"; -__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=4915206; - //BA.debugLineNum = 4915206;BA.debugLine="End Sub"; -return ""; -} -public String _imageview4_click(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "imageview4_click", false)) - {return ((String) Debug.delegate(ba, "imageview4_click", null));} -RDebugUtils.currentLine=4980736; - //BA.debugLineNum = 4980736;BA.debugLine="Private Sub ImageView4_Click"; -RDebugUtils.currentLine=4980738; - //BA.debugLineNum = 4980738;BA.debugLine="x = 4"; -__ref._x /*int*/ = (int) (4); -RDebugUtils.currentLine=4980739; - //BA.debugLineNum = 4980739;BA.debugLine="InitializeCamera2"; -__ref._initializecamera2 /*void*/ (null); -RDebugUtils.currentLine=4980740; - //BA.debugLineNum = 4980740;BA.debugLine="p_camara.Visible = True"; -__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=4980742; - //BA.debugLineNum = 4980742;BA.debugLine="End Sub"; -return ""; -} -public String _jobdone(reparto_izca.keymon.lat.c_cheklist __ref,reparto_izca.keymon.lat.httpjob _job) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "jobdone", false)) - {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));} +public String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{ reparto_izca.keymon.lat.dbrequestmanager._dbresult _resultado = null; String _cliente = ""; int _i = 0; reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null; Object[] _records = null; String _k = ""; -RDebugUtils.currentLine=7536640; - //BA.debugLineNum = 7536640;BA.debugLine="Sub JobDone(Job As HttpJob)"; -RDebugUtils.currentLine=7536641; - //BA.debugLineNum = 7536641;BA.debugLine="Log(\"JOBDONE CLIENTE . \" & Job.Success)"; -__c.LogImpl("27536641","JOBDONE CLIENTE . "+BA.ObjectToString(_job._success /*boolean*/ ),0); -RDebugUtils.currentLine=7536642; - //BA.debugLineNum = 7536642;BA.debugLine="If Job.Success = False Then"; + //BA.debugLineNum = 747;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 748;BA.debugLine="Log(\"JOBDONE CLIENTE . \" & Job.Success)"; +__c.LogImpl("07798785","JOBDONE CLIENTE . "+BA.ObjectToString(_job._success /*boolean*/ ),0); + //BA.debugLineNum = 749;BA.debugLine="If Job.Success = False Then"; if (_job._success /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=7536645; - //BA.debugLineNum = 7536645;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Job.Error"; -__c.LogImpl("27536645","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Blue); + //BA.debugLineNum = 752;BA.debugLine="LogColor(\"Error: \" & Job.tag & \" : \" & Job.Error"; +__c.LogImpl("07798789","Error: "+BA.ObjectToString(_job._tag /*Object*/ )+" : "+_job._errormessage /*String*/ ,__c.Colors.Blue); }else { -RDebugUtils.currentLine=7536647; - //BA.debugLineNum = 7536647;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job"; -__c.LogImpl("27536647","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); -RDebugUtils.currentLine=7536648; - //BA.debugLineNum = 7536648;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 754;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job"; +__c.LogImpl("07798791","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); + //BA.debugLineNum = 755;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=7536649; - //BA.debugLineNum = 7536649;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo"; -_resultado = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=7536650; - //BA.debugLineNum = 7536650;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_checkl"; + //BA.debugLineNum = 756;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo"; +_resultado = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 757;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_checkl"; if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_checkliPendientes_head_")>-1) { -RDebugUtils.currentLine=7536651; - //BA.debugLineNum = 7536651;BA.debugLine="Private cliente As String= resultado.Tag"; + //BA.debugLineNum = 758;BA.debugLine="Private cliente As String= resultado.Tag"; _cliente = BA.ObjectToString(_resultado.Tag /*Object*/ ); -RDebugUtils.currentLine=7536652; - //BA.debugLineNum = 7536652;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_"; + //BA.debugLineNum = 759;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_"; _cliente = _cliente.substring((int) (_cliente.indexOf("_")+24)); -RDebugUtils.currentLine=7536653; - //BA.debugLineNum = 7536653;BA.debugLine="Log($\"Cliente1:${cliente}\"$)"; -__c.LogImpl("27536653",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0); -RDebugUtils.currentLine=7536655; - //BA.debugLineNum = 7536655;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT USUARIO, PLAC"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE, RUTA FROM CHECKLIST2"))); -RDebugUtils.currentLine=7536656; - //BA.debugLineNum = 7536656;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)"; -__c.LogImpl("27536656",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()))+""),0); -RDebugUtils.currentLine=7536657; - //BA.debugLineNum = 7536657;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=7536658; - //BA.debugLineNum = 7536658;BA.debugLine="For i = 0 To c.RowCount -1"; + //BA.debugLineNum = 760;BA.debugLine="Log($\"Cliente1:${cliente}\"$)"; +__c.LogImpl("07798797",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0); + //BA.debugLineNum = 762;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT USUARIO, PLAC"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4, KILIMETRAJE, RUTA FROM CHECKLIST2"))); + //BA.debugLineNum = 763;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)"; +__c.LogImpl("07798800",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0); + //BA.debugLineNum = 764;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 765;BA.debugLine="For i = 0 To c.RowCount -1"; { final int step15 = 1; -final int limit15 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit15 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit15 ;_i = _i + step15 ) { -RDebugUtils.currentLine=7536659; - //BA.debugLineNum = 7536659;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=7536660; - //BA.debugLineNum = 7536660;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 766;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 767;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=7536662; - //BA.debugLineNum = 7536662;BA.debugLine="foto1 = c.GetBlob(\"FOTO1\")"; -__ref._foto1 /*byte[]*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("FOTO1"); -RDebugUtils.currentLine=7536663; - //BA.debugLineNum = 7536663;BA.debugLine="foto2 = c.GetBlob(\"FOTO12\")"; -__ref._foto2 /*byte[]*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("FOTO12"); -RDebugUtils.currentLine=7536664; - //BA.debugLineNum = 7536664;BA.debugLine="foto3 = c.GetBlob(\"FOTO3\")"; -__ref._foto3 /*byte[]*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("FOTO3"); -RDebugUtils.currentLine=7536665; - //BA.debugLineNum = 7536665;BA.debugLine="foto4 = c.GetBlob(\"FOTO4\")"; -__ref._foto4 /*byte[]*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("FOTO4"); -RDebugUtils.currentLine=7536667; - //BA.debugLineNum = 7536667;BA.debugLine="cmd.Initialize"; + //BA.debugLineNum = 769;BA.debugLine="foto1 = c.GetBlob(\"FOTO1\")"; +_foto1 = _c.GetBlob("FOTO1"); + //BA.debugLineNum = 770;BA.debugLine="foto2 = c.GetBlob(\"FOTO12\")"; +_foto2 = _c.GetBlob("FOTO12"); + //BA.debugLineNum = 771;BA.debugLine="foto3 = c.GetBlob(\"FOTO3\")"; +_foto3 = _c.GetBlob("FOTO3"); + //BA.debugLineNum = 772;BA.debugLine="foto4 = c.GetBlob(\"FOTO4\")"; +_foto4 = _c.GetBlob("FOTO4"); + //BA.debugLineNum = 774;BA.debugLine="cmd.Initialize"; _cmd.Initialize(); -RDebugUtils.currentLine=7536668; - //BA.debugLineNum = 7536668;BA.debugLine="cmd.Name = \"update_CHECK_MARDS\""; + //BA.debugLineNum = 775;BA.debugLine="cmd.Name = \"update_CHECK_MARDS\""; _cmd.Name /*String*/ = "update_CHECK_MARDS"; -RDebugUtils.currentLine=7536669; - //BA.debugLineNum = 7536669;BA.debugLine="cmd.Parameters = Array As Object(c.GetString"; -_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONDICION_LLANTAS_DEL_DER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONDICION_LLANTAS_DEL_IZQ")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONDICION_LLANTAS_TRASERA_DER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONDICION_LLANTAS_TRASERA_IZQ")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ACEITE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ANTICONGELANTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("FRENOS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("AIRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("FUGAS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("COMETARIOS_FUGAS")),(Object)(__ref._foto1 /*byte[]*/ ),(Object)(__ref._foto2 /*byte[]*/ ),(Object)(__ref._foto3 /*byte[]*/ ),(Object)(__ref._foto4 /*byte[]*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._principal /*reparto_izca.keymon.lat.c_principal*/ ._almacen /*String*/ ),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("KILIMETRAJE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PLACA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("FECHA_CAPTURA"))}; -RDebugUtils.currentLine=7536670; - //BA.debugLineNum = 7536670;BA.debugLine="reqManager.ExecuteCommand(cmd , \"update\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,_cmd,(Object)("update")); + //BA.debugLineNum = 776;BA.debugLine="cmd.Parameters = Array As Object(c.GetString"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CONDICION_LLANTAS_DEL_DER")),(Object)(_c.GetString("CONDICION_LLANTAS_DEL_IZQ")),(Object)(_c.GetString("CONDICION_LLANTAS_TRASERA_DER")),(Object)(_c.GetString("CONDICION_LLANTAS_TRASERA_IZQ")),(Object)(_c.GetString("ACEITE")),(Object)(_c.GetString("ANTICONGELANTE")),(Object)(_c.GetString("FRENOS")),(Object)(_c.GetString("AIRE")),(Object)(_c.GetString("FUGAS")),(Object)(_c.GetString("COMETARIOS_FUGAS")),(Object)(_foto1),(Object)(_foto2),(Object)(_foto3),(Object)(_foto4),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._principal /*reparto_izca.keymon.lat.c_principal*/ ._almacen /*String*/ ),(Object)(_c.GetString("KILIMETRAJE")),(Object)(_c.GetString("RUTA")),(Object)(_c.GetString("USUARIO")),(Object)(_c.GetString("PLACA")),(Object)(_c.GetString("FECHA_CAPTURA"))}; + //BA.debugLineNum = 777;BA.debugLine="reqManager.ExecuteCommand(cmd , \"update\")"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("update")); } }; }; -RDebugUtils.currentLine=7536674; - //BA.debugLineNum = 7536674;BA.debugLine="For Each records() As Object In resultado.Rows"; + //BA.debugLineNum = 781;BA.debugLine="For Each records() As Object In resultado.Rows"; { final anywheresoftware.b4a.BA.IterableList group28 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen28 = group28.getSize() @@ -1997,8 +1383,7 @@ final int groupLen28 = group28.getSize() ; for (; index28 < groupLen28;index28++){ _records = (Object[])(group28.Get(index28)); -RDebugUtils.currentLine=7536675; - //BA.debugLineNum = 7536675;BA.debugLine="For Each k As String In resultado.Columns.Key"; + //BA.debugLineNum = 782;BA.debugLine="For Each k As String In resultado.Columns.Key"; { final anywheresoftware.b4a.BA.IterableList group29 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); final int groupLen29 = group29.getSize() @@ -2006,486 +1391,313 @@ final int groupLen29 = group29.getSize() ; for (; index29 < groupLen29;index29++){ _k = BA.ObjectToString(group29.Get(index29)); -RDebugUtils.currentLine=7536676; - //BA.debugLineNum = 7536676;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record"; -__c.LogImpl("27536676",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); + //BA.debugLineNum = 783;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record"; +__c.LogImpl("07798820",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); } }; } }; -RDebugUtils.currentLine=7536679; - //BA.debugLineNum = 7536679;BA.debugLine="Starter.skmt.ExecNonQuery(\"UPDATE CHECADO_CHEC"; + //BA.debugLineNum = 786;BA.debugLine="Starter.skmt.ExecNonQuery(\"UPDATE CHECADO_CHEC"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE CHECADO_CHECK set CHECADO = 1 "); -RDebugUtils.currentLine=7536680; - //BA.debugLineNum = 7536680;BA.debugLine="B4XPages.MainPage.principal.checachek"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._principal /*reparto_izca.keymon.lat.c_principal*/ ._checachek /*String*/ (null); + //BA.debugLineNum = 787;BA.debugLine="B4XPages.MainPage.principal.checachek"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._principal /*reparto_izca.keymon.lat.c_principal*/ ._checachek /*String*/ (); }; }; -RDebugUtils.currentLine=7536684; - //BA.debugLineNum = 7536684;BA.debugLine="Job.Release"; -_job._release /*String*/ (null); + //BA.debugLineNum = 791;BA.debugLine="Job.Release"; +_job._release /*String*/ (); }; -RDebugUtils.currentLine=7536687; - //BA.debugLineNum = 7536687;BA.debugLine="End Sub"; + //BA.debugLineNum = 794;BA.debugLine="End Sub"; return ""; } -public String _p_camara_click(reparto_izca.keymon.lat.c_cheklist __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "p_camara_click", false)) - {return ((String) Debug.delegate(ba, "p_camara_click", null));} -RDebugUtils.currentLine=4587520; - //BA.debugLineNum = 4587520;BA.debugLine="Private Sub p_camara_Click"; -RDebugUtils.currentLine=4587522; - //BA.debugLineNum = 4587522;BA.debugLine="End Sub"; +public String _mandapendientes() throws Exception{ +int _i = 0; +reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null; + //BA.debugLineNum = 724;BA.debugLine="Sub mandaPendientes"; + //BA.debugLineNum = 725;BA.debugLine="Log(\"MandaPendientes\")"; +__c.LogImpl("07733249","MandaPendientes",0); + //BA.debugLineNum = 727;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT USUARIO, PLACA,"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT USUARIO, PLACA, FECHA_CAPTURA, TARJETA_CIRCULACION , POLIZA_SEGURO, LICENCIA_CONDUCIR, LIMPIA_EXTERNA, LIMPIA_INTERNA, TRIANGULO, GATO, LLANTA_REFACCION, CARROCERIA, CARROCERIA_COMENTARIOS, LUCES, LUCES_COMENTARIOS, CONDICION_PLACAS, CONDICION_PLACAS_COMENTARIOS, CONDICION_LLANTAS_DEL_DER, CONDICION_LLANTAS_DEL_IZQ, CONDICION_LLANTAS_TRASERA_DER, CONDICION_LLANTAS_TRASERA_IZQ, ACEITE, ANTICONGELANTE, FRENOS, AIRE, FUGAS, COMETARIOS_FUGAS, FOTO1, FOTO12, FOTO3, FOTO4 FROM CHECKLIST2"))); + //BA.debugLineNum = 728;BA.debugLine="Log($\"Pedido PENDIENTE: ${c.RowCount}\"$)"; +__c.LogImpl("07733252",("Pedido PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0); + //BA.debugLineNum = 729;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 730;BA.debugLine="For i = 0 To c.RowCount -1"; +{ +final int step5 = 1; +final int limit5 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit5 ;_i = _i + step5 ) { + //BA.debugLineNum = 731;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 732;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 734;BA.debugLine="foto1 = c.GetBlob(\"FOTO1\")"; +_foto1 = _c.GetBlob("FOTO1"); + //BA.debugLineNum = 735;BA.debugLine="foto2 = c.GetBlob(\"FOTO12\")"; +_foto2 = _c.GetBlob("FOTO12"); + //BA.debugLineNum = 736;BA.debugLine="foto3 = c.GetBlob(\"FOTO3\")"; +_foto3 = _c.GetBlob("FOTO3"); + //BA.debugLineNum = 737;BA.debugLine="foto4 = c.GetBlob(\"FOTO4\")"; +_foto4 = _c.GetBlob("FOTO4"); + //BA.debugLineNum = 739;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 740;BA.debugLine="cmd.Name = \"insert_CHECK_MARDS\""; +_cmd.Name /*String*/ = "insert_CHECK_MARDS"; + //BA.debugLineNum = 741;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"U"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("USUARIO")),(Object)(_c.GetString("PLACA")),(Object)(_c.GetString("FECHA_CAPTURA")),(Object)(_c.GetString("TARJETA_CIRCULACION")),(Object)(_c.GetString("POLIZA_SEGURO")),(Object)(_c.GetString("LICENCIA_CONDUCIR")),(Object)(_c.GetString("LIMPIA_EXTERNA")),(Object)(_c.GetString("LIMPIA_INTERNA")),(Object)(_c.GetString("TRIANGULO")),(Object)(_c.GetString("GATO")),(Object)(_c.GetString("LLANTA_REFACCION")),(Object)(_c.GetString("CARROCERIA")),(Object)(_c.GetString("CARROCERIA_COMENTARIOS")),(Object)(_c.GetString("LUCES")),(Object)(_c.GetString("LUCES_COMENTARIOS")),(Object)(_c.GetString("CONDICION_PLACAS")),(Object)(_c.GetString("CONDICION_PLACAS_COMENTARIOS"))}; + //BA.debugLineNum = 742;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_checkliPe"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)(("ins_checkliPendientes_head_"+__c.SmartStringFormatter("",(Object)(_c.GetString("USUARIO")))+""))); + } +}; + }; + //BA.debugLineNum = 745;BA.debugLine="End Sub"; return ""; } -public String _rb_docno1_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno1_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno1_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5046272; - //BA.debugLineNum = 5046272;BA.debugLine="Private Sub rb_docno1_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5046273; - //BA.debugLineNum = 5046273;BA.debugLine="p1 = \"No\""; -__ref._p1 /*String*/ = "No"; -RDebugUtils.currentLine=5046274; - //BA.debugLineNum = 5046274;BA.debugLine="End Sub"; +public String _p_camara_click() throws Exception{ + //BA.debugLineNum = 344;BA.debugLine="Private Sub p_camara_Click"; + //BA.debugLineNum = 346;BA.debugLine="End Sub"; return ""; } -public String _rb_docno11_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno11_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno11_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6225920; - //BA.debugLineNum = 6225920;BA.debugLine="Private Sub rb_docno11_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6225921; - //BA.debugLineNum = 6225921;BA.debugLine="p11 = \"Incorrecto\""; -__ref._p11 /*String*/ = "Incorrecto"; -RDebugUtils.currentLine=6225922; - //BA.debugLineNum = 6225922;BA.debugLine="End Sub"; +public String _rb_docno1_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 393;BA.debugLine="Private Sub rb_docno1_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 394;BA.debugLine="p1 = \"No\""; +_p1 = "No"; + //BA.debugLineNum = 395;BA.debugLine="End Sub"; return ""; } -public String _rb_docno13_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno13_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno13_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6356992; - //BA.debugLineNum = 6356992;BA.debugLine="Private Sub rb_docno13_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6356993; - //BA.debugLineNum = 6356993;BA.debugLine="p13 = \"Incorrecto\""; -__ref._p13 /*String*/ = "Incorrecto"; -RDebugUtils.currentLine=6356994; - //BA.debugLineNum = 6356994;BA.debugLine="End Sub"; +public String _rb_docno11_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 465;BA.debugLine="Private Sub rb_docno11_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 466;BA.debugLine="p11 = \"Incorrecto\""; +_p11 = "Incorrecto"; + //BA.debugLineNum = 467;BA.debugLine="End Sub"; return ""; } -public String _rb_docno15_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno15_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno15_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6488064; - //BA.debugLineNum = 6488064;BA.debugLine="Private Sub rb_docno15_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6488065; - //BA.debugLineNum = 6488065;BA.debugLine="p15 = \"Incorrecto\""; -__ref._p15 /*String*/ = "Incorrecto"; -RDebugUtils.currentLine=6488066; - //BA.debugLineNum = 6488066;BA.debugLine="End Sub"; +public String _rb_docno13_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 473;BA.debugLine="Private Sub rb_docno13_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 474;BA.debugLine="p13 = \"Incorrecto\""; +_p13 = "Incorrecto"; + //BA.debugLineNum = 475;BA.debugLine="End Sub"; return ""; } -public String _rb_docno16_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno16_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno16_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6619136; - //BA.debugLineNum = 6619136;BA.debugLine="Private Sub rb_docno16_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6619137; - //BA.debugLineNum = 6619137;BA.debugLine="p16 = \"Incorrecto\""; -__ref._p16 /*String*/ = "Incorrecto"; -RDebugUtils.currentLine=6619138; - //BA.debugLineNum = 6619138;BA.debugLine="End Sub"; +public String _rb_docno15_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 481;BA.debugLine="Private Sub rb_docno15_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 482;BA.debugLine="p15 = \"Incorrecto\""; +_p15 = "Incorrecto"; + //BA.debugLineNum = 483;BA.debugLine="End Sub"; return ""; } -public String _rb_docno17_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno17_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno17_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6750208; - //BA.debugLineNum = 6750208;BA.debugLine="Private Sub rb_docno17_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6750209; - //BA.debugLineNum = 6750209;BA.debugLine="p17 = \"Incorrecto\""; -__ref._p17 /*String*/ = "Incorrecto"; -RDebugUtils.currentLine=6750210; - //BA.debugLineNum = 6750210;BA.debugLine="End Sub"; +public String _rb_docno16_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 489;BA.debugLine="Private Sub rb_docno16_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 490;BA.debugLine="p16 = \"Incorrecto\""; +_p16 = "Incorrecto"; + //BA.debugLineNum = 491;BA.debugLine="End Sub"; return ""; } -public String _rb_docno18_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno18_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno18_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6881280; - //BA.debugLineNum = 6881280;BA.debugLine="Private Sub rb_docno18_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6881281; - //BA.debugLineNum = 6881281;BA.debugLine="p18 = \"Incorrecto\""; -__ref._p18 /*String*/ = "Incorrecto"; -RDebugUtils.currentLine=6881282; - //BA.debugLineNum = 6881282;BA.debugLine="End Sub"; +public String _rb_docno17_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 497;BA.debugLine="Private Sub rb_docno17_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 498;BA.debugLine="p17 = \"Incorrecto\""; +_p17 = "Incorrecto"; + //BA.debugLineNum = 499;BA.debugLine="End Sub"; return ""; } -public String _rb_docno19_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno19_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno19_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=7012352; - //BA.debugLineNum = 7012352;BA.debugLine="Private Sub rb_docno19_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=7012353; - //BA.debugLineNum = 7012353;BA.debugLine="p19 = \"Incorrecto\""; -__ref._p19 /*String*/ = "Incorrecto"; -RDebugUtils.currentLine=7012354; - //BA.debugLineNum = 7012354;BA.debugLine="End Sub"; +public String _rb_docno18_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 505;BA.debugLine="Private Sub rb_docno18_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 506;BA.debugLine="p18 = \"Incorrecto\""; +_p18 = "Incorrecto"; + //BA.debugLineNum = 507;BA.debugLine="End Sub"; return ""; } -public String _rb_docno2_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno2_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno2_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5177344; - //BA.debugLineNum = 5177344;BA.debugLine="Private Sub rb_docno2_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5177345; - //BA.debugLineNum = 5177345;BA.debugLine="p2 = \"No\""; -__ref._p2 /*String*/ = "No"; -RDebugUtils.currentLine=5177346; - //BA.debugLineNum = 5177346;BA.debugLine="End Sub"; +public String _rb_docno19_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 513;BA.debugLine="Private Sub rb_docno19_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 514;BA.debugLine="p19 = \"Incorrecto\""; +_p19 = "Incorrecto"; + //BA.debugLineNum = 515;BA.debugLine="End Sub"; return ""; } -public String _rb_docno3_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno3_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno3_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5308416; - //BA.debugLineNum = 5308416;BA.debugLine="Private Sub rb_docno3_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5308417; - //BA.debugLineNum = 5308417;BA.debugLine="p3 = \"No\""; -__ref._p3 /*String*/ = "No"; -RDebugUtils.currentLine=5308418; - //BA.debugLineNum = 5308418;BA.debugLine="End Sub"; +public String _rb_docno2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 401;BA.debugLine="Private Sub rb_docno2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 402;BA.debugLine="p2 = \"No\""; +_p2 = "No"; + //BA.debugLineNum = 403;BA.debugLine="End Sub"; return ""; } -public String _rb_docno4_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno4_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno4_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5439488; - //BA.debugLineNum = 5439488;BA.debugLine="Private Sub rb_docno4_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5439489; - //BA.debugLineNum = 5439489;BA.debugLine="p4 = \"No\""; -__ref._p4 /*String*/ = "No"; -RDebugUtils.currentLine=5439490; - //BA.debugLineNum = 5439490;BA.debugLine="End Sub"; +public String _rb_docno3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 409;BA.debugLine="Private Sub rb_docno3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 410;BA.debugLine="p3 = \"No\""; +_p3 = "No"; + //BA.debugLineNum = 411;BA.debugLine="End Sub"; return ""; } -public String _rb_docno5_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno5_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno5_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5570560; - //BA.debugLineNum = 5570560;BA.debugLine="Private Sub rb_docno5_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5570561; - //BA.debugLineNum = 5570561;BA.debugLine="p5 = \"No\""; -__ref._p5 /*String*/ = "No"; -RDebugUtils.currentLine=5570562; - //BA.debugLineNum = 5570562;BA.debugLine="End Sub"; +public String _rb_docno4_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 417;BA.debugLine="Private Sub rb_docno4_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 418;BA.debugLine="p4 = \"No\""; +_p4 = "No"; + //BA.debugLineNum = 419;BA.debugLine="End Sub"; return ""; } -public String _rb_docno6_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno6_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno6_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5701632; - //BA.debugLineNum = 5701632;BA.debugLine="Private Sub rb_docno6_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5701633; - //BA.debugLineNum = 5701633;BA.debugLine="p6 = \"No\""; -__ref._p6 /*String*/ = "No"; -RDebugUtils.currentLine=5701634; - //BA.debugLineNum = 5701634;BA.debugLine="End Sub"; +public String _rb_docno5_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 425;BA.debugLine="Private Sub rb_docno5_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 426;BA.debugLine="p5 = \"No\""; +_p5 = "No"; + //BA.debugLineNum = 427;BA.debugLine="End Sub"; return ""; } -public String _rb_docno7_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno7_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno7_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5832704; - //BA.debugLineNum = 5832704;BA.debugLine="Private Sub rb_docno7_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5832705; - //BA.debugLineNum = 5832705;BA.debugLine="p7 = \"No\""; -__ref._p7 /*String*/ = "No"; -RDebugUtils.currentLine=5832706; - //BA.debugLineNum = 5832706;BA.debugLine="End Sub"; +public String _rb_docno6_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 433;BA.debugLine="Private Sub rb_docno6_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 434;BA.debugLine="p6 = \"No\""; +_p6 = "No"; + //BA.debugLineNum = 435;BA.debugLine="End Sub"; return ""; } -public String _rb_docno8_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno8_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno8_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5963776; - //BA.debugLineNum = 5963776;BA.debugLine="Private Sub rb_docno8_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5963777; - //BA.debugLineNum = 5963777;BA.debugLine="p8 = \"No\""; -__ref._p8 /*String*/ = "No"; -RDebugUtils.currentLine=5963778; - //BA.debugLineNum = 5963778;BA.debugLine="End Sub"; +public String _rb_docno7_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 441;BA.debugLine="Private Sub rb_docno7_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 442;BA.debugLine="p7 = \"No\""; +_p7 = "No"; + //BA.debugLineNum = 443;BA.debugLine="End Sub"; return ""; } -public String _rb_docno9_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docno9_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docno9_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6094848; - //BA.debugLineNum = 6094848;BA.debugLine="Private Sub rb_docno9_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=6094849; - //BA.debugLineNum = 6094849;BA.debugLine="p9 = \"Incorrecto\""; -__ref._p9 /*String*/ = "Incorrecto"; -RDebugUtils.currentLine=6094850; - //BA.debugLineNum = 6094850;BA.debugLine="End Sub"; +public String _rb_docno8_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 449;BA.debugLine="Private Sub rb_docno8_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 450;BA.debugLine="p8 = \"No\""; +_p8 = "No"; + //BA.debugLineNum = 451;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi1_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi1_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi1_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5111808; - //BA.debugLineNum = 5111808;BA.debugLine="Private Sub rb_docsi1_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5111809; - //BA.debugLineNum = 5111809;BA.debugLine="p1 = \"Si\""; -__ref._p1 /*String*/ = "Si"; -RDebugUtils.currentLine=5111810; - //BA.debugLineNum = 5111810;BA.debugLine="End Sub"; +public String _rb_docno9_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 457;BA.debugLine="Private Sub rb_docno9_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 458;BA.debugLine="p9 = \"Incorrecto\""; +_p9 = "Incorrecto"; + //BA.debugLineNum = 459;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi11_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi11_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi11_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6291456; - //BA.debugLineNum = 6291456;BA.debugLine="Private Sub rb_docsi11_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6291457; - //BA.debugLineNum = 6291457;BA.debugLine="p11 = \"Correcto\""; -__ref._p11 /*String*/ = "Correcto"; -RDebugUtils.currentLine=6291458; - //BA.debugLineNum = 6291458;BA.debugLine="End Sub"; +public String _rb_docsi1_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 397;BA.debugLine="Private Sub rb_docsi1_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 398;BA.debugLine="p1 = \"Si\""; +_p1 = "Si"; + //BA.debugLineNum = 399;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi13_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi13_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi13_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6422528; - //BA.debugLineNum = 6422528;BA.debugLine="Private Sub rb_docsi13_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6422529; - //BA.debugLineNum = 6422529;BA.debugLine="p13 = \"Correcto\""; -__ref._p13 /*String*/ = "Correcto"; -RDebugUtils.currentLine=6422530; - //BA.debugLineNum = 6422530;BA.debugLine="End Sub"; +public String _rb_docsi11_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 469;BA.debugLine="Private Sub rb_docsi11_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 470;BA.debugLine="p11 = \"Correcto\""; +_p11 = "Correcto"; + //BA.debugLineNum = 471;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi15_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi15_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi15_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6553600; - //BA.debugLineNum = 6553600;BA.debugLine="Private Sub rb_docsi15_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6553601; - //BA.debugLineNum = 6553601;BA.debugLine="p15 = \"Correcto\""; -__ref._p15 /*String*/ = "Correcto"; -RDebugUtils.currentLine=6553602; - //BA.debugLineNum = 6553602;BA.debugLine="End Sub"; +public String _rb_docsi13_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 477;BA.debugLine="Private Sub rb_docsi13_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 478;BA.debugLine="p13 = \"Correcto\""; +_p13 = "Correcto"; + //BA.debugLineNum = 479;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi16_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi16_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi16_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6684672; - //BA.debugLineNum = 6684672;BA.debugLine="Private Sub rb_docsi16_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6684673; - //BA.debugLineNum = 6684673;BA.debugLine="p16 = \"Correcto\""; -__ref._p16 /*String*/ = "Correcto"; -RDebugUtils.currentLine=6684674; - //BA.debugLineNum = 6684674;BA.debugLine="End Sub"; +public String _rb_docsi15_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 485;BA.debugLine="Private Sub rb_docsi15_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 486;BA.debugLine="p15 = \"Correcto\""; +_p15 = "Correcto"; + //BA.debugLineNum = 487;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi17_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi17_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi17_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6815744; - //BA.debugLineNum = 6815744;BA.debugLine="Private Sub rb_docsi17_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6815745; - //BA.debugLineNum = 6815745;BA.debugLine="p17 = \"Correcto\""; -__ref._p17 /*String*/ = "Correcto"; -RDebugUtils.currentLine=6815746; - //BA.debugLineNum = 6815746;BA.debugLine="End Sub"; +public String _rb_docsi16_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 493;BA.debugLine="Private Sub rb_docsi16_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 494;BA.debugLine="p16 = \"Correcto\""; +_p16 = "Correcto"; + //BA.debugLineNum = 495;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi18_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi18_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi18_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6946816; - //BA.debugLineNum = 6946816;BA.debugLine="Private Sub rb_docsi18_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=6946817; - //BA.debugLineNum = 6946817;BA.debugLine="p18 = \"Correcto\""; -__ref._p18 /*String*/ = "Correcto"; -RDebugUtils.currentLine=6946818; - //BA.debugLineNum = 6946818;BA.debugLine="End Sub"; +public String _rb_docsi17_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 501;BA.debugLine="Private Sub rb_docsi17_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 502;BA.debugLine="p17 = \"Correcto\""; +_p17 = "Correcto"; + //BA.debugLineNum = 503;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi19_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi19_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi19_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=7077888; - //BA.debugLineNum = 7077888;BA.debugLine="Private Sub rb_docsi19_CheckedChange(Checked As Bo"; -RDebugUtils.currentLine=7077889; - //BA.debugLineNum = 7077889;BA.debugLine="p19 = \"Correcto\""; -__ref._p19 /*String*/ = "Correcto"; -RDebugUtils.currentLine=7077890; - //BA.debugLineNum = 7077890;BA.debugLine="End Sub"; +public String _rb_docsi18_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 509;BA.debugLine="Private Sub rb_docsi18_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 510;BA.debugLine="p18 = \"Correcto\""; +_p18 = "Correcto"; + //BA.debugLineNum = 511;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi2_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi2_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi2_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5242880; - //BA.debugLineNum = 5242880;BA.debugLine="Private Sub rb_docsi2_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5242881; - //BA.debugLineNum = 5242881;BA.debugLine="p2 = \"Si\""; -__ref._p2 /*String*/ = "Si"; -RDebugUtils.currentLine=5242882; - //BA.debugLineNum = 5242882;BA.debugLine="End Sub"; +public String _rb_docsi19_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 517;BA.debugLine="Private Sub rb_docsi19_CheckedChange(Checked As Bo"; + //BA.debugLineNum = 518;BA.debugLine="p19 = \"Correcto\""; +_p19 = "Correcto"; + //BA.debugLineNum = 519;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi3_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi3_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi3_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5373952; - //BA.debugLineNum = 5373952;BA.debugLine="Private Sub rb_docsi3_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5373953; - //BA.debugLineNum = 5373953;BA.debugLine="p3 = \"Si\""; -__ref._p3 /*String*/ = "Si"; -RDebugUtils.currentLine=5373954; - //BA.debugLineNum = 5373954;BA.debugLine="End Sub"; +public String _rb_docsi2_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 405;BA.debugLine="Private Sub rb_docsi2_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 406;BA.debugLine="p2 = \"Si\""; +_p2 = "Si"; + //BA.debugLineNum = 407;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi4_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi4_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi4_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5505024; - //BA.debugLineNum = 5505024;BA.debugLine="Private Sub rb_docsi4_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5505025; - //BA.debugLineNum = 5505025;BA.debugLine="p4 = \"Si\""; -__ref._p4 /*String*/ = "Si"; -RDebugUtils.currentLine=5505026; - //BA.debugLineNum = 5505026;BA.debugLine="End Sub"; +public String _rb_docsi3_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 413;BA.debugLine="Private Sub rb_docsi3_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 414;BA.debugLine="p3 = \"Si\""; +_p3 = "Si"; + //BA.debugLineNum = 415;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi5_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi5_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi5_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5636096; - //BA.debugLineNum = 5636096;BA.debugLine="Private Sub rb_docsi5_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5636097; - //BA.debugLineNum = 5636097;BA.debugLine="p5 = \"Si\""; -__ref._p5 /*String*/ = "Si"; -RDebugUtils.currentLine=5636098; - //BA.debugLineNum = 5636098;BA.debugLine="End Sub"; +public String _rb_docsi4_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 421;BA.debugLine="Private Sub rb_docsi4_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 422;BA.debugLine="p4 = \"Si\""; +_p4 = "Si"; + //BA.debugLineNum = 423;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi6_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi6_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi6_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5767168; - //BA.debugLineNum = 5767168;BA.debugLine="Private Sub rb_docsi6_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5767169; - //BA.debugLineNum = 5767169;BA.debugLine="p6 = \"Si\""; -__ref._p6 /*String*/ = "Si"; -RDebugUtils.currentLine=5767170; - //BA.debugLineNum = 5767170;BA.debugLine="End Sub"; +public String _rb_docsi5_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 429;BA.debugLine="Private Sub rb_docsi5_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 430;BA.debugLine="p5 = \"Si\""; +_p5 = "Si"; + //BA.debugLineNum = 431;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi7_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi7_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi7_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=5898240; - //BA.debugLineNum = 5898240;BA.debugLine="Private Sub rb_docsi7_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=5898241; - //BA.debugLineNum = 5898241;BA.debugLine="p7 = \"Si\""; -__ref._p7 /*String*/ = "Si"; -RDebugUtils.currentLine=5898242; - //BA.debugLineNum = 5898242;BA.debugLine="End Sub"; +public String _rb_docsi6_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 437;BA.debugLine="Private Sub rb_docsi6_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 438;BA.debugLine="p6 = \"Si\""; +_p6 = "Si"; + //BA.debugLineNum = 439;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi8_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi8_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi8_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6029312; - //BA.debugLineNum = 6029312;BA.debugLine="Private Sub rb_docsi8_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=6029313; - //BA.debugLineNum = 6029313;BA.debugLine="p8 = \"Si\""; -__ref._p8 /*String*/ = "Si"; -RDebugUtils.currentLine=6029314; - //BA.debugLineNum = 6029314;BA.debugLine="End Sub"; +public String _rb_docsi7_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 445;BA.debugLine="Private Sub rb_docsi7_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 446;BA.debugLine="p7 = \"Si\""; +_p7 = "Si"; + //BA.debugLineNum = 447;BA.debugLine="End Sub"; return ""; } -public String _rb_docsi9_checkedchange(reparto_izca.keymon.lat.c_cheklist __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cheklist"; -if (Debug.shouldDelegate(ba, "rb_docsi9_checkedchange", false)) - {return ((String) Debug.delegate(ba, "rb_docsi9_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=6160384; - //BA.debugLineNum = 6160384;BA.debugLine="Private Sub rb_docsi9_CheckedChange(Checked As Boo"; -RDebugUtils.currentLine=6160385; - //BA.debugLineNum = 6160385;BA.debugLine="p9 = \"Correcto\""; -__ref._p9 /*String*/ = "Correcto"; -RDebugUtils.currentLine=6160386; - //BA.debugLineNum = 6160386;BA.debugLine="End Sub"; +public String _rb_docsi8_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 453;BA.debugLine="Private Sub rb_docsi8_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 454;BA.debugLine="p8 = \"Si\""; +_p8 = "Si"; + //BA.debugLineNum = 455;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public String _rb_docsi9_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 461;BA.debugLine="Private Sub rb_docsi9_CheckedChange(Checked As Boo"; + //BA.debugLineNum = 462;BA.debugLine="p9 = \"Correcto\""; +_p9 = "Correcto"; + //BA.debugLineNum = 463;BA.debugLine="End Sub"; +return ""; +} +public String _stopcamera2() throws Exception{ + //BA.debugLineNum = 354;BA.debugLine="Private Sub StopCamera2"; + //BA.debugLineNum = 356;BA.debugLine="If camEx.IsInitialized Then"; +if (_camex.IsInitialized /*boolean*/ ()) { + //BA.debugLineNum = 357;BA.debugLine="camEx.Release"; +_camex._release /*String*/ (); + }; + //BA.debugLineNum = 359;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +if (BA.fastSubCompare(sub, "JOBDONE")) + return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_cliente.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_cliente.java index 8ba205b..fa5a4f3 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_cliente.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_cliente.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_cliente"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_cliente"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_cliente extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -148,50 +141,24 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_cliente __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=7667712; - //BA.debugLineNum = 7667712;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=7667713; - //BA.debugLineNum = 7667713;BA.debugLine="Return Me"; -if (true) return this; -RDebugUtils.currentLine=7667714; - //BA.debugLineNum = 7667714;BA.debugLine="End Sub"; -return null; -} -public String _activity_pause(reparto_izca.keymon.lat.c_cliente __ref,boolean _userclosed) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -RDebugUtils.currentLine=7864320; - //BA.debugLineNum = 7864320;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; -RDebugUtils.currentLine=7864322; - //BA.debugLineNum = 7864322;BA.debugLine="End Sub"; +public String _activity_pause(boolean _userclosed) throws Exception{ + //BA.debugLineNum = 427;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 429;BA.debugLine="End Sub"; return ""; } -public void _b_abono_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b_abono_click", false)) - {Debug.delegate(ba, "b_abono_click", null); return;} -ResumableSub_b_abono_Click rsub = new ResumableSub_b_abono_Click(this,__ref); +public void _b_abono_click() throws Exception{ +ResumableSub_b_abono_Click rsub = new ResumableSub_b_abono_Click(this); rsub.resume(ba, null); } public static class ResumableSub_b_abono_Click extends BA.ResumableSub { -public ResumableSub_b_abono_Click(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) { +public ResumableSub_b_abono_Click(reparto_izca.keymon.lat.c_cliente parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_cliente __ref; reparto_izca.keymon.lat.c_cliente parent; int _resultado = 0; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cliente"; while (true) { switch (state) { @@ -201,28 +168,26 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=9764866; - //BA.debugLineNum = 9764866;BA.debugLine="If et_abono.Text <> \"\" Then"; + //BA.debugLineNum = 2111;BA.debugLine="If et_abono.Text <> \"\" Then"; if (true) break; case 1: //if this.state = 24; -if ((__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { +if ((parent._et_abono.getText()).equals("") == false) { this.state = 3; }if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=9764867; - //BA.debugLineNum = 9764867;BA.debugLine="If et_abono.text > l_montoabonostotal.text Then"; + //BA.debugLineNum = 2112;BA.debugLine="If et_abono.text > l_montoabonostotal.text Then"; if (true) break; case 4: //if this.state = 23; -if ((double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>(double)(Double.parseDouble(__ref._l_montoabonostotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))) { +if ((double)(Double.parseDouble(parent._et_abono.getText()))>(double)(Double.parseDouble(parent._l_montoabonostotal.getText()))) { this.state = 6; }else { this.state = 8; @@ -231,36 +196,33 @@ this.state = 8; case 6: //C this.state = 23; -RDebugUtils.currentLine=9764868; - //BA.debugLineNum = 9764868;BA.debugLine="MsgboxAsync(\"El monto a abonar no puede ser may"; + //BA.debugLineNum = 2113;BA.debugLine="MsgboxAsync(\"El monto a abonar no puede ser may"; parent.__c.MsgboxAsync(BA.ObjectToCharSequence("El monto a abonar no puede ser mayor que el monto total"),BA.ObjectToCharSequence("Atención"),ba); if (true) break; case 8: //C this.state = 9; -RDebugUtils.currentLine=9764870; - //BA.debugLineNum = 9764870;BA.debugLine="If et_abono.Text <> \"\" And et_abono.Text > 0 Th"; + //BA.debugLineNum = 2115;BA.debugLine="If et_abono.Text <> \"\" And et_abono.Text > 0 Th"; if (true) break; case 9: //if this.state = 22; -if ((__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false && (double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))>0) { +if ((parent._et_abono.getText()).equals("") == false && (double)(Double.parseDouble(parent._et_abono.getText()))>0) { this.state = 11; }if (true) break; case 11: //C this.state = 12; -RDebugUtils.currentLine=9764871; - //BA.debugLineNum = 9764871;BA.debugLine="If itemselect <> \"SELECCIONA UNA OPCION\" Then"; + //BA.debugLineNum = 2116;BA.debugLine="If itemselect <> \"SELECCIONA UNA OPCION\" Then"; if (true) break; case 12: //if this.state = 21; -if ((__ref._itemselect /*String*/ ).equals("SELECCIONA UNA OPCION") == false) { +if ((parent._itemselect).equals("SELECCIONA UNA OPCION") == false) { this.state = 14; }else { this.state = 20; @@ -269,21 +231,18 @@ this.state = 20; case 14: //C this.state = 15; -RDebugUtils.currentLine=9764879; - //BA.debugLineNum = 9764879;BA.debugLine="Msgbox2Async($\"¿Seguro que quieres realizar u"; -parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("¿Seguro que quieres realizar un abono de $"+parent.__c.SmartStringFormatter("",(Object)(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+" para este cliente?")),BA.ObjectToCharSequence("Guardar Abono"),"Guardar","Cancelar","",(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(parent.__c.Null)),ba,parent.__c.True); -RDebugUtils.currentLine=9764880; - //BA.debugLineNum = 9764880;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_abono_click"), null); + //BA.debugLineNum = 2124;BA.debugLine="Msgbox2Async($\"¿Seguro que quieres realizar u"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence(("¿Seguro que quieres realizar un abono de $"+parent.__c.SmartStringFormatter("",(Object)(parent._et_abono.getText()))+" para este cliente?")),BA.ObjectToCharSequence("Guardar Abono"),"Guardar","Cancelar","",(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(), (android.graphics.Bitmap)(parent.__c.Null)),ba,parent.__c.True); + //BA.debugLineNum = 2125;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 25; return; case 25: //C this.state = 15; -_resultado = (Integer) result[1]; +_resultado = (Integer) result[0]; ; -RDebugUtils.currentLine=9764881; - //BA.debugLineNum = 9764881;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; + //BA.debugLineNum = 2126;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; if (true) break; case 15: @@ -296,9 +255,8 @@ this.state = 17; case 17: //C this.state = 18; -RDebugUtils.currentLine=9764882; - //BA.debugLineNum = 9764882;BA.debugLine="imprime_abonopagare"; -__ref._imprime_abonopagare /*void*/ (null); + //BA.debugLineNum = 2127;BA.debugLine="imprime_abonopagare"; +parent._imprime_abonopagare(); if (true) break; case 18: @@ -310,8 +268,7 @@ this.state = 21; case 20: //C this.state = 21; -RDebugUtils.currentLine=9764899; - //BA.debugLineNum = 9764899;BA.debugLine="MsgboxAsync(\"Por favor selecciona un metodo d"; + //BA.debugLineNum = 2144;BA.debugLine="MsgboxAsync(\"Por favor selecciona un metodo d"; parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Por favor selecciona un metodo de pago"),BA.ObjectToCharSequence("Atención"),ba); if (true) break; @@ -337,2239 +294,483 @@ case 24: //C this.state = -1; ; -RDebugUtils.currentLine=9764904; - //BA.debugLineNum = 9764904;BA.debugLine="ime.HideKeyboard"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba); -RDebugUtils.currentLine=9764905; - //BA.debugLineNum = 9764905;BA.debugLine="End Sub"; + //BA.debugLineNum = 2149;BA.debugLine="ime.HideKeyboard"; +parent._ime.HideKeyboard(ba); + //BA.debugLineNum = 2150;BA.debugLine="End Sub"; if (true) break; } } } } -public void _imprime_abonopagare(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "imprime_abonopagare", false)) - {Debug.delegate(ba, "imprime_abonopagare", null); return;} -ResumableSub_imprime_abonopagare rsub = new ResumableSub_imprime_abonopagare(this,__ref); -rsub.resume(ba, null); +public void _msgbox_result(int _resultado) throws Exception{ } -public static class ResumableSub_imprime_abonopagare extends BA.ResumableSub { -public ResumableSub_imprime_abonopagare(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) { -this.parent = parent; -this.__ref = __ref; -this.__ref = parent; -} -reparto_izca.keymon.lat.c_cliente __ref; -reparto_izca.keymon.lat.c_cliente parent; -int _cont = 0; -String _telefono = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c7 = null; -String _notaabono = ""; -double _saldopendiente = 0; -double _saldopendiente1 = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c5 = null; -int _numpago = 0; -String _tipopagotick = ""; -int _resultado = 0; -String _rutaactualizar = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; -double _textedit = 0; -double _sumaresta = 0; -String _ruta = ""; -String _rutapre = ""; - -@Override -public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cliente"; - - while (true) { - switch (state) { - case -1: -return; - -case 0: -//C -this.state = 1; -RDebugUtils.currentLine=9437185; - //BA.debugLineNum = 9437185;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); -RDebugUtils.currentLine=9437186; - //BA.debugLineNum = 9437186;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437187; - //BA.debugLineNum = 9437187;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=9437188; - //BA.debugLineNum = 9437188;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; -parent.__c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=9437189; - //BA.debugLineNum = 9437189;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; -parent.__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=9437190; - //BA.debugLineNum = 9437190;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=9437191; - //BA.debugLineNum = 9437191;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=9437192; - //BA.debugLineNum = 9437192;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9437223; - //BA.debugLineNum = 9437223;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; -parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); -RDebugUtils.currentLine=9437224; - //BA.debugLineNum = 9437224;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=9437225; - //BA.debugLineNum = 9437225;BA.debugLine="If Not(Printer1.IsConnected) Then"; -if (true) break; - -case 1: -//if -this.state = 38; -if (parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { -this.state = 3; -}else { -this.state = 21; -}if (true) break; - -case 3: -//C -this.state = 4; -RDebugUtils.currentLine=9437227; - //BA.debugLineNum = 9437227;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=9437228; - //BA.debugLineNum = 9437228;BA.debugLine="Private cont As Int = 0"; -_cont = (int) (0); -RDebugUtils.currentLine=9437229; - //BA.debugLineNum = 9437229;BA.debugLine="Do While Not(impresoraConectada)"; -if (true) break; - -case 4: -//do while -this.state = 19; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ )) { -this.state = 6; -if (true) break; -} -if (true) break; - -case 6: -//C -this.state = 7; -RDebugUtils.currentLine=9437230; - //BA.debugLineNum = 9437230;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"),(int) (1000)); -this.state = 145; -return; -case 145: -//C -this.state = 7; -; -RDebugUtils.currentLine=9437231; - //BA.debugLineNum = 9437231;BA.debugLine="cont = cont + 1"; -_cont = (int) (_cont+1); -RDebugUtils.currentLine=9437232; - //BA.debugLineNum = 9437232;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; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -if (true) break; - -case 12: -//C -this.state = 13; -; -RDebugUtils.currentLine=9437233; - //BA.debugLineNum = 9437233;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; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; -if (true) break; - -case 18: -//C -this.state = 4; -; - if (true) break; - -case 19: -//C -this.state = 38; -; -RDebugUtils.currentLine=9437235; - //BA.debugLineNum = 9437235;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"),(int) (500)); -this.state = 146; -return; -case 146: -//C -this.state = 38; -; -RDebugUtils.currentLine=9437236; - //BA.debugLineNum = 9437236;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; - if (true) break; - -case 21: -//C -this.state = 22; -RDebugUtils.currentLine=9437239; - //BA.debugLineNum = 9437239;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=9437240; - //BA.debugLineNum = 9437240;BA.debugLine="Private cont As Int = 0"; -_cont = (int) (0); -RDebugUtils.currentLine=9437241; - //BA.debugLineNum = 9437241;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; -if (true) break; - -case 22: -//do while -this.state = 37; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ ) || parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { -this.state = 24; -if (true) break; -} -if (true) break; - -case 24: -//C -this.state = 25; -RDebugUtils.currentLine=9437242; - //BA.debugLineNum = 9437242;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"),(int) (1000)); -this.state = 147; -return; -case 147: -//C -this.state = 25; -; -RDebugUtils.currentLine=9437243; - //BA.debugLineNum = 9437243;BA.debugLine="cont = cont + 1"; -_cont = (int) (_cont+1); -RDebugUtils.currentLine=9437244; - //BA.debugLineNum = 9437244;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; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -if (true) break; - -case 30: -//C -this.state = 31; -; -RDebugUtils.currentLine=9437245; - //BA.debugLineNum = 9437245;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; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; -if (true) break; - -case 36: -//C -this.state = 22; -; - if (true) break; - -case 37: -//C -this.state = 38; -; -RDebugUtils.currentLine=9437247; - //BA.debugLineNum = 9437247;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"),(int) (500)); -this.state = 148; -return; -case 148: -//C -this.state = 38; -; -RDebugUtils.currentLine=9437248; - //BA.debugLineNum = 9437248;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; - if (true) break; - -case 38: -//C -this.state = 39; -; -RDebugUtils.currentLine=9437250; - //BA.debugLineNum = 9437250;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=9437251; - //BA.debugLineNum = 9437251;BA.debugLine="ESPACIO = 22"; -__ref._espacio /*int*/ = (int) (22); -RDebugUtils.currentLine=9437252; - //BA.debugLineNum = 9437252;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=9437262; - //BA.debugLineNum = 9437262;BA.debugLine="Dim telefono As String = \"\""; -_telefono = ""; -RDebugUtils.currentLine=9437263; - //BA.debugLineNum = 9437263;BA.debugLine="Dim c7 As Cursor = Starter.skmt.ExecQuery(\"select"; -_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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_TELEFONO,' ') AS CAT_CL_TELEFONO FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437264; - //BA.debugLineNum = 9437264;BA.debugLine="If c7.RowCount > 0 Then"; -if (true) break; - -case 39: -//if -this.state = 42; -if (_c7.getRowCount()>0) { -this.state = 41; -}if (true) break; - -case 41: -//C -this.state = 42; -RDebugUtils.currentLine=9437265; - //BA.debugLineNum = 9437265;BA.debugLine="c7.Position = 0"; -_c7.setPosition((int) (0)); -RDebugUtils.currentLine=9437266; - //BA.debugLineNum = 9437266;BA.debugLine="telefono = c7.GetString(\"CAT_CL_TELEFONO\")"; -_telefono = _c7.GetString("CAT_CL_TELEFONO"); - if (true) break; - -case 42: -//C -this.state = 43; -; -RDebugUtils.currentLine=9437268; - //BA.debugLineNum = 9437268;BA.debugLine="c7.Close"; -_c7.Close(); -RDebugUtils.currentLine=9437272; - //BA.debugLineNum = 9437272;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF); -RDebugUtils.currentLine=9437274; - //BA.debugLineNum = 9437274;BA.debugLine="Printer1.WriteString(sDate & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9437275; - //BA.debugLineNum = 9437275;BA.debugLine="Printer1.WriteString(sTime & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9437276; - //BA.debugLineNum = 9437276;BA.debugLine="Printer1.WriteString(\"Reparto:\" & usuario & CRLF"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Reparto:"+__ref._usuario /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9437277; - //BA.debugLineNum = 9437277;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9437278; - //BA.debugLineNum = 9437278;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9437279; - //BA.debugLineNum = 9437279;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9437280; - //BA.debugLineNum = 9437280;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9437281; - //BA.debugLineNum = 9437281;BA.debugLine="Printer1.WriteString(\"Telefono: \" & telefono & C"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Telefono: "+_telefono+parent.__c.CRLF); -RDebugUtils.currentLine=9437282; - //BA.debugLineNum = 9437282;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437283; - //BA.debugLineNum = 9437283;BA.debugLine="Dim notaabono As String"; -_notaabono = ""; -RDebugUtils.currentLine=9437284; - //BA.debugLineNum = 9437284;BA.debugLine="Dim saldopendiente As Double"; -_saldopendiente = 0; -RDebugUtils.currentLine=9437286; - //BA.debugLineNum = 9437286;BA.debugLine="If tipo_abonox = \"abono\" Then"; -if (true) break; - -case 43: -//if -this.state = 68; -if ((__ref._tipo_abonox /*String*/ ).equals("abono")) { -this.state = 45; -}else -{RDebugUtils.currentLine=9437316; - //BA.debugLineNum = 9437316;BA.debugLine="Else If tipo_abonox = \"cxc\" Then"; -if ((__ref._tipo_abonox /*String*/ ).equals("cxc")) { -this.state = 59; -}} -if (true) break; - -case 45: -//C -this.state = 46; -RDebugUtils.currentLine=9437289; - //BA.debugLineNum = 9437289;BA.debugLine="c = Starter.skmt.ExecQuery($\"select distinct hvd"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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 distinct hvd_num_ticket from hist_ventas where hvd_cliente = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+"'")))); -RDebugUtils.currentLine=9437290; - //BA.debugLineNum = 9437290;BA.debugLine="If c.RowCount > 0 Then"; -if (true) break; - -case 46: -//if -this.state = 49; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -this.state = 48; -}if (true) break; - -case 48: -//C -this.state = 49; -RDebugUtils.currentLine=9437291; - //BA.debugLineNum = 9437291;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437292; - //BA.debugLineNum = 9437292;BA.debugLine="notaabono = c.GetString(\"HVD_NUM_TICKET\")"; -_notaabono = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET"); - if (true) break; - -case 49: -//C -this.state = 50; -; -RDebugUtils.currentLine=9437294; - //BA.debugLineNum = 9437294;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9437296; - //BA.debugLineNum = 9437296;BA.debugLine="c = Starter.skmt.ExecQuery($\"select iFNULL(sum(P"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(sum(PA_MONTO),0) AS SALDO_PENDIENTE from PAGARES where PA_CLIENTE = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+"'")))); -RDebugUtils.currentLine=9437297; - //BA.debugLineNum = 9437297;BA.debugLine="If c.RowCount > 0 Then"; -if (true) break; - -case 50: -//if -this.state = 53; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -this.state = 52; -}if (true) break; - -case 52: -//C -this.state = 53; -RDebugUtils.currentLine=9437298; - //BA.debugLineNum = 9437298;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437299; - //BA.debugLineNum = 9437299;BA.debugLine="saldopendiente = c.GetDouble(\"SALDO_PENDIENTE\")"; -_saldopendiente = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("SALDO_PENDIENTE"); -RDebugUtils.currentLine=9437300; - //BA.debugLineNum = 9437300;BA.debugLine="Log(c.GetString(\"SALDO_PENDIENTE\"))"; -parent.__c.LogImpl("29437300",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0); - if (true) break; - -case 53: -//C -this.state = 54; -; -RDebugUtils.currentLine=9437302; - //BA.debugLineNum = 9437302;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9437305; - //BA.debugLineNum = 9437305;BA.debugLine="Dim saldopendiente1 As Double = 0"; -_saldopendiente1 = 0; -RDebugUtils.currentLine=9437306; - //BA.debugLineNum = 9437306;BA.debugLine="Dim c4 As Cursor= Starter.skmt.ExecQuery(\"SELECT"; -_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._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(SUM(a_abono),0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is not null"))); -RDebugUtils.currentLine=9437307; - //BA.debugLineNum = 9437307;BA.debugLine="If c4.RowCount > 0 Then"; -if (true) break; - -case 54: -//if -this.state = 57; -if (_c4.getRowCount()>0) { -this.state = 56; -}if (true) break; - -case 56: -//C -this.state = 57; -RDebugUtils.currentLine=9437308; - //BA.debugLineNum = 9437308;BA.debugLine="c4.Position = 0"; -_c4.setPosition((int) (0)); -RDebugUtils.currentLine=9437309; - //BA.debugLineNum = 9437309;BA.debugLine="Dim c5 As Cursor= Starter.skmt.ExecQuery(\"SELEC"; -_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._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(a_abono,0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is not null"))); -RDebugUtils.currentLine=9437310; - //BA.debugLineNum = 9437310;BA.debugLine="saldopendiente1 = c4.GetDouble(\"SALDO_PENDIENTE"; -_saldopendiente1 = _c4.GetDouble("SALDO_PENDIENTE"); - if (true) break; - -case 57: -//C -this.state = 68; -; -RDebugUtils.currentLine=9437314; - //BA.debugLineNum = 9437314;BA.debugLine="c4.Close"; -_c4.Close(); - if (true) break; - -case 59: -//C -this.state = 60; -RDebugUtils.currentLine=9437317; - //BA.debugLineNum = 9437317;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NOTA, SUM(SAL"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NOTA, SUM(SALDO_PENDIENTE) AS SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437318; - //BA.debugLineNum = 9437318;BA.debugLine="If c.RowCount > 0 Then"; -if (true) break; - -case 60: -//if -this.state = 63; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -this.state = 62; -}if (true) break; - -case 62: -//C -this.state = 63; -RDebugUtils.currentLine=9437319; - //BA.debugLineNum = 9437319;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437320; - //BA.debugLineNum = 9437320;BA.debugLine="notaabono = c.GetString(\"NOTA\")"; -_notaabono = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"); -RDebugUtils.currentLine=9437321; - //BA.debugLineNum = 9437321;BA.debugLine="saldopendiente = c.GetDouble(\"SALDO_PENDIENTE\")"; -_saldopendiente = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetDouble("SALDO_PENDIENTE"); - if (true) break; - -case 63: -//C -this.state = 64; -; -RDebugUtils.currentLine=9437323; - //BA.debugLineNum = 9437323;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9437325; - //BA.debugLineNum = 9437325;BA.debugLine="Dim saldopendiente1 As Double = 0"; -_saldopendiente1 = 0; -RDebugUtils.currentLine=9437326; - //BA.debugLineNum = 9437326;BA.debugLine="Dim c4 As Cursor= Starter.skmt.ExecQuery(\"SELECT"; -_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._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(SUM(a_abono),0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is null"))); -RDebugUtils.currentLine=9437327; - //BA.debugLineNum = 9437327;BA.debugLine="If c4.RowCount > 0 Then"; -if (true) break; - -case 64: -//if -this.state = 67; -if (_c4.getRowCount()>0) { -this.state = 66; -}if (true) break; - -case 66: -//C -this.state = 67; -RDebugUtils.currentLine=9437328; - //BA.debugLineNum = 9437328;BA.debugLine="c4.Position = 0"; -_c4.setPosition((int) (0)); -RDebugUtils.currentLine=9437329; - //BA.debugLineNum = 9437329;BA.debugLine="Dim c5 As Cursor= Starter.skmt.ExecQuery(\"SELEC"; -_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._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(a_abono,0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is null"))); -RDebugUtils.currentLine=9437330; - //BA.debugLineNum = 9437330;BA.debugLine="saldopendiente1 = c4.GetDouble(\"SALDO_PENDIENTE"; -_saldopendiente1 = _c4.GetDouble("SALDO_PENDIENTE"); - if (true) break; - -case 67: -//C -this.state = 68; -; -RDebugUtils.currentLine=9437335; - //BA.debugLineNum = 9437335;BA.debugLine="c4.Close"; -_c4.Close(); - if (true) break; - -case 68: -//C -this.state = 69; -; -RDebugUtils.currentLine=9437345; - //BA.debugLineNum = 9437345;BA.debugLine="Dim numpago As Int = c5.RowCount + 1"; -_numpago = (int) (_c5.getRowCount()+1); -RDebugUtils.currentLine=9437346; - //BA.debugLineNum = 9437346;BA.debugLine="Log(notaabono)"; -parent.__c.LogImpl("29437346",_notaabono,0); -RDebugUtils.currentLine=9437347; - //BA.debugLineNum = 9437347;BA.debugLine="Log(et_abono.Text)"; -parent.__c.LogImpl("29437347",__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),0); -RDebugUtils.currentLine=9437348; - //BA.debugLineNum = 9437348;BA.debugLine="Printer1.WriteString(\"Comprobante de pago del pag"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Comprobante de pago del pagare"+parent.__c.CRLF); -RDebugUtils.currentLine=9437349; - //BA.debugLineNum = 9437349;BA.debugLine="Printer1.WriteString(\"Folio: \" & notaabono &\"-\"&"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Folio: "+_notaabono+"-"+BA.NumberToString((_numpago))+parent.__c.CRLF); -RDebugUtils.currentLine=9437350; - //BA.debugLineNum = 9437350;BA.debugLine="Printer1.WriteString(\"Monto deuda: \" & (NumberFo"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Monto deuda: "+(parent.__c.NumberFormat(_saldopendiente-_saldopendiente1,(int) (0),(int) (2)))+parent.__c.CRLF); -RDebugUtils.currentLine=9437351; - //BA.debugLineNum = 9437351;BA.debugLine="Printer1.WriteString(\"Monto abono: \" & (NumberFo"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Monto abono: "+(parent.__c.NumberFormat((double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())),(int) (0),(int) (2)))+parent.__c.CRLF); -RDebugUtils.currentLine=9437352; - //BA.debugLineNum = 9437352;BA.debugLine="Printer1.WriteString(\"Restante: \" &(NumberFormat("; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Restante: "+(parent.__c.NumberFormat(_saldopendiente-(double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))-_saldopendiente1,(int) (0),(int) (2)))+parent.__c.CRLF); -RDebugUtils.currentLine=9437353; - //BA.debugLineNum = 9437353;BA.debugLine="Printer1.WriteString(\"Fecha Abono: \" & sDate & C"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Fecha Abono: "+__ref._sdate /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9437354; - //BA.debugLineNum = 9437354;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437355; - //BA.debugLineNum = 9437355;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437356; - //BA.debugLineNum = 9437356;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437357; - //BA.debugLineNum = 9437357;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437358; - //BA.debugLineNum = 9437358;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437359; - //BA.debugLineNum = 9437359;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437360; - //BA.debugLineNum = 9437360;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437361; - //BA.debugLineNum = 9437361;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9437362; - //BA.debugLineNum = 9437362;BA.debugLine="Printer1.WriteString(\"-------------FIRMA---------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-------------FIRMA------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9437363; - //BA.debugLineNum = 9437363;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437364; - //BA.debugLineNum = 9437364;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437365; - //BA.debugLineNum = 9437365;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437366; - //BA.debugLineNum = 9437366;BA.debugLine="DateTime.DateFormat = \"ddMMyyyy\""; -parent.__c.DateTime.setDateFormat("ddMMyyyy"); -RDebugUtils.currentLine=9437367; - //BA.debugLineNum = 9437367;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=9437373; - //BA.debugLineNum = 9437373;BA.debugLine="Dim tipopagotick As String = \"\""; -_tipopagotick = ""; -RDebugUtils.currentLine=9437374; - //BA.debugLineNum = 9437374;BA.debugLine="If itemselect = \"TRANSFERENCIA\" Then"; -if (true) break; - -case 69: -//if -this.state = 76; -if ((__ref._itemselect /*String*/ ).equals("TRANSFERENCIA")) { -this.state = 71; -}else -{RDebugUtils.currentLine=9437376; - //BA.debugLineNum = 9437376;BA.debugLine="Else If itemselect = \"EFECTIVO\" Then"; -if ((__ref._itemselect /*String*/ ).equals("EFECTIVO")) { -this.state = 73; -}else -{RDebugUtils.currentLine=9437378; - //BA.debugLineNum = 9437378;BA.debugLine="Else If itemselect = \"CHEQUE\" Then"; -if ((__ref._itemselect /*String*/ ).equals("CHEQUE")) { -this.state = 75; -}}} -if (true) break; - -case 71: -//C -this.state = 76; -RDebugUtils.currentLine=9437375; - //BA.debugLineNum = 9437375;BA.debugLine="tipopagotick = \"T\""; -_tipopagotick = "T"; - if (true) break; - -case 73: -//C -this.state = 76; -RDebugUtils.currentLine=9437377; - //BA.debugLineNum = 9437377;BA.debugLine="tipopagotick = \"E\""; -_tipopagotick = "E"; - if (true) break; - -case 75: -//C -this.state = 76; -RDebugUtils.currentLine=9437379; - //BA.debugLineNum = 9437379;BA.debugLine="tipopagotick = \"C\""; -_tipopagotick = "C"; - if (true) break; - -case 76: -//C -this.state = 77; -; -RDebugUtils.currentLine=9437382; - //BA.debugLineNum = 9437382;BA.debugLine="Printer1.WriteBarCode(\"I\",notaabono&sDate&tipopag"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writebarcode /*String*/ (null,"I",_notaabono+__ref._sdate /*String*/ +_tipopagotick+BA.NumberToString(_numpago)); -RDebugUtils.currentLine=9437383; - //BA.debugLineNum = 9437383;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437384; - //BA.debugLineNum = 9437384;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437385; - //BA.debugLineNum = 9437385;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9437386; - //BA.debugLineNum = 9437386;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"),(int) (1000)); -this.state = 149; -return; -case 149: -//C -this.state = 77; -; -RDebugUtils.currentLine=9437387; - //BA.debugLineNum = 9437387;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=9437388; - //BA.debugLineNum = 9437388;BA.debugLine="ProgressDialogHide"; -parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=9437391; - //BA.debugLineNum = 9437391;BA.debugLine="If tipo_abonox = \"abono\" Then"; -if (true) break; - -case 77: -//if -this.state = 144; -if ((__ref._tipo_abonox /*String*/ ).equals("abono")) { -this.state = 79; -}else -{RDebugUtils.currentLine=9437404; - //BA.debugLineNum = 9437404;BA.debugLine="Else If tipo_abonox = \"cxc\" Then"; -if ((__ref._tipo_abonox /*String*/ ).equals("cxc")) { -this.state = 87; -}} -if (true) break; - -case 79: -//C -this.state = 80; -RDebugUtils.currentLine=9437392; - //BA.debugLineNum = 9437392;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; -parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=9437394; - //BA.debugLineNum = 9437394;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"), null); -this.state = 150; -return; -case 150: -//C -this.state = 80; -_resultado = (Integer) result[1]; -; -RDebugUtils.currentLine=9437395; - //BA.debugLineNum = 9437395;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; -if (true) break; - -case 80: -//if -this.state = 85; -if (_resultado==parent.__c.DialogResponse.POSITIVE) { -this.state = 82; -}else { -this.state = 84; -}if (true) break; - -case 82: -//C -this.state = 85; -RDebugUtils.currentLine=9437396; - //BA.debugLineNum = 9437396;BA.debugLine="imprime_abonopagare"; -__ref._imprime_abonopagare /*void*/ (null); - if (true) break; - -case 84: -//C -this.state = 85; -RDebugUtils.currentLine=9437398; - //BA.debugLineNum = 9437398;BA.debugLine="p_abono.Visible = False"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); -RDebugUtils.currentLine=9437400; - //BA.debugLineNum = 9437400;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABONOS("; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha,a_tipoabono,TIPO_PAGO,a_ticket,a_numpago) VALUES ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeusuariodebd /*String*/ (ba)))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeruta /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"' ,'"+parent.__c.SmartStringFormatter("",(Object)(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._fechakmt /*String*/ (ba,BA.NumberToString(parent.__c.DateTime.getNow()))))+"', 1,'"+parent.__c.SmartStringFormatter("",(Object)(__ref._itemselect /*String*/ ))+"','"+parent.__c.SmartStringFormatter("",(Object)(_notaabono))+"','"+parent.__c.SmartStringFormatter("",(Object)(_numpago))+"')")); -RDebugUtils.currentLine=9437401; - //BA.debugLineNum = 9437401;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)"; -parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False); - if (true) break; - -case 85: -//C -this.state = 144; -; - if (true) break; - -case 87: -//C -this.state = 88; -RDebugUtils.currentLine=9437405; - //BA.debugLineNum = 9437405;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; -parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=9437406; - //BA.debugLineNum = 9437406;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_abonopagare"), null); -this.state = 151; -return; -case 151: -//C -this.state = 88; -_resultado = (Integer) result[1]; -; -RDebugUtils.currentLine=9437407; - //BA.debugLineNum = 9437407;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; -if (true) break; - -case 88: -//if -this.state = 143; -if (_resultado==parent.__c.DialogResponse.POSITIVE) { -this.state = 90; -}else { -this.state = 92; -}if (true) break; - -case 90: -//C -this.state = 143; -RDebugUtils.currentLine=9437408; - //BA.debugLineNum = 9437408;BA.debugLine="imprime_abonopagare"; -__ref._imprime_abonopagare /*void*/ (null); - if (true) break; - -case 92: -//C -this.state = 93; -RDebugUtils.currentLine=9437414; - //BA.debugLineNum = 9437414;BA.debugLine="h = Starter.skmt.ExecQuery(\"SELECT CUENTA from"; -__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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 CUENTA from CUENTAA"))); -RDebugUtils.currentLine=9437415; - //BA.debugLineNum = 9437415;BA.debugLine="h.Position = 0"; -__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437416; - //BA.debugLineNum = 9437416;BA.debugLine="Log(h.GetString(\"CUENTA\"))"; -parent.__c.LogImpl("29437416",__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"),0); -RDebugUtils.currentLine=9437417; - //BA.debugLineNum = 9437417;BA.debugLine="j = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO"; -__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9437418; - //BA.debugLineNum = 9437418;BA.debugLine="j.position = 0"; -__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437419; - //BA.debugLineNum = 9437419;BA.debugLine="If j.RowCount = 0 Then"; -if (true) break; - -case 93: -//if -this.state = 142; -if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -this.state = 95; -}else { -this.state = 119; -}if (true) break; - -case 95: -//C -this.state = 96; -RDebugUtils.currentLine=9437420; - //BA.debugLineNum = 9437420;BA.debugLine="p_abono.Visible = False"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); -RDebugUtils.currentLine=9437421; - //BA.debugLineNum = 9437421;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABONOS"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha,TIPO_PAGO,a_ticket,a_numpago) VALUES ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeusuariodebd /*String*/ (ba)))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeruta /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"' ,'"+parent.__c.SmartStringFormatter("",(Object)(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._fechakmt /*String*/ (ba,BA.NumberToString(parent.__c.DateTime.getNow()))))+"','"+parent.__c.SmartStringFormatter("",(Object)(__ref._itemselect /*String*/ ))+"','"+parent.__c.SmartStringFormatter("",(Object)(_notaabono))+"','"+parent.__c.SmartStringFormatter("",(Object)(_numpago))+"')")); -RDebugUtils.currentLine=9437422; - //BA.debugLineNum = 9437422;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)"; -parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False); -RDebugUtils.currentLine=9437423; - //BA.debugLineNum = 9437423;BA.debugLine="Dim rutaactualizar As String"; -_rutaactualizar = ""; -RDebugUtils.currentLine=9437424; - //BA.debugLineNum = 9437424;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SE"; -_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437425; - //BA.debugLineNum = 9437425;BA.debugLine="If rut.RowCount > 0 Then"; -if (true) break; - -case 96: -//if -this.state = 99; -if (_rut.getRowCount()>0) { -this.state = 98; -}if (true) break; - -case 98: -//C -this.state = 99; -RDebugUtils.currentLine=9437426; - //BA.debugLineNum = 9437426;BA.debugLine="rut.Position = 0"; -_rut.setPosition((int) (0)); -RDebugUtils.currentLine=9437427; - //BA.debugLineNum = 9437427;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")"; -_rutaactualizar = _rut.GetString("CAT_CL_RUTA"); - if (true) break; - -case 99: -//C -this.state = 100; -; -RDebugUtils.currentLine=9437429; - //BA.debugLineNum = 9437429;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info se"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 0, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'")); -RDebugUtils.currentLine=9437430; - //BA.debugLineNum = 9437430;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENT"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")); -RDebugUtils.currentLine=9437431; - //BA.debugLineNum = 9437431;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery("; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437432; - //BA.debugLineNum = 9437432;BA.debugLine="If c3.RowCount = 0 Then"; -if (true) break; - -case 100: -//if -this.state = 105; -if (_c3.getRowCount()==0) { -this.state = 102; -}else { -this.state = 104; -}if (true) break; - -case 102: -//C -this.state = 105; -RDebugUtils.currentLine=9437433; - //BA.debugLineNum = 9437433;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR WHERE HVD_cliente in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=9437434; - //BA.debugLineNum = 9437434;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - if (true) break; - -case 104: -//C -this.state = 105; -RDebugUtils.currentLine=9437436; - //BA.debugLineNum = 9437436;BA.debugLine="MsgboxAsync(\"Hay productos que ya se vendiero"; -parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Hay productos que ya se vendieron, no se puede regresar la venta"),BA.ObjectToCharSequence("Atención"),ba); - if (true) break; - -case 105: -//C -this.state = 106; -; -RDebugUtils.currentLine=9437438; - //BA.debugLineNum = 9437438;BA.debugLine="Dim textedit As Double = et_abono.Text"; -_textedit = (double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())); -RDebugUtils.currentLine=9437439; - //BA.debugLineNum = 9437439;BA.debugLine="Dim sumaresta As Double = saldopendiente-texte"; -_sumaresta = _saldopendiente-_textedit-_saldopendiente1; -RDebugUtils.currentLine=9437440; - //BA.debugLineNum = 9437440;BA.debugLine="Log(NumberFormat2(sumaresta,0,2,2,False))"; -parent.__c.LogImpl("29437440",parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False),0); -RDebugUtils.currentLine=9437441; - //BA.debugLineNum = 9437441;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \"-."; -if (true) break; - -case 106: -//if -this.state = 117; -if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals("-.00") == false) { -this.state = 108; -}if (true) break; - -case 108: -//C -this.state = 109; -RDebugUtils.currentLine=9437442; - //BA.debugLineNum = 9437442;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \"."; -if (true) break; - -case 109: -//if -this.state = 116; -if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(".00") == false) { -this.state = 111; -}if (true) break; - -case 111: -//C -this.state = 112; -RDebugUtils.currentLine=9437443; - //BA.debugLineNum = 9437443;BA.debugLine="Dim rutaactualizar As String"; -_rutaactualizar = ""; -RDebugUtils.currentLine=9437444; - //BA.debugLineNum = 9437444;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\""; -_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437445; - //BA.debugLineNum = 9437445;BA.debugLine="If rut.RowCount > 0 Then"; -if (true) break; - -case 112: -//if -this.state = 115; -if (_rut.getRowCount()>0) { -this.state = 114; -}if (true) break; - -case 114: -//C -this.state = 115; -RDebugUtils.currentLine=9437446; - //BA.debugLineNum = 9437446;BA.debugLine="rut.Position = 0"; -_rut.setPosition((int) (0)); -RDebugUtils.currentLine=9437447; - //BA.debugLineNum = 9437447;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA"; -_rutaactualizar = _rut.GetString("CAT_CL_RUTA"); - if (true) break; - -case 115: -//C -this.state = 116; -; -RDebugUtils.currentLine=9437449; - //BA.debugLineNum = 9437449;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'")); -RDebugUtils.currentLine=9437450; - //BA.debugLineNum = 9437450;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVE"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")); -RDebugUtils.currentLine=9437451; - //BA.debugLineNum = 9437451;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVE"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)("PAGO INCOMPLETO"),(Object)("PAGO INCOMPLETO"),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar),(Object)(0)})); -RDebugUtils.currentLine=9437452; - //BA.debugLineNum = 9437452;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTA"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT, HVD_RECHAZOCANTC = CANTC, BCAJAS = 0 , CANTC = 0 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); -RDebugUtils.currentLine=9437453; - //BA.debugLineNum = 9437453;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_RECHAZOCANT WHERE HVD_PROID = HVD_CODPROMO and HVD_CLIENTE in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=9437454; - //BA.debugLineNum = 9437454;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM PEDID"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); -RDebugUtils.currentLine=9437455; - //BA.debugLineNum = 9437455;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FRO"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); -RDebugUtils.currentLine=9437456; - //BA.debugLineNum = 9437456;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437457; - //BA.debugLineNum = 9437457;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")"; -_ruta = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"); -RDebugUtils.currentLine=9437458; - //BA.debugLineNum = 9437458;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9437459; - //BA.debugLineNum = 9437459;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RU"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437460; - //BA.debugLineNum = 9437460;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437461; - //BA.debugLineNum = 9437461;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_"; -_rutapre = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=9437462; - //BA.debugLineNum = 9437462;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9437463; - //BA.debugLineNum = 9437463;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437464; - //BA.debugLineNum = 9437464;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437465; - //BA.debugLineNum = 9437465;BA.debugLine="Dim fechaprev As String = d.GetString(\"HVD_F"; -parent._fechaprev = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"); -RDebugUtils.currentLine=9437466; - //BA.debugLineNum = 9437466;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9437467; - //BA.debugLineNum = 9437467;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CUENTA FR"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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 CUENTA FROM CUENTAA"))); -RDebugUtils.currentLine=9437468; - //BA.debugLineNum = 9437468;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437469; - //BA.debugLineNum = 9437469;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPA"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._cuenta /*String*/ ,__ref._usuario /*String*/ ,__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,__ref._fechaprev /*String*/ ,"PAGO INCOMPLETO","PAGO INCOMPLETO","NO ENTREGADO"})); -RDebugUtils.currentLine=9437470; - //BA.debugLineNum = 9437470;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; -parent._b4xpages._showpage /*String*/ (ba,"Principal"); - if (true) break; - -case 116: -//C -this.state = 117; -; - if (true) break; - -case 117: -//C -this.state = 142; -; - if (true) break; - -case 119: -//C -this.state = 120; -RDebugUtils.currentLine=9437474; - //BA.debugLineNum = 9437474;BA.debugLine="p_abono.Visible = False"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); -RDebugUtils.currentLine=9437475; - //BA.debugLineNum = 9437475;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABONOS"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha,TIPO_PAGO,a_ticket,a_numpago) VALUES ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeusuariodebd /*String*/ (ba)))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeruta /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"' ,'"+parent.__c.SmartStringFormatter("",(Object)(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._fechakmt /*String*/ (ba,BA.NumberToString(parent.__c.DateTime.getNow()))))+"','"+parent.__c.SmartStringFormatter("",(Object)(__ref._itemselect /*String*/ ))+"','"+parent.__c.SmartStringFormatter("",(Object)(_notaabono))+"','"+parent.__c.SmartStringFormatter("",(Object)(_numpago))+"')")); -RDebugUtils.currentLine=9437476; - //BA.debugLineNum = 9437476;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)"; -parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False); -RDebugUtils.currentLine=9437477; - //BA.debugLineNum = 9437477;BA.debugLine="Dim rutaactualizar As String"; -_rutaactualizar = ""; -RDebugUtils.currentLine=9437478; - //BA.debugLineNum = 9437478;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SE"; -_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437479; - //BA.debugLineNum = 9437479;BA.debugLine="If rut.RowCount > 0 Then"; -if (true) break; - -case 120: -//if -this.state = 123; -if (_rut.getRowCount()>0) { -this.state = 122; -}if (true) break; - -case 122: -//C -this.state = 123; -RDebugUtils.currentLine=9437480; - //BA.debugLineNum = 9437480;BA.debugLine="rut.Position = 0"; -_rut.setPosition((int) (0)); -RDebugUtils.currentLine=9437481; - //BA.debugLineNum = 9437481;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")"; -_rutaactualizar = _rut.GetString("CAT_CL_RUTA"); - if (true) break; - -case 123: -//C -this.state = 124; -; -RDebugUtils.currentLine=9437483; - //BA.debugLineNum = 9437483;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info se"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 0, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'")); -RDebugUtils.currentLine=9437484; - //BA.debugLineNum = 9437484;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENT"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")); -RDebugUtils.currentLine=9437485; - //BA.debugLineNum = 9437485;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery("; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437486; - //BA.debugLineNum = 9437486;BA.debugLine="If c3.RowCount = 0 Then"; -if (true) break; - -case 124: -//if -this.state = 129; -if (_c3.getRowCount()==0) { -this.state = 126; -}else { -this.state = 128; -}if (true) break; - -case 126: -//C -this.state = 129; -RDebugUtils.currentLine=9437487; - //BA.debugLineNum = 9437487;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR WHERE HVD_cliente in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=9437488; - //BA.debugLineNum = 9437488;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - if (true) break; - -case 128: -//C -this.state = 129; -RDebugUtils.currentLine=9437490; - //BA.debugLineNum = 9437490;BA.debugLine="MsgboxAsync(\"Hay productos que ya se vendiero"; -parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Hay productos que ya se vendieron, no se puede regresar la venta"),BA.ObjectToCharSequence("Atención"),ba); - if (true) break; - -case 129: -//C -this.state = 130; -; -RDebugUtils.currentLine=9437492; - //BA.debugLineNum = 9437492;BA.debugLine="Dim textedit As Double = et_abono.Text"; -_textedit = (double)(Double.parseDouble(__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())); -RDebugUtils.currentLine=9437493; - //BA.debugLineNum = 9437493;BA.debugLine="Dim sumaresta As Double = saldopendiente-texte"; -_sumaresta = _saldopendiente-_textedit-_saldopendiente1; -RDebugUtils.currentLine=9437495; - //BA.debugLineNum = 9437495;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \"-."; -if (true) break; - -case 130: -//if -this.state = 141; -if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals("-.00") == false) { -this.state = 132; -}if (true) break; - -case 132: -//C -this.state = 133; -RDebugUtils.currentLine=9437496; - //BA.debugLineNum = 9437496;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \"."; -if (true) break; - -case 133: -//if -this.state = 140; -if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(".00") == false) { -this.state = 135; -}if (true) break; - -case 135: -//C -this.state = 136; -RDebugUtils.currentLine=9437497; - //BA.debugLineNum = 9437497;BA.debugLine="Dim rutaactualizar As String"; -_rutaactualizar = ""; -RDebugUtils.currentLine=9437498; - //BA.debugLineNum = 9437498;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\""; -_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437499; - //BA.debugLineNum = 9437499;BA.debugLine="If rut.RowCount > 0 Then"; -if (true) break; - -case 136: -//if -this.state = 139; -if (_rut.getRowCount()>0) { -this.state = 138; -}if (true) break; - -case 138: -//C -this.state = 139; -RDebugUtils.currentLine=9437500; - //BA.debugLineNum = 9437500;BA.debugLine="rut.Position = 0"; -_rut.setPosition((int) (0)); -RDebugUtils.currentLine=9437501; - //BA.debugLineNum = 9437501;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA"; -_rutaactualizar = _rut.GetString("CAT_CL_RUTA"); - if (true) break; - -case 139: -//C -this.state = 140; -; -RDebugUtils.currentLine=9437503; - //BA.debugLineNum = 9437503;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'")); -RDebugUtils.currentLine=9437504; - //BA.debugLineNum = 9437504;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVE"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")); -RDebugUtils.currentLine=9437505; - //BA.debugLineNum = 9437505;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVE"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)("PAGO INCOMPLETO"),(Object)("PAGO INCOMPLETO"),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar),(Object)(0)})); -RDebugUtils.currentLine=9437506; - //BA.debugLineNum = 9437506;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTA"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT, HVD_RECHAZOCANTC = CANTC, BCAJAS = 0 , CANTC = 0 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); -RDebugUtils.currentLine=9437507; - //BA.debugLineNum = 9437507;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_RECHAZOCANT WHERE HVD_PROID = HVD_CODPROMO and HVD_CLIENTE in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=9437508; - //BA.debugLineNum = 9437508;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM PEDID"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); -RDebugUtils.currentLine=9437509; - //BA.debugLineNum = 9437509;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FRO"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); -RDebugUtils.currentLine=9437510; - //BA.debugLineNum = 9437510;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437511; - //BA.debugLineNum = 9437511;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")"; -_ruta = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"); -RDebugUtils.currentLine=9437512; - //BA.debugLineNum = 9437512;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9437513; - //BA.debugLineNum = 9437513;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RU"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437514; - //BA.debugLineNum = 9437514;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437515; - //BA.debugLineNum = 9437515;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_"; -_rutapre = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=9437516; - //BA.debugLineNum = 9437516;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9437517; - //BA.debugLineNum = 9437517;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9437518; - //BA.debugLineNum = 9437518;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437519; - //BA.debugLineNum = 9437519;BA.debugLine="Dim fechaprev As String = d.GetString(\"HVD_F"; -parent._fechaprev = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"); -RDebugUtils.currentLine=9437520; - //BA.debugLineNum = 9437520;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9437521; - //BA.debugLineNum = 9437521;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CUENTA FR"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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 CUENTA FROM CUENTAA"))); -RDebugUtils.currentLine=9437522; - //BA.debugLineNum = 9437522;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9437523; - //BA.debugLineNum = 9437523;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPA"; -parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._cuenta /*String*/ ,__ref._usuario /*String*/ ,__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,__ref._fechaprev /*String*/ ,"PAGO INCOMPLETO","PAGO INCOMPLETO","NO ENTREGADO"})); -RDebugUtils.currentLine=9437524; - //BA.debugLineNum = 9437524;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; -parent._b4xpages._showpage /*String*/ (ba,"Principal"); - if (true) break; - -case 140: -//C -this.state = 141; -; - if (true) break; - -case 141: -//C -this.state = 142; -; - if (true) break; - -case 142: -//C -this.state = 143; -; - if (true) break; - -case 143: -//C -this.state = 144; -; - if (true) break; - -case 144: -//C -this.state = -1; -; -RDebugUtils.currentLine=9437534; - //BA.debugLineNum = 9437534;BA.debugLine="End Sub"; -if (true) break; - - } - } - } -} -public String _b_acred_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b_acred_click", false)) - {return ((String) Debug.delegate(ba, "b_acred_click", null));} +public String _b_acred_click() throws Exception{ anywheresoftware.b4a.sql.SQL.CursorWrapper _pagacheca = null; -RDebugUtils.currentLine=9175040; - //BA.debugLineNum = 9175040;BA.debugLine="Private Sub b_acred_Click"; -RDebugUtils.currentLine=9175044; - //BA.debugLineNum = 9175044;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; + //BA.debugLineNum = 1285;BA.debugLine="Private Sub b_acred_Click"; + //BA.debugLineNum = 1289;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; __c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=9175045; - //BA.debugLineNum = 9175045;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; + //BA.debugLineNum = 1290;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; __c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=9175046; - //BA.debugLineNum = 9175046;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=9175047; - //BA.debugLineNum = 9175047;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=9175049; - //BA.debugLineNum = 9175049;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cue"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); -RDebugUtils.currentLine=9175050; - //BA.debugLineNum = 9175050;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9175051; - //BA.debugLineNum = 9175051;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; -__ref._cuenta /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"); -RDebugUtils.currentLine=9175052; - //BA.debugLineNum = 9175052;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9175054; - //BA.debugLineNum = 9175054;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=9175055; - //BA.debugLineNum = 9175055;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9175056; - //BA.debugLineNum = 9175056;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=9175057; - //BA.debugLineNum = 9175057;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9175059; - //BA.debugLineNum = 9175059;BA.debugLine="c=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=9175060; - //BA.debugLineNum = 9175060;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9175061; - //BA.debugLineNum = 9175061;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")"; -__ref._almacen /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"); -RDebugUtils.currentLine=9175062; - //BA.debugLineNum = 9175062;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9175064; - //BA.debugLineNum = 9175064;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_FECHA from"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9175065; - //BA.debugLineNum = 9175065;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9175066; - //BA.debugLineNum = 9175066;BA.debugLine="fechaprev = c.GetString(\"HVD_FECHA\")"; -__ref._fechaprev /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"); -RDebugUtils.currentLine=9175067; - //BA.debugLineNum = 9175067;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9175069; - //BA.debugLineNum = 9175069;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA fro"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9175070; - //BA.debugLineNum = 9175070;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9175071; - //BA.debugLineNum = 9175071;BA.debugLine="rutaprev = c.GetString(\"CAT_CL_RUTA\")"; -__ref._rutaprev /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=9175072; - //BA.debugLineNum = 9175072;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9175074; - //BA.debugLineNum = 9175074;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTA"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); -RDebugUtils.currentLine=9175075; - //BA.debugLineNum = 9175075;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9175076; - //BA.debugLineNum = 9175076;BA.debugLine="rutarep = c.GetString(\"RUTAA\")"; -__ref._rutarep /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"); -RDebugUtils.currentLine=9175077; - //BA.debugLineNum = 9175077;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9175079; - //BA.debugLineNum = 9175079;BA.debugLine="c = Starter.skmt.ExecQuery($\"select distinct hvd_"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select distinct hvd_num_ticket from hist_ventas where hvd_cliente = '"+__c.SmartStringFormatter("",(Object)(__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+"' AND HVD_BCREDITO = '1'")))); -RDebugUtils.currentLine=9175080; - //BA.debugLineNum = 9175080;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=9175081; - //BA.debugLineNum = 9175081;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9175082; - //BA.debugLineNum = 9175082;BA.debugLine="NOTA = c.GetString(\"HVD_NUM_TICKET\")"; -__ref._nota /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET"); + //BA.debugLineNum = 1291;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 1292;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 1294;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cue"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); + //BA.debugLineNum = 1295;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1296;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; +_cuenta = _c.GetString("CUENTA"); + //BA.debugLineNum = 1297;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1299;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 1300;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1301;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 1302;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1304;BA.debugLine="c=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 1305;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1306;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")"; +_almacen = _c.GetString("ID_ALMACEN"); + //BA.debugLineNum = 1307;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1309;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_FECHA from"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1310;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1311;BA.debugLine="fechaprev = c.GetString(\"HVD_FECHA\")"; +_fechaprev = _c.GetString("HVD_FECHA"); + //BA.debugLineNum = 1312;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1314;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA fro"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1315;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1316;BA.debugLine="rutaprev = c.GetString(\"CAT_CL_RUTA\")"; +_rutaprev = _c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 1317;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1319;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); + //BA.debugLineNum = 1320;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1321;BA.debugLine="rutarep = c.GetString(\"RUTAA\")"; +_rutarep = _c.GetString("RUTAA"); + //BA.debugLineNum = 1322;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1324;BA.debugLine="c = Starter.skmt.ExecQuery($\"select distinct hvd_"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select distinct hvd_num_ticket from hist_ventas where hvd_cliente = '"+__c.SmartStringFormatter("",(Object)(_la_cuenta.getText()))+"' AND HVD_BCREDITO = '1'")))); + //BA.debugLineNum = 1325;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1326;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1327;BA.debugLine="NOTA = c.GetString(\"HVD_NUM_TICKET\")"; +_nota = _c.GetString("HVD_NUM_TICKET"); }; -RDebugUtils.currentLine=9175084; - //BA.debugLineNum = 9175084;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9175086; - //BA.debugLineNum = 9175086;BA.debugLine="Dim pagacheca As Cursor = Starter.skmt.ExecQuery("; + //BA.debugLineNum = 1329;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1331;BA.debugLine="Dim pagacheca As Cursor = Starter.skmt.ExecQuery("; _pagacheca = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _pagacheca = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9175088; - //BA.debugLineNum = 9175088;BA.debugLine="If pagacheca.RowCount > 0 Then"; + //BA.debugLineNum = 1333;BA.debugLine="If pagacheca.RowCount > 0 Then"; if (_pagacheca.getRowCount()>0) { -RDebugUtils.currentLine=9175091; - //BA.debugLineNum = 9175091;BA.debugLine="Guardado"; -__ref._guardado /*String*/ (null); + //BA.debugLineNum = 1336;BA.debugLine="Guardado"; +_guardado(); }else { -RDebugUtils.currentLine=9175094; - //BA.debugLineNum = 9175094;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PAGARES"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PAGARES (PA_ALMACEN, PA_RUTA_REP, PA_RUTAPREV, PA_FECHA_PREV, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE,PA_TICKET) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._rutarep /*String*/ ),(Object)(__ref._rutaprev /*String*/ ),(Object)(__ref._fechaprev /*String*/ ),(Object)((__ref._sdate /*String*/ )),(Object)(__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._cuenta /*String*/ ),(Object)(__ref._nota /*String*/ )})); -RDebugUtils.currentLine=9175097; - //BA.debugLineNum = 9175097;BA.debugLine="Guardado"; -__ref._guardado /*String*/ (null); + //BA.debugLineNum = 1339;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PAGARES"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PAGARES (PA_ALMACEN, PA_RUTA_REP, PA_RUTAPREV, PA_FECHA_PREV, PA_CAPTURA, PA_MONTO, PA_USUARIO, PA_CLIENTE,PA_TICKET) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_almacen),(Object)(_rutarep),(Object)(_rutaprev),(Object)(_fechaprev),(Object)((_sdate)),(Object)(_l_montopag.getText()),(Object)(_usuario),(Object)(_cuenta),(Object)(_nota)})); + //BA.debugLineNum = 1342;BA.debugLine="Guardado"; +_guardado(); }; -RDebugUtils.currentLine=9175105; - //BA.debugLineNum = 9175105;BA.debugLine="End Sub"; + //BA.debugLineNum = 1350;BA.debugLine="End Sub"; return ""; } -public String _guardado(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "guardado", false)) - {return ((String) Debug.delegate(ba, "guardado", null));} -String _ruta = ""; -String _rutapre = ""; -String _rutaactualizar = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null; -RDebugUtils.currentLine=8126464; - //BA.debugLineNum = 8126464;BA.debugLine="Sub Guardado"; -RDebugUtils.currentLine=8126465; - //BA.debugLineNum = 8126465;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; -__c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=8126466; - //BA.debugLineNum = 8126466;BA.debugLine="DateTime.TimeFormat=\"HHmmss\""; -__c.DateTime.setTimeFormat("HHmmss"); -RDebugUtils.currentLine=8126467; - //BA.debugLineNum = 8126467;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=8126468; - //BA.debugLineNum = 8126468;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=8126469; - //BA.debugLineNum = 8126469;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); -RDebugUtils.currentLine=8126470; - //BA.debugLineNum = 8126470;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=8126471; - //BA.debugLineNum = 8126471;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; -__ref._cuenta /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"); -RDebugUtils.currentLine=8126472; - //BA.debugLineNum = 8126472;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=8126473; - //BA.debugLineNum = 8126473;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=8126474; - //BA.debugLineNum = 8126474;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=8126475; - //BA.debugLineNum = 8126475;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=8126476; - //BA.debugLineNum = 8126476;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); -RDebugUtils.currentLine=8126477; - //BA.debugLineNum = 8126477;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=8126478; - //BA.debugLineNum = 8126478;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")"; -_ruta = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"); -RDebugUtils.currentLine=8126479; - //BA.debugLineNum = 8126479;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=8126480; - //BA.debugLineNum = 8126480;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RUTA FR"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=8126481; - //BA.debugLineNum = 8126481;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=8126482; - //BA.debugLineNum = 8126482;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_RUTA\""; -_rutapre = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=8126483; - //BA.debugLineNum = 8126483;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=8126487; - //BA.debugLineNum = 8126487;BA.debugLine="Dim fechaprev As String = Subs.traefECHAPREV"; -_fechaprev = _subs._traefechaprev /*String*/ (ba); -RDebugUtils.currentLine=8126490; - //BA.debugLineNum = 8126490;BA.debugLine="Dim rutaactualizar As String"; -_rutaactualizar = ""; -RDebugUtils.currentLine=8126491; - //BA.debugLineNum = 8126491;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SELEC"; -_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=8126492; - //BA.debugLineNum = 8126492;BA.debugLine="If rut.RowCount > 0 Then"; -if (_rut.getRowCount()>0) { -RDebugUtils.currentLine=8126493; - //BA.debugLineNum = 8126493;BA.debugLine="rut.Position = 0"; -_rut.setPosition((int) (0)); -RDebugUtils.currentLine=8126494; - //BA.debugLineNum = 8126494;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")"; -_rutaactualizar = _rut.GetString("CAT_CL_RUTA"); - }; -RDebugUtils.currentLine=8126497; - //BA.debugLineNum = 8126497;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENTA W"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa) AND NV_RUTA ='"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"' ")); -RDebugUtils.currentLine=8126498; - //BA.debugLineNum = 8126498;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA ("; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_RUTA) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._cuenta /*String*/ ),(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)("ENTREGA"),(Object)("ENTREGA COMPLETA"),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar)})); -RDebugUtils.currentLine=8126499; - //BA.debugLineNum = 8126499;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPARTO_G"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),__ref._usuario /*String*/ ,__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,__ref._fechaprev /*String*/ ,"ENTREGADO"})); -RDebugUtils.currentLine=8126500; - //BA.debugLineNum = 8126500;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set g"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 2, HORAENT = '"+__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"' ")); -RDebugUtils.currentLine=8126501; - //BA.debugLineNum = 8126501;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SET"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_ESTATUS = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); -RDebugUtils.currentLine=8126502; - //BA.debugLineNum = 8126502;BA.debugLine="mandaPendientesreparto"; -__ref._mandapendientesreparto /*String*/ (null); -RDebugUtils.currentLine=8126509; - //BA.debugLineNum = 8126509;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; -_b4xpages._showpage /*String*/ (ba,"Principal"); -RDebugUtils.currentLine=8126511; - //BA.debugLineNum = 8126511;BA.debugLine="End Sub"; -return ""; -} -public String _b_cancel_pagare_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b_cancel_pagare_click", false)) - {return ((String) Debug.delegate(ba, "b_cancel_pagare_click", null));} +public String _b_cancel_pagare_click() throws Exception{ anywheresoftware.b4a.objects.collections.List _items = null; double _total = 0; int _i = 0; -RDebugUtils.currentLine=9502720; - //BA.debugLineNum = 9502720;BA.debugLine="Private Sub b_cancel_pagare_Click"; -RDebugUtils.currentLine=9502721; - //BA.debugLineNum = 9502721;BA.debugLine="tipo_abonox = \"abono\""; -__ref._tipo_abonox /*String*/ = "abono"; -RDebugUtils.currentLine=9502723; - //BA.debugLineNum = 9502723;BA.debugLine="Dim Items As List"; + //BA.debugLineNum = 1949;BA.debugLine="Private Sub b_cancel_pagare_Click"; + //BA.debugLineNum = 1950;BA.debugLine="tipo_abonox = \"abono\""; +_tipo_abonox = "abono"; + //BA.debugLineNum = 1952;BA.debugLine="Dim Items As List"; _items = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=9502724; - //BA.debugLineNum = 9502724;BA.debugLine="Items.Initialize"; + //BA.debugLineNum = 1953;BA.debugLine="Items.Initialize"; _items.Initialize(); -RDebugUtils.currentLine=9502726; - //BA.debugLineNum = 9502726;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCION\")"; + //BA.debugLineNum = 1955;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCION\")"; _items.Add((Object)("SELECCIONA UNA OPCION")); -RDebugUtils.currentLine=9502727; - //BA.debugLineNum = 9502727;BA.debugLine="Items.Add(\"TRANSFERENCIA\")"; + //BA.debugLineNum = 1956;BA.debugLine="Items.Add(\"TRANSFERENCIA\")"; _items.Add((Object)("TRANSFERENCIA")); -RDebugUtils.currentLine=9502728; - //BA.debugLineNum = 9502728;BA.debugLine="Items.Add(\"EFECTIVO\")"; + //BA.debugLineNum = 1957;BA.debugLine="Items.Add(\"EFECTIVO\")"; _items.Add((Object)("EFECTIVO")); -RDebugUtils.currentLine=9502729; - //BA.debugLineNum = 9502729;BA.debugLine="Items.Add(\"CHEQUE\")"; + //BA.debugLineNum = 1958;BA.debugLine="Items.Add(\"CHEQUE\")"; _items.Add((Object)("CHEQUE")); -RDebugUtils.currentLine=9502731; - //BA.debugLineNum = 9502731;BA.debugLine="cb_tipopago.SetItems(Items)"; -__ref._cb_tipopago /*reparto_izca.keymon.lat.b4xcombobox*/ ._setitems /*String*/ (null,_items); -RDebugUtils.currentLine=9502733; - //BA.debugLineNum = 9502733;BA.debugLine="itemselect= \"SELECCIONA UNA OPCION\""; -__ref._itemselect /*String*/ = "SELECCIONA UNA OPCION"; -RDebugUtils.currentLine=9502735; - //BA.debugLineNum = 9502735;BA.debugLine="h = Starter.skmt.ExecQuery(\"SELECT CUENTA from CU"; -__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA"))); -RDebugUtils.currentLine=9502736; - //BA.debugLineNum = 9502736;BA.debugLine="h.Position = 0"; -__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9502737; - //BA.debugLineNum = 9502737;BA.debugLine="Log(h.GetString(\"CUENTA\"))"; -__c.LogImpl("29502737",__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"),0); -RDebugUtils.currentLine=9502738; - //BA.debugLineNum = 9502738;BA.debugLine="j = Starter.skmt.ExecQuery2(\"SELECT a_abono FROM"; -__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? and a_tipoabono is null",new String[]{__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9502739; - //BA.debugLineNum = 9502739;BA.debugLine="j.position = 0"; -__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9502740; - //BA.debugLineNum = 9502740;BA.debugLine="Log(j.RowCount)"; -__c.LogImpl("29502740",BA.NumberToString(__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0); -RDebugUtils.currentLine=9502741; - //BA.debugLineNum = 9502741;BA.debugLine="If j.RowCount = 0 Then"; -if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=9502742; - //BA.debugLineNum = 9502742;BA.debugLine="p_abono.Visible = True"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=9502743; - //BA.debugLineNum = 9502743;BA.debugLine="p_abono.Width = Root.Width"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=9502744; - //BA.debugLineNum = 9502744;BA.debugLine="p_abono.Height = Root.Height"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=9502745; - //BA.debugLineNum = 9502745;BA.debugLine="et_abono.text = \"\""; -__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=9502746; - //BA.debugLineNum = 9502746;BA.debugLine="Dim total As Double = 0"; + //BA.debugLineNum = 1960;BA.debugLine="cb_tipopago.SetItems(Items)"; +_cb_tipopago._setitems /*String*/ (_items); + //BA.debugLineNum = 1962;BA.debugLine="itemselect= \"SELECCIONA UNA OPCION\""; +_itemselect = "SELECCIONA UNA OPCION"; + //BA.debugLineNum = 1964;BA.debugLine="h = Starter.skmt.ExecQuery(\"SELECT CUENTA from CU"; +_h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA"))); + //BA.debugLineNum = 1965;BA.debugLine="h.Position = 0"; +_h.setPosition((int) (0)); + //BA.debugLineNum = 1966;BA.debugLine="Log(h.GetString(\"CUENTA\"))"; +__c.LogImpl("09764881",_h.GetString("CUENTA"),0); + //BA.debugLineNum = 1967;BA.debugLine="j = Starter.skmt.ExecQuery2(\"SELECT a_abono FROM"; +_j = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? and a_tipoabono is null",new String[]{_h.GetString("CUENTA")}))); + //BA.debugLineNum = 1968;BA.debugLine="j.position = 0"; +_j.setPosition((int) (0)); + //BA.debugLineNum = 1969;BA.debugLine="Log(j.RowCount)"; +__c.LogImpl("09764884",BA.NumberToString(_j.getRowCount()),0); + //BA.debugLineNum = 1970;BA.debugLine="If j.RowCount = 0 Then"; +if (_j.getRowCount()==0) { + //BA.debugLineNum = 1971;BA.debugLine="p_abono.Visible = True"; +_p_abono.setVisible(__c.True); + //BA.debugLineNum = 1972;BA.debugLine="p_abono.Width = Root.Width"; +_p_abono.setWidth(_root.getWidth()); + //BA.debugLineNum = 1973;BA.debugLine="p_abono.Height = Root.Height"; +_p_abono.setHeight(_root.getHeight()); + //BA.debugLineNum = 1974;BA.debugLine="et_abono.text = \"\""; +_et_abono.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 1975;BA.debugLine="Dim total As Double = 0"; _total = 0; -RDebugUtils.currentLine=9502747; - //BA.debugLineNum = 9502747;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); -RDebugUtils.currentLine=9502748; - //BA.debugLineNum = 9502748;BA.debugLine="f.Position = 0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9502749; - //BA.debugLineNum = 9502749;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT distinct PA_"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT distinct PA_TICKET, PA_MONTO FROM PAGARES WHERE PA_CLIENTE = ?",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9502750; - //BA.debugLineNum = 9502750;BA.debugLine="clv_abonos.Clear"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=9502751; - //BA.debugLineNum = 9502751;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 1976;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); + //BA.debugLineNum = 1977;BA.debugLine="f.Position = 0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 1978;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT distinct PA_"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT distinct PA_TICKET, PA_MONTO FROM PAGARES WHERE PA_CLIENTE = ?",new String[]{_f.GetString("CUENTA")}))); + //BA.debugLineNum = 1979;BA.debugLine="clv_abonos.Clear"; +_clv_abonos._clear(); + //BA.debugLineNum = 1980;BA.debugLine="For i = 0 To d.RowCount - 1"; { final int step26 = 1; -final int limit26 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit26 = (int) (_d.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit26 ;_i = _i + step26 ) { -RDebugUtils.currentLine=9502752; - //BA.debugLineNum = 9502752;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9502753; - //BA.debugLineNum = 9502753;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"PA_T"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PA_TICKET"),"$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PA_MONTO")).getObject())),(Object)(_i)); -RDebugUtils.currentLine=9502755; - //BA.debugLineNum = 9502755;BA.debugLine="total = total + d.GetString(\"PA_MONTO\")"; -_total = _total+(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PA_MONTO"))); -RDebugUtils.currentLine=9502756; - //BA.debugLineNum = 9502756;BA.debugLine="Log(total)"; -__c.LogImpl("29502756",BA.NumberToString(_total),0); + //BA.debugLineNum = 1981;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 1982;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"PA_T"; +_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_d.GetString("PA_TICKET"),"$ "+_d.GetString("PA_MONTO")).getObject())),(Object)(_i)); + //BA.debugLineNum = 1984;BA.debugLine="total = total + d.GetString(\"PA_MONTO\")"; +_total = _total+(double)(Double.parseDouble(_d.GetString("PA_MONTO"))); + //BA.debugLineNum = 1985;BA.debugLine="Log(total)"; +__c.LogImpl("09764900",BA.NumberToString(_total),0); } }; -RDebugUtils.currentLine=9502758; - //BA.debugLineNum = 9502758;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9502759; - //BA.debugLineNum = 9502759;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? and a_tipoabono is not null ",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9502760; - //BA.debugLineNum = 9502760;BA.debugLine="If d.RowCount > 0 Then"; -if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=9502761; - //BA.debugLineNum = 9502761;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 1987;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1988;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? and a_tipoabono is not null ",new String[]{_f.GetString("CUENTA")}))); + //BA.debugLineNum = 1989;BA.debugLine="If d.RowCount > 0 Then"; +if (_d.getRowCount()>0) { + //BA.debugLineNum = 1990;BA.debugLine="For i = 0 To d.RowCount - 1"; { final int step35 = 1; -final int limit35 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit35 = (int) (_d.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit35 ;_i = _i + step35 ) { -RDebugUtils.currentLine=9502762; - //BA.debugLineNum = 9502762;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9502763; - //BA.debugLineNum = 9502763;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,"ABONO","$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono")).getObject())),(Object)(_i)); -RDebugUtils.currentLine=9502764; - //BA.debugLineNum = 9502764;BA.debugLine="total = total - d.GetString(\"a_abono\")"; -_total = _total-(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono"))); -RDebugUtils.currentLine=9502765; - //BA.debugLineNum = 9502765;BA.debugLine="Log(total)"; -__c.LogImpl("29502765",BA.NumberToString(_total),0); + //BA.debugLineNum = 1991;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 1992;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d"; +_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem("ABONO","$ "+_d.GetString("a_abono")).getObject())),(Object)(_i)); + //BA.debugLineNum = 1993;BA.debugLine="total = total - d.GetString(\"a_abono\")"; +_total = _total-(double)(Double.parseDouble(_d.GetString("a_abono"))); + //BA.debugLineNum = 1994;BA.debugLine="Log(total)"; +__c.LogImpl("09764909",BA.NumberToString(_total),0); } }; }; -RDebugUtils.currentLine=9502768; - //BA.debugLineNum = 9502768;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,"; -__ref._l_montoabonostotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=9502769; - //BA.debugLineNum = 9502769;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9502770; - //BA.debugLineNum = 9502770;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }else -{RDebugUtils.currentLine=9502771; - //BA.debugLineNum = 9502771;BA.debugLine="Else If j.RowCount > 0 Then"; -if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=9502772; - //BA.debugLineNum = 9502772;BA.debugLine="p_abono.Visible = True"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=9502773; - //BA.debugLineNum = 9502773;BA.debugLine="p_abono.Width = Root.Width"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=9502774; - //BA.debugLineNum = 9502774;BA.debugLine="p_abono.Height = Root.Height"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=9502775; - //BA.debugLineNum = 9502775;BA.debugLine="et_abono.text = \"\""; -__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=9502776; - //BA.debugLineNum = 9502776;BA.debugLine="Dim total As Double = 0"; + //BA.debugLineNum = 1997;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,"; +_l_montoabonostotal.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 1998;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1999;BA.debugLine="f.Close"; +_f.Close(); + }else if(_j.getRowCount()>0) { + //BA.debugLineNum = 2001;BA.debugLine="p_abono.Visible = True"; +_p_abono.setVisible(__c.True); + //BA.debugLineNum = 2002;BA.debugLine="p_abono.Width = Root.Width"; +_p_abono.setWidth(_root.getWidth()); + //BA.debugLineNum = 2003;BA.debugLine="p_abono.Height = Root.Height"; +_p_abono.setHeight(_root.getHeight()); + //BA.debugLineNum = 2004;BA.debugLine="et_abono.text = \"\""; +_et_abono.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2005;BA.debugLine="Dim total As Double = 0"; _total = 0; -RDebugUtils.currentLine=9502777; - //BA.debugLineNum = 9502777;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); -RDebugUtils.currentLine=9502778; - //BA.debugLineNum = 9502778;BA.debugLine="f.Position = 0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9502779; - //BA.debugLineNum = 9502779;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT distinct PA_"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT distinct PA_TICKET, PA_MONTO FROM PAGARES WHERE PA_CLIENTE = ? ",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9502780; - //BA.debugLineNum = 9502780;BA.debugLine="clv_abonos.Clear"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=9502781; - //BA.debugLineNum = 9502781;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 2006;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); + //BA.debugLineNum = 2007;BA.debugLine="f.Position = 0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 2008;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT distinct PA_"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT distinct PA_TICKET, PA_MONTO FROM PAGARES WHERE PA_CLIENTE = ? ",new String[]{_f.GetString("CUENTA")}))); + //BA.debugLineNum = 2009;BA.debugLine="clv_abonos.Clear"; +_clv_abonos._clear(); + //BA.debugLineNum = 2010;BA.debugLine="For i = 0 To d.RowCount - 1"; { final int step55 = 1; -final int limit55 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit55 = (int) (_d.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit55 ;_i = _i + step55 ) { -RDebugUtils.currentLine=9502782; - //BA.debugLineNum = 9502782;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9502783; - //BA.debugLineNum = 9502783;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"PA_T"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PA_TICKET"),"$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PA_MONTO")).getObject())),(Object)(_i)); -RDebugUtils.currentLine=9502785; - //BA.debugLineNum = 9502785;BA.debugLine="total = total + d.GetString(\"PA_MONTO\").Replace"; -_total = _total+(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PA_MONTO").replace(",",""))); -RDebugUtils.currentLine=9502786; - //BA.debugLineNum = 9502786;BA.debugLine="Log(total)"; -__c.LogImpl("29502786",BA.NumberToString(_total),0); + //BA.debugLineNum = 2011;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 2012;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"PA_T"; +_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_d.GetString("PA_TICKET"),"$ "+_d.GetString("PA_MONTO")).getObject())),(Object)(_i)); + //BA.debugLineNum = 2014;BA.debugLine="total = total + d.GetString(\"PA_MONTO\").Replace"; +_total = _total+(double)(Double.parseDouble(_d.GetString("PA_MONTO").replace(",",""))); + //BA.debugLineNum = 2015;BA.debugLine="Log(total)"; +__c.LogImpl("09764930",BA.NumberToString(_total),0); } }; -RDebugUtils.currentLine=9502788; - //BA.debugLineNum = 9502788;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9502789; - //BA.debugLineNum = 9502789;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? and a_tipoabono is not null ",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9502790; - //BA.debugLineNum = 9502790;BA.debugLine="If d.RowCount > 0 Then"; -if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=9502791; - //BA.debugLineNum = 9502791;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 2017;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 2018;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? and a_tipoabono is not null ",new String[]{_f.GetString("CUENTA")}))); + //BA.debugLineNum = 2019;BA.debugLine="If d.RowCount > 0 Then"; +if (_d.getRowCount()>0) { + //BA.debugLineNum = 2020;BA.debugLine="For i = 0 To d.RowCount - 1"; { final int step64 = 1; -final int limit64 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit64 = (int) (_d.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit64 ;_i = _i + step64 ) { -RDebugUtils.currentLine=9502792; - //BA.debugLineNum = 9502792;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9502793; - //BA.debugLineNum = 9502793;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,"ABONO","$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono")).getObject())),(Object)(_i)); -RDebugUtils.currentLine=9502794; - //BA.debugLineNum = 9502794;BA.debugLine="total = total - d.GetString(\"a_abono\")"; -_total = _total-(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono"))); -RDebugUtils.currentLine=9502795; - //BA.debugLineNum = 9502795;BA.debugLine="Log(total)"; -__c.LogImpl("29502795",BA.NumberToString(_total),0); + //BA.debugLineNum = 2021;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 2022;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d"; +_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem("ABONO","$ "+_d.GetString("a_abono")).getObject())),(Object)(_i)); + //BA.debugLineNum = 2023;BA.debugLine="total = total - d.GetString(\"a_abono\")"; +_total = _total-(double)(Double.parseDouble(_d.GetString("a_abono"))); + //BA.debugLineNum = 2024;BA.debugLine="Log(total)"; +__c.LogImpl("09764939",BA.NumberToString(_total),0); } }; }; -RDebugUtils.currentLine=9502798; - //BA.debugLineNum = 9502798;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,"; -__ref._l_montoabonostotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=9502799; - //BA.debugLineNum = 9502799;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9502800; - //BA.debugLineNum = 9502800;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }} -; -RDebugUtils.currentLine=9502803; - //BA.debugLineNum = 9502803;BA.debugLine="h.Close"; -__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9502804; - //BA.debugLineNum = 9502804;BA.debugLine="j.Close"; -__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9502811; - //BA.debugLineNum = 9502811;BA.debugLine="End Sub"; + //BA.debugLineNum = 2027;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,"; +_l_montoabonostotal.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 2028;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 2029;BA.debugLine="f.Close"; +_f.Close(); + }; + //BA.debugLineNum = 2032;BA.debugLine="h.Close"; +_h.Close(); + //BA.debugLineNum = 2033;BA.debugLine="j.Close"; +_j.Close(); + //BA.debugLineNum = 2040;BA.debugLine="End Sub"; return ""; } -public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(reparto_izca.keymon.lat.c_cliente __ref,String _mostrar,String _mostrar1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "createlistitem", false)) - {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_mostrar,_mostrar1}));} -anywheresoftware.b4a.objects.B4XViewWrapper _p = null; -RDebugUtils.currentLine=9633792; - //BA.debugLineNum = 9633792;BA.debugLine="Sub CreateListItem(mostrar As String, mostrar1 As"; -RDebugUtils.currentLine=9633793; - //BA.debugLineNum = 9633793;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; -_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=9633794; - //BA.debugLineNum = 9633794;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 1, 10)"; -_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10)); -RDebugUtils.currentLine=9633795; - //BA.debugLineNum = 9633795;BA.debugLine="p.LoadLayout(\"folioabono\")"; -_p.LoadLayout("folioabono",ba); -RDebugUtils.currentLine=9633796; - //BA.debugLineNum = 9633796;BA.debugLine="p.Height= 32dip"; -_p.setHeight(__c.DipToCurrent((int) (32))); -RDebugUtils.currentLine=9633797; - //BA.debugLineNum = 9633797;BA.debugLine="p.Width = 80dip"; -_p.setWidth(__c.DipToCurrent((int) (80))); -RDebugUtils.currentLine=9633799; - //BA.debugLineNum = 9633799;BA.debugLine="l_folio.Text = mostrar"; -__ref._l_folio /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_mostrar)); -RDebugUtils.currentLine=9633800; - //BA.debugLineNum = 9633800;BA.debugLine="l_saldo.Text = mostrar1"; -__ref._l_saldo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_mostrar1)); -RDebugUtils.currentLine=9633803; - //BA.debugLineNum = 9633803;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())); -RDebugUtils.currentLine=9633804; - //BA.debugLineNum = 9633804;BA.debugLine="End Sub"; -return null; -} -public String _b_cancelar_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b_cancelar_click", false)) - {return ((String) Debug.delegate(ba, "b_cancelar_click", null));} -RDebugUtils.currentLine=9699328; - //BA.debugLineNum = 9699328;BA.debugLine="Private Sub b_cancelar_Click"; -RDebugUtils.currentLine=9699329; - //BA.debugLineNum = 9699329;BA.debugLine="et_abono.Text = \"\""; -__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=9699330; - //BA.debugLineNum = 9699330;BA.debugLine="p_abono.Visible = False"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=9699331; - //BA.debugLineNum = 9699331;BA.debugLine="ime.HideKeyboard"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba); -RDebugUtils.currentLine=9699332; - //BA.debugLineNum = 9699332;BA.debugLine="End Sub"; +public String _b_cancelar_click() throws Exception{ + //BA.debugLineNum = 2060;BA.debugLine="Private Sub b_cancelar_Click"; + //BA.debugLineNum = 2061;BA.debugLine="et_abono.Text = \"\""; +_et_abono.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2062;BA.debugLine="p_abono.Visible = False"; +_p_abono.setVisible(__c.False); + //BA.debugLineNum = 2063;BA.debugLine="ime.HideKeyboard"; +_ime.HideKeyboard(ba); + //BA.debugLineNum = 2064;BA.debugLine="End Sub"; return ""; } -public String _b_cancred_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b_cancred_click", false)) - {return ((String) Debug.delegate(ba, "b_cancred_click", null));} -RDebugUtils.currentLine=9240576; - //BA.debugLineNum = 9240576;BA.debugLine="Private Sub b_cancred_Click"; -RDebugUtils.currentLine=9240577; - //BA.debugLineNum = 9240577;BA.debugLine="et_montoacredito.Text = \"\""; -__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=9240578; - //BA.debugLineNum = 9240578;BA.debugLine="p_credito.Visible = False"; -__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=9240579; - //BA.debugLineNum = 9240579;BA.debugLine="End Sub"; +public String _b_cancred_click() throws Exception{ + //BA.debugLineNum = 1352;BA.debugLine="Private Sub b_cancred_Click"; + //BA.debugLineNum = 1353;BA.debugLine="et_montoacredito.Text = \"\""; +_et_montoacredito.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 1354;BA.debugLine="p_credito.Visible = False"; +_p_credito.setVisible(__c.False); + //BA.debugLineNum = 1355;BA.debugLine="End Sub"; return ""; } -public String _b_cxc_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b_cxc_click", false)) - {return ((String) Debug.delegate(ba, "b_cxc_click", null));} +public String _b_cxc_click() throws Exception{ anywheresoftware.b4a.objects.collections.List _items = null; double _total = 0; int _i = 0; -RDebugUtils.currentLine=9371648; - //BA.debugLineNum = 9371648;BA.debugLine="Private Sub b_cxc_Click"; -RDebugUtils.currentLine=9371649; - //BA.debugLineNum = 9371649;BA.debugLine="tipo_abonox = \"cxc\""; -__ref._tipo_abonox /*String*/ = "cxc"; -RDebugUtils.currentLine=9371650; - //BA.debugLineNum = 9371650;BA.debugLine="h = Starter.skmt.ExecQuery(\"SELECT CUENTA from CU"; -__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA"))); -RDebugUtils.currentLine=9371651; - //BA.debugLineNum = 9371651;BA.debugLine="h.Position = 0"; -__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9371652; - //BA.debugLineNum = 9371652;BA.debugLine="Log(h.GetString(\"CUENTA\"))"; -__c.LogImpl("29371652",__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"),0); -RDebugUtils.currentLine=9371654; - //BA.debugLineNum = 9371654;BA.debugLine="Dim Items As List"; + //BA.debugLineNum = 1508;BA.debugLine="Private Sub b_cxc_Click"; + //BA.debugLineNum = 1509;BA.debugLine="tipo_abonox = \"cxc\""; +_tipo_abonox = "cxc"; + //BA.debugLineNum = 1510;BA.debugLine="h = Starter.skmt.ExecQuery(\"SELECT CUENTA from CU"; +_h = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA"))); + //BA.debugLineNum = 1511;BA.debugLine="h.Position = 0"; +_h.setPosition((int) (0)); + //BA.debugLineNum = 1512;BA.debugLine="Log(h.GetString(\"CUENTA\"))"; +__c.LogImpl("09633796",_h.GetString("CUENTA"),0); + //BA.debugLineNum = 1514;BA.debugLine="Dim Items As List"; _items = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=9371655; - //BA.debugLineNum = 9371655;BA.debugLine="Items.Initialize"; + //BA.debugLineNum = 1515;BA.debugLine="Items.Initialize"; _items.Initialize(); -RDebugUtils.currentLine=9371657; - //BA.debugLineNum = 9371657;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCION\")"; + //BA.debugLineNum = 1517;BA.debugLine="Items.Add(\"SELECCIONA UNA OPCION\")"; _items.Add((Object)("SELECCIONA UNA OPCION")); -RDebugUtils.currentLine=9371658; - //BA.debugLineNum = 9371658;BA.debugLine="Items.Add(\"TRANSFERENCIA\")"; + //BA.debugLineNum = 1518;BA.debugLine="Items.Add(\"TRANSFERENCIA\")"; _items.Add((Object)("TRANSFERENCIA")); -RDebugUtils.currentLine=9371659; - //BA.debugLineNum = 9371659;BA.debugLine="Items.Add(\"EFECTIVO\")"; + //BA.debugLineNum = 1519;BA.debugLine="Items.Add(\"EFECTIVO\")"; _items.Add((Object)("EFECTIVO")); -RDebugUtils.currentLine=9371660; - //BA.debugLineNum = 9371660;BA.debugLine="Items.Add(\"CHEQUE\")"; + //BA.debugLineNum = 1520;BA.debugLine="Items.Add(\"CHEQUE\")"; _items.Add((Object)("CHEQUE")); -RDebugUtils.currentLine=9371662; - //BA.debugLineNum = 9371662;BA.debugLine="cb_tipopago.SetItems(Items)"; -__ref._cb_tipopago /*reparto_izca.keymon.lat.b4xcombobox*/ ._setitems /*String*/ (null,_items); -RDebugUtils.currentLine=9371664; - //BA.debugLineNum = 9371664;BA.debugLine="itemselect= \"SELECCIONA UNA OPCION\""; -__ref._itemselect /*String*/ = "SELECCIONA UNA OPCION"; -RDebugUtils.currentLine=9371666; - //BA.debugLineNum = 9371666;BA.debugLine="j = Starter.skmt.ExecQuery2(\"SELECT a_abono FROM"; -__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9371667; - //BA.debugLineNum = 9371667;BA.debugLine="j.position = 0"; -__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9371668; - //BA.debugLineNum = 9371668;BA.debugLine="Log(j.RowCount)"; -__c.LogImpl("29371668",BA.NumberToString(__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()),0); -RDebugUtils.currentLine=9371669; - //BA.debugLineNum = 9371669;BA.debugLine="If j.RowCount = 0 Then"; -if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=9371670; - //BA.debugLineNum = 9371670;BA.debugLine="p_abono.Visible = True"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=9371671; - //BA.debugLineNum = 9371671;BA.debugLine="p_abono.Width = Root.Width"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=9371672; - //BA.debugLineNum = 9371672;BA.debugLine="p_abono.Height = Root.Height"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=9371673; - //BA.debugLineNum = 9371673;BA.debugLine="et_abono.text = \"\""; -__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=9371674; - //BA.debugLineNum = 9371674;BA.debugLine="Dim total As Double = 0"; + //BA.debugLineNum = 1522;BA.debugLine="cb_tipopago.SetItems(Items)"; +_cb_tipopago._setitems /*String*/ (_items); + //BA.debugLineNum = 1524;BA.debugLine="itemselect= \"SELECCIONA UNA OPCION\""; +_itemselect = "SELECCIONA UNA OPCION"; + //BA.debugLineNum = 1526;BA.debugLine="j = Starter.skmt.ExecQuery2(\"SELECT a_abono FROM"; +_j = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{_h.GetString("CUENTA")}))); + //BA.debugLineNum = 1527;BA.debugLine="j.position = 0"; +_j.setPosition((int) (0)); + //BA.debugLineNum = 1528;BA.debugLine="Log(j.RowCount)"; +__c.LogImpl("09633812",BA.NumberToString(_j.getRowCount()),0); + //BA.debugLineNum = 1529;BA.debugLine="If j.RowCount = 0 Then"; +if (_j.getRowCount()==0) { + //BA.debugLineNum = 1530;BA.debugLine="p_abono.Visible = True"; +_p_abono.setVisible(__c.True); + //BA.debugLineNum = 1531;BA.debugLine="p_abono.Width = Root.Width"; +_p_abono.setWidth(_root.getWidth()); + //BA.debugLineNum = 1532;BA.debugLine="p_abono.Height = Root.Height"; +_p_abono.setHeight(_root.getHeight()); + //BA.debugLineNum = 1533;BA.debugLine="et_abono.text = \"\""; +_et_abono.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 1534;BA.debugLine="Dim total As Double = 0"; _total = 0; -RDebugUtils.currentLine=9371675; - //BA.debugLineNum = 9371675;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); -RDebugUtils.currentLine=9371676; - //BA.debugLineNum = 9371676;BA.debugLine="f.Position = 0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9371677; - //BA.debugLineNum = 9371677;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT NOTA, SALDO_"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? AND SALDO_PENDIENTE <> 0",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9371678; - //BA.debugLineNum = 9371678;BA.debugLine="clv_abonos.Clear"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=9371679; - //BA.debugLineNum = 9371679;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 1535;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); + //BA.debugLineNum = 1536;BA.debugLine="f.Position = 0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 1537;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT NOTA, SALDO_"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? AND SALDO_PENDIENTE <> 0",new String[]{_f.GetString("CUENTA")}))); + //BA.debugLineNum = 1538;BA.debugLine="clv_abonos.Clear"; +_clv_abonos._clear(); + //BA.debugLineNum = 1539;BA.debugLine="For i = 0 To d.RowCount - 1"; { final int step26 = 1; -final int limit26 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit26 = (int) (_d.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit26 ;_i = _i + step26 ) { -RDebugUtils.currentLine=9371680; - //BA.debugLineNum = 9371680;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9371681; - //BA.debugLineNum = 9371681;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),"$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE")).getObject())),(Object)(_i)); -RDebugUtils.currentLine=9371682; - //BA.debugLineNum = 9371682;BA.debugLine="Log(d.GetString(\"NOTA\"))"; -__c.LogImpl("29371682",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),0); -RDebugUtils.currentLine=9371683; - //BA.debugLineNum = 9371683;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))"; -__c.LogImpl("29371683",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0); -RDebugUtils.currentLine=9371684; - //BA.debugLineNum = 9371684;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")"; -_total = _total+(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"))); -RDebugUtils.currentLine=9371685; - //BA.debugLineNum = 9371685;BA.debugLine="Log(total)"; -__c.LogImpl("29371685",BA.NumberToString(_total),0); + //BA.debugLineNum = 1540;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 1541;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA"; +_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_d.GetString("NOTA"),"$ "+_d.GetString("SALDO_PENDIENTE")).getObject())),(Object)(_i)); + //BA.debugLineNum = 1542;BA.debugLine="Log(d.GetString(\"NOTA\"))"; +__c.LogImpl("09633826",_d.GetString("NOTA"),0); + //BA.debugLineNum = 1543;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))"; +__c.LogImpl("09633827",_d.GetString("SALDO_PENDIENTE"),0); + //BA.debugLineNum = 1544;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")"; +_total = _total+(double)(Double.parseDouble(_d.GetString("SALDO_PENDIENTE"))); + //BA.debugLineNum = 1545;BA.debugLine="Log(total)"; +__c.LogImpl("09633829",BA.NumberToString(_total),0); } }; -RDebugUtils.currentLine=9371687; - //BA.debugLineNum = 9371687;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9371688; - //BA.debugLineNum = 9371688;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? and a_tipoabono is null",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9371689; - //BA.debugLineNum = 9371689;BA.debugLine="If d.RowCount > 0 Then"; -if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=9371690; - //BA.debugLineNum = 9371690;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 1547;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1548;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? and a_tipoabono is null",new String[]{_f.GetString("CUENTA")}))); + //BA.debugLineNum = 1549;BA.debugLine="If d.RowCount > 0 Then"; +if (_d.getRowCount()>0) { + //BA.debugLineNum = 1550;BA.debugLine="For i = 0 To d.RowCount - 1"; { final int step37 = 1; -final int limit37 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit37 = (int) (_d.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit37 ;_i = _i + step37 ) { -RDebugUtils.currentLine=9371691; - //BA.debugLineNum = 9371691;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9371692; - //BA.debugLineNum = 9371692;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,"ABONO","$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono")).getObject())),(Object)(_i)); -RDebugUtils.currentLine=9371693; - //BA.debugLineNum = 9371693;BA.debugLine="total = total - d.GetString(\"a_abono\")"; -_total = _total-(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono"))); -RDebugUtils.currentLine=9371694; - //BA.debugLineNum = 9371694;BA.debugLine="Log(total)"; -__c.LogImpl("29371694",BA.NumberToString(_total),0); + //BA.debugLineNum = 1551;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 1552;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d"; +_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem("ABONO","$ "+_d.GetString("a_abono")).getObject())),(Object)(_i)); + //BA.debugLineNum = 1553;BA.debugLine="total = total - d.GetString(\"a_abono\")"; +_total = _total-(double)(Double.parseDouble(_d.GetString("a_abono"))); + //BA.debugLineNum = 1554;BA.debugLine="Log(total)"; +__c.LogImpl("09633838",BA.NumberToString(_total),0); } }; }; -RDebugUtils.currentLine=9371697; - //BA.debugLineNum = 9371697;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,"; -__ref._l_montoabonostotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=9371698; - //BA.debugLineNum = 9371698;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9371699; - //BA.debugLineNum = 9371699;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }else -{RDebugUtils.currentLine=9371700; - //BA.debugLineNum = 9371700;BA.debugLine="Else If j.RowCount > 0 Then"; -if (__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=9371701; - //BA.debugLineNum = 9371701;BA.debugLine="p_abono.Visible = True"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=9371702; - //BA.debugLineNum = 9371702;BA.debugLine="p_abono.Width = Root.Width"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=9371703; - //BA.debugLineNum = 9371703;BA.debugLine="p_abono.Height = Root.Height"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=9371704; - //BA.debugLineNum = 9371704;BA.debugLine="et_abono.text = \"\""; -__ref._et_abono /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=9371705; - //BA.debugLineNum = 9371705;BA.debugLine="Dim total As Double = 0"; + //BA.debugLineNum = 1557;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,"; +_l_montoabonostotal.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 1558;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1559;BA.debugLine="f.Close"; +_f.Close(); + }else if(_j.getRowCount()>0) { + //BA.debugLineNum = 1561;BA.debugLine="p_abono.Visible = True"; +_p_abono.setVisible(__c.True); + //BA.debugLineNum = 1562;BA.debugLine="p_abono.Width = Root.Width"; +_p_abono.setWidth(_root.getWidth()); + //BA.debugLineNum = 1563;BA.debugLine="p_abono.Height = Root.Height"; +_p_abono.setHeight(_root.getHeight()); + //BA.debugLineNum = 1564;BA.debugLine="et_abono.text = \"\""; +_et_abono.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 1565;BA.debugLine="Dim total As Double = 0"; _total = 0; -RDebugUtils.currentLine=9371706; - //BA.debugLineNum = 9371706;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); -RDebugUtils.currentLine=9371707; - //BA.debugLineNum = 9371707;BA.debugLine="f.Position = 0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9371708; - //BA.debugLineNum = 9371708;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT NOTA, SALDO_"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? AND SALDO_PENDIENTE <> 0",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9371709; - //BA.debugLineNum = 9371709;BA.debugLine="clv_abonos.Clear"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=9371710; - //BA.debugLineNum = 9371710;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 1566;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); + //BA.debugLineNum = 1567;BA.debugLine="f.Position = 0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 1568;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT NOTA, SALDO_"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT NOTA, SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ? AND SALDO_PENDIENTE <> 0",new String[]{_f.GetString("CUENTA")}))); + //BA.debugLineNum = 1569;BA.debugLine="clv_abonos.Clear"; +_clv_abonos._clear(); + //BA.debugLineNum = 1570;BA.debugLine="For i = 0 To d.RowCount - 1"; { final int step57 = 1; -final int limit57 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit57 = (int) (_d.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit57 ;_i = _i + step57 ) { -RDebugUtils.currentLine=9371711; - //BA.debugLineNum = 9371711;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9371712; - //BA.debugLineNum = 9371712;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),"$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE")).getObject())),(Object)(_i)); -RDebugUtils.currentLine=9371713; - //BA.debugLineNum = 9371713;BA.debugLine="Log(d.GetString(\"NOTA\"))"; -__c.LogImpl("29371713",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NOTA"),0); -RDebugUtils.currentLine=9371714; - //BA.debugLineNum = 9371714;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))"; -__c.LogImpl("29371714",__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"),0); -RDebugUtils.currentLine=9371715; - //BA.debugLineNum = 9371715;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")"; -_total = _total+(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("SALDO_PENDIENTE"))); -RDebugUtils.currentLine=9371716; - //BA.debugLineNum = 9371716;BA.debugLine="Log(total)"; -__c.LogImpl("29371716",BA.NumberToString(_total),0); + //BA.debugLineNum = 1571;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 1572;BA.debugLine="clv_abonos.Add(CreateListItem(d.GetString(\"NOTA"; +_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_d.GetString("NOTA"),"$ "+_d.GetString("SALDO_PENDIENTE")).getObject())),(Object)(_i)); + //BA.debugLineNum = 1573;BA.debugLine="Log(d.GetString(\"NOTA\"))"; +__c.LogImpl("09633857",_d.GetString("NOTA"),0); + //BA.debugLineNum = 1574;BA.debugLine="Log(d.GetString(\"SALDO_PENDIENTE\"))"; +__c.LogImpl("09633858",_d.GetString("SALDO_PENDIENTE"),0); + //BA.debugLineNum = 1575;BA.debugLine="total = total + d.GetString(\"SALDO_PENDIENTE\")"; +_total = _total+(double)(Double.parseDouble(_d.GetString("SALDO_PENDIENTE"))); + //BA.debugLineNum = 1576;BA.debugLine="Log(total)"; +__c.LogImpl("09633860",BA.NumberToString(_total),0); } }; -RDebugUtils.currentLine=9371718; - //BA.debugLineNum = 9371718;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9371719; - //BA.debugLineNum = 9371719;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? and a_tipoabono is null",new String[]{__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA")}))); -RDebugUtils.currentLine=9371720; - //BA.debugLineNum = 9371720;BA.debugLine="If d.RowCount > 0 Then"; -if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=9371721; - //BA.debugLineNum = 9371721;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 1578;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1579;BA.debugLine="d = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ? and a_tipoabono is null",new String[]{_f.GetString("CUENTA")}))); + //BA.debugLineNum = 1580;BA.debugLine="If d.RowCount > 0 Then"; +if (_d.getRowCount()>0) { + //BA.debugLineNum = 1581;BA.debugLine="For i = 0 To d.RowCount - 1"; { final int step68 = 1; -final int limit68 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit68 = (int) (_d.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit68 ;_i = _i + step68 ) { -RDebugUtils.currentLine=9371722; - //BA.debugLineNum = 9371722;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9371723; - //BA.debugLineNum = 9371723;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d"; -__ref._clv_abonos /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,"ABONO","$ "+__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono")).getObject())),(Object)(_i)); -RDebugUtils.currentLine=9371724; - //BA.debugLineNum = 9371724;BA.debugLine="total = total - d.GetString(\"a_abono\")"; -_total = _total-(double)(Double.parseDouble(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("a_abono"))); -RDebugUtils.currentLine=9371725; - //BA.debugLineNum = 9371725;BA.debugLine="Log(total)"; -__c.LogImpl("29371725",BA.NumberToString(_total),0); + //BA.debugLineNum = 1582;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 1583;BA.debugLine="clv_abonos.Add(CreateListItem(\"ABONO\",\"$ \" & d"; +_clv_abonos._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem("ABONO","$ "+_d.GetString("a_abono")).getObject())),(Object)(_i)); + //BA.debugLineNum = 1584;BA.debugLine="total = total - d.GetString(\"a_abono\")"; +_total = _total-(double)(Double.parseDouble(_d.GetString("a_abono"))); + //BA.debugLineNum = 1585;BA.debugLine="Log(total)"; +__c.LogImpl("09633869",BA.NumberToString(_total),0); } }; }; -RDebugUtils.currentLine=9371728; - //BA.debugLineNum = 9371728;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,"; -__ref._l_montoabonostotal /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=9371729; - //BA.debugLineNum = 9371729;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9371730; - //BA.debugLineNum = 9371730;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }} -; -RDebugUtils.currentLine=9371733; - //BA.debugLineNum = 9371733;BA.debugLine="h.Close"; -__ref._h /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9371734; - //BA.debugLineNum = 9371734;BA.debugLine="j.Close"; -__ref._j /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9371735; - //BA.debugLineNum = 9371735;BA.debugLine="End Sub"; + //BA.debugLineNum = 1588;BA.debugLine="l_montoabonostotal.Text = NumberFormat2(total,0,"; +_l_montoabonostotal.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_total,(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 1589;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1590;BA.debugLine="f.Close"; +_f.Close(); + }; + //BA.debugLineNum = 1593;BA.debugLine="h.Close"; +_h.Close(); + //BA.debugLineNum = 1594;BA.debugLine="j.Close"; +_j.Close(); + //BA.debugLineNum = 1595;BA.debugLine="End Sub"; return ""; } -public void _b_imp_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b_imp_click", false)) - {Debug.delegate(ba, "b_imp_click", null); return;} -ResumableSub_B_IMP_Click rsub = new ResumableSub_B_IMP_Click(this,__ref); +public void _b_imp_click() throws Exception{ +ResumableSub_B_IMP_Click rsub = new ResumableSub_B_IMP_Click(this); rsub.resume(ba, null); } public static class ResumableSub_B_IMP_Click extends BA.ResumableSub { -public ResumableSub_B_IMP_Click(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) { +public ResumableSub_B_IMP_Click(reparto_izca.keymon.lat.c_cliente parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_cliente __ref; reparto_izca.keymon.lat.c_cliente parent; int _cont = 0; anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; @@ -2607,7 +808,6 @@ int limit275; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cliente"; while (true) { switch (state) { @@ -2617,44 +817,33 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=8650753; - //BA.debugLineNum = 8650753;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); -RDebugUtils.currentLine=8650754; - //BA.debugLineNum = 8650754;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=8650755; - //BA.debugLineNum = 8650755;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=8650757; - //BA.debugLineNum = 8650757;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; + //BA.debugLineNum = 682;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 683;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 684;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 686;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; parent.__c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=8650758; - //BA.debugLineNum = 8650758;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\""; + //BA.debugLineNum = 687;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\""; parent.__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=8650759; - //BA.debugLineNum = 8650759;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=8650760; - //BA.debugLineNum = 8650760;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=8650761; - //BA.debugLineNum = 8650761;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=8650767; - //BA.debugLineNum = 8650767;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; + //BA.debugLineNum = 688;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 689;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 690;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 696;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); -RDebugUtils.currentLine=8650768; - //BA.debugLineNum = 8650768;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=8650769; - //BA.debugLineNum = 8650769;BA.debugLine="If Not(Printer1.IsConnected) Then"; + //BA.debugLineNum = 697;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 698;BA.debugLine="If Not(Printer1.IsConnected) Then"; if (true) break; case 1: //if this.state = 38; -if (parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { +if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { this.state = 3; }else { this.state = 21; @@ -2663,20 +852,17 @@ this.state = 21; case 3: //C this.state = 4; -RDebugUtils.currentLine=8650771; - //BA.debugLineNum = 8650771;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=8650772; - //BA.debugLineNum = 8650772;BA.debugLine="Private cont As Int = 0"; + //BA.debugLineNum = 700;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 701;BA.debugLine="Private cont As Int = 0"; _cont = (int) (0); -RDebugUtils.currentLine=8650773; - //BA.debugLineNum = 8650773;BA.debugLine="Do While Not(impresoraConectada)"; + //BA.debugLineNum = 702;BA.debugLine="Do While Not(impresoraConectada)"; if (true) break; case 4: //do while this.state = 19; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ )) { +while (parent.__c.Not(parent._impresoraconectada)) { this.state = 6; if (true) break; } @@ -2685,20 +871,17 @@ if (true) break; case 6: //C this.state = 7; -RDebugUtils.currentLine=8650774; - //BA.debugLineNum = 8650774;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp_click"),(int) (1000)); + //BA.debugLineNum = 703;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 197; return; case 197: //C this.state = 7; ; -RDebugUtils.currentLine=8650776; - //BA.debugLineNum = 8650776;BA.debugLine="cont = cont + 1"; + //BA.debugLineNum = 705;BA.debugLine="cont = cont + 1"; _cont = (int) (_cont+1); -RDebugUtils.currentLine=8650777; - //BA.debugLineNum = 8650777;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de"; + //BA.debugLineNum = 706;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de"; if (true) break; case 7: @@ -2711,15 +894,14 @@ this.state = 9; case 9: //C this.state = 12; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); +parent._printer1._connect /*boolean*/ (); if (true) break; case 12: //C this.state = 13; ; -RDebugUtils.currentLine=8650778; - //BA.debugLineNum = 8650778;BA.debugLine="If cont > 3 Then impresoraConectada = True"; + //BA.debugLineNum = 707;BA.debugLine="If cont > 3 Then impresoraConectada = True"; if (true) break; case 13: @@ -2732,7 +914,7 @@ this.state = 15; case 15: //C this.state = 18; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; +parent._impresoraconectada = parent.__c.True; if (true) break; case 18: @@ -2745,37 +927,32 @@ case 19: //C this.state = 38; ; -RDebugUtils.currentLine=8650780; - //BA.debugLineNum = 8650780;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp_click"),(int) (500)); + //BA.debugLineNum = 709;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); this.state = 198; return; case 198: //C this.state = 38; ; -RDebugUtils.currentLine=8650781; - //BA.debugLineNum = 8650781;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 710;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; if (true) break; case 21: //C this.state = 22; -RDebugUtils.currentLine=8650784; - //BA.debugLineNum = 8650784;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=8650785; - //BA.debugLineNum = 8650785;BA.debugLine="Private cont As Int = 0"; + //BA.debugLineNum = 713;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 714;BA.debugLine="Private cont As Int = 0"; _cont = (int) (0); -RDebugUtils.currentLine=8650786; - //BA.debugLineNum = 8650786;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; + //BA.debugLineNum = 715;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; if (true) break; case 22: //do while this.state = 37; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ ) || parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { +while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { this.state = 24; if (true) break; } @@ -2784,20 +961,17 @@ if (true) break; case 24: //C this.state = 25; -RDebugUtils.currentLine=8650787; - //BA.debugLineNum = 8650787;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp_click"),(int) (1000)); + //BA.debugLineNum = 716;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 199; return; case 199: //C this.state = 25; ; -RDebugUtils.currentLine=8650789; - //BA.debugLineNum = 8650789;BA.debugLine="cont = cont + 1"; + //BA.debugLineNum = 718;BA.debugLine="cont = cont + 1"; _cont = (int) (_cont+1); -RDebugUtils.currentLine=8650790; - //BA.debugLineNum = 8650790;BA.debugLine="If cont = 2 Then Printer1.Connect"; + //BA.debugLineNum = 719;BA.debugLine="If cont = 2 Then Printer1.Connect"; if (true) break; case 25: @@ -2810,15 +984,14 @@ this.state = 27; case 27: //C this.state = 30; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); +parent._printer1._connect /*boolean*/ (); if (true) break; case 30: //C this.state = 31; ; -RDebugUtils.currentLine=8650791; - //BA.debugLineNum = 8650791;BA.debugLine="If cont > 3 Then impresoraConectada = True"; + //BA.debugLineNum = 720;BA.debugLine="If cont > 3 Then impresoraConectada = True"; if (true) break; case 31: @@ -2831,7 +1004,7 @@ this.state = 33; case 33: //C this.state = 36; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; +parent._impresoraconectada = parent.__c.True; if (true) break; case 36: @@ -2844,86 +1017,67 @@ case 37: //C this.state = 38; ; -RDebugUtils.currentLine=8650793; - //BA.debugLineNum = 8650793;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp_click"),(int) (500)); + //BA.debugLineNum = 722;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); this.state = 200; return; case 200: //C this.state = 38; ; -RDebugUtils.currentLine=8650794; - //BA.debugLineNum = 8650794;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 723;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; if (true) break; case 38: //C this.state = 39; ; -RDebugUtils.currentLine=8650797; - //BA.debugLineNum = 8650797;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=8650798; - //BA.debugLineNum = 8650798;BA.debugLine="ESPACIO = 28"; -__ref._espacio /*int*/ = (int) (28); -RDebugUtils.currentLine=8650799; - //BA.debugLineNum = 8650799;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=8650816; - //BA.debugLineNum = 8650816;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF); -RDebugUtils.currentLine=8650818; - //BA.debugLineNum = 8650818;BA.debugLine="Printer1.WriteString(sDate & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=8650819; - //BA.debugLineNum = 8650819;BA.debugLine="Printer1.WriteString(sTime & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=8650820; - //BA.debugLineNum = 8650820;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Vendedor:"+__ref._usuario /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=8650821; - //BA.debugLineNum = 8650821;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=8650822; - //BA.debugLineNum = 8650822;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=8650823; - //BA.debugLineNum = 8650823;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=8650824; - //BA.debugLineNum = 8650824;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=8650828; - //BA.debugLineNum = 8650828;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=8650830; - //BA.debugLineNum = 8650830;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO = '1' "))); -RDebugUtils.currentLine=8650831; - //BA.debugLineNum = 8650831;BA.debugLine="If c.RowCount > 0 Then"; + //BA.debugLineNum = 726;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 727;BA.debugLine="ESPACIO = 28"; +parent._espacio = (int) (28); + //BA.debugLineNum = 728;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 745;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; +parent._printer1._writestring /*String*/ ("Izca Distribuciones"+parent.__c.CRLF); + //BA.debugLineNum = 747;BA.debugLine="Printer1.WriteString(sDate & CRLF)"; +parent._printer1._writestring /*String*/ (parent._sdate+parent.__c.CRLF); + //BA.debugLineNum = 748;BA.debugLine="Printer1.WriteString(sTime & CRLF)"; +parent._printer1._writestring /*String*/ (parent._stime+parent.__c.CRLF); + //BA.debugLineNum = 749;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & CRL"; +parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+parent.__c.CRLF); + //BA.debugLineNum = 750;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; +parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+parent.__c.CRLF); + //BA.debugLineNum = 751;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; +parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+parent.__c.CRLF); + //BA.debugLineNum = 752;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; +parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+parent.__c.CRLF); + //BA.debugLineNum = 753;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; +parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+parent.__c.CRLF); + //BA.debugLineNum = 757;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 759;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO = '1' "))); + //BA.debugLineNum = 760;BA.debugLine="If c.RowCount > 0 Then"; if (true) break; case 39: //if this.state = 72; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._c.getRowCount()>0) { this.state = 41; }if (true) break; case 41: //C this.state = 42; -RDebugUtils.currentLine=8650833; - //BA.debugLineNum = 8650833;BA.debugLine="Dim c2 As Cursor= Starter.skmt.ExecQuery(\"SELECT"; + //BA.debugLineNum = 762;BA.debugLine="Dim c2 As Cursor= Starter.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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT iFNULL(SUM(HVD_CANT),0) AS HVD_CANT, iFNULL(SUM(HVD_RECHAZOCANT),0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO = '1' "))); -RDebugUtils.currentLine=8650834; - //BA.debugLineNum = 8650834;BA.debugLine="c2.Position = 0"; + //BA.debugLineNum = 763;BA.debugLine="c2.Position = 0"; _c2.setPosition((int) (0)); -RDebugUtils.currentLine=8650835; - //BA.debugLineNum = 8650835;BA.debugLine="If c2.GetInt(\"HVD_CANT\") - c2.GetInt(\"HVD_RECHAZ"; + //BA.debugLineNum = 764;BA.debugLine="If c2.GetInt(\"HVD_CANT\") - c2.GetInt(\"HVD_RECHAZ"; if (true) break; case 42: @@ -2936,47 +1090,41 @@ this.state = 44; case 44: //C this.state = 45; -RDebugUtils.currentLine=8650836; - //BA.debugLineNum = 8650836;BA.debugLine="Printer1.WriteString(\"--------ENTREGA CREDITO--"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------ENTREGA CREDITO-------"+parent.__c.CRLF); -RDebugUtils.currentLine=8650839; - //BA.debugLineNum = 8650839;BA.debugLine="Printer1.WriteString(\"Cant. Precio"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant. Precio Importe"+parent.__c.CRLF); -RDebugUtils.currentLine=8650841; - //BA.debugLineNum = 8650841;BA.debugLine="Printer1.WriteString(\"-------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 765;BA.debugLine="Printer1.WriteString(\"--------ENTREGA CREDITO--"; +parent._printer1._writestring /*String*/ ("--------ENTREGA CREDITO-------"+parent.__c.CRLF); + //BA.debugLineNum = 768;BA.debugLine="Printer1.WriteString(\"Cant. Precio"; +parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF); + //BA.debugLineNum = 770;BA.debugLine="Printer1.WriteString(\"-------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); if (true) break; case 45: //C this.state = 46; ; -RDebugUtils.currentLine=8650845; - //BA.debugLineNum = 8650845;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_BCREDITO = '1' order by HVD_PROID")))); -RDebugUtils.currentLine=8650846; - //BA.debugLineNum = 8650846;BA.debugLine="If S.RowCount>0 Then"; + //BA.debugLineNum = 774;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_BCREDITO = '1' order by HVD_PROID")))); + //BA.debugLineNum = 775;BA.debugLine="If S.RowCount>0 Then"; if (true) break; case 46: //if this.state = 71; -if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._s.getRowCount()>0) { this.state = 48; }if (true) break; case 48: //C this.state = 49; -RDebugUtils.currentLine=8650847; - //BA.debugLineNum = 8650847;BA.debugLine="For i=0 To S.RowCount -1"; + //BA.debugLineNum = 776;BA.debugLine="For i=0 To S.RowCount -1"; if (true) break; case 49: //for this.state = 70; step57 = 1; -limit57 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit57 = (int) (parent._s.getRowCount()-1); _i = (int) (0) ; this.state = 201; if (true) break; @@ -2996,76 +1144,60 @@ if (true) break; case 51: //C this.state = 52; -RDebugUtils.currentLine=8650848; - //BA.debugLineNum = 8650848;BA.debugLine="S.Position=i"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=8650849; - //BA.debugLineNum = 8650849;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))"; -parent.__c.LogImpl("28650849",__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO"),0); -RDebugUtils.currentLine=8650850; - //BA.debugLineNum = 8650850;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_"; + //BA.debugLineNum = 777;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 778;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))"; +parent.__c.LogImpl("08912993",parent._s.GetString("HVD_RECHAZO"),0); + //BA.debugLineNum = 779;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_"; if (true) break; case 52: //if this.state = 69; -if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { +if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) { this.state = 54; }if (true) break; case 54: //C this.state = 55; -RDebugUtils.currentLine=8650853; - //BA.debugLineNum = 8650853;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm"; + //BA.debugLineNum = 782;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm"; if (true) break; case 55: //if this.state = 68; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { this.state = 57; -}else -{RDebugUtils.currentLine=8650881; - //BA.debugLineNum = 8650881;BA.debugLine="Else If s.GetString(\"HVD_RECHAZO\") = 1 Then"; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { +}else if((parent._s.GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { this.state = 63; -}} -if (true) break; +}if (true) break; case 57: //C this.state = 58; -RDebugUtils.currentLine=8650855; - //BA.debugLineNum = 8650855;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8650856; - //BA.debugLineNum = 8650856;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=8650859; - //BA.debugLineNum = 8650859;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST"; -_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8650860; - //BA.debugLineNum = 8650860;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8650863; - //BA.debugLineNum = 8650863;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; -_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8650864; - //BA.debugLineNum = 8650864;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8650866; - //BA.debugLineNum = 8650866;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=8650868; - //BA.debugLineNum = 8650868;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 784;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 785;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; +parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 788;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST"; +_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 789;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 792;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; +_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 793;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 795;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 797;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 58: //for this.state = 61; step69 = 1; -limit69 = (int) (__ref._espacio /*int*/ -1); +limit69 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 203; if (true) break; @@ -3085,9 +1217,8 @@ if (true) break; case 60: //C this.state = 204; -RDebugUtils.currentLine=8650869; - //BA.debugLineNum = 8650869;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 798;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -3095,78 +1226,58 @@ case 61: //C this.state = 68; ; -RDebugUtils.currentLine=8650871; - //BA.debugLineNum = 8650871;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8650872; - //BA.debugLineNum = 8650872;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8650873; - //BA.debugLineNum = 8650873;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=8650874; - //BA.debugLineNum = 8650874;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8650875; - //BA.debugLineNum = 8650875;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=8650876; - //BA.debugLineNum = 8650876;BA.debugLine="Printer1.WriteString( ptot & CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=8650877; - //BA.debugLineNum = 8650877;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=8650878; - //BA.debugLineNum = 8650878;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=8650879; - //BA.debugLineNum = 8650879;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; + //BA.debugLineNum = 800;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 801;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco); + //BA.debugLineNum = 802;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 803;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 804;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 805;BA.debugLine="Printer1.WriteString( ptot & CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 806;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 807;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 808;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; if (true) break; case 63: //C this.state = 64; -RDebugUtils.currentLine=8650883; - //BA.debugLineNum = 8650883;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8650884; - //BA.debugLineNum = 8650884;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=8650886; - //BA.debugLineNum = 8650886;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue"; + //BA.debugLineNum = 812;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 813;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; +parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 815;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue"; _vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=8650887; - //BA.debugLineNum = 8650887;BA.debugLine="vc5.Position = 0"; +_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("HVD_PROID")))+"'")))); + //BA.debugLineNum = 816;BA.debugLine="vc5.Position = 0"; _vc5.setPosition((int) (0)); -RDebugUtils.currentLine=8650888; - //BA.debugLineNum = 8650888;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get"; + //BA.debugLineNum = 817;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get"; _punit = parent.__c.NumberFormat2((double)(Double.parseDouble((_vc5.GetString("CAT_GP_PRECIO")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8650889; - //BA.debugLineNum = 8650889;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8650890; - //BA.debugLineNum = 8650890;BA.debugLine="vc5.Close"; + //BA.debugLineNum = 818;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 819;BA.debugLine="vc5.Close"; _vc5.Close(); -RDebugUtils.currentLine=8650892; - //BA.debugLineNum = 8650892;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; -_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8650893; - //BA.debugLineNum = 8650893;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8650895; - //BA.debugLineNum = 8650895;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=8650897; - //BA.debugLineNum = 8650897;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 821;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; +_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 822;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 824;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 826;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 64: //for this.state = 67; step92 = 1; -limit92 = (int) (__ref._espacio /*int*/ -1); +limit92 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 205; if (true) break; @@ -3186,9 +1297,8 @@ if (true) break; case 66: //C this.state = 206; -RDebugUtils.currentLine=8650898; - //BA.debugLineNum = 8650898;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 827;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -3196,36 +1306,26 @@ case 67: //C this.state = 68; ; -RDebugUtils.currentLine=8650900; - //BA.debugLineNum = 8650900;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8650901; - //BA.debugLineNum = 8650901;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8650902; - //BA.debugLineNum = 8650902;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=8650903; - //BA.debugLineNum = 8650903;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8650904; - //BA.debugLineNum = 8650904;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=8650905; - //BA.debugLineNum = 8650905;BA.debugLine="Printer1.WriteString(ptot& CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=8650906; - //BA.debugLineNum = 8650906;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=8650907; - //BA.debugLineNum = 8650907;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=8650908; - //BA.debugLineNum = 8650908;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=8650909; - //BA.debugLineNum = 8650909;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); + //BA.debugLineNum = 829;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 830;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco); + //BA.debugLineNum = 831;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 832;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 833;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 834;BA.debugLine="Printer1.WriteString(ptot& CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 835;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 836;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 837;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 838;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); if (true) break; case 68: @@ -3245,12 +1345,10 @@ case 70: //C this.state = 71; ; -RDebugUtils.currentLine=8650913; - //BA.debugLineNum = 8650913;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8650914; - //BA.debugLineNum = 8650914;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); + //BA.debugLineNum = 842;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 843;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); if (true) break; case 71: @@ -3263,44 +1361,37 @@ case 72: //C this.state = 73; ; -RDebugUtils.currentLine=8650918; - //BA.debugLineNum = 8650918;BA.debugLine="s.Close"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=8650919; - //BA.debugLineNum = 8650919;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' and HVD_BCREDITO = '1' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID")))); -RDebugUtils.currentLine=8650921; - //BA.debugLineNum = 8650921;BA.debugLine="If S.RowCount>0 Then"; + //BA.debugLineNum = 847;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 848;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' and HVD_BCREDITO = '1' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID")))); + //BA.debugLineNum = 850;BA.debugLine="If S.RowCount>0 Then"; if (true) break; case 73: //if this.state = 100; -if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._s.getRowCount()>0) { this.state = 75; }if (true) break; case 75: //C this.state = 76; -RDebugUtils.currentLine=8650922; - //BA.debugLineNum = 8650922;BA.debugLine="Printer1.WriteString(\"---PROMOS ENTREGA CREDITO-"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"---PROMOS ENTREGA CREDITO----"+parent.__c.CRLF); -RDebugUtils.currentLine=8650923; - //BA.debugLineNum = 8650923;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant. Precio Importe"+parent.__c.CRLF); -RDebugUtils.currentLine=8650924; - //BA.debugLineNum = 8650924;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=8650926; - //BA.debugLineNum = 8650926;BA.debugLine="For i=0 To S.RowCount -1"; + //BA.debugLineNum = 851;BA.debugLine="Printer1.WriteString(\"---PROMOS ENTREGA CREDITO-"; +parent._printer1._writestring /*String*/ ("---PROMOS ENTREGA CREDITO----"+parent.__c.CRLF); + //BA.debugLineNum = 852;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; +parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF); + //BA.debugLineNum = 853;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 855;BA.debugLine="For i=0 To S.RowCount -1"; if (true) break; case 76: //for this.state = 99; step118 = 1; -limit118 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit118 = (int) (parent._s.getRowCount()-1); _i = (int) (0) ; this.state = 207; if (true) break; @@ -3320,31 +1411,28 @@ if (true) break; case 78: //C this.state = 79; -RDebugUtils.currentLine=8650927; - //BA.debugLineNum = 8650927;BA.debugLine="S.Position=i"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=8650928; - //BA.debugLineNum = 8650928;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R"; + //BA.debugLineNum = 856;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 857;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R"; if (true) break; case 79: //if this.state = 98; -if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { +if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) { this.state = 81; }if (true) break; case 81: //C this.state = 82; -RDebugUtils.currentLine=8650931; - //BA.debugLineNum = 8650931;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; + //BA.debugLineNum = 860;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; if (true) break; case 82: //if this.state = 97; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { this.state = 84; }else { this.state = 96; @@ -3353,17 +1441,15 @@ this.state = 96; case 84: //C this.state = 85; -RDebugUtils.currentLine=8650933; - //BA.debugLineNum = 8650933;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8650934; - //BA.debugLineNum = 8650934;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString("; + //BA.debugLineNum = 862;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 863;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString("; if (true) break; case 85: //if this.state = 94; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"))) { +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._s.GetString("HVD_PROID"))) { this.state = 87; }else { this.state = 89; @@ -3372,44 +1458,35 @@ this.state = 89; case 87: //C this.state = 94; -RDebugUtils.currentLine=8650935; - //BA.debugLineNum = 8650935;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"* "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 864;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P"; +parent._printer1._writestring /*String*/ ("* "+parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); if (true) break; case 89: //C this.state = 90; -RDebugUtils.currentLine=8650937; - //BA.debugLineNum = 8650937;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=8650939; - //BA.debugLineNum = 8650939;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR"; -_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8650940; - //BA.debugLineNum = 8650940;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8650943; - //BA.debugLineNum = 8650943;BA.debugLine="Private ptot As String = NumberFormat2((puni"; -_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8650944; - //BA.debugLineNum = 8650944;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8650947; - //BA.debugLineNum = 8650947;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=8650948; - //BA.debugLineNum = 8650948;BA.debugLine="Log(ESPACIO)"; -parent.__c.LogImpl("28650948",BA.NumberToString(__ref._espacio /*int*/ ),0); -RDebugUtils.currentLine=8650949; - //BA.debugLineNum = 8650949;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 866;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; +parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 868;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR"; +_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 869;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 872;BA.debugLine="Private ptot As String = NumberFormat2((puni"; +_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 873;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 876;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 877;BA.debugLine="Log(ESPACIO)"; +parent.__c.LogImpl("08913092",BA.NumberToString(parent._espacio),0); + //BA.debugLineNum = 878;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 90: //for this.state = 93; step133 = 1; -limit133 = (int) (__ref._espacio /*int*/ -1); +limit133 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 209; if (true) break; @@ -3429,9 +1506,8 @@ if (true) break; case 92: //C this.state = 210; -RDebugUtils.currentLine=8650950; - //BA.debugLineNum = 8650950;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 879;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -3439,36 +1515,26 @@ case 93: //C this.state = 94; ; -RDebugUtils.currentLine=8650952; - //BA.debugLineNum = 8650952;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8650953; - //BA.debugLineNum = 8650953;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8650954; - //BA.debugLineNum = 8650954;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=8650955; - //BA.debugLineNum = 8650955;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8650956; - //BA.debugLineNum = 8650956;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=8650957; - //BA.debugLineNum = 8650957;BA.debugLine="Printer1.WriteString(ptot & CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=8650958; - //BA.debugLineNum = 8650958;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=8650959; - //BA.debugLineNum = 8650959;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=8650960; - //BA.debugLineNum = 8650960;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=8650961; - //BA.debugLineNum = 8650961;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); + //BA.debugLineNum = 881;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 882;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco); + //BA.debugLineNum = 883;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 884;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 885;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 886;BA.debugLine="Printer1.WriteString(ptot & CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 887;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 888;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 889;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 890;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); if (true) break; case 94: @@ -3505,35 +1571,29 @@ case 100: //C this.state = 101; ; -RDebugUtils.currentLine=8650973; - //BA.debugLineNum = 8650973;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO <> '1' "))); -RDebugUtils.currentLine=8650974; - //BA.debugLineNum = 8650974;BA.debugLine="Log(c.RowCount&\"------------------\")"; -parent.__c.LogImpl("28650974",BA.NumberToString(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount())+"------------------",0); -RDebugUtils.currentLine=8650975; - //BA.debugLineNum = 8650975;BA.debugLine="If c.RowCount > 0 Then"; + //BA.debugLineNum = 902;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO <> '1' "))); + //BA.debugLineNum = 903;BA.debugLine="Log(c.RowCount&\"------------------\")"; +parent.__c.LogImpl("08913118",BA.NumberToString(parent._c.getRowCount())+"------------------",0); + //BA.debugLineNum = 904;BA.debugLine="If c.RowCount > 0 Then"; if (true) break; case 101: //if this.state = 134; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._c.getRowCount()>0) { this.state = 103; }if (true) break; case 103: //C this.state = 104; -RDebugUtils.currentLine=8650977; - //BA.debugLineNum = 8650977;BA.debugLine="Dim c2 As Cursor= Starter.skmt.ExecQuery(\"SELECT"; + //BA.debugLineNum = 906;BA.debugLine="Dim c2 As Cursor= Starter.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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT iFNULL(SUM(HVD_CANT),0) AS HVD_CANT, iFNULL(SUM(HVD_RECHAZOCANT),0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO <> '1' "))); -RDebugUtils.currentLine=8650978; - //BA.debugLineNum = 8650978;BA.debugLine="c2.Position = 0"; + //BA.debugLineNum = 907;BA.debugLine="c2.Position = 0"; _c2.setPosition((int) (0)); -RDebugUtils.currentLine=8650979; - //BA.debugLineNum = 8650979;BA.debugLine="If c2.GetInt(\"HVD_CANT\") - c2.GetInt(\"HVD_RECHAZ"; + //BA.debugLineNum = 908;BA.debugLine="If c2.GetInt(\"HVD_CANT\") - c2.GetInt(\"HVD_RECHAZ"; if (true) break; case 104: @@ -3546,47 +1606,41 @@ this.state = 106; case 106: //C this.state = 107; -RDebugUtils.currentLine=8650980; - //BA.debugLineNum = 8650980;BA.debugLine="Printer1.WriteString(\"--------ENTREGA CONTADO--"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------ENTREGA CONTADO-------"+parent.__c.CRLF); -RDebugUtils.currentLine=8650983; - //BA.debugLineNum = 8650983;BA.debugLine="Printer1.WriteString(\"Cant. Precio"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant. Precio Importe"+parent.__c.CRLF); -RDebugUtils.currentLine=8650984; - //BA.debugLineNum = 8650984;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 909;BA.debugLine="Printer1.WriteString(\"--------ENTREGA CONTADO--"; +parent._printer1._writestring /*String*/ ("--------ENTREGA CONTADO-------"+parent.__c.CRLF); + //BA.debugLineNum = 912;BA.debugLine="Printer1.WriteString(\"Cant. Precio"; +parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF); + //BA.debugLineNum = 913;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); if (true) break; case 107: //C this.state = 108; ; -RDebugUtils.currentLine=8650989; - //BA.debugLineNum = 8650989;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_BCREDITO <> '1' order by HVD_PROID")))); -RDebugUtils.currentLine=8650990; - //BA.debugLineNum = 8650990;BA.debugLine="If S.RowCount>0 Then"; + //BA.debugLineNum = 918;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_BCREDITO <> '1' order by HVD_PROID")))); + //BA.debugLineNum = 919;BA.debugLine="If S.RowCount>0 Then"; if (true) break; case 108: //if this.state = 133; -if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._s.getRowCount()>0) { this.state = 110; }if (true) break; case 110: //C this.state = 111; -RDebugUtils.currentLine=8650991; - //BA.debugLineNum = 8650991;BA.debugLine="For i=0 To S.RowCount -1"; + //BA.debugLineNum = 920;BA.debugLine="For i=0 To S.RowCount -1"; if (true) break; case 111: //for this.state = 132; step164 = 1; -limit164 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit164 = (int) (parent._s.getRowCount()-1); _i = (int) (0) ; this.state = 211; if (true) break; @@ -3606,76 +1660,60 @@ if (true) break; case 113: //C this.state = 114; -RDebugUtils.currentLine=8650992; - //BA.debugLineNum = 8650992;BA.debugLine="S.Position=i"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=8650993; - //BA.debugLineNum = 8650993;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))"; -parent.__c.LogImpl("28650993",__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO"),0); -RDebugUtils.currentLine=8650994; - //BA.debugLineNum = 8650994;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_"; + //BA.debugLineNum = 921;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 922;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))"; +parent.__c.LogImpl("08913137",parent._s.GetString("HVD_RECHAZO"),0); + //BA.debugLineNum = 923;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_"; if (true) break; case 114: //if this.state = 131; -if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { +if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) { this.state = 116; }if (true) break; case 116: //C this.state = 117; -RDebugUtils.currentLine=8650997; - //BA.debugLineNum = 8650997;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm"; + //BA.debugLineNum = 926;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm"; if (true) break; case 117: //if this.state = 130; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { this.state = 119; -}else -{RDebugUtils.currentLine=8651025; - //BA.debugLineNum = 8651025;BA.debugLine="Else If s.GetString(\"HVD_RECHAZO\") = 1 Then"; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { +}else if((parent._s.GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { this.state = 125; -}} -if (true) break; +}if (true) break; case 119: //C this.state = 120; -RDebugUtils.currentLine=8650999; - //BA.debugLineNum = 8650999;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8651000; - //BA.debugLineNum = 8651000;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=8651003; - //BA.debugLineNum = 8651003;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST"; -_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8651004; - //BA.debugLineNum = 8651004;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8651007; - //BA.debugLineNum = 8651007;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; -_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8651008; - //BA.debugLineNum = 8651008;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8651010; - //BA.debugLineNum = 8651010;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=8651012; - //BA.debugLineNum = 8651012;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 928;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 929;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; +parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 932;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST"; +_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 933;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 936;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; +_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 937;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 939;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 941;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 120: //for this.state = 123; step176 = 1; -limit176 = (int) (__ref._espacio /*int*/ -1); +limit176 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 213; if (true) break; @@ -3695,9 +1733,8 @@ if (true) break; case 122: //C this.state = 214; -RDebugUtils.currentLine=8651013; - //BA.debugLineNum = 8651013;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 942;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -3705,78 +1742,58 @@ case 123: //C this.state = 130; ; -RDebugUtils.currentLine=8651015; - //BA.debugLineNum = 8651015;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8651016; - //BA.debugLineNum = 8651016;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8651017; - //BA.debugLineNum = 8651017;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=8651018; - //BA.debugLineNum = 8651018;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8651019; - //BA.debugLineNum = 8651019;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=8651020; - //BA.debugLineNum = 8651020;BA.debugLine="Printer1.WriteString( ptot & CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=8651021; - //BA.debugLineNum = 8651021;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=8651022; - //BA.debugLineNum = 8651022;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=8651023; - //BA.debugLineNum = 8651023;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; + //BA.debugLineNum = 944;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 945;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco); + //BA.debugLineNum = 946;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 947;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 948;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 949;BA.debugLine="Printer1.WriteString( ptot & CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 950;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 951;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 952;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; if (true) break; case 125: //C this.state = 126; -RDebugUtils.currentLine=8651027; - //BA.debugLineNum = 8651027;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8651028; - //BA.debugLineNum = 8651028;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=8651030; - //BA.debugLineNum = 8651030;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue"; + //BA.debugLineNum = 956;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 957;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; +parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 959;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue"; _vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=8651031; - //BA.debugLineNum = 8651031;BA.debugLine="vc5.Position = 0"; +_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("HVD_PROID")))+"'")))); + //BA.debugLineNum = 960;BA.debugLine="vc5.Position = 0"; _vc5.setPosition((int) (0)); -RDebugUtils.currentLine=8651032; - //BA.debugLineNum = 8651032;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get"; + //BA.debugLineNum = 961;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get"; _punit = parent.__c.NumberFormat2((double)(Double.parseDouble((_vc5.GetString("CAT_GP_PRECIO")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8651033; - //BA.debugLineNum = 8651033;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8651034; - //BA.debugLineNum = 8651034;BA.debugLine="vc5.Close"; + //BA.debugLineNum = 962;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 963;BA.debugLine="vc5.Close"; _vc5.Close(); -RDebugUtils.currentLine=8651036; - //BA.debugLineNum = 8651036;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; -_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8651037; - //BA.debugLineNum = 8651037;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8651039; - //BA.debugLineNum = 8651039;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=8651041; - //BA.debugLineNum = 8651041;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 965;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; +_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 966;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 968;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 970;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 126: //for this.state = 129; step199 = 1; -limit199 = (int) (__ref._espacio /*int*/ -1); +limit199 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 215; if (true) break; @@ -3796,9 +1813,8 @@ if (true) break; case 128: //C this.state = 216; -RDebugUtils.currentLine=8651042; - //BA.debugLineNum = 8651042;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 971;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -3806,36 +1822,26 @@ case 129: //C this.state = 130; ; -RDebugUtils.currentLine=8651044; - //BA.debugLineNum = 8651044;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8651045; - //BA.debugLineNum = 8651045;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8651046; - //BA.debugLineNum = 8651046;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=8651047; - //BA.debugLineNum = 8651047;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8651048; - //BA.debugLineNum = 8651048;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=8651049; - //BA.debugLineNum = 8651049;BA.debugLine="Printer1.WriteString(ptot& CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=8651050; - //BA.debugLineNum = 8651050;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=8651051; - //BA.debugLineNum = 8651051;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=8651052; - //BA.debugLineNum = 8651052;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=8651053; - //BA.debugLineNum = 8651053;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); + //BA.debugLineNum = 973;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 974;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco); + //BA.debugLineNum = 975;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 976;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 977;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 978;BA.debugLine="Printer1.WriteString(ptot& CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 979;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 980;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 981;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 982;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); if (true) break; case 130: @@ -3855,12 +1861,10 @@ case 132: //C this.state = 133; ; -RDebugUtils.currentLine=8651057; - //BA.debugLineNum = 8651057;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8651058; - //BA.debugLineNum = 8651058;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); + //BA.debugLineNum = 986;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 987;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); if (true) break; case 133: @@ -3873,44 +1877,37 @@ case 134: //C this.state = 135; ; -RDebugUtils.currentLine=8651062; - //BA.debugLineNum = 8651062;BA.debugLine="s.Close"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=8651063; - //BA.debugLineNum = 8651063;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' and HVD_BCREDITO <> '1' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID")))); -RDebugUtils.currentLine=8651065; - //BA.debugLineNum = 8651065;BA.debugLine="If S.RowCount>0 Then"; + //BA.debugLineNum = 991;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 992;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' and HVD_BCREDITO <> '1' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID")))); + //BA.debugLineNum = 994;BA.debugLine="If S.RowCount>0 Then"; if (true) break; case 135: //if this.state = 162; -if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._s.getRowCount()>0) { this.state = 137; }if (true) break; case 137: //C this.state = 138; -RDebugUtils.currentLine=8651066; - //BA.debugLineNum = 8651066;BA.debugLine="Printer1.WriteString(\"---PROMOS ENTREGA CONTADO-"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"---PROMOS ENTREGA CONTADO----"+parent.__c.CRLF); -RDebugUtils.currentLine=8651067; - //BA.debugLineNum = 8651067;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant. Precio Importe"+parent.__c.CRLF); -RDebugUtils.currentLine=8651068; - //BA.debugLineNum = 8651068;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=8651070; - //BA.debugLineNum = 8651070;BA.debugLine="For i=0 To S.RowCount -1"; + //BA.debugLineNum = 995;BA.debugLine="Printer1.WriteString(\"---PROMOS ENTREGA CONTADO-"; +parent._printer1._writestring /*String*/ ("---PROMOS ENTREGA CONTADO----"+parent.__c.CRLF); + //BA.debugLineNum = 996;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; +parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF); + //BA.debugLineNum = 997;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 999;BA.debugLine="For i=0 To S.RowCount -1"; if (true) break; case 138: //for this.state = 161; step225 = 1; -limit225 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit225 = (int) (parent._s.getRowCount()-1); _i = (int) (0) ; this.state = 217; if (true) break; @@ -3930,31 +1927,28 @@ if (true) break; case 140: //C this.state = 141; -RDebugUtils.currentLine=8651071; - //BA.debugLineNum = 8651071;BA.debugLine="S.Position=i"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=8651072; - //BA.debugLineNum = 8651072;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R"; + //BA.debugLineNum = 1000;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 1001;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R"; if (true) break; case 141: //if this.state = 160; -if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { +if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) { this.state = 143; }if (true) break; case 143: //C this.state = 144; -RDebugUtils.currentLine=8651075; - //BA.debugLineNum = 8651075;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; + //BA.debugLineNum = 1004;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; if (true) break; case 144: //if this.state = 159; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { this.state = 146; }else { this.state = 158; @@ -3963,17 +1957,15 @@ this.state = 158; case 146: //C this.state = 147; -RDebugUtils.currentLine=8651077; - //BA.debugLineNum = 8651077;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8651078; - //BA.debugLineNum = 8651078;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString("; + //BA.debugLineNum = 1006;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 1007;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString("; if (true) break; case 147: //if this.state = 156; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"))) { +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._s.GetString("HVD_PROID"))) { this.state = 149; }else { this.state = 151; @@ -3982,44 +1974,35 @@ this.state = 151; case 149: //C this.state = 156; -RDebugUtils.currentLine=8651079; - //BA.debugLineNum = 8651079;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"* "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 1008;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P"; +parent._printer1._writestring /*String*/ ("* "+parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); if (true) break; case 151: //C this.state = 152; -RDebugUtils.currentLine=8651081; - //BA.debugLineNum = 8651081;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=8651083; - //BA.debugLineNum = 8651083;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR"; -_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8651084; - //BA.debugLineNum = 8651084;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8651087; - //BA.debugLineNum = 8651087;BA.debugLine="Private ptot As String = NumberFormat2((puni"; -_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8651088; - //BA.debugLineNum = 8651088;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8651091; - //BA.debugLineNum = 8651091;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=8651092; - //BA.debugLineNum = 8651092;BA.debugLine="Log(ESPACIO)"; -parent.__c.LogImpl("28651092",BA.NumberToString(__ref._espacio /*int*/ ),0); -RDebugUtils.currentLine=8651093; - //BA.debugLineNum = 8651093;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 1010;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; +parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 1012;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR"; +_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 1013;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 1016;BA.debugLine="Private ptot As String = NumberFormat2((puni"; +_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 1017;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 1020;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 1021;BA.debugLine="Log(ESPACIO)"; +parent.__c.LogImpl("08913236",BA.NumberToString(parent._espacio),0); + //BA.debugLineNum = 1022;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 152: //for this.state = 155; step240 = 1; -limit240 = (int) (__ref._espacio /*int*/ -1); +limit240 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 219; if (true) break; @@ -4039,9 +2022,8 @@ if (true) break; case 154: //C this.state = 220; -RDebugUtils.currentLine=8651094; - //BA.debugLineNum = 8651094;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 1023;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -4049,36 +2031,26 @@ case 155: //C this.state = 156; ; -RDebugUtils.currentLine=8651096; - //BA.debugLineNum = 8651096;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8651097; - //BA.debugLineNum = 8651097;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8651098; - //BA.debugLineNum = 8651098;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=8651099; - //BA.debugLineNum = 8651099;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8651100; - //BA.debugLineNum = 8651100;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=8651101; - //BA.debugLineNum = 8651101;BA.debugLine="Printer1.WriteString(ptot & CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=8651102; - //BA.debugLineNum = 8651102;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=8651103; - //BA.debugLineNum = 8651103;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=8651104; - //BA.debugLineNum = 8651104;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=8651105; - //BA.debugLineNum = 8651105;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); + //BA.debugLineNum = 1025;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 1026;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco); + //BA.debugLineNum = 1027;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 1028;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 1029;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 1030;BA.debugLine="Printer1.WriteString(ptot & CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 1031;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 1032;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 1033;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 1034;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); if (true) break; case 156: @@ -4109,50 +2081,43 @@ case 161: //C this.state = 162; ; -RDebugUtils.currentLine=8651115; - //BA.debugLineNum = 8651115;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); + //BA.debugLineNum = 1044;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); if (true) break; case 162: //C this.state = 163; ; -RDebugUtils.currentLine=8651118; - //BA.debugLineNum = 8651118;BA.debugLine="s=Starter.skmt.ExecQuery($\"select PE_PRONOMBRE, P"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PRONOMBRE, PE_CANT, length(PE_CANT) as L_CANT, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTOU,PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order BY PE_PROID")))); -RDebugUtils.currentLine=8651120; - //BA.debugLineNum = 8651120;BA.debugLine="If S.RowCount>0 Then"; + //BA.debugLineNum = 1047;BA.debugLine="s=Starter.skmt.ExecQuery($\"select PE_PRONOMBRE, P"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PRONOMBRE, PE_CANT, length(PE_CANT) as L_CANT, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTOU,PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order BY PE_PROID")))); + //BA.debugLineNum = 1049;BA.debugLine="If S.RowCount>0 Then"; if (true) break; case 163: //if this.state = 174; -if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._s.getRowCount()>0) { this.state = 165; }if (true) break; case 165: //C this.state = 166; -RDebugUtils.currentLine=8651121; - //BA.debugLineNum = 8651121;BA.debugLine="Printer1.WriteString(\"-----------VENTA----------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-----------VENTA------------"+parent.__c.CRLF); -RDebugUtils.currentLine=8651122; - //BA.debugLineNum = 8651122;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant. Precio Importe"+parent.__c.CRLF); -RDebugUtils.currentLine=8651123; - //BA.debugLineNum = 8651123;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=8651125; - //BA.debugLineNum = 8651125;BA.debugLine="For i=0 To S.RowCount -1"; + //BA.debugLineNum = 1050;BA.debugLine="Printer1.WriteString(\"-----------VENTA----------"; +parent._printer1._writestring /*String*/ ("-----------VENTA------------"+parent.__c.CRLF); + //BA.debugLineNum = 1051;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; +parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF); + //BA.debugLineNum = 1052;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 1054;BA.debugLine="For i=0 To S.RowCount -1"; if (true) break; case 166: //for this.state = 173; step265 = 1; -limit265 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit265 = (int) (parent._s.getRowCount()-1); _i = (int) (0) ; this.state = 221; if (true) break; @@ -4172,42 +2137,32 @@ if (true) break; case 168: //C this.state = 169; -RDebugUtils.currentLine=8651126; - //BA.debugLineNum = 8651126;BA.debugLine="S.Position=i"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=8651128; - //BA.debugLineNum = 8651128;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8651129; - //BA.debugLineNum = 8651129;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE\""; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=8651132; - //BA.debugLineNum = 8651132;BA.debugLine="Dim punit As String =NumberFormat2( (s.GETSTRIN"; -_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8651133; - //BA.debugLineNum = 8651133;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8651135; - //BA.debugLineNum = 8651135;BA.debugLine="Private ptot As String = NumberFormat2((punit*s"; -_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=8651136; - //BA.debugLineNum = 8651136;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=8651139; - //BA.debugLineNum = 8651139;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=8651140; - //BA.debugLineNum = 8651140;BA.debugLine="Log(ESPACIO)"; -parent.__c.LogImpl("28651140",BA.NumberToString(__ref._espacio /*int*/ ),0); -RDebugUtils.currentLine=8651141; - //BA.debugLineNum = 8651141;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 1055;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 1057;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 1058;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE\""; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 1061;BA.debugLine="Dim punit As String =NumberFormat2( (s.GETSTRIN"; +_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("PE_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 1062;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 1064;BA.debugLine="Private ptot As String = NumberFormat2((punit*s"; +_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(parent._s.GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 1065;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 1068;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 1069;BA.debugLine="Log(ESPACIO)"; +parent.__c.LogImpl("08913284",BA.NumberToString(parent._espacio),0); + //BA.debugLineNum = 1070;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 169: //for this.state = 172; step275 = 1; -limit275 = (int) (__ref._espacio /*int*/ -1); +limit275 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 223; if (true) break; @@ -4227,9 +2182,8 @@ if (true) break; case 171: //C this.state = 224; -RDebugUtils.currentLine=8651142; - //BA.debugLineNum = 8651142;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 1071;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -4237,36 +2191,26 @@ case 172: //C this.state = 222; ; -RDebugUtils.currentLine=8651144; - //BA.debugLineNum = 8651144;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=8651145; - //BA.debugLineNum = 8651145;BA.debugLine="Printer1.WriteString( s.GetString(\"PE_CANT\") &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8651146; - //BA.debugLineNum = 8651146;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=8651147; - //BA.debugLineNum = 8651147;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=8651148; - //BA.debugLineNum = 8651148;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=8651149; - //BA.debugLineNum = 8651149;BA.debugLine="Printer1.WriteString(ptot & CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=8651150; - //BA.debugLineNum = 8651150;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=8651151; - //BA.debugLineNum = 8651151;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=8651152; - //BA.debugLineNum = 8651152;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=8651153; - //BA.debugLineNum = 8651153;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); + //BA.debugLineNum = 1073;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 1074;BA.debugLine="Printer1.WriteString( s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+parent._blanco); + //BA.debugLineNum = 1075;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 1076;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 1077;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 1078;BA.debugLine="Printer1.WriteString(ptot & CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 1079;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 1080;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 1081;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 1082;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); if (true) break; if (true) break; @@ -4274,107 +2218,81 @@ case 173: //C this.state = 174; ; -RDebugUtils.currentLine=8651156; - //BA.debugLineNum = 8651156;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); + //BA.debugLineNum = 1085;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); if (true) break; case 174: //C this.state = 175; ; -RDebugUtils.currentLine=8651158; - //BA.debugLineNum = 8651158;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=8651161; - //BA.debugLineNum = 8651161;BA.debugLine="Printer1.WriteString(\"Total Articulos: \" & L_CA"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total Articulos: "+__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=8651163; - //BA.debugLineNum = 8651163;BA.debugLine="Printer1.WriteString(\"Total credito: $\" & l_mon"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total credito: $"+__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=8651164; - //BA.debugLineNum = 8651164;BA.debugLine="Printer1.WriteString(\"Total contado: $\" & l_mon"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total contado: $"+__ref._l_montoefec /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=8651165; - //BA.debugLineNum = 8651165;BA.debugLine="Printer1.WriteString(\"Total general: $\" & l_tot"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total general: $"+__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()); -RDebugUtils.currentLine=8651168; - //BA.debugLineNum = 8651168;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=8651169; - //BA.debugLineNum = 8651169;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=8651172; - //BA.debugLineNum = 8651172;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"----ESTE TICKET NO ES UN -----"+parent.__c.CRLF); -RDebugUtils.currentLine=8651173; - //BA.debugLineNum = 8651173;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--COMPROBANTE FISCAL, SOLO ES-"+parent.__c.CRLF); -RDebugUtils.currentLine=8651174; - //BA.debugLineNum = 8651174;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------INFORMATIVO-----------"+parent.__c.CRLF); -RDebugUtils.currentLine=8651175; - //BA.debugLineNum = 8651175;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=8651176; - //BA.debugLineNum = 8651176;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=8651177; - //BA.debugLineNum = 8651177;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=8651178; - //BA.debugLineNum = 8651178;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=8651179; - //BA.debugLineNum = 8651179;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp_click"),(int) (1000)); + //BA.debugLineNum = 1087;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 1090;BA.debugLine="Printer1.WriteString(\"Total Articulos: \" & L_CA"; +parent._printer1._writestring /*String*/ ("Total Articulos: "+parent._l_cant.getText()+parent.__c.CRLF); + //BA.debugLineNum = 1092;BA.debugLine="Printer1.WriteString(\"Total credito: $\" & l_mon"; +parent._printer1._writestring /*String*/ ("Total credito: $"+parent._l_montopag.getText()+parent.__c.CRLF); + //BA.debugLineNum = 1093;BA.debugLine="Printer1.WriteString(\"Total contado: $\" & l_mon"; +parent._printer1._writestring /*String*/ ("Total contado: $"+parent._l_montoefec.getText()+parent.__c.CRLF); + //BA.debugLineNum = 1094;BA.debugLine="Printer1.WriteString(\"Total general: $\" & l_tot"; +parent._printer1._writestring /*String*/ ("Total general: $"+parent._l_total.getText()); + //BA.debugLineNum = 1097;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1098;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 1101;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --"; +parent._printer1._writestring /*String*/ ("----ESTE TICKET NO ES UN -----"+parent.__c.CRLF); + //BA.debugLineNum = 1102;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO"; +parent._printer1._writestring /*String*/ ("--COMPROBANTE FISCAL, SOLO ES-"+parent.__c.CRLF); + //BA.debugLineNum = 1103;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------"; +parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+parent.__c.CRLF); + //BA.debugLineNum = 1104;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 1105;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1106;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1107;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1108;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 225; return; case 225: //C this.state = 175; ; -RDebugUtils.currentLine=8651180; - //BA.debugLineNum = 8651180;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=8651182; - //BA.debugLineNum = 8651182;BA.debugLine="ProgressDialogHide"; + //BA.debugLineNum = 1109;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 1111;BA.debugLine="ProgressDialogHide"; parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=8651184; - //BA.debugLineNum = 8651184;BA.debugLine="If banderaimp = 1 Then"; + //BA.debugLineNum = 1113;BA.debugLine="If banderaimp = 1 Then"; if (true) break; case 175: //if this.state = 196; -if (__ref._banderaimp /*int*/ ==1) { +if (parent._banderaimp==1) { this.state = 177; -}else -{RDebugUtils.currentLine=8651201; - //BA.debugLineNum = 8651201;BA.debugLine="Else If banderaimp = 0 Then"; -if (__ref._banderaimp /*int*/ ==0) { +}else if(parent._banderaimp==0) { this.state = 191; -}} -if (true) break; +}if (true) break; case 177: //C this.state = 178; -RDebugUtils.currentLine=8651185; - //BA.debugLineNum = 8651185;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; + //BA.debugLineNum = 1114;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=8651186; - //BA.debugLineNum = 8651186;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp_click"), null); + //BA.debugLineNum = 1115;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 226; return; case 226: //C this.state = 178; -_resultado = (Integer) result[1]; +_resultado = (Integer) result[0]; ; -RDebugUtils.currentLine=8651187; - //BA.debugLineNum = 8651187;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; + //BA.debugLineNum = 1116;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; if (true) break; case 178: @@ -4389,19 +2307,16 @@ this.state = 182; case 180: //C this.state = 189; -RDebugUtils.currentLine=8651188; - //BA.debugLineNum = 8651188;BA.debugLine="B_IMP_Click"; -__ref._b_imp_click /*void*/ (null); + //BA.debugLineNum = 1117;BA.debugLine="B_IMP_Click"; +parent._b_imp_click(); if (true) break; case 182: //C this.state = 183; -RDebugUtils.currentLine=8651190; - //BA.debugLineNum = 8651190;BA.debugLine="Dim totalcredito As Float = l_montopag.Text"; -_totalcredito = (float)(Double.parseDouble(__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())); -RDebugUtils.currentLine=8651191; - //BA.debugLineNum = 8651191;BA.debugLine="If totalcredito > 0 Then"; + //BA.debugLineNum = 1119;BA.debugLine="Dim totalcredito As Float = l_montopag.Text"; +_totalcredito = (float)(Double.parseDouble(parent._l_montopag.getText())); + //BA.debugLineNum = 1120;BA.debugLine="If totalcredito > 0 Then"; if (true) break; case 183: @@ -4416,17 +2331,15 @@ this.state = 187; case 185: //C this.state = 188; -RDebugUtils.currentLine=8651192; - //BA.debugLineNum = 8651192;BA.debugLine="imprime_pagare"; -__ref._imprime_pagare /*void*/ (null); + //BA.debugLineNum = 1121;BA.debugLine="imprime_pagare"; +parent._imprime_pagare(); if (true) break; case 187: //C this.state = 188; -RDebugUtils.currentLine=8651195; - //BA.debugLineNum = 8651195;BA.debugLine="Guardado"; -__ref._guardado /*String*/ (null); + //BA.debugLineNum = 1124;BA.debugLine="Guardado"; +parent._guardado(); if (true) break; case 188: @@ -4444,21 +2357,18 @@ this.state = 196; case 191: //C this.state = 192; -RDebugUtils.currentLine=8651202; - //BA.debugLineNum = 8651202;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; + //BA.debugLineNum = 1131;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=8651203; - //BA.debugLineNum = 8651203;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp_click"), null); + //BA.debugLineNum = 1132;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 227; return; case 227: //C this.state = 192; -_resultado = (Integer) result[1]; +_resultado = (Integer) result[0]; ; -RDebugUtils.currentLine=8651204; - //BA.debugLineNum = 8651204;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; + //BA.debugLineNum = 1133;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; if (true) break; case 192: @@ -4471,9 +2381,8 @@ this.state = 194; case 194: //C this.state = 195; -RDebugUtils.currentLine=8651205; - //BA.debugLineNum = 8651205;BA.debugLine="B_IMP_Click"; -__ref._b_imp_click /*void*/ (null); + //BA.debugLineNum = 1134;BA.debugLine="B_IMP_Click"; +parent._b_imp_click(); if (true) break; case 195: @@ -4486,1046 +2395,21 @@ case 196: //C this.state = -1; ; -RDebugUtils.currentLine=8651210; - //BA.debugLineNum = 8651210;BA.debugLine="End Sub"; + //BA.debugLineNum = 1139;BA.debugLine="End Sub"; if (true) break; } } } } -public void _imprime_pagare(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "imprime_pagare", false)) - {Debug.delegate(ba, "imprime_pagare", null); return;} -ResumableSub_imprime_pagare rsub = new ResumableSub_imprime_pagare(this,__ref); -rsub.resume(ba, null); -} -public static class ResumableSub_imprime_pagare extends BA.ResumableSub { -public ResumableSub_imprime_pagare(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) { -this.parent = parent; -this.__ref = __ref; -this.__ref = parent; -} -reparto_izca.keymon.lat.c_cliente __ref; -reparto_izca.keymon.lat.c_cliente parent; -int _cont = 0; -String _telefono = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c7 = null; -String _ticket = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null; -int _k = 0; -int _i = 0; -int _resultado = 0; -int step59; -int limit59; -int step76; -int limit76; -int step100; -int limit100; - -@Override -public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cliente"; - - while (true) { - switch (state) { - case -1: -return; - -case 0: -//C -this.state = 1; -RDebugUtils.currentLine=9830401; - //BA.debugLineNum = 9830401;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); -RDebugUtils.currentLine=9830402; - //BA.debugLineNum = 9830402;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9830403; - //BA.debugLineNum = 9830403;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=9830404; - //BA.debugLineNum = 9830404;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; -parent.__c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=9830405; - //BA.debugLineNum = 9830405;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=9830406; - //BA.debugLineNum = 9830406;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=9830407; - //BA.debugLineNum = 9830407;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9830438; - //BA.debugLineNum = 9830438;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; -parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); -RDebugUtils.currentLine=9830439; - //BA.debugLineNum = 9830439;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=9830440; - //BA.debugLineNum = 9830440;BA.debugLine="If Not(Printer1.IsConnected) Then"; -if (true) break; - -case 1: -//if -this.state = 38; -if (parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { -this.state = 3; -}else { -this.state = 21; -}if (true) break; - -case 3: -//C -this.state = 4; -RDebugUtils.currentLine=9830442; - //BA.debugLineNum = 9830442;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=9830443; - //BA.debugLineNum = 9830443;BA.debugLine="Private cont As Int = 0"; -_cont = (int) (0); -RDebugUtils.currentLine=9830444; - //BA.debugLineNum = 9830444;BA.debugLine="Do While Not(impresoraConectada)"; -if (true) break; - -case 4: -//do while -this.state = 19; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ )) { -this.state = 6; -if (true) break; -} -if (true) break; - -case 6: -//C -this.state = 7; -RDebugUtils.currentLine=9830445; - //BA.debugLineNum = 9830445;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (1000)); -this.state = 117; -return; -case 117: -//C -this.state = 7; -; -RDebugUtils.currentLine=9830446; - //BA.debugLineNum = 9830446;BA.debugLine="cont = cont + 1"; -_cont = (int) (_cont+1); -RDebugUtils.currentLine=9830447; - //BA.debugLineNum = 9830447;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; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -if (true) break; - -case 12: -//C -this.state = 13; -; -RDebugUtils.currentLine=9830448; - //BA.debugLineNum = 9830448;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; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; -if (true) break; - -case 18: -//C -this.state = 4; -; - if (true) break; - -case 19: -//C -this.state = 38; -; -RDebugUtils.currentLine=9830450; - //BA.debugLineNum = 9830450;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (500)); -this.state = 118; -return; -case 118: -//C -this.state = 38; -; -RDebugUtils.currentLine=9830451; - //BA.debugLineNum = 9830451;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; - if (true) break; - -case 21: -//C -this.state = 22; -RDebugUtils.currentLine=9830454; - //BA.debugLineNum = 9830454;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=9830455; - //BA.debugLineNum = 9830455;BA.debugLine="Private cont As Int = 0"; -_cont = (int) (0); -RDebugUtils.currentLine=9830456; - //BA.debugLineNum = 9830456;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; -if (true) break; - -case 22: -//do while -this.state = 37; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ ) || parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { -this.state = 24; -if (true) break; -} -if (true) break; - -case 24: -//C -this.state = 25; -RDebugUtils.currentLine=9830457; - //BA.debugLineNum = 9830457;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (1000)); -this.state = 119; -return; -case 119: -//C -this.state = 25; -; -RDebugUtils.currentLine=9830458; - //BA.debugLineNum = 9830458;BA.debugLine="cont = cont + 1"; -_cont = (int) (_cont+1); -RDebugUtils.currentLine=9830459; - //BA.debugLineNum = 9830459;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; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -if (true) break; - -case 30: -//C -this.state = 31; -; -RDebugUtils.currentLine=9830460; - //BA.debugLineNum = 9830460;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; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; -if (true) break; - -case 36: -//C -this.state = 22; -; - if (true) break; - -case 37: -//C -this.state = 38; -; -RDebugUtils.currentLine=9830462; - //BA.debugLineNum = 9830462;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (500)); -this.state = 120; -return; -case 120: -//C -this.state = 38; -; -RDebugUtils.currentLine=9830463; - //BA.debugLineNum = 9830463;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; - if (true) break; - -case 38: -//C -this.state = 39; -; -RDebugUtils.currentLine=9830466; - //BA.debugLineNum = 9830466;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=9830467; - //BA.debugLineNum = 9830467;BA.debugLine="ESPACIO = 28"; -__ref._espacio /*int*/ = (int) (28); -RDebugUtils.currentLine=9830468; - //BA.debugLineNum = 9830468;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=9830470; - //BA.debugLineNum = 9830470;BA.debugLine="Dim telefono As String = \"\""; -_telefono = ""; -RDebugUtils.currentLine=9830471; - //BA.debugLineNum = 9830471;BA.debugLine="Dim c7 As Cursor = Starter.skmt.ExecQuery(\"select"; -_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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_TELEFONO,' ') AS CAT_CL_TELEFONO FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9830472; - //BA.debugLineNum = 9830472;BA.debugLine="If c7.RowCount > 0 Then"; -if (true) break; - -case 39: -//if -this.state = 42; -if (_c7.getRowCount()>0) { -this.state = 41; -}if (true) break; - -case 41: -//C -this.state = 42; -RDebugUtils.currentLine=9830473; - //BA.debugLineNum = 9830473;BA.debugLine="c7.Position = 0"; -_c7.setPosition((int) (0)); -RDebugUtils.currentLine=9830474; - //BA.debugLineNum = 9830474;BA.debugLine="telefono = c7.GetString(\"CAT_CL_TELEFONO\")"; -_telefono = _c7.GetString("CAT_CL_TELEFONO"); - if (true) break; - -case 42: -//C -this.state = 43; -; -RDebugUtils.currentLine=9830476; - //BA.debugLineNum = 9830476;BA.debugLine="c7.Close"; -_c7.Close(); -RDebugUtils.currentLine=9830495; - //BA.debugLineNum = 9830495;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; -parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=9830496; - //BA.debugLineNum = 9830496;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; -parent.__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=9830497; - //BA.debugLineNum = 9830497;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=9830498; - //BA.debugLineNum = 9830498;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=9830499; - //BA.debugLineNum = 9830499;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF); -RDebugUtils.currentLine=9830500; - //BA.debugLineNum = 9830500;BA.debugLine="Printer1.WriteString(sDate & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9830501; - //BA.debugLineNum = 9830501;BA.debugLine="Printer1.WriteString(sTime & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9830502; - //BA.debugLineNum = 9830502;BA.debugLine="Printer1.WriteString(\"Reparto:\" & usuario & CRLF"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Reparto:"+__ref._usuario /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9830503; - //BA.debugLineNum = 9830503;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9830504; - //BA.debugLineNum = 9830504;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9830505; - //BA.debugLineNum = 9830505;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9830506; - //BA.debugLineNum = 9830506;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9830507; - //BA.debugLineNum = 9830507;BA.debugLine="Printer1.WriteString(\"Telefono: \" & telefono & C"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Telefono: "+_telefono+parent.__c.CRLF); -RDebugUtils.currentLine=9830508; - //BA.debugLineNum = 9830508;BA.debugLine="Dim Ticket As String = 0"; -_ticket = BA.NumberToString(0); -RDebugUtils.currentLine=9830509; - //BA.debugLineNum = 9830509;BA.debugLine="Dim c6 As Cursor = Starter.skmt.ExecQuery(\"select"; -_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._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct HVD_NUM_TICKET FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PRONOMBRE <> 'Cobranza Pendiente' and HVD_BCREDITO = '1'"))); -RDebugUtils.currentLine=9830510; - //BA.debugLineNum = 9830510;BA.debugLine="If c6.RowCount > 0 Then"; -if (true) break; - -case 43: -//if -this.state = 50; -if (_c6.getRowCount()>0) { -this.state = 45; -}if (true) break; - -case 45: -//C -this.state = 46; -RDebugUtils.currentLine=9830511; - //BA.debugLineNum = 9830511;BA.debugLine="For k = 0 To c6.RowCount -1"; -if (true) break; - -case 46: -//for -this.state = 49; -step59 = 1; -limit59 = (int) (_c6.getRowCount()-1); -_k = (int) (0) ; -this.state = 121; -if (true) break; - -case 121: -//C -this.state = 49; -if ((step59 > 0 && _k <= limit59) || (step59 < 0 && _k >= limit59)) this.state = 48; -if (true) break; - -case 122: -//C -this.state = 121; -_k = ((int)(0 + _k + step59)) ; -if (true) break; - -case 48: -//C -this.state = 122; -RDebugUtils.currentLine=9830512; - //BA.debugLineNum = 9830512;BA.debugLine="c6.Position = k"; -_c6.setPosition(_k); -RDebugUtils.currentLine=9830513; - //BA.debugLineNum = 9830513;BA.debugLine="Ticket = c6.GetString(\"HVD_NUM_TICKET\")"; -_ticket = _c6.GetString("HVD_NUM_TICKET"); -RDebugUtils.currentLine=9830514; - //BA.debugLineNum = 9830514;BA.debugLine="Printer1.WriteString(\"Num. Ticket \" & (k +1)&\":"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Num. Ticket "+BA.NumberToString((_k+1))+": "+_ticket+parent.__c.CRLF); - if (true) break; -if (true) break; - -case 49: -//C -this.state = 50; -; - if (true) break; - -case 50: -//C -this.state = 51; -; -RDebugUtils.currentLine=9830517; - //BA.debugLineNum = 9830517;BA.debugLine="c6.Close"; -_c6.Close(); -RDebugUtils.currentLine=9830518; - //BA.debugLineNum = 9830518;BA.debugLine="Printer1.WriteString(\"Fecha: \" & sDate &\" \" & sT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Fecha: "+__ref._sdate /*String*/ +" "+__ref._stime /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9830519; - //BA.debugLineNum = 9830519;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9830523; - //BA.debugLineNum = 9830523;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO = '1' "))); -RDebugUtils.currentLine=9830524; - //BA.debugLineNum = 9830524;BA.debugLine="If c.RowCount > 0 Then"; -if (true) break; - -case 51: -//if -this.state = 72; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -this.state = 53; -}if (true) break; - -case 53: -//C -this.state = 54; -RDebugUtils.currentLine=9830525; - //BA.debugLineNum = 9830525;BA.debugLine="Printer1.WriteString(\"------------PAGARE--------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------PAGARE------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9830526; - //BA.debugLineNum = 9830526;BA.debugLine="Printer1.WriteString(\"\" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,""+parent.__c.CRLF); -RDebugUtils.currentLine=9830527; - //BA.debugLineNum = 9830527;BA.debugLine="Printer1.WriteString(\"Pagare por los articulos\""; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Pagare por los articulos"+parent.__c.CRLF); -RDebugUtils.currentLine=9830528; - //BA.debugLineNum = 9830528;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9830531; - //BA.debugLineNum = 9830531;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_BCREDITO = '1' order by HVD_PROID")))); -RDebugUtils.currentLine=9830532; - //BA.debugLineNum = 9830532;BA.debugLine="If S.RowCount>0 Then"; -if (true) break; - -case 54: -//if -this.state = 71; -if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -this.state = 56; -}if (true) break; - -case 56: -//C -this.state = 57; -RDebugUtils.currentLine=9830533; - //BA.debugLineNum = 9830533;BA.debugLine="For i=0 To S.RowCount -1"; -if (true) break; - -case 57: -//for -this.state = 70; -step76 = 1; -limit76 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -this.state = 123; -if (true) break; - -case 123: -//C -this.state = 70; -if ((step76 > 0 && _i <= limit76) || (step76 < 0 && _i >= limit76)) this.state = 59; -if (true) break; - -case 124: -//C -this.state = 123; -_i = ((int)(0 + _i + step76)) ; -if (true) break; - -case 59: -//C -this.state = 60; -RDebugUtils.currentLine=9830534; - //BA.debugLineNum = 9830534;BA.debugLine="S.Position=i"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9830535; - //BA.debugLineNum = 9830535;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))"; -parent.__c.LogImpl("29830535",__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO"),0); -RDebugUtils.currentLine=9830536; - //BA.debugLineNum = 9830536;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_"; -if (true) break; - -case 60: -//if -this.state = 69; -if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { -this.state = 62; -}if (true) break; - -case 62: -//C -this.state = 63; -RDebugUtils.currentLine=9830537; - //BA.debugLineNum = 9830537;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm"; -if (true) break; - -case 63: -//if -this.state = 68; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { -this.state = 65; -}else -{RDebugUtils.currentLine=9830561; - //BA.debugLineNum = 9830561;BA.debugLine="Else If s.GetString(\"HVD_RECHAZO\") = 1 Then"; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { -this.state = 67; -}} -if (true) break; - -case 65: -//C -this.state = 68; -RDebugUtils.currentLine=9830538; - //BA.debugLineNum = 9830538;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9830539; - //BA.debugLineNum = 9830539;BA.debugLine="Printer1.WriteString((s.GetString(\"HVD_CANT\""; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+" "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); - if (true) break; - -case 67: -//C -this.state = 68; -RDebugUtils.currentLine=9830562; - //BA.debugLineNum = 9830562;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9830563; - //BA.debugLineNum = 9830563;BA.debugLine="Printer1.WriteString((s.GetString(\"HVD_CANT\""; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+" "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=9830588; - //BA.debugLineNum = 9830588;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); - if (true) break; - -case 68: -//C -this.state = 69; -; - if (true) break; - -case 69: -//C -this.state = 124; -; - if (true) break; -if (true) break; - -case 70: -//C -this.state = 71; -; - if (true) break; - -case 71: -//C -this.state = 72; -; - if (true) break; - -case 72: -//C -this.state = 73; -; -RDebugUtils.currentLine=9830594; - //BA.debugLineNum = 9830594;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9830595; - //BA.debugLineNum = 9830595;BA.debugLine="s.Close"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9830596; - //BA.debugLineNum = 9830596;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9830598; - //BA.debugLineNum = 9830598;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' and HVD_BCREDITO = '1' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID")))); -RDebugUtils.currentLine=9830599; - //BA.debugLineNum = 9830599;BA.debugLine="If S.RowCount>0 Then"; -if (true) break; - -case 73: -//if -this.state = 100; -if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -this.state = 75; -}if (true) break; - -case 75: -//C -this.state = 76; -RDebugUtils.currentLine=9830600; - //BA.debugLineNum = 9830600;BA.debugLine="Printer1.WriteString(\"-------PROMOS ENTREGA-----"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-------PROMOS ENTREGA--------"+parent.__c.CRLF); -RDebugUtils.currentLine=9830601; - //BA.debugLineNum = 9830601;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant. Precio Importe"+parent.__c.CRLF); -RDebugUtils.currentLine=9830602; - //BA.debugLineNum = 9830602;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9830603; - //BA.debugLineNum = 9830603;BA.debugLine="For i=0 To S.RowCount -1"; -if (true) break; - -case 76: -//for -this.state = 99; -step100 = 1; -limit100 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -this.state = 125; -if (true) break; - -case 125: -//C -this.state = 99; -if ((step100 > 0 && _i <= limit100) || (step100 < 0 && _i >= limit100)) this.state = 78; -if (true) break; - -case 126: -//C -this.state = 125; -_i = ((int)(0 + _i + step100)) ; -if (true) break; - -case 78: -//C -this.state = 79; -RDebugUtils.currentLine=9830604; - //BA.debugLineNum = 9830604;BA.debugLine="S.Position=i"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9830605; - //BA.debugLineNum = 9830605;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R"; -if (true) break; - -case 79: -//if -this.state = 98; -if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { -this.state = 81; -}if (true) break; - -case 81: -//C -this.state = 82; -RDebugUtils.currentLine=9830606; - //BA.debugLineNum = 9830606;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; -if (true) break; - -case 82: -//if -this.state = 97; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { -this.state = 84; -}else { -this.state = 96; -}if (true) break; - -case 84: -//C -this.state = 85; -RDebugUtils.currentLine=9830607; - //BA.debugLineNum = 9830607;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9830608; - //BA.debugLineNum = 9830608;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString("; -if (true) break; - -case 85: -//if -this.state = 94; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"))) { -this.state = 87; -}else { -this.state = 89; -}if (true) break; - -case 87: -//C -this.state = 94; - if (true) break; - -case 89: -//C -this.state = 90; -RDebugUtils.currentLine=9830611; - //BA.debugLineNum = 9830611;BA.debugLine="If s.GetString(\"HVD_PRONOMBRE\") <> \"Cobranza"; -if (true) break; - -case 90: -//if -this.state = 93; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")).equals("Cobranza Pendiente") == false) { -this.state = 92; -}if (true) break; - -case 92: -//C -this.state = 93; -RDebugUtils.currentLine=9830613; - //BA.debugLineNum = 9830613;BA.debugLine="Printer1.WriteString((s.GetString(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+" "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); - if (true) break; - -case 93: -//C -this.state = 94; -; - if (true) break; - -case 94: -//C -this.state = 97; -; -RDebugUtils.currentLine=9830634; - //BA.debugLineNum = 9830634;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); - if (true) break; - -case 96: -//C -this.state = 97; - if (true) break; - -case 97: -//C -this.state = 98; -; - if (true) break; - -case 98: -//C -this.state = 126; -; - if (true) break; -if (true) break; - -case 99: -//C -this.state = 100; -; - if (true) break; - -case 100: -//C -this.state = 101; -; -RDebugUtils.currentLine=9830641; - //BA.debugLineNum = 9830641;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9830642; - //BA.debugLineNum = 9830642;BA.debugLine="Printer1.WriteString(\"Por monto de $\" &l_montopag"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Por monto de $"+__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9830643; - //BA.debugLineNum = 9830643;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9830644; - //BA.debugLineNum = 9830644;BA.debugLine="Printer1.WriteString(\"Debo(mos) y pagare(mos) inc"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Debo(mos) y pagare(mos) incon"+parent.__c.CRLF); -RDebugUtils.currentLine=9830645; - //BA.debugLineNum = 9830645;BA.debugLine="Printer1.WriteString(\"dicionalmente en __________"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"dicionalmente en _____________"+parent.__c.CRLF); -RDebugUtils.currentLine=9830646; - //BA.debugLineNum = 9830646;BA.debugLine="Printer1.WriteString(\"o en el lugar donde se me \""; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"o en el lugar donde se me "+parent.__c.CRLF); -RDebugUtils.currentLine=9830647; - //BA.debugLineNum = 9830647;BA.debugLine="Printer1.WriteString(\"requiera por el presente pa"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"requiera por el presente pagare"+parent.__c.CRLF); -RDebugUtils.currentLine=9830648; - //BA.debugLineNum = 9830648;BA.debugLine="Printer1.WriteString(\"a Izca Distribuciones la \"&"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"a Izca Distribuciones la "+parent.__c.CRLF); -RDebugUtils.currentLine=9830649; - //BA.debugLineNum = 9830649;BA.debugLine="Printer1.WriteString(\"cantidad de $\"&l_montopag.T"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"cantidad de $"+__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9830650; - //BA.debugLineNum = 9830650;BA.debugLine="Printer1.WriteString(\"valor recibido a entera \" &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"valor recibido a entera "+parent.__c.CRLF); -RDebugUtils.currentLine=9830651; - //BA.debugLineNum = 9830651;BA.debugLine="Printer1.WriteString(\"satisfaccion. La falta de p"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"satisfaccion. La falta de pago"+parent.__c.CRLF); -RDebugUtils.currentLine=9830652; - //BA.debugLineNum = 9830652;BA.debugLine="Printer1.WriteString(\"a la fecha indicada causara"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"a la fecha indicada causara "+parent.__c.CRLF); -RDebugUtils.currentLine=9830653; - //BA.debugLineNum = 9830653;BA.debugLine="Printer1.WriteString(\"intereses moratorios a razo"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"intereses moratorios a razon "+parent.__c.CRLF); -RDebugUtils.currentLine=9830654; - //BA.debugLineNum = 9830654;BA.debugLine="Printer1.WriteString(\"de ______% mensual a la fec"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"de ______% mensual a la fecha."+parent.__c.CRLF); -RDebugUtils.currentLine=9830655; - //BA.debugLineNum = 9830655;BA.debugLine="Printer1.WriteString(\"\" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,""+parent.__c.CRLF); -RDebugUtils.currentLine=9830656; - //BA.debugLineNum = 9830656;BA.debugLine="Printer1.WriteString(\"\" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,""+parent.__c.CRLF); -RDebugUtils.currentLine=9830657; - //BA.debugLineNum = 9830657;BA.debugLine="Printer1.WriteString(\" Recibi"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," Recibi "+parent.__c.CRLF); -RDebugUtils.currentLine=9830658; - //BA.debugLineNum = 9830658;BA.debugLine="Printer1.WriteString(\"\" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,""+parent.__c.CRLF); -RDebugUtils.currentLine=9830659; - //BA.debugLineNum = 9830659;BA.debugLine="Printer1.WriteString(\"\" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,""+parent.__c.CRLF); -RDebugUtils.currentLine=9830660; - //BA.debugLineNum = 9830660;BA.debugLine="Printer1.WriteString(\"___________________________"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"______________________________"+parent.__c.CRLF); -RDebugUtils.currentLine=9830662; - //BA.debugLineNum = 9830662;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9830663; - //BA.debugLineNum = 9830663;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9830664; - //BA.debugLineNum = 9830664;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9830665; - //BA.debugLineNum = 9830665;BA.debugLine="DateTime.DateFormat = \"ddMMyyyy\""; -parent.__c.DateTime.setDateFormat("ddMMyyyy"); -RDebugUtils.currentLine=9830666; - //BA.debugLineNum = 9830666;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=9830668; - //BA.debugLineNum = 9830668;BA.debugLine="Printer1.WriteBarCode(\"I\",Ticket&sDate)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writebarcode /*String*/ (null,"I",_ticket+__ref._sdate /*String*/ ); -RDebugUtils.currentLine=9830670; - //BA.debugLineNum = 9830670;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9830671; - //BA.debugLineNum = 9830671;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9830672; - //BA.debugLineNum = 9830672;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9830673; - //BA.debugLineNum = 9830673;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"),(int) (1000)); -this.state = 127; -return; -case 127: -//C -this.state = 101; -; -RDebugUtils.currentLine=9830674; - //BA.debugLineNum = 9830674;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=9830675; - //BA.debugLineNum = 9830675;BA.debugLine="ProgressDialogHide"; -parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=9830676; - //BA.debugLineNum = 9830676;BA.debugLine="If banderaimp = 1 Then"; -if (true) break; - -case 101: -//if -this.state = 116; -if (__ref._banderaimp /*int*/ ==1) { -this.state = 103; -}else -{RDebugUtils.currentLine=9830686; - //BA.debugLineNum = 9830686;BA.debugLine="Else If banderaimp = 0 Then"; -if (__ref._banderaimp /*int*/ ==0) { -this.state = 111; -}} -if (true) break; - -case 103: -//C -this.state = 104; -RDebugUtils.currentLine=9830677; - //BA.debugLineNum = 9830677;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el PAGARE"; -parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el PAGARE?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=9830678; - //BA.debugLineNum = 9830678;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"), null); -this.state = 128; -return; -case 128: -//C -this.state = 104; -_resultado = (Integer) result[1]; -; -RDebugUtils.currentLine=9830679; - //BA.debugLineNum = 9830679;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; -if (true) break; - -case 104: -//if -this.state = 109; -if (_resultado==parent.__c.DialogResponse.POSITIVE) { -this.state = 106; -}else { -this.state = 108; -}if (true) break; - -case 106: -//C -this.state = 109; -RDebugUtils.currentLine=9830680; - //BA.debugLineNum = 9830680;BA.debugLine="imprime_pagare"; -__ref._imprime_pagare /*void*/ (null); - if (true) break; - -case 108: -//C -this.state = 109; -RDebugUtils.currentLine=9830682; - //BA.debugLineNum = 9830682;BA.debugLine="b_acred_Click"; -__ref._b_acred_click /*String*/ (null); - if (true) break; - -case 109: -//C -this.state = 116; -; - if (true) break; - -case 111: -//C -this.state = 112; -RDebugUtils.currentLine=9830687; - //BA.debugLineNum = 9830687;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el PAGARE"; -parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el PAGARE?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=9830688; - //BA.debugLineNum = 9830688;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "imprime_pagare"), null); -this.state = 129; -return; -case 129: -//C -this.state = 112; -_resultado = (Integer) result[1]; -; -RDebugUtils.currentLine=9830689; - //BA.debugLineNum = 9830689;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; -if (true) break; - -case 112: -//if -this.state = 115; -if (_resultado==parent.__c.DialogResponse.POSITIVE) { -this.state = 114; -}if (true) break; - -case 114: -//C -this.state = 115; -RDebugUtils.currentLine=9830690; - //BA.debugLineNum = 9830690;BA.debugLine="imprime_pagare"; -__ref._imprime_pagare /*void*/ (null); - if (true) break; - -case 115: -//C -this.state = 116; -; - if (true) break; - -case 116: -//C -this.state = -1; -; -RDebugUtils.currentLine=9830694; - //BA.debugLineNum = 9830694;BA.debugLine="End Sub"; -if (true) break; - - } - } - } -} -public void _b_imp2_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b_imp2_click", false)) - {Debug.delegate(ba, "b_imp2_click", null); return;} -ResumableSub_B_IMP2_Click rsub = new ResumableSub_B_IMP2_Click(this,__ref); +public void _b_imp2_click() throws Exception{ +ResumableSub_B_IMP2_Click rsub = new ResumableSub_B_IMP2_Click(this); rsub.resume(ba, null); } public static class ResumableSub_B_IMP2_Click extends BA.ResumableSub { -public ResumableSub_B_IMP2_Click(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) { +public ResumableSub_B_IMP2_Click(reparto_izca.keymon.lat.c_cliente parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_cliente __ref; reparto_izca.keymon.lat.c_cliente parent; int _cont = 0; int _i = 0; @@ -5551,7 +2435,6 @@ int limit166; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cliente"; while (true) { switch (state) { @@ -5561,44 +2444,33 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=9961595; - //BA.debugLineNum = 9961595;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); -RDebugUtils.currentLine=9961596; - //BA.debugLineNum = 9961596;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=9961597; - //BA.debugLineNum = 9961597;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=9961599; - //BA.debugLineNum = 9961599;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; + //BA.debugLineNum = 2597;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 2598;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 2599;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 2601;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; parent.__c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=9961600; - //BA.debugLineNum = 9961600;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\""; + //BA.debugLineNum = 2602;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\""; parent.__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=9961601; - //BA.debugLineNum = 9961601;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=9961602; - //BA.debugLineNum = 9961602;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=9961603; - //BA.debugLineNum = 9961603;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9961609; - //BA.debugLineNum = 9961609;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; + //BA.debugLineNum = 2603;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 2604;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 2605;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 2611;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); -RDebugUtils.currentLine=9961610; - //BA.debugLineNum = 9961610;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=9961611; - //BA.debugLineNum = 9961611;BA.debugLine="If Not(Printer1.IsConnected) Then"; + //BA.debugLineNum = 2612;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 2613;BA.debugLine="If Not(Printer1.IsConnected) Then"; if (true) break; case 1: //if this.state = 38; -if (parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { +if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { this.state = 3; }else { this.state = 21; @@ -5607,20 +2479,17 @@ this.state = 21; case 3: //C this.state = 4; -RDebugUtils.currentLine=9961613; - //BA.debugLineNum = 9961613;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=9961614; - //BA.debugLineNum = 9961614;BA.debugLine="Private cont As Int = 0"; + //BA.debugLineNum = 2615;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 2616;BA.debugLine="Private cont As Int = 0"; _cont = (int) (0); -RDebugUtils.currentLine=9961615; - //BA.debugLineNum = 9961615;BA.debugLine="Do While Not(impresoraConectada)"; + //BA.debugLineNum = 2617;BA.debugLine="Do While Not(impresoraConectada)"; if (true) break; case 4: //do while this.state = 19; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ )) { +while (parent.__c.Not(parent._impresoraconectada)) { this.state = 6; if (true) break; } @@ -5629,20 +2498,17 @@ if (true) break; case 6: //C this.state = 7; -RDebugUtils.currentLine=9961616; - //BA.debugLineNum = 9961616;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp2_click"),(int) (1000)); + //BA.debugLineNum = 2618;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 125; return; case 125: //C this.state = 7; ; -RDebugUtils.currentLine=9961618; - //BA.debugLineNum = 9961618;BA.debugLine="cont = cont + 1"; + //BA.debugLineNum = 2620;BA.debugLine="cont = cont + 1"; _cont = (int) (_cont+1); -RDebugUtils.currentLine=9961619; - //BA.debugLineNum = 9961619;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de"; + //BA.debugLineNum = 2621;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de"; if (true) break; case 7: @@ -5655,15 +2521,14 @@ this.state = 9; case 9: //C this.state = 12; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); +parent._printer1._connect /*boolean*/ (); if (true) break; case 12: //C this.state = 13; ; -RDebugUtils.currentLine=9961620; - //BA.debugLineNum = 9961620;BA.debugLine="If cont > 3 Then impresoraConectada = True"; + //BA.debugLineNum = 2622;BA.debugLine="If cont > 3 Then impresoraConectada = True"; if (true) break; case 13: @@ -5676,7 +2541,7 @@ this.state = 15; case 15: //C this.state = 18; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; +parent._impresoraconectada = parent.__c.True; if (true) break; case 18: @@ -5689,37 +2554,32 @@ case 19: //C this.state = 38; ; -RDebugUtils.currentLine=9961622; - //BA.debugLineNum = 9961622;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp2_click"),(int) (500)); + //BA.debugLineNum = 2624;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); this.state = 126; return; case 126: //C this.state = 38; ; -RDebugUtils.currentLine=9961623; - //BA.debugLineNum = 9961623;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 2625;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; if (true) break; case 21: //C this.state = 22; -RDebugUtils.currentLine=9961626; - //BA.debugLineNum = 9961626;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=9961627; - //BA.debugLineNum = 9961627;BA.debugLine="Private cont As Int = 0"; + //BA.debugLineNum = 2628;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 2629;BA.debugLine="Private cont As Int = 0"; _cont = (int) (0); -RDebugUtils.currentLine=9961628; - //BA.debugLineNum = 9961628;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; + //BA.debugLineNum = 2630;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; if (true) break; case 22: //do while this.state = 37; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ ) || parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { +while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { this.state = 24; if (true) break; } @@ -5728,20 +2588,17 @@ if (true) break; case 24: //C this.state = 25; -RDebugUtils.currentLine=9961629; - //BA.debugLineNum = 9961629;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp2_click"),(int) (1000)); + //BA.debugLineNum = 2631;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 127; return; case 127: //C this.state = 25; ; -RDebugUtils.currentLine=9961631; - //BA.debugLineNum = 9961631;BA.debugLine="cont = cont + 1"; + //BA.debugLineNum = 2633;BA.debugLine="cont = cont + 1"; _cont = (int) (_cont+1); -RDebugUtils.currentLine=9961632; - //BA.debugLineNum = 9961632;BA.debugLine="If cont = 2 Then Printer1.Connect"; + //BA.debugLineNum = 2634;BA.debugLine="If cont = 2 Then Printer1.Connect"; if (true) break; case 25: @@ -5754,15 +2611,14 @@ this.state = 27; case 27: //C this.state = 30; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); +parent._printer1._connect /*boolean*/ (); if (true) break; case 30: //C this.state = 31; ; -RDebugUtils.currentLine=9961633; - //BA.debugLineNum = 9961633;BA.debugLine="If cont > 3 Then impresoraConectada = True"; + //BA.debugLineNum = 2635;BA.debugLine="If cont > 3 Then impresoraConectada = True"; if (true) break; case 31: @@ -5775,7 +2631,7 @@ this.state = 33; case 33: //C this.state = 36; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; +parent._impresoraconectada = parent.__c.True; if (true) break; case 36: @@ -5788,112 +2644,90 @@ case 37: //C this.state = 38; ; -RDebugUtils.currentLine=9961635; - //BA.debugLineNum = 9961635;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp2_click"),(int) (500)); + //BA.debugLineNum = 2637;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); this.state = 128; return; case 128: //C this.state = 38; ; -RDebugUtils.currentLine=9961636; - //BA.debugLineNum = 9961636;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 2638;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; if (true) break; case 38: //C this.state = 39; ; -RDebugUtils.currentLine=9961639; - //BA.debugLineNum = 9961639;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=9961640; - //BA.debugLineNum = 9961640;BA.debugLine="ESPACIO = 28"; -__ref._espacio /*int*/ = (int) (28); -RDebugUtils.currentLine=9961641; - //BA.debugLineNum = 9961641;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=9961658; - //BA.debugLineNum = 9961658;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF); -RDebugUtils.currentLine=9961660; - //BA.debugLineNum = 9961660;BA.debugLine="Printer1.WriteString(sDate & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9961661; - //BA.debugLineNum = 9961661;BA.debugLine="Printer1.WriteString(sTime & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._stime /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9961662; - //BA.debugLineNum = 9961662;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Vendedor:"+__ref._usuario /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=9961663; - //BA.debugLineNum = 9961663;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9961664; - //BA.debugLineNum = 9961664;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9961665; - //BA.debugLineNum = 9961665;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Calle: "+__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9961666; - //BA.debugLineNum = 9961666;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Colonia: "+__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9961670; - //BA.debugLineNum = 9961670;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9961671; - //BA.debugLineNum = 9961671;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=9961672; - //BA.debugLineNum = 9961672;BA.debugLine="If c.RowCount > 0 Then"; + //BA.debugLineNum = 2641;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 2642;BA.debugLine="ESPACIO = 28"; +parent._espacio = (int) (28); + //BA.debugLineNum = 2643;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 2660;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; +parent._printer1._writestring /*String*/ ("Izca Distribuciones"+parent.__c.CRLF); + //BA.debugLineNum = 2662;BA.debugLine="Printer1.WriteString(sDate & CRLF)"; +parent._printer1._writestring /*String*/ (parent._sdate+parent.__c.CRLF); + //BA.debugLineNum = 2663;BA.debugLine="Printer1.WriteString(sTime & CRLF)"; +parent._printer1._writestring /*String*/ (parent._stime+parent.__c.CRLF); + //BA.debugLineNum = 2664;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & CRL"; +parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+parent.__c.CRLF); + //BA.debugLineNum = 2665;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; +parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2666;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; +parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2667;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; +parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2668;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; +parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2672;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2673;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 2674;BA.debugLine="If c.RowCount > 0 Then"; if (true) break; case 39: //if this.state = 68; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._c.getRowCount()>0) { this.state = 41; }if (true) break; case 41: //C this.state = 42; -RDebugUtils.currentLine=9961673; - //BA.debugLineNum = 9961673;BA.debugLine="Printer1.WriteString(\"------------ENTREGA-------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------ENTREGA-----------"+parent.__c.CRLF); -RDebugUtils.currentLine=9961676; - //BA.debugLineNum = 9961676;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant. Precio Importe"+parent.__c.CRLF); -RDebugUtils.currentLine=9961678; - //BA.debugLineNum = 9961678;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9961680; - //BA.debugLineNum = 9961680;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PROID")))); -RDebugUtils.currentLine=9961681; - //BA.debugLineNum = 9961681;BA.debugLine="If S.RowCount>0 Then"; + //BA.debugLineNum = 2675;BA.debugLine="Printer1.WriteString(\"------------ENTREGA-------"; +parent._printer1._writestring /*String*/ ("------------ENTREGA-----------"+parent.__c.CRLF); + //BA.debugLineNum = 2678;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; +parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF); + //BA.debugLineNum = 2680;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 2682;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PROID")))); + //BA.debugLineNum = 2683;BA.debugLine="If S.RowCount>0 Then"; if (true) break; case 42: //if this.state = 67; -if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._s.getRowCount()>0) { this.state = 44; }if (true) break; case 44: //C this.state = 45; -RDebugUtils.currentLine=9961682; - //BA.debugLineNum = 9961682;BA.debugLine="For i=0 To S.RowCount -1"; + //BA.debugLineNum = 2684;BA.debugLine="For i=0 To S.RowCount -1"; if (true) break; case 45: //for this.state = 66; step53 = 1; -limit53 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit53 = (int) (parent._s.getRowCount()-1); _i = (int) (0) ; this.state = 129; if (true) break; @@ -5913,76 +2747,60 @@ if (true) break; case 47: //C this.state = 48; -RDebugUtils.currentLine=9961683; - //BA.debugLineNum = 9961683;BA.debugLine="S.Position=i"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9961684; - //BA.debugLineNum = 9961684;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))"; -parent.__c.LogImpl("29961684",__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO"),0); -RDebugUtils.currentLine=9961685; - //BA.debugLineNum = 9961685;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_"; + //BA.debugLineNum = 2685;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 2686;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))"; +parent.__c.LogImpl("010223828",parent._s.GetString("HVD_RECHAZO"),0); + //BA.debugLineNum = 2687;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_"; if (true) break; case 48: //if this.state = 65; -if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { +if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) { this.state = 50; }if (true) break; case 50: //C this.state = 51; -RDebugUtils.currentLine=9961688; - //BA.debugLineNum = 9961688;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm"; + //BA.debugLineNum = 2690;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm"; if (true) break; case 51: //if this.state = 64; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { this.state = 53; -}else -{RDebugUtils.currentLine=9961716; - //BA.debugLineNum = 9961716;BA.debugLine="Else If s.GetString(\"HVD_RECHAZO\") = 1 Then"; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { +}else if((parent._s.GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { this.state = 59; -}} -if (true) break; +}if (true) break; case 53: //C this.state = 54; -RDebugUtils.currentLine=9961690; - //BA.debugLineNum = 9961690;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9961691; - //BA.debugLineNum = 9961691;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=9961694; - //BA.debugLineNum = 9961694;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST"; -_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=9961695; - //BA.debugLineNum = 9961695;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=9961698; - //BA.debugLineNum = 9961698;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; -_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=9961699; - //BA.debugLineNum = 9961699;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=9961701; - //BA.debugLineNum = 9961701;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=9961703; - //BA.debugLineNum = 9961703;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 2692;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2693;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; +parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 2696;BA.debugLine="Dim punit As String = NumberFormat2((s.GETST"; +_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 2697;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 2700;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; +_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 2701;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 2703;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 2705;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 54: //for this.state = 57; step65 = 1; -limit65 = (int) (__ref._espacio /*int*/ -1); +limit65 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 131; if (true) break; @@ -6002,9 +2820,8 @@ if (true) break; case 56: //C this.state = 132; -RDebugUtils.currentLine=9961704; - //BA.debugLineNum = 9961704;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 2706;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -6012,78 +2829,58 @@ case 57: //C this.state = 64; ; -RDebugUtils.currentLine=9961706; - //BA.debugLineNum = 9961706;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9961707; - //BA.debugLineNum = 9961707;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=9961708; - //BA.debugLineNum = 9961708;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=9961709; - //BA.debugLineNum = 9961709;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=9961710; - //BA.debugLineNum = 9961710;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=9961711; - //BA.debugLineNum = 9961711;BA.debugLine="Printer1.WriteString( ptot & CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=9961712; - //BA.debugLineNum = 9961712;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=9961713; - //BA.debugLineNum = 9961713;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=9961714; - //BA.debugLineNum = 9961714;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; + //BA.debugLineNum = 2708;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2709;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco); + //BA.debugLineNum = 2710;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 2711;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 2712;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 2713;BA.debugLine="Printer1.WriteString( ptot & CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 2714;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 2715;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 2716;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; if (true) break; case 59: //C this.state = 60; -RDebugUtils.currentLine=9961718; - //BA.debugLineNum = 9961718;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9961719; - //BA.debugLineNum = 9961719;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=9961721; - //BA.debugLineNum = 9961721;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue"; + //BA.debugLineNum = 2720;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2721;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; +parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 2723;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQue"; _vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=9961722; - //BA.debugLineNum = 9961722;BA.debugLine="vc5.Position = 0"; +_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select iFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+parent.__c.SmartStringFormatter("",(Object)(parent._s.GetString("HVD_PROID")))+"'")))); + //BA.debugLineNum = 2724;BA.debugLine="vc5.Position = 0"; _vc5.setPosition((int) (0)); -RDebugUtils.currentLine=9961723; - //BA.debugLineNum = 9961723;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get"; + //BA.debugLineNum = 2725;BA.debugLine="Dim punit As String = NumberFormat2((vc5.Get"; _punit = parent.__c.NumberFormat2((double)(Double.parseDouble((_vc5.GetString("CAT_GP_PRECIO")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=9961724; - //BA.debugLineNum = 9961724;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=9961725; - //BA.debugLineNum = 9961725;BA.debugLine="vc5.Close"; + //BA.debugLineNum = 2726;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 2727;BA.debugLine="vc5.Close"; _vc5.Close(); -RDebugUtils.currentLine=9961727; - //BA.debugLineNum = 9961727;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; -_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=9961728; - //BA.debugLineNum = 9961728;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=9961730; - //BA.debugLineNum = 9961730;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=9961732; - //BA.debugLineNum = 9961732;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 2729;BA.debugLine="Private ptot As String = NumberFormat2(( (s."; +_ptot = parent.__c.NumberFormat2((((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_punit))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 2730;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 2732;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 2734;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 60: //for this.state = 63; step88 = 1; -limit88 = (int) (__ref._espacio /*int*/ -1); +limit88 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 133; if (true) break; @@ -6103,9 +2900,8 @@ if (true) break; case 62: //C this.state = 134; -RDebugUtils.currentLine=9961733; - //BA.debugLineNum = 9961733;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 2735;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -6113,36 +2909,26 @@ case 63: //C this.state = 64; ; -RDebugUtils.currentLine=9961735; - //BA.debugLineNum = 9961735;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9961736; - //BA.debugLineNum = 9961736;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=9961737; - //BA.debugLineNum = 9961737;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=9961738; - //BA.debugLineNum = 9961738;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=9961739; - //BA.debugLineNum = 9961739;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=9961740; - //BA.debugLineNum = 9961740;BA.debugLine="Printer1.WriteString(ptot& CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=9961741; - //BA.debugLineNum = 9961741;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=9961742; - //BA.debugLineNum = 9961742;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=9961743; - //BA.debugLineNum = 9961743;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=9961744; - //BA.debugLineNum = 9961744;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); + //BA.debugLineNum = 2737;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2738;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco); + //BA.debugLineNum = 2739;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 2740;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 2741;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 2742;BA.debugLine="Printer1.WriteString(ptot& CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 2743;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 2744;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 2745;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 2746;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); if (true) break; case 64: @@ -6174,50 +2960,41 @@ case 68: //C this.state = 69; ; -RDebugUtils.currentLine=9961750; - //BA.debugLineNum = 9961750;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9961751; - //BA.debugLineNum = 9961751;BA.debugLine="s.Close"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=9961752; - //BA.debugLineNum = 9961752;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9961753; - //BA.debugLineNum = 9961753;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID")))); -RDebugUtils.currentLine=9961755; - //BA.debugLineNum = 9961755;BA.debugLine="If S.RowCount>0 Then"; + //BA.debugLineNum = 2752;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2753;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 2754;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2755;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID")))); + //BA.debugLineNum = 2757;BA.debugLine="If S.RowCount>0 Then"; if (true) break; case 69: //if this.state = 96; -if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._s.getRowCount()>0) { this.state = 71; }if (true) break; case 71: //C this.state = 72; -RDebugUtils.currentLine=9961756; - //BA.debugLineNum = 9961756;BA.debugLine="Printer1.WriteString(\"-------PROMOS ENTREGA-----"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-------PROMOS ENTREGA--------"+parent.__c.CRLF); -RDebugUtils.currentLine=9961757; - //BA.debugLineNum = 9961757;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant. Precio Importe"+parent.__c.CRLF); -RDebugUtils.currentLine=9961758; - //BA.debugLineNum = 9961758;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9961760; - //BA.debugLineNum = 9961760;BA.debugLine="For i=0 To S.RowCount -1"; + //BA.debugLineNum = 2758;BA.debugLine="Printer1.WriteString(\"-------PROMOS ENTREGA-----"; +parent._printer1._writestring /*String*/ ("-------PROMOS ENTREGA--------"+parent.__c.CRLF); + //BA.debugLineNum = 2759;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; +parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF); + //BA.debugLineNum = 2760;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 2762;BA.debugLine="For i=0 To S.RowCount -1"; if (true) break; case 72: //for this.state = 95; step114 = 1; -limit114 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit114 = (int) (parent._s.getRowCount()-1); _i = (int) (0) ; this.state = 135; if (true) break; @@ -6237,31 +3014,28 @@ if (true) break; case 74: //C this.state = 75; -RDebugUtils.currentLine=9961761; - //BA.debugLineNum = 9961761;BA.debugLine="S.Position=i"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9961762; - //BA.debugLineNum = 9961762;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R"; + //BA.debugLineNum = 2763;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 2764;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R"; if (true) break; case 75: //if this.state = 94; -if ((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))>0) { +if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) { this.state = 77; }if (true) break; case 77: //C this.state = 78; -RDebugUtils.currentLine=9961765; - //BA.debugLineNum = 9961765;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; + //BA.debugLineNum = 2767;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; if (true) break; case 78: //if this.state = 93; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { this.state = 80; }else { this.state = 92; @@ -6270,17 +3044,15 @@ this.state = 92; case 80: //C this.state = 81; -RDebugUtils.currentLine=9961767; - //BA.debugLineNum = 9961767;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9961768; - //BA.debugLineNum = 9961768;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString("; + //BA.debugLineNum = 2769;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2770;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString("; if (true) break; case 81: //if this.state = 90; -if ((__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"))) { +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._s.GetString("HVD_PROID"))) { this.state = 83; }else { this.state = 85; @@ -6289,50 +3061,39 @@ this.state = 85; case 83: //C this.state = 90; -RDebugUtils.currentLine=9961769; - //BA.debugLineNum = 9961769;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"* "+__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=9961770; - //BA.debugLineNum = 9961770;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9961771; - //BA.debugLineNum = 9961771;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); + //BA.debugLineNum = 2771;BA.debugLine="Printer1.WriteString(\"* \"&s.GetString(\"HVD_P"; +parent._printer1._writestring /*String*/ ("* "+parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 2772;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2773;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); if (true) break; case 85: //C this.state = 86; -RDebugUtils.currentLine=9961773; - //BA.debugLineNum = 9961773;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=9961775; - //BA.debugLineNum = 9961775;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR"; -_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=9961776; - //BA.debugLineNum = 9961776;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=9961779; - //BA.debugLineNum = 9961779;BA.debugLine="Private ptot As String = NumberFormat2((puni"; -_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=9961780; - //BA.debugLineNum = 9961780;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=9961783; - //BA.debugLineNum = 9961783;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=9961784; - //BA.debugLineNum = 9961784;BA.debugLine="Log(ESPACIO)"; -parent.__c.LogImpl("29961784",BA.NumberToString(__ref._espacio /*int*/ ),0); -RDebugUtils.currentLine=9961785; - //BA.debugLineNum = 9961785;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 2775;BA.debugLine="Printer1.WriteString(s.GetString(\"HVD_PRONOM"; +parent._printer1._writestring /*String*/ (parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 2777;BA.debugLine="Dim punit As String =NumberFormat2((s.GETSTR"; +_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 2778;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 2781;BA.debugLine="Private ptot As String = NumberFormat2((puni"; +_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 2782;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 2785;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 2786;BA.debugLine="Log(ESPACIO)"; +parent.__c.LogImpl("010223928",BA.NumberToString(parent._espacio),0); + //BA.debugLineNum = 2787;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 86: //for this.state = 89; step131 = 1; -limit131 = (int) (__ref._espacio /*int*/ -1); +limit131 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 137; if (true) break; @@ -6352,9 +3113,8 @@ if (true) break; case 88: //C this.state = 138; -RDebugUtils.currentLine=9961786; - //BA.debugLineNum = 9961786;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 2788;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -6362,36 +3122,26 @@ case 89: //C this.state = 90; ; -RDebugUtils.currentLine=9961788; - //BA.debugLineNum = 9961788;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9961789; - //BA.debugLineNum = 9961789;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,BA.NumberToString(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=9961790; - //BA.debugLineNum = 9961790;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=9961791; - //BA.debugLineNum = 9961791;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=9961792; - //BA.debugLineNum = 9961792;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=9961793; - //BA.debugLineNum = 9961793;BA.debugLine="Printer1.WriteString(ptot & CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=9961794; - //BA.debugLineNum = 9961794;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=9961795; - //BA.debugLineNum = 9961795;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=9961796; - //BA.debugLineNum = 9961796;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=9961797; - //BA.debugLineNum = 9961797;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); + //BA.debugLineNum = 2790;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2791;BA.debugLine="Printer1.WriteString( (s.GetString(\"HVD_CANT"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+parent._blanco); + //BA.debugLineNum = 2792;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 2793;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 2794;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 2795;BA.debugLine="Printer1.WriteString(ptot & CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 2796;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 2797;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 2798;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 2799;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); if (true) break; case 90: @@ -6428,44 +3178,37 @@ case 96: //C this.state = 97; ; -RDebugUtils.currentLine=9961809; - //BA.debugLineNum = 9961809;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9961810; - //BA.debugLineNum = 9961810;BA.debugLine="s=Starter.skmt.ExecQuery($\"select PE_PRONOMBRE, P"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PRONOMBRE, PE_CANT, length(PE_CANT) as L_CANT, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTOU,PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order BY PE_PROID")))); -RDebugUtils.currentLine=9961812; - //BA.debugLineNum = 9961812;BA.debugLine="If S.RowCount>0 Then"; + //BA.debugLineNum = 2811;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2812;BA.debugLine="s=Starter.skmt.ExecQuery($\"select PE_PRONOMBRE, P"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PE_PRONOMBRE, PE_CANT, length(PE_CANT) as L_CANT, PE_COSTO_TOT, length(PE_COSTO_TOT) as L_COSTOU,PE_PROID FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) order BY PE_PROID")))); + //BA.debugLineNum = 2814;BA.debugLine="If S.RowCount>0 Then"; if (true) break; case 97: //if this.state = 108; -if (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._s.getRowCount()>0) { this.state = 99; }if (true) break; case 99: //C this.state = 100; -RDebugUtils.currentLine=9961813; - //BA.debugLineNum = 9961813;BA.debugLine="Printer1.WriteString(\"-----------VENTA----------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-----------VENTA------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9961814; - //BA.debugLineNum = 9961814;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant. Precio Importe"+parent.__c.CRLF); -RDebugUtils.currentLine=9961815; - //BA.debugLineNum = 9961815;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9961817; - //BA.debugLineNum = 9961817;BA.debugLine="For i=0 To S.RowCount -1"; + //BA.debugLineNum = 2815;BA.debugLine="Printer1.WriteString(\"-----------VENTA----------"; +parent._printer1._writestring /*String*/ ("-----------VENTA------------"+parent.__c.CRLF); + //BA.debugLineNum = 2816;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; +parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF); + //BA.debugLineNum = 2817;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 2819;BA.debugLine="For i=0 To S.RowCount -1"; if (true) break; case 100: //for this.state = 107; step156 = 1; -limit156 = (int) (__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit156 = (int) (parent._s.getRowCount()-1); _i = (int) (0) ; this.state = 139; if (true) break; @@ -6485,42 +3228,32 @@ if (true) break; case 102: //C this.state = 103; -RDebugUtils.currentLine=9961818; - //BA.debugLineNum = 9961818;BA.debugLine="S.Position=i"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=9961820; - //BA.debugLineNum = 9961820;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9961821; - //BA.debugLineNum = 9961821;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE\""; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=9961824; - //BA.debugLineNum = 9961824;BA.debugLine="Dim punit As String =NumberFormat2( (s.GETSTRIN"; -_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=9961825; - //BA.debugLineNum = 9961825;BA.debugLine="TAMANO = punit.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_punit.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=9961827; - //BA.debugLineNum = 9961827;BA.debugLine="Private ptot As String = NumberFormat2((punit*s"; -_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); -RDebugUtils.currentLine=9961828; - //BA.debugLineNum = 9961828;BA.debugLine="TAMANO = ptot.Length + TAMANO"; -__ref._tamano /*int*/ = (int) (_ptot.length()+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=9961831; - //BA.debugLineNum = 9961831;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=9961832; - //BA.debugLineNum = 9961832;BA.debugLine="Log(ESPACIO)"; -parent.__c.LogImpl("29961832",BA.NumberToString(__ref._espacio /*int*/ ),0); -RDebugUtils.currentLine=9961833; - //BA.debugLineNum = 9961833;BA.debugLine="For E=0 To ESPACIO -1"; + //BA.debugLineNum = 2820;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 2822;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2823;BA.debugLine="Printer1.WriteString(s.GetString(\"PE_PRONOMBRE\""; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 2826;BA.debugLine="Dim punit As String =NumberFormat2( (s.GETSTRIN"; +_punit = parent.__c.NumberFormat2(((double)(Double.parseDouble(parent._s.GetString("PE_COSTO_TOT")))/(double)(double)(Double.parseDouble(parent._s.GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 2827;BA.debugLine="TAMANO = punit.Length + TAMANO"; +parent._tamano = (int) (_punit.length()+parent._tamano); + //BA.debugLineNum = 2829;BA.debugLine="Private ptot As String = NumberFormat2((punit*s"; +_ptot = parent.__c.NumberFormat2(((double)(Double.parseDouble(_punit))*(double)(Double.parseDouble(parent._s.GetString("PE_CANT")))),(int) (0),(int) (2),(int) (2),parent.__c.False); + //BA.debugLineNum = 2830;BA.debugLine="TAMANO = ptot.Length + TAMANO"; +parent._tamano = (int) (_ptot.length()+parent._tamano); + //BA.debugLineNum = 2833;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 2834;BA.debugLine="Log(ESPACIO)"; +parent.__c.LogImpl("010223976",BA.NumberToString(parent._espacio),0); + //BA.debugLineNum = 2835;BA.debugLine="For E=0 To ESPACIO -1"; if (true) break; case 103: //for this.state = 106; step166 = 1; -limit166 = (int) (__ref._espacio /*int*/ -1); +limit166 = (int) (parent._espacio-1); _e = (int) (0) ; this.state = 141; if (true) break; @@ -6540,9 +3273,8 @@ if (true) break; case 105: //C this.state = 142; -RDebugUtils.currentLine=9961834; - //BA.debugLineNum = 9961834;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 2836;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -6550,36 +3282,26 @@ case 106: //C this.state = 140; ; -RDebugUtils.currentLine=9961836; - //BA.debugLineNum = 9961836;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=9961837; - //BA.debugLineNum = 9961837;BA.debugLine="Printer1.WriteString( s.GetString(\"PE_CANT\") &"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=9961838; - //BA.debugLineNum = 9961838;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=9961839; - //BA.debugLineNum = 9961839;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_punit+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=9961840; - //BA.debugLineNum = 9961840;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=9961841; - //BA.debugLineNum = 9961841;BA.debugLine="Printer1.WriteString(ptot & CRLF )"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_ptot+parent.__c.CRLF); -RDebugUtils.currentLine=9961842; - //BA.debugLineNum = 9961842;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=9961843; - //BA.debugLineNum = 9961843;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=9961844; - //BA.debugLineNum = 9961844;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=9961845; - //BA.debugLineNum = 9961845;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); + //BA.debugLineNum = 2838;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2839;BA.debugLine="Printer1.WriteString( s.GetString(\"PE_CANT\") &"; +parent._printer1._writestring /*String*/ (parent._s.GetString("PE_CANT")+parent._blanco); + //BA.debugLineNum = 2840;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 2841;BA.debugLine="Printer1.WriteString( punit & BLANCO)"; +parent._printer1._writestring /*String*/ (_punit+parent._blanco); + //BA.debugLineNum = 2842;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 2843;BA.debugLine="Printer1.WriteString(ptot & CRLF )"; +parent._printer1._writestring /*String*/ (_ptot+parent.__c.CRLF); + //BA.debugLineNum = 2844;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 2845;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 2846;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 2847;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); if (true) break; if (true) break; @@ -6593,95 +3315,71 @@ case 108: //C this.state = 109; ; -RDebugUtils.currentLine=9961849; - //BA.debugLineNum = 9961849;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9961850; - //BA.debugLineNum = 9961850;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9961853; - //BA.debugLineNum = 9961853;BA.debugLine="Printer1.WriteString(\"Total Articulos: \" & L_CA"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total Articulos: "+__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=9961854; - //BA.debugLineNum = 9961854;BA.debugLine="Printer1.WriteString(\"Total: $\" & l_total.Text)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total: $"+__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()); -RDebugUtils.currentLine=9961857; - //BA.debugLineNum = 9961857;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9961858; - //BA.debugLineNum = 9961858;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9961861; - //BA.debugLineNum = 9961861;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"----ESTE TICKET NO ES UN -----"+parent.__c.CRLF); -RDebugUtils.currentLine=9961862; - //BA.debugLineNum = 9961862;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--COMPROBANTE FISCAL, SOLO ES-"+parent.__c.CRLF); -RDebugUtils.currentLine=9961863; - //BA.debugLineNum = 9961863;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------INFORMATIVO-----------"+parent.__c.CRLF); -RDebugUtils.currentLine=9961864; - //BA.debugLineNum = 9961864;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=9961865; - //BA.debugLineNum = 9961865;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9961866; - //BA.debugLineNum = 9961866;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9961867; - //BA.debugLineNum = 9961867;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=9961868; - //BA.debugLineNum = 9961868;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp2_click"),(int) (1000)); + //BA.debugLineNum = 2851;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2852;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 2855;BA.debugLine="Printer1.WriteString(\"Total Articulos: \" & L_CA"; +parent._printer1._writestring /*String*/ ("Total Articulos: "+parent._l_cant.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2856;BA.debugLine="Printer1.WriteString(\"Total: $\" & l_total.Text)"; +parent._printer1._writestring /*String*/ ("Total: $"+parent._l_total.getText()); + //BA.debugLineNum = 2859;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2860;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 2863;BA.debugLine="Printer1.WriteString(\"----ESTE TICKET NO ES UN --"; +parent._printer1._writestring /*String*/ ("----ESTE TICKET NO ES UN -----"+parent.__c.CRLF); + //BA.debugLineNum = 2864;BA.debugLine="Printer1.WriteString(\"--COMPROBANTE FISCAL, SOLO"; +parent._printer1._writestring /*String*/ ("--COMPROBANTE FISCAL, SOLO ES-"+parent.__c.CRLF); + //BA.debugLineNum = 2865;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------"; +parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+parent.__c.CRLF); + //BA.debugLineNum = 2866;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 2867;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2868;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2869;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2870;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 143; return; case 143: //C this.state = 109; ; -RDebugUtils.currentLine=9961869; - //BA.debugLineNum = 9961869;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=9961871; - //BA.debugLineNum = 9961871;BA.debugLine="ProgressDialogHide"; + //BA.debugLineNum = 2871;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 2873;BA.debugLine="ProgressDialogHide"; parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=9961873; - //BA.debugLineNum = 9961873;BA.debugLine="If banderaimp = 1 Then"; + //BA.debugLineNum = 2875;BA.debugLine="If banderaimp = 1 Then"; if (true) break; case 109: //if this.state = 124; -if (__ref._banderaimp /*int*/ ==1) { +if (parent._banderaimp==1) { this.state = 111; -}else -{RDebugUtils.currentLine=9961884; - //BA.debugLineNum = 9961884;BA.debugLine="Else If banderaimp = 0 Then"; -if (__ref._banderaimp /*int*/ ==0) { +}else if(parent._banderaimp==0) { this.state = 119; -}} -if (true) break; +}if (true) break; case 111: //C this.state = 112; -RDebugUtils.currentLine=9961874; - //BA.debugLineNum = 9961874;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; + //BA.debugLineNum = 2876;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=9961875; - //BA.debugLineNum = 9961875;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp2_click"), null); + //BA.debugLineNum = 2877;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 144; return; case 144: //C this.state = 112; -_resultado = (Integer) result[1]; +_resultado = (Integer) result[0]; ; -RDebugUtils.currentLine=9961876; - //BA.debugLineNum = 9961876;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; + //BA.debugLineNum = 2878;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; if (true) break; case 112: @@ -6696,9 +3394,8 @@ this.state = 116; case 114: //C this.state = 117; -RDebugUtils.currentLine=9961877; - //BA.debugLineNum = 9961877;BA.debugLine="B_IMP_Click"; -__ref._b_imp_click /*void*/ (null); + //BA.debugLineNum = 2879;BA.debugLine="B_IMP_Click"; +parent._b_imp_click(); if (true) break; case 116: @@ -6715,21 +3412,18 @@ this.state = 124; case 119: //C this.state = 120; -RDebugUtils.currentLine=9961885; - //BA.debugLineNum = 9961885;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; + //BA.debugLineNum = 2887;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=9961886; - //BA.debugLineNum = 9961886;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "b_imp2_click"), null); + //BA.debugLineNum = 2888;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 145; return; case 145: //C this.state = 120; -_resultado = (Integer) result[1]; +_resultado = (Integer) result[0]; ; -RDebugUtils.currentLine=9961887; - //BA.debugLineNum = 9961887;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; + //BA.debugLineNum = 2889;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; if (true) break; case 120: @@ -6742,9 +3436,8 @@ this.state = 122; case 122: //C this.state = 123; -RDebugUtils.currentLine=9961888; - //BA.debugLineNum = 9961888;BA.debugLine="B_IMP_Click"; -__ref._b_imp_click /*void*/ (null); + //BA.debugLineNum = 2890;BA.debugLine="B_IMP_Click"; +parent._b_imp_click(); if (true) break; case 123: @@ -6757,97 +3450,62 @@ case 124: //C this.state = -1; ; -RDebugUtils.currentLine=9961893; - //BA.debugLineNum = 9961893;BA.debugLine="End Sub"; + //BA.debugLineNum = 2895;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b_noentrega_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b_noentrega_click", false)) - {return ((String) Debug.delegate(ba, "b_noentrega_click", null));} -RDebugUtils.currentLine=8192000; - //BA.debugLineNum = 8192000;BA.debugLine="Sub b_noEntrega_Click"; -RDebugUtils.currentLine=8192002; - //BA.debugLineNum = 8192002;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT gestion FROM k"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT gestion FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=8192003; - //BA.debugLineNum = 8192003;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=8192004; - //BA.debugLineNum = 8192004;BA.debugLine="If c.GetInt(\"gestion\") = 2 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("gestion")==2) { -RDebugUtils.currentLine=8192005; - //BA.debugLineNum = 8192005;BA.debugLine="MsgboxAsync(\"El cliente ya fue entregado y no se"; +public String _b_noentrega_click() throws Exception{ + //BA.debugLineNum = 555;BA.debugLine="Sub b_noEntrega_Click"; + //BA.debugLineNum = 557;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT gestion FROM k"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT gestion FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 558;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 559;BA.debugLine="If c.GetInt(\"gestion\") = 2 Then"; +if (_c.GetInt("gestion")==2) { + //BA.debugLineNum = 560;BA.debugLine="MsgboxAsync(\"El cliente ya fue entregado y no se"; __c.MsgboxAsync(BA.ObjectToCharSequence("El cliente ya fue entregado y no se puede realizar modificación"),BA.ObjectToCharSequence("Atención"),ba); }else { -RDebugUtils.currentLine=8192009; - //BA.debugLineNum = 8192009;BA.debugLine="B4XPages.ShowPage(\"noVenta\")"; + //BA.debugLineNum = 564;BA.debugLine="B4XPages.ShowPage(\"noVenta\")"; _b4xpages._showpage /*String*/ (ba,"noVenta"); }; -RDebugUtils.currentLine=8192011; - //BA.debugLineNum = 8192011;BA.debugLine="End Sub"; + //BA.debugLineNum = 566;BA.debugLine="End Sub"; return ""; } -public String _b_paso2_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b_paso2_click", false)) - {return ((String) Debug.delegate(ba, "b_paso2_click", null));} -RDebugUtils.currentLine=8978432; - //BA.debugLineNum = 8978432;BA.debugLine="Sub B_PASO2_Click"; -RDebugUtils.currentLine=8978433; - //BA.debugLineNum = 8978433;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +public String _b_paso2_click() throws Exception{ + //BA.debugLineNum = 1217;BA.debugLine="Sub B_PASO2_Click"; + //BA.debugLineNum = 1218;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; __c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=8978434; - //BA.debugLineNum = 8978434;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=8978435; - //BA.debugLineNum = 8978435;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=8978436; - //BA.debugLineNum = 8978436;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); -RDebugUtils.currentLine=8978437; - //BA.debugLineNum = 8978437;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=8978438; - //BA.debugLineNum = 8978438;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; -__ref._cuenta /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"); -RDebugUtils.currentLine=8978439; - //BA.debugLineNum = 8978439;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=8978440; - //BA.debugLineNum = 8978440;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=8978441; - //BA.debugLineNum = 8978441;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=8978442; - //BA.debugLineNum = 8978442;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=8978443; - //BA.debugLineNum = 8978443;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM NOVENTA WH"; + //BA.debugLineNum = 1219;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 1220;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 1221;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); + //BA.debugLineNum = 1222;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1223;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; +_cuenta = _c.GetString("CUENTA"); + //BA.debugLineNum = 1224;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 1225;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1226;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 1227;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1228;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM NOVENTA WH"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)"); -RDebugUtils.currentLine=8978444; - //BA.debugLineNum = 8978444;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON) VALUES(?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._cuenta /*String*/ ),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)("PASO"),(Object)("PASO ESPERA"),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); -RDebugUtils.currentLine=8978450; - //BA.debugLineNum = 8978450;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 1229;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON) VALUES(?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cuenta),(Object)(_sdate+_stime),(Object)(_usuario),(Object)("PASO"),(Object)("PASO ESPERA"),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); + //BA.debugLineNum = 1235;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; _b4xpages._showpage /*String*/ (ba,"Principal"); -RDebugUtils.currentLine=8978452; - //BA.debugLineNum = 8978452;BA.debugLine="End Sub"; + //BA.debugLineNum = 1237;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} +public String _b4xpage_appear() throws Exception{ anywheresoftware.b4a.objects.collections.Map _cym = null; anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null; String _cuenta0 = ""; @@ -6873,238 +3531,170 @@ float _cuentacred0 = 0f; anywheresoftware.b4a.sql.SQL.CursorWrapper _cp = null; anywheresoftware.b4a.sql.SQL.CursorWrapper _x2 = null; String _cabonos = ""; -RDebugUtils.currentLine=7798784; - //BA.debugLineNum = 7798784;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=7798785; - //BA.debugLineNum = 7798785;BA.debugLine="banderaimp = 0"; -__ref._banderaimp /*int*/ = (int) (0); -RDebugUtils.currentLine=7798786; - //BA.debugLineNum = 7798786;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; -_subs._centrapanel /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=7798787; - //BA.debugLineNum = 7798787;BA.debugLine="Starter.skmt.Initialize(Starter.ruta,\"kmt.db\", Tr"; + //BA.debugLineNum = 148;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 149;BA.debugLine="banderaimp = 0"; +_banderaimp = (int) (0); + //BA.debugLineNum = 150;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth()); + //BA.debugLineNum = 151;BA.debugLine="Starter.skmt.Initialize(Starter.ruta,\"kmt.db\", Tr"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(_starter._ruta /*String*/ ,"kmt.db",__c.True); -RDebugUtils.currentLine=7798788; - //BA.debugLineNum = 7798788;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=7798789; - //BA.debugLineNum = 7798789;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO,CA"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT, CAT_CL_BCREDITO from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); -RDebugUtils.currentLine=7798790; - //BA.debugLineNum = 7798790;BA.debugLine="s=Starter.skmt.ExecQuery(\"select sum(pe_costo_tot"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_TIPO NOT IN ('SOBRANTE','FALTANTE')"))); -RDebugUtils.currentLine=7798791; - //BA.debugLineNum = 7798791;BA.debugLine="s.Position=0"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=7798792; - //BA.debugLineNum = 7798792;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=7798793; - //BA.debugLineNum = 7798793;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")"; -__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO"))); -RDebugUtils.currentLine=7798794; - //BA.debugLineNum = 7798794;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")"; -__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE"))); -RDebugUtils.currentLine=7798795; - //BA.debugLineNum = 7798795;BA.debugLine="NOMBRE = c.GetString(\"CAT_CL_NOMBRE\")"; -__ref._nombre /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE"); -RDebugUtils.currentLine=7798796; - //BA.debugLineNum = 7798796;BA.debugLine="LONGITUD = c.GetString(\"CAT_CL_LONG\")"; -__ref._longitud /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LONG"); -RDebugUtils.currentLine=7798797; - //BA.debugLineNum = 7798797;BA.debugLine="LATITUD = c.GetString(\"CAT_CL_LAT\")"; -__ref._latitud /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LAT"); -RDebugUtils.currentLine=7798798; - //BA.debugLineNum = 7798798;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.G"; -__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOEXT"))); -RDebugUtils.currentLine=7798799; - //BA.debugLineNum = 7798799;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")"; -__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_COLONIA"))); -RDebugUtils.currentLine=7798800; - //BA.debugLineNum = 7798800;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")"; -__ref._la_edo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_EDO"))); -RDebugUtils.currentLine=7798801; - //BA.debugLineNum = 7798801;BA.debugLine="la_cp.Text = c.GetString(\"CAT_CL_CP\")"; -__ref._la_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CP"))); -RDebugUtils.currentLine=7798802; - //BA.debugLineNum = 7798802;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")"; -__ref._l_entre1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE1"))); -RDebugUtils.currentLine=7798803; - //BA.debugLineNum = 7798803;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")"; -__ref._l_entre2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE2"))); -RDebugUtils.currentLine=7798804; - //BA.debugLineNum = 7798804;BA.debugLine="If c.GetString(\"CAT_CL_ATIENDE1\") <> Null And c.G"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")!= null && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")).equals("null") == false) { -RDebugUtils.currentLine=7798805; - //BA.debugLineNum = 7798805;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")"; -__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1"))); + //BA.debugLineNum = 152;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 153;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO,CA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT, CAT_CL_BCREDITO from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 154;BA.debugLine="s=Starter.skmt.ExecQuery(\"select sum(pe_costo_tot"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_TIPO NOT IN ('SOBRANTE','FALTANTE')"))); + //BA.debugLineNum = 155;BA.debugLine="s.Position=0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 156;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 157;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")"; +_la_cuenta.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO"))); + //BA.debugLineNum = 158;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")"; +_la_nombre.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_NOMBRE"))); + //BA.debugLineNum = 159;BA.debugLine="NOMBRE = c.GetString(\"CAT_CL_NOMBRE\")"; +_nombre = _c.GetString("CAT_CL_NOMBRE"); + //BA.debugLineNum = 160;BA.debugLine="LONGITUD = c.GetString(\"CAT_CL_LONG\")"; +_longitud = _c.GetString("CAT_CL_LONG"); + //BA.debugLineNum = 161;BA.debugLine="LATITUD = c.GetString(\"CAT_CL_LAT\")"; +_latitud = _c.GetString("CAT_CL_LAT"); + //BA.debugLineNum = 162;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.G"; +_la_calle.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE")+_c.GetString("CAT_CL_NOEXT"))); + //BA.debugLineNum = 163;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")"; +_la_col.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_COLONIA"))); + //BA.debugLineNum = 164;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")"; +_la_edo.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EDO"))); + //BA.debugLineNum = 165;BA.debugLine="la_cp.Text = c.GetString(\"CAT_CL_CP\")"; +_la_cp.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CP"))); + //BA.debugLineNum = 166;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")"; +_l_entre1.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE1"))); + //BA.debugLineNum = 167;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")"; +_l_entre2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE2"))); + //BA.debugLineNum = 168;BA.debugLine="If c.GetString(\"CAT_CL_ATIENDE1\") <> Null And c.G"; +if (_c.GetString("CAT_CL_ATIENDE1")!= null && (_c.GetString("CAT_CL_ATIENDE1")).equals("null") == false) { + //BA.debugLineNum = 169;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")"; +_l_atiende.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENDE1"))); }else { -RDebugUtils.currentLine=7798807; - //BA.debugLineNum = 7798807;BA.debugLine="l_atiende.Text = \" \""; -__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" ")); + //BA.debugLineNum = 171;BA.debugLine="l_atiende.Text = \" \""; +_l_atiende.setText(BA.ObjectToCharSequence(" ")); }; -RDebugUtils.currentLine=7798809; - //BA.debugLineNum = 7798809;BA.debugLine="If c.GetString(\"CAT_CL_ATIENTE2\") <> Null And c.G"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")!= null && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")).equals("NULL") == false) { -RDebugUtils.currentLine=7798810; - //BA.debugLineNum = 7798810;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")"; -__ref._l_atiende2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2"))); + //BA.debugLineNum = 173;BA.debugLine="If c.GetString(\"CAT_CL_ATIENTE2\") <> Null And c.G"; +if (_c.GetString("CAT_CL_ATIENTE2")!= null && (_c.GetString("CAT_CL_ATIENTE2")).equals("NULL") == false) { + //BA.debugLineNum = 174;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")"; +_l_atiende2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENTE2"))); }else { -RDebugUtils.currentLine=7798812; - //BA.debugLineNum = 7798812;BA.debugLine="l_atiende2.Text = \" \""; -__ref._l_atiende2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" ")); + //BA.debugLineNum = 176;BA.debugLine="l_atiende2.Text = \" \""; +_l_atiende2.setText(BA.ObjectToCharSequence(" ")); }; -RDebugUtils.currentLine=7798814; - //BA.debugLineNum = 7798814;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\")"; -__ref._la_saldotot /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_TELEFONO"))); -RDebugUtils.currentLine=7798815; - //BA.debugLineNum = 7798815;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")"; -__ref._la_saldooper /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_EMAIL"))); -RDebugUtils.currentLine=7798817; - //BA.debugLineNum = 7798817;BA.debugLine="CREDITO = C.GetString(\"CAT_CL_BCREDITO\")"; -__ref._credito /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_BCREDITO"); -RDebugUtils.currentLine=7798820; - //BA.debugLineNum = 7798820;BA.debugLine="Private cym As Map = Subs.traeCantYMonto2(Subs.tr"; + //BA.debugLineNum = 178;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\")"; +_la_saldotot.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_TELEFONO"))); + //BA.debugLineNum = 179;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")"; +_la_saldooper.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EMAIL"))); + //BA.debugLineNum = 181;BA.debugLine="CREDITO = C.GetString(\"CAT_CL_BCREDITO\")"; +_credito = _c.GetString("CAT_CL_BCREDITO"); + //BA.debugLineNum = 184;BA.debugLine="Private cym As Map = Subs.traeCantYMonto2(Subs.tr"; _cym = new anywheresoftware.b4a.objects.collections.Map(); _cym = _subs._traecantymonto2 /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_subs._traecliente /*String*/ (ba)); -RDebugUtils.currentLine=7798821; - //BA.debugLineNum = 7798821;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad")))); -RDebugUtils.currentLine=7798822; - //BA.debugLineNum = 7798822;BA.debugLine="l_total.Text = Round2(cym.Get(\"monto\"), 2)"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2)))); -RDebugUtils.currentLine=7798830; - //BA.debugLineNum = 7798830;BA.debugLine="Starter.skmt.ExecNonQuery(\"UPDATE HIST_VENTAS set"; + //BA.debugLineNum = 185;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")"; +_l_cant.setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad")))); + //BA.debugLineNum = 186;BA.debugLine="l_total.Text = Round2(cym.Get(\"monto\"), 2)"; +_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2)))); + //BA.debugLineNum = 194;BA.debugLine="Starter.skmt.ExecNonQuery(\"UPDATE HIST_VENTAS set"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("UPDATE HIST_VENTAS set ESPROMO = 1 where HVD_CODPROMO = HVD_PROID AND HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); -RDebugUtils.currentLine=7798831; - //BA.debugLineNum = 7798831;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 195;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s"; _vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT from HIST_VENTAS where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE in (select cuenta from cuentaa)")))); -RDebugUtils.currentLine=7798833; - //BA.debugLineNum = 7798833;BA.debugLine="Private cuenta0 As String = 0"; + //BA.debugLineNum = 197;BA.debugLine="Private cuenta0 As String = 0"; _cuenta0 = BA.NumberToString(0); -RDebugUtils.currentLine=7798834; - //BA.debugLineNum = 7798834;BA.debugLine="Private arti As String = 0"; + //BA.debugLineNum = 198;BA.debugLine="Private arti As String = 0"; _arti = BA.NumberToString(0); -RDebugUtils.currentLine=7798835; - //BA.debugLineNum = 7798835;BA.debugLine="If vc.RowCount > 0 Then"; + //BA.debugLineNum = 199;BA.debugLine="If vc.RowCount > 0 Then"; if (_vc.getRowCount()>0) { -RDebugUtils.currentLine=7798836; - //BA.debugLineNum = 7798836;BA.debugLine="For i = 0 To vc.RowCount - 1"; + //BA.debugLineNum = 200;BA.debugLine="For i = 0 To vc.RowCount - 1"; { final int step41 = 1; final int limit41 = (int) (_vc.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit41 ;_i = _i + step41 ) { -RDebugUtils.currentLine=7798837; - //BA.debugLineNum = 7798837;BA.debugLine="vc.Position = i"; + //BA.debugLineNum = 201;BA.debugLine="vc.Position = i"; _vc.setPosition(_i); -RDebugUtils.currentLine=7798840; - //BA.debugLineNum = 7798840;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_CANT\")"; + //BA.debugLineNum = 204;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_CANT\")"; _cuenta0 = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc.GetString("HVD_CANT")))))); -RDebugUtils.currentLine=7798845; - //BA.debugLineNum = 7798845;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - vc.Ge"; + //BA.debugLineNum = 209;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - vc.Ge"; _arti = BA.NumberToString((double)(Double.parseDouble(_arti))+((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))); } }; }; -RDebugUtils.currentLine=7798851; - //BA.debugLineNum = 7798851;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuery(\"s"; + //BA.debugLineNum = 215;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuery(\"s"; _vc2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 1"))); -RDebugUtils.currentLine=7798852; - //BA.debugLineNum = 7798852;BA.debugLine="Private Cuenta1 As String = 0"; + //BA.debugLineNum = 216;BA.debugLine="Private Cuenta1 As String = 0"; _cuenta1 = BA.NumberToString(0); -RDebugUtils.currentLine=7798853; - //BA.debugLineNum = 7798853;BA.debugLine="Private arti1 As String = 0"; + //BA.debugLineNum = 217;BA.debugLine="Private arti1 As String = 0"; _arti1 = BA.NumberToString(0); -RDebugUtils.currentLine=7798854; - //BA.debugLineNum = 7798854;BA.debugLine="If vc2.RowCount > 0 Then"; + //BA.debugLineNum = 218;BA.debugLine="If vc2.RowCount > 0 Then"; if (_vc2.getRowCount()>0) { -RDebugUtils.currentLine=7798855; - //BA.debugLineNum = 7798855;BA.debugLine="For i = 0 To vc2.RowCount - 1"; + //BA.debugLineNum = 219;BA.debugLine="For i = 0 To vc2.RowCount - 1"; { final int step51 = 1; final int limit51 = (int) (_vc2.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit51 ;_i = _i + step51 ) { -RDebugUtils.currentLine=7798856; - //BA.debugLineNum = 7798856;BA.debugLine="vc2.Position = i"; + //BA.debugLineNum = 220;BA.debugLine="vc2.Position = i"; _vc2.setPosition(_i); -RDebugUtils.currentLine=7798857; - //BA.debugLineNum = 7798857;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetString"; + //BA.debugLineNum = 221;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetString"; _preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc2.GetString("CANTC"))),(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=7798858; - //BA.debugLineNum = 7798858;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQuery("; + //BA.debugLineNum = 222;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQuery("; _vc3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc2.GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=7798859; - //BA.debugLineNum = 7798859;BA.debugLine="If vc3.RowCount > 0 Then"; + //BA.debugLineNum = 223;BA.debugLine="If vc3.RowCount > 0 Then"; if (_vc3.getRowCount()>0) { -RDebugUtils.currentLine=7798860; - //BA.debugLineNum = 7798860;BA.debugLine="vc3.Position = 0"; + //BA.debugLineNum = 224;BA.debugLine="vc3.Position = 0"; _vc3.setPosition((int) (0)); -RDebugUtils.currentLine=7798861; - //BA.debugLineNum = 7798861;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC\")-("; + //BA.debugLineNum = 225;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC\")-("; _cuenta1 = BA.NumberToString((double)(Double.parseDouble(_cuenta1))+(((double)(Double.parseDouble(_vc2.GetString("CANTC")))-((double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))/(double)(double)(Double.parseDouble(_vc3.GetString("CONVERSION")))))*_preu)); -RDebugUtils.currentLine=7798862; - //BA.debugLineNum = 7798862;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\") - v"; + //BA.debugLineNum = 226;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\") - v"; _arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+((double)(Double.parseDouble(_vc2.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT"))))); }; } }; }; -RDebugUtils.currentLine=7798868; - //BA.debugLineNum = 7798868;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 232;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuery($\""; _vc4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID,HVD_PRONOMBRE,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"'")))); -RDebugUtils.currentLine=7798869; - //BA.debugLineNum = 7798869;BA.debugLine="Private Cuenta2 As String = 0"; + //BA.debugLineNum = 233;BA.debugLine="Private Cuenta2 As String = 0"; _cuenta2 = BA.NumberToString(0); -RDebugUtils.currentLine=7798870; - //BA.debugLineNum = 7798870;BA.debugLine="Private arti2 As String = 0"; + //BA.debugLineNum = 234;BA.debugLine="Private arti2 As String = 0"; _arti2 = BA.NumberToString(0); -RDebugUtils.currentLine=7798871; - //BA.debugLineNum = 7798871;BA.debugLine="If vc4.RowCount > 0 Then"; + //BA.debugLineNum = 235;BA.debugLine="If vc4.RowCount > 0 Then"; if (_vc4.getRowCount()>0) { -RDebugUtils.currentLine=7798873; - //BA.debugLineNum = 7798873;BA.debugLine="For i = 0 To vc4.RowCount - 1"; + //BA.debugLineNum = 237;BA.debugLine="For i = 0 To vc4.RowCount - 1"; { final int step66 = 1; final int limit66 = (int) (_vc4.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit66 ;_i = _i + step66 ) { -RDebugUtils.currentLine=7798874; - //BA.debugLineNum = 7798874;BA.debugLine="vc4.Position = i"; + //BA.debugLineNum = 238;BA.debugLine="vc4.Position = i"; _vc4.setPosition(_i); -RDebugUtils.currentLine=7798875; - //BA.debugLineNum = 7798875;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetString("; + //BA.debugLineNum = 239;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetString("; if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { -RDebugUtils.currentLine=7798876; - //BA.debugLineNum = 7798876;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then"; + //BA.debugLineNum = 240;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then"; if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=7798877; - //BA.debugLineNum = 7798877;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_COSTO_"; + //BA.debugLineNum = 241;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_COSTO_"; _cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT")))); -RDebugUtils.currentLine=7798878; - //BA.debugLineNum = 7798878;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")"; + //BA.debugLineNum = 242;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")"; _arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))); }else { -RDebugUtils.currentLine=7798880; - //BA.debugLineNum = 7798880;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQuer"; + //BA.debugLineNum = 244;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQuer"; _vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc4.GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=7798881; - //BA.debugLineNum = 7798881;BA.debugLine="If vc5.RowCount > 0 Then"; + //BA.debugLineNum = 245;BA.debugLine="If vc5.RowCount > 0 Then"; if (_vc5.getRowCount()>0) { -RDebugUtils.currentLine=7798882; - //BA.debugLineNum = 7798882;BA.debugLine="vc5.Position= 0"; + //BA.debugLineNum = 246;BA.debugLine="vc5.Position= 0"; _vc5.setPosition((int) (0)); -RDebugUtils.currentLine=7798884; - //BA.debugLineNum = 7798884;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_CANT"; + //BA.debugLineNum = 248;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_CANT"; _cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))))); -RDebugUtils.currentLine=7798885; - //BA.debugLineNum = 7798885;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\")- v"; + //BA.debugLineNum = 249;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\")- v"; _arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))); }; }; @@ -7112,135 +3702,98 @@ _arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double } }; }; -RDebugUtils.currentLine=7798895; - //BA.debugLineNum = 7798895;BA.debugLine="Subs.centraPanel(p_credito, Root.Width)"; -_subs._centrapanel /*String*/ (ba,__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=7798896; - //BA.debugLineNum = 7798896;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($\"S"; + //BA.debugLineNum = 259;BA.debugLine="Subs.centraPanel(p_credito, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_credito,_root.getWidth()); + //BA.debugLineNum = 260;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($\"S"; _c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_TIPO NOT IN ('SOBRANTE','FALTANTE')")))); -RDebugUtils.currentLine=7798897; - //BA.debugLineNum = 7798897;BA.debugLine="Private Cuenta3 As String = 0"; + //BA.debugLineNum = 261;BA.debugLine="Private Cuenta3 As String = 0"; _cuenta3 = BA.NumberToString(0); -RDebugUtils.currentLine=7798898; - //BA.debugLineNum = 7798898;BA.debugLine="Private arti3 As String = 0"; + //BA.debugLineNum = 262;BA.debugLine="Private arti3 As String = 0"; _arti3 = BA.NumberToString(0); -RDebugUtils.currentLine=7798899; - //BA.debugLineNum = 7798899;BA.debugLine="If c4.RowCount > 0 Then"; + //BA.debugLineNum = 263;BA.debugLine="If c4.RowCount > 0 Then"; if (_c4.getRowCount()>0) { -RDebugUtils.currentLine=7798900; - //BA.debugLineNum = 7798900;BA.debugLine="For i = 0 To c4.RowCount -1"; + //BA.debugLineNum = 264;BA.debugLine="For i = 0 To c4.RowCount -1"; { final int step88 = 1; final int limit88 = (int) (_c4.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit88 ;_i = _i + step88 ) { -RDebugUtils.currentLine=7798901; - //BA.debugLineNum = 7798901;BA.debugLine="c4.Position = i"; + //BA.debugLineNum = 265;BA.debugLine="c4.Position = i"; _c4.setPosition(_i); -RDebugUtils.currentLine=7798902; - //BA.debugLineNum = 7798902;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 266;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")"; _arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT")))); -RDebugUtils.currentLine=7798903; - //BA.debugLineNum = 7798903;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_TOT\""; + //BA.debugLineNum = 267;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_TOT\""; _cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT")))); } }; }; -RDebugUtils.currentLine=7798906; - //BA.debugLineNum = 7798906;BA.debugLine="Log(cuenta0)"; -__c.LogImpl("27798906",_cuenta0,0); -RDebugUtils.currentLine=7798907; - //BA.debugLineNum = 7798907;BA.debugLine="Log(Cuenta1)"; -__c.LogImpl("27798907",_cuenta1,0); -RDebugUtils.currentLine=7798908; - //BA.debugLineNum = 7798908;BA.debugLine="Log(Cuenta2)"; -__c.LogImpl("27798908",_cuenta2,0); -RDebugUtils.currentLine=7798909; - //BA.debugLineNum = 7798909;BA.debugLine="Log(Cuenta3)"; -__c.LogImpl("27798909",_cuenta3,0); -RDebugUtils.currentLine=7798911; - //BA.debugLineNum = 7798911;BA.debugLine="l_total.Text = NumberFormat2((cuenta0 + Cuenta1 +"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))),(int) (0),(int) (2),(int) (2),__c.True))); -RDebugUtils.currentLine=7798912; - //BA.debugLineNum = 7798912;BA.debugLine="L_CANT.Text = NumberFormat2((arti + arti1 +arti2"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))),(int) (0),(int) (0),(int) (0),__c.True))); -RDebugUtils.currentLine=7798917; - //BA.debugLineNum = 7798917;BA.debugLine="c = Starter.skmt.ExecQuery2(\"select CAT_VA_VALOR"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"MACIMP"}))); -RDebugUtils.currentLine=7798918; - //BA.debugLineNum = 7798918;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=7798919; - //BA.debugLineNum = 7798919;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=7798920; - //BA.debugLineNum = 7798920;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO"; -_starter._mac_impresora /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_VA_VALOR"); + //BA.debugLineNum = 270;BA.debugLine="Log(cuenta0)"; +__c.LogImpl("08061050",_cuenta0,0); + //BA.debugLineNum = 271;BA.debugLine="Log(Cuenta1)"; +__c.LogImpl("08061051",_cuenta1,0); + //BA.debugLineNum = 272;BA.debugLine="Log(Cuenta2)"; +__c.LogImpl("08061052",_cuenta2,0); + //BA.debugLineNum = 273;BA.debugLine="Log(Cuenta3)"; +__c.LogImpl("08061053",_cuenta3,0); + //BA.debugLineNum = 275;BA.debugLine="l_total.Text = NumberFormat2((cuenta0 + Cuenta1 +"; +_l_total.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))),(int) (0),(int) (2),(int) (2),__c.True))); + //BA.debugLineNum = 276;BA.debugLine="L_CANT.Text = NumberFormat2((arti + arti1 +arti2"; +_l_cant.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))),(int) (0),(int) (0),(int) (0),__c.True))); + //BA.debugLineNum = 281;BA.debugLine="c = Starter.skmt.ExecQuery2(\"select CAT_VA_VALOR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"MACIMP"}))); + //BA.debugLineNum = 282;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 283;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 284;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO"; +_starter._mac_impresora /*String*/ = _c.GetString("CAT_VA_VALOR"); }; -RDebugUtils.currentLine=7798922; - //BA.debugLineNum = 7798922;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM"; + //BA.debugLineNum = 286;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM"; if ((_starter._mac_impresora /*String*/ ).equals("")) { _starter._mac_impresora /*String*/ = "0";}; -RDebugUtils.currentLine=7798924; - //BA.debugLineNum = 7798924;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._initialize /*String*/ (null,ba,this,"Printer1"); -RDebugUtils.currentLine=7798926; - //BA.debugLineNum = 7798926;BA.debugLine="If Printer1.IsConnected = False Then"; -if (__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null)==__c.False) { + //BA.debugLineNum = 288;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")"; +_printer1._initialize /*String*/ (ba,this,"Printer1"); + //BA.debugLineNum = 290;BA.debugLine="If Printer1.IsConnected = False Then"; +if (_printer1._isconnected /*boolean*/ ()==__c.False) { }else { -RDebugUtils.currentLine=7798930; - //BA.debugLineNum = 7798930;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=7798931; - //BA.debugLineNum = 7798931;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=7798932; - //BA.debugLineNum = 7798932;BA.debugLine="Log(\"2\")"; -__c.LogImpl("27798932","2",0); + //BA.debugLineNum = 294;BA.debugLine="Printer1.DisConnect"; +_printer1._disconnect /*String*/ (); + //BA.debugLineNum = 295;BA.debugLine="Printer1.Connect"; +_printer1._connect /*boolean*/ (); + //BA.debugLineNum = 296;BA.debugLine="Log(\"2\")"; +__c.LogImpl("08061076","2",0); }; -RDebugUtils.currentLine=7798963; - //BA.debugLineNum = 7798963;BA.debugLine="Private vcred4 As Cursor = Starter.skmt.ExecQuery"; + //BA.debugLineNum = 327;BA.debugLine="Private vcred4 As Cursor = Starter.skmt.ExecQuery"; _vcred4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vcred4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID,HVD_PRONOMBRE,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_BCREDITO = '1' ")))); -RDebugUtils.currentLine=7798964; - //BA.debugLineNum = 7798964;BA.debugLine="Private Cuentacred2 As Float = 0"; + //BA.debugLineNum = 328;BA.debugLine="Private Cuentacred2 As Float = 0"; _cuentacred2 = (float) (0); -RDebugUtils.currentLine=7798966; - //BA.debugLineNum = 7798966;BA.debugLine="If vcred4.RowCount > 0 Then"; + //BA.debugLineNum = 330;BA.debugLine="If vcred4.RowCount > 0 Then"; if (_vcred4.getRowCount()>0) { -RDebugUtils.currentLine=7798968; - //BA.debugLineNum = 7798968;BA.debugLine="For i = 0 To vcred4.RowCount - 1"; + //BA.debugLineNum = 332;BA.debugLine="For i = 0 To vcred4.RowCount - 1"; { final int step116 = 1; final int limit116 = (int) (_vcred4.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit116 ;_i = _i + step116 ) { -RDebugUtils.currentLine=7798969; - //BA.debugLineNum = 7798969;BA.debugLine="vcred4.Position = i"; + //BA.debugLineNum = 333;BA.debugLine="vcred4.Position = i"; _vcred4.setPosition(_i); -RDebugUtils.currentLine=7798970; - //BA.debugLineNum = 7798970;BA.debugLine="If vcred4.GetString(\"HVD_PROID\") <> vcred4.GetS"; + //BA.debugLineNum = 334;BA.debugLine="If vcred4.GetString(\"HVD_PROID\") <> vcred4.GetS"; if ((_vcred4.GetString("HVD_PROID")).equals(_vcred4.GetString("HVD_CODPROMO")) == false) { -RDebugUtils.currentLine=7798971; - //BA.debugLineNum = 7798971;BA.debugLine="If vcred4.GetString(\"HVD_RECHAZO\") = 0 Then"; + //BA.debugLineNum = 335;BA.debugLine="If vcred4.GetString(\"HVD_RECHAZO\") = 0 Then"; if ((_vcred4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=7798972; - //BA.debugLineNum = 7798972;BA.debugLine="Cuentacred2 = Cuentacred2 + vcred4.GetString("; + //BA.debugLineNum = 336;BA.debugLine="Cuentacred2 = Cuentacred2 + vcred4.GetString("; _cuentacred2 = (float) (_cuentacred2+(double)(Double.parseDouble(_vcred4.GetString("HVD_COSTO_TOT")))); }else { -RDebugUtils.currentLine=7798975; - //BA.debugLineNum = 7798975;BA.debugLine="Private vcred5 As Cursor = Starter.skmt.ExecQ"; + //BA.debugLineNum = 339;BA.debugLine="Private vcred5 As Cursor = Starter.skmt.ExecQ"; _vcred5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vcred5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vcred4.GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=7798976; - //BA.debugLineNum = 7798976;BA.debugLine="If vcred5.RowCount > 0 Then"; + //BA.debugLineNum = 340;BA.debugLine="If vcred5.RowCount > 0 Then"; if (_vcred5.getRowCount()>0) { -RDebugUtils.currentLine=7798977; - //BA.debugLineNum = 7798977;BA.debugLine="vc5.Position= 0"; + //BA.debugLineNum = 341;BA.debugLine="vc5.Position= 0"; _vc5.setPosition((int) (0)); -RDebugUtils.currentLine=7798979; - //BA.debugLineNum = 7798979;BA.debugLine="Cuentacred2 = Cuentacred2 +((vcred4.GetStrin"; + //BA.debugLineNum = 343;BA.debugLine="Cuentacred2 = Cuentacred2 +((vcred4.GetStrin"; _cuentacred2 = (float) (_cuentacred2+(((double)(Double.parseDouble(_vcred4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vcred4.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vcred4.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vcred4.GetString("HVD_CANT")))))); }; }; @@ -7248,168 +3801,120 @@ _cuentacred2 = (float) (_cuentacred2+(((double)(Double.parseDouble(_vcred4.GetSt } }; }; -RDebugUtils.currentLine=7798988; - //BA.debugLineNum = 7798988;BA.debugLine="Private vcred As Cursor = Starter.skmt.ExecQuery("; + //BA.debugLineNum = 352;BA.debugLine="Private vcred As Cursor = Starter.skmt.ExecQuery("; _vcred = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vcred = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT from HIST_VENTAS where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE in (select cuenta from cuentaa) and HVD_BCREDITO = '1'")))); -RDebugUtils.currentLine=7798990; - //BA.debugLineNum = 7798990;BA.debugLine="Private cuentacred0 As Float = 0"; + //BA.debugLineNum = 354;BA.debugLine="Private cuentacred0 As Float = 0"; _cuentacred0 = (float) (0); -RDebugUtils.currentLine=7798992; - //BA.debugLineNum = 7798992;BA.debugLine="If vcred.RowCount > 0 Then"; + //BA.debugLineNum = 356;BA.debugLine="If vcred.RowCount > 0 Then"; if (_vcred.getRowCount()>0) { -RDebugUtils.currentLine=7798993; - //BA.debugLineNum = 7798993;BA.debugLine="For i = 0 To vcred.RowCount - 1"; + //BA.debugLineNum = 357;BA.debugLine="For i = 0 To vcred.RowCount - 1"; { final int step134 = 1; final int limit134 = (int) (_vcred.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit134 ;_i = _i + step134 ) { -RDebugUtils.currentLine=7798994; - //BA.debugLineNum = 7798994;BA.debugLine="vcred.Position = i"; + //BA.debugLineNum = 358;BA.debugLine="vcred.Position = i"; _vcred.setPosition(_i); -RDebugUtils.currentLine=7798997; - //BA.debugLineNum = 7798997;BA.debugLine="cuentacred0 = cuentacred0 + ((vcred.GetInt(\"HVD"; + //BA.debugLineNum = 361;BA.debugLine="cuentacred0 = cuentacred0 + ((vcred.GetInt(\"HVD"; _cuentacred0 = (float) (_cuentacred0+((_vcred.GetInt("HVD_CANT")-_vcred.GetInt("HVD_RECHAZOCANT"))*(_vcred.GetDouble("HVD_COSTO_TOT")/(double)_vcred.GetInt("HVD_CANT")))); } }; }; -RDebugUtils.currentLine=7799006; - //BA.debugLineNum = 7799006;BA.debugLine="Log(cuentacred0)"; -__c.LogImpl("27799006",BA.NumberToString(_cuentacred0),0); -RDebugUtils.currentLine=7799007; - //BA.debugLineNum = 7799007;BA.debugLine="Log(Cuentacred2)"; -__c.LogImpl("27799007",BA.NumberToString(_cuentacred2),0); -RDebugUtils.currentLine=7799009; - //BA.debugLineNum = 7799009;BA.debugLine="l_montopag.Text = NumberFormat2((cuentacred0 + Cu"; -__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((_cuentacred0+_cuentacred2),(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=7799010; - //BA.debugLineNum = 7799010;BA.debugLine="l_montoefec.Text = NumberFormat2((NumberFormat2(("; -__ref._l_montoefec /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(__c.NumberFormat2(((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))),(int) (0),(int) (2),(int) (2),__c.False)))-(double)(Double.parseDouble(__ref._l_montopag /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))),(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=7799014; - //BA.debugLineNum = 7799014;BA.debugLine="c=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=7799015; - //BA.debugLineNum = 7799015;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=7799016; - //BA.debugLineNum = 7799016;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")"; -__ref._almacen /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"); -RDebugUtils.currentLine=7799017; - //BA.debugLineNum = 7799017;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=7799019; - //BA.debugLineNum = 7799019;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"SELECT"; + //BA.debugLineNum = 370;BA.debugLine="Log(cuentacred0)"; +__c.LogImpl("08061150",BA.NumberToString(_cuentacred0),0); + //BA.debugLineNum = 371;BA.debugLine="Log(Cuentacred2)"; +__c.LogImpl("08061151",BA.NumberToString(_cuentacred2),0); + //BA.debugLineNum = 373;BA.debugLine="l_montopag.Text = NumberFormat2((cuentacred0 + Cu"; +_l_montopag.setText(BA.ObjectToCharSequence(__c.NumberFormat2((_cuentacred0+_cuentacred2),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 374;BA.debugLine="l_montoefec.Text = NumberFormat2((NumberFormat2(("; +_l_montoefec.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(__c.NumberFormat2(((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))),(int) (0),(int) (2),(int) (2),__c.False)))-(double)(Double.parseDouble(_l_montopag.getText()))),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 378;BA.debugLine="c=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 379;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 380;BA.debugLine="almacen = c.GetString(\"ID_ALMACEN\")"; +_almacen = _c.GetString("ID_ALMACEN"); + //BA.debugLineNum = 381;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 383;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"SELECT"; _cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _cp = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=7799020; - //BA.debugLineNum = 7799020;BA.debugLine="If cp.RowCount > 0 Then"; + //BA.debugLineNum = 384;BA.debugLine="If cp.RowCount > 0 Then"; if (_cp.getRowCount()>0) { -RDebugUtils.currentLine=7799022; - //BA.debugLineNum = 7799022;BA.debugLine="Dim x2 As Cursor =Starter.skmt.ExecQuery(\"SELECT"; + //BA.debugLineNum = 386;BA.debugLine="Dim x2 As Cursor =Starter.skmt.ExecQuery(\"SELECT"; _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)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT gestion FROM kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=7799023; - //BA.debugLineNum = 7799023;BA.debugLine="x2.Position = 0"; + //BA.debugLineNum = 387;BA.debugLine="x2.Position = 0"; _x2.setPosition((int) (0)); -RDebugUtils.currentLine=7799024; - //BA.debugLineNum = 7799024;BA.debugLine="If x2.GetString(\"gestion\") = 2 Then"; + //BA.debugLineNum = 388;BA.debugLine="If x2.GetString(\"gestion\") = 2 Then"; if ((_x2.GetString("gestion")).equals(BA.NumberToString(2))) { -RDebugUtils.currentLine=7799025; - //BA.debugLineNum = 7799025;BA.debugLine="b_cancel_pagare.Visible = True"; -__ref._b_cancel_pagare /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 389;BA.debugLine="b_cancel_pagare.Visible = True"; +_b_cancel_pagare.setVisible(__c.True); }else { -RDebugUtils.currentLine=7799027; - //BA.debugLineNum = 7799027;BA.debugLine="b_cancel_pagare.Visible = False"; -__ref._b_cancel_pagare /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 391;BA.debugLine="b_cancel_pagare.Visible = False"; +_b_cancel_pagare.setVisible(__c.False); }; }else { -RDebugUtils.currentLine=7799031; - //BA.debugLineNum = 7799031;BA.debugLine="b_cancel_pagare.Visible = False"; -__ref._b_cancel_pagare /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 395;BA.debugLine="b_cancel_pagare.Visible = False"; +_b_cancel_pagare.setVisible(__c.False); }; -RDebugUtils.currentLine=7799036; - //BA.debugLineNum = 7799036;BA.debugLine="Log(\"SI AQUI\")"; -__c.LogImpl("27799036","SI AQUI",0); -RDebugUtils.currentLine=7799037; - //BA.debugLineNum = 7799037;BA.debugLine="b = Starter.skmt.ExecQuery(\"select COUNT(*) AS C"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CLIENTE FROM ABONOSP WHERE CLIENTE IN (Select CUENTA from cuentaa)"))); -RDebugUtils.currentLine=7799038; - //BA.debugLineNum = 7799038;BA.debugLine="b.Position = 0"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=7799039; - //BA.debugLineNum = 7799039;BA.debugLine="Dim cabonos As String = b.GetString(\"CLIENTE\")"; -_cabonos = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTE"); -RDebugUtils.currentLine=7799040; - //BA.debugLineNum = 7799040;BA.debugLine="If cabonos = 0 Then"; + //BA.debugLineNum = 400;BA.debugLine="Log(\"SI AQUI\")"; +__c.LogImpl("08061180","SI AQUI",0); + //BA.debugLineNum = 401;BA.debugLine="b = Starter.skmt.ExecQuery(\"select COUNT(*) AS C"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CLIENTE FROM ABONOSP WHERE CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 402;BA.debugLine="b.Position = 0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 403;BA.debugLine="Dim cabonos As String = b.GetString(\"CLIENTE\")"; +_cabonos = _b.GetString("CLIENTE"); + //BA.debugLineNum = 404;BA.debugLine="If cabonos = 0 Then"; if ((_cabonos).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=7799041; - //BA.debugLineNum = 7799041;BA.debugLine="b_cxc.Visible = False"; -__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 405;BA.debugLine="b_cxc.Visible = False"; +_b_cxc.setVisible(__c.False); }else { -RDebugUtils.currentLine=7799043; - //BA.debugLineNum = 7799043;BA.debugLine="b_cxc.Visible = True"; -__ref._b_cxc /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 407;BA.debugLine="b_cxc.Visible = True"; +_b_cxc.setVisible(__c.True); }; -RDebugUtils.currentLine=7799048; - //BA.debugLineNum = 7799048;BA.debugLine="If (Subs.traeCliente = \"63403\" OR Subs.traeClient"; + //BA.debugLineNum = 412;BA.debugLine="If (Subs.traeCliente = \"63403\" OR Subs.traeClient"; if (((_subs._traecliente /*String*/ (ba)).equals("63403") || (_subs._traecliente /*String*/ (ba)).equals("100000"))) { -RDebugUtils.currentLine=7799049; - //BA.debugLineNum = 7799049;BA.debugLine="gest.Visible = False"; -__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=7799050; - //BA.debugLineNum = 7799050;BA.debugLine="b_noEntrega.Visible = False"; -__ref._b_noentrega /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=7799051; - //BA.debugLineNum = 7799051;BA.debugLine="Tar.Visible = True"; -__ref._tar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=7799052; - //BA.debugLineNum = 7799052;BA.debugLine="NUEVO.Visible = False"; -__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=7799053; - //BA.debugLineNum = 7799053;BA.debugLine="B_IMP2.Visible = False"; -__ref._b_imp2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 413;BA.debugLine="gest.Visible = False"; +_gest.setVisible(__c.False); + //BA.debugLineNum = 414;BA.debugLine="b_noEntrega.Visible = False"; +_b_noentrega.setVisible(__c.False); + //BA.debugLineNum = 415;BA.debugLine="Tar.Visible = True"; +_tar.setVisible(__c.True); + //BA.debugLineNum = 416;BA.debugLine="NUEVO.Visible = False"; +_nuevo.setVisible(__c.False); + //BA.debugLineNum = 417;BA.debugLine="B_IMP2.Visible = False"; +_b_imp2.setVisible(__c.False); }else { -RDebugUtils.currentLine=7799055; - //BA.debugLineNum = 7799055;BA.debugLine="Tar.Visible = True"; -__ref._tar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=7799056; - //BA.debugLineNum = 7799056;BA.debugLine="gest.Visible = True"; -__ref._gest /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=7799057; - //BA.debugLineNum = 7799057;BA.debugLine="b_noEntrega.Visible = True"; -__ref._b_noentrega /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=7799058; - //BA.debugLineNum = 7799058;BA.debugLine="NUEVO.Visible = True"; -__ref._nuevo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=7799059; - //BA.debugLineNum = 7799059;BA.debugLine="B_IMP2.Visible = True"; -__ref._b_imp2 /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 419;BA.debugLine="Tar.Visible = True"; +_tar.setVisible(__c.True); + //BA.debugLineNum = 420;BA.debugLine="gest.Visible = True"; +_gest.setVisible(__c.True); + //BA.debugLineNum = 421;BA.debugLine="b_noEntrega.Visible = True"; +_b_noentrega.setVisible(__c.True); + //BA.debugLineNum = 422;BA.debugLine="NUEVO.Visible = True"; +_nuevo.setVisible(__c.True); + //BA.debugLineNum = 423;BA.debugLine="B_IMP2.Visible = True"; +_b_imp2.setVisible(__c.True); }; -RDebugUtils.currentLine=7799061; - //BA.debugLineNum = 7799061;BA.debugLine="End Sub"; + //BA.debugLineNum = 425;BA.debugLine="End Sub"; return ""; } -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));} -ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref); +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{ +ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { -public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) { +public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_cliente parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_cliente __ref; reparto_izca.keymon.lat.c_cliente parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cliente"; while (true) { switch (state) { @@ -7419,41 +3924,30 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = 1; -RDebugUtils.currentLine=8257539; - //BA.debugLineNum = 8257539;BA.debugLine="If p_credito.Visible Then"; + //BA.debugLineNum = 571;BA.debugLine="If p_credito.Visible Then"; if (true) break; case 1: //if this.state = 10; -if (__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { +if (parent._p_credito.getVisible()) { this.state = 3; -}else -{RDebugUtils.currentLine=8257543; - //BA.debugLineNum = 8257543;BA.debugLine="Else if p_abono.Visible Then"; -if (__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { +}else if(parent._p_abono.getVisible()) { this.state = 5; -}else -{RDebugUtils.currentLine=8257546; - //BA.debugLineNum = 8257546;BA.debugLine="Else If (la_cuenta.Text = \"63403\" Or la_cuenta.Te"; -if (((__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("63403") || (__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("100000"))) { +}else if(((parent._la_cuenta.getText()).equals("63403") || (parent._la_cuenta.getText()).equals("100000"))) { this.state = 7; }else { this.state = 9; -}}} -if (true) break; +}if (true) break; case 3: //C this.state = 10; -RDebugUtils.currentLine=8257540; - //BA.debugLineNum = 8257540;BA.debugLine="et_montoacredito.Text = \"\""; -__ref._et_montoacredito /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=8257541; - //BA.debugLineNum = 8257541;BA.debugLine="p_credito.Visible = False"; -__ref._p_credito /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); -RDebugUtils.currentLine=8257542; - //BA.debugLineNum = 8257542;BA.debugLine="Return False"; + //BA.debugLineNum = 572;BA.debugLine="et_montoacredito.Text = \"\""; +parent._et_montoacredito.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 573;BA.debugLine="p_credito.Visible = False"; +parent._p_credito.setVisible(parent.__c.False); + //BA.debugLineNum = 574;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; if (true) break; @@ -7461,11 +3955,9 @@ parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; case 5: //C this.state = 10; -RDebugUtils.currentLine=8257544; - //BA.debugLineNum = 8257544;BA.debugLine="p_abono.Visible = False"; -__ref._p_abono /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); -RDebugUtils.currentLine=8257545; - //BA.debugLineNum = 8257545;BA.debugLine="Return False"; + //BA.debugLineNum = 576;BA.debugLine="p_abono.Visible = False"; +parent._p_abono.setVisible(parent.__c.False); + //BA.debugLineNum = 577;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; if (true) break; @@ -7473,11 +3965,9 @@ parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; case 7: //C this.state = 10; -RDebugUtils.currentLine=8257547; - //BA.debugLineNum = 8257547;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 579;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; parent._b4xpages._showpage /*String*/ (ba,"Principal"); -RDebugUtils.currentLine=8257548; - //BA.debugLineNum = 8257548;BA.debugLine="Return False"; + //BA.debugLineNum = 580;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; if (true) break; @@ -7485,11 +3975,9 @@ parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; case 9: //C this.state = 10; -RDebugUtils.currentLine=8257550; - //BA.debugLineNum = 8257550;BA.debugLine="B4XPages.ShowPage(\"Clientes\")"; + //BA.debugLineNum = 582;BA.debugLine="B4XPages.ShowPage(\"Clientes\")"; parent._b4xpages._showpage /*String*/ (ba,"Clientes"); -RDebugUtils.currentLine=8257551; - //BA.debugLineNum = 8257551;BA.debugLine="Return False"; + //BA.debugLineNum = 583;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; if (true) break; @@ -7498,459 +3986,326 @@ case 10: //C this.state = -1; ; -RDebugUtils.currentLine=8257554; - //BA.debugLineNum = 8257554;BA.debugLine="End Sub"; + //BA.debugLineNum = 586;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b4xpage_created(reparto_izca.keymon.lat.c_cliente __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=7733248; - //BA.debugLineNum = 7733248;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=7733249; - //BA.debugLineNum = 7733249;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=7733251; - //BA.debugLineNum = 7733251;BA.debugLine="g.Initialize(\"GPS\")"; -__ref._g /*anywheresoftware.b4a.gps.GPS*/ .Initialize("GPS"); -RDebugUtils.currentLine=7733253; - //BA.debugLineNum = 7733253;BA.debugLine="Root.LoadLayout(\"cliente\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("cliente",ba); -RDebugUtils.currentLine=7733254; - //BA.debugLineNum = 7733254;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO, C"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, CAT_CL_RUTA, CAT_CL_NOMBRE, CAT_CL_ATIENDE1, CAT_CL_ATIENTE2, CAT_CL_TELEFONO, CAT_CL_EMAIL, CAT_CL_CALLE, CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); -RDebugUtils.currentLine=7733255; - //BA.debugLineNum = 7733255;BA.debugLine="s=Starter.skmt.ExecQuery(\"select sum(pe_costo_tot"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); -RDebugUtils.currentLine=7733256; - //BA.debugLineNum = 7733256;BA.debugLine="s.Position=0"; -__ref._s /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=7733257; - //BA.debugLineNum = 7733257;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=7733258; - //BA.debugLineNum = 7733258;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")"; -__ref._la_cuenta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO"))); -RDebugUtils.currentLine=7733259; - //BA.debugLineNum = 7733259;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")"; -__ref._la_nombre /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE"))); -RDebugUtils.currentLine=7733260; - //BA.debugLineNum = 7733260;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.G"; -__ref._la_calle /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOEXT"))); -RDebugUtils.currentLine=7733261; - //BA.debugLineNum = 7733261;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")"; -__ref._la_col /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_COLONIA"))); -RDebugUtils.currentLine=7733262; - //BA.debugLineNum = 7733262;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")"; -__ref._la_edo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_EDO"))); -RDebugUtils.currentLine=7733263; - //BA.debugLineNum = 7733263;BA.debugLine="la_cp.Text = c.GetString(\"CAT_CL_CP\")"; -__ref._la_cp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CP"))); -RDebugUtils.currentLine=7733264; - //BA.debugLineNum = 7733264;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")"; -__ref._l_entre1 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE1"))); -RDebugUtils.currentLine=7733265; - //BA.debugLineNum = 7733265;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")"; -__ref._l_entre2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE2"))); -RDebugUtils.currentLine=7733266; - //BA.debugLineNum = 7733266;BA.debugLine="If c.GetString(\"CAT_CL_ATIENDE1\") <> Null And c.G"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")!= null && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1")).equals("null") == false) { -RDebugUtils.currentLine=7733267; - //BA.debugLineNum = 7733267;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")"; -__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENDE1"))); +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 109;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 110;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 112;BA.debugLine="g.Initialize(\"GPS\")"; +_g.Initialize("GPS"); + //BA.debugLineNum = 114;BA.debugLine="Root.LoadLayout(\"cliente\")"; +_root.LoadLayout("cliente",ba); + //BA.debugLineNum = 115;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO, C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, CAT_CL_RUTA, CAT_CL_NOMBRE, CAT_CL_ATIENDE1, CAT_CL_ATIENTE2, CAT_CL_TELEFONO, CAT_CL_EMAIL, CAT_CL_CALLE, CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT from kmt_info where CAT_CL_CODIGO In (Select cuenta from cuentaa)"))); + //BA.debugLineNum = 116;BA.debugLine="s=Starter.skmt.ExecQuery(\"select sum(pe_costo_tot"; +_s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(pe_costo_tot) as TOTAL_CLIE, SUM(PE_CANT) AS CANT_CLIE FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 117;BA.debugLine="s.Position=0"; +_s.setPosition((int) (0)); + //BA.debugLineNum = 118;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 119;BA.debugLine="la_cuenta.Text = c.GetString(\"CAT_CL_CODIGO\")"; +_la_cuenta.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO"))); + //BA.debugLineNum = 120;BA.debugLine="La_nombre.Text = c.GetString(\"CAT_CL_NOMBRE\")"; +_la_nombre.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_NOMBRE"))); + //BA.debugLineNum = 121;BA.debugLine="la_Calle.Text = c.GetString(\"CAT_CL_CALLE\") & c.G"; +_la_calle.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE")+_c.GetString("CAT_CL_NOEXT"))); + //BA.debugLineNum = 122;BA.debugLine="la_col.Text = c.GetString(\"CAT_CL_COLONIA\")"; +_la_col.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_COLONIA"))); + //BA.debugLineNum = 123;BA.debugLine="la_edo.Text = c.GetString(\"CAT_CL_EDO\")"; +_la_edo.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EDO"))); + //BA.debugLineNum = 124;BA.debugLine="la_cp.Text = c.GetString(\"CAT_CL_CP\")"; +_la_cp.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CP"))); + //BA.debugLineNum = 125;BA.debugLine="l_entre1.Text = c.GetString(\"CAT_CL_CALLE1\")"; +_l_entre1.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE1"))); + //BA.debugLineNum = 126;BA.debugLine="l_entre2.Text = c.GetString(\"CAT_CL_CALLE2\")"; +_l_entre2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE2"))); + //BA.debugLineNum = 127;BA.debugLine="If c.GetString(\"CAT_CL_ATIENDE1\") <> Null And c.G"; +if (_c.GetString("CAT_CL_ATIENDE1")!= null && (_c.GetString("CAT_CL_ATIENDE1")).equals("null") == false) { + //BA.debugLineNum = 128;BA.debugLine="l_atiende.Text = c.GetString(\"CAT_CL_ATIENDE1\")"; +_l_atiende.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENDE1"))); }else { -RDebugUtils.currentLine=7733269; - //BA.debugLineNum = 7733269;BA.debugLine="l_atiende.Text = \" \""; -__ref._l_atiende /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" ")); + //BA.debugLineNum = 130;BA.debugLine="l_atiende.Text = \" \""; +_l_atiende.setText(BA.ObjectToCharSequence(" ")); }; -RDebugUtils.currentLine=7733271; - //BA.debugLineNum = 7733271;BA.debugLine="If c.GetString(\"CAT_CL_ATIENTE2\") <> Null And c.G"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")!= null && (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")).equals("NULL") == false) { -RDebugUtils.currentLine=7733272; - //BA.debugLineNum = 7733272;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")"; -__ref._l_atiende2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2"))); -RDebugUtils.currentLine=7733273; - //BA.debugLineNum = 7733273;BA.debugLine="Log(\"|\"&c.GetString(\"CAT_CL_ATIENTE2\")&\"|\")"; -__c.LogImpl("27733273","|"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_ATIENTE2")+"|",0); + //BA.debugLineNum = 132;BA.debugLine="If c.GetString(\"CAT_CL_ATIENTE2\") <> Null And c.G"; +if (_c.GetString("CAT_CL_ATIENTE2")!= null && (_c.GetString("CAT_CL_ATIENTE2")).equals("NULL") == false) { + //BA.debugLineNum = 133;BA.debugLine="l_atiende2.Text = c.GetString(\"CAT_CL_ATIENTE2\")"; +_l_atiende2.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_ATIENTE2"))); + //BA.debugLineNum = 134;BA.debugLine="Log(\"|\"&c.GetString(\"CAT_CL_ATIENTE2\")&\"|\")"; +__c.LogImpl("07995417","|"+_c.GetString("CAT_CL_ATIENTE2")+"|",0); }else { -RDebugUtils.currentLine=7733275; - //BA.debugLineNum = 7733275;BA.debugLine="l_atiende2.Text = \" \""; -__ref._l_atiende2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(" ")); + //BA.debugLineNum = 136;BA.debugLine="l_atiende2.Text = \" \""; +_l_atiende2.setText(BA.ObjectToCharSequence(" ")); }; -RDebugUtils.currentLine=7733277; - //BA.debugLineNum = 7733277;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\")"; -__ref._la_saldotot /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_TELEFONO"))); -RDebugUtils.currentLine=7733278; - //BA.debugLineNum = 7733278;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")"; -__ref._la_saldooper /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_EMAIL"))); -RDebugUtils.currentLine=7733280; - //BA.debugLineNum = 7733280;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")"; -__ref._btadmin /*anywheresoftware.b4a.objects.Serial.BluetoothAdmin*/ .Initialize(ba,"BlueTeeth"); -RDebugUtils.currentLine=7733281; - //BA.debugLineNum = 7733281;BA.debugLine="cmp20.Initialize(\"Printer\")"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Initialize("Printer"); -RDebugUtils.currentLine=7733282; - //BA.debugLineNum = 7733282;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=7733283; - //BA.debugLineNum = 7733283;BA.debugLine="End Sub"; + //BA.debugLineNum = 138;BA.debugLine="la_saldotot.Text = c.GetString(\"CAT_CL_TELEFONO\")"; +_la_saldotot.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_TELEFONO"))); + //BA.debugLineNum = 139;BA.debugLine="la_saldooper.Text = c.GetString(\"CAT_CL_EMAIL\")"; +_la_saldooper.setText(BA.ObjectToCharSequence(_c.GetString("CAT_CL_EMAIL"))); + //BA.debugLineNum = 141;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")"; +_btadmin.Initialize(ba,"BlueTeeth"); + //BA.debugLineNum = 142;BA.debugLine="cmp20.Initialize(\"Printer\")"; +_cmp20.Initialize("Printer"); + //BA.debugLineNum = 143;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 144;BA.debugLine="End Sub"; return ""; } -public String _cb_tipopago_selectedindexchanged(reparto_izca.keymon.lat.c_cliente __ref,int _index) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "cb_tipopago_selectedindexchanged", false)) - {return ((String) Debug.delegate(ba, "cb_tipopago_selectedindexchanged", new Object[] {_index}));} -RDebugUtils.currentLine=9895936; - //BA.debugLineNum = 9895936;BA.debugLine="Private Sub cb_tipopago_SelectedIndexChanged (Inde"; -RDebugUtils.currentLine=9895937; - //BA.debugLineNum = 9895937;BA.debugLine="itemselect = cb_tipopago.SelectedItem"; -__ref._itemselect /*String*/ = __ref._cb_tipopago /*reparto_izca.keymon.lat.b4xcombobox*/ ._getselecteditem /*String*/ (null); -RDebugUtils.currentLine=9895938; - //BA.debugLineNum = 9895938;BA.debugLine="End Sub"; +public String _cb_tipopago_selectedindexchanged(int _index) throws Exception{ + //BA.debugLineNum = 2470;BA.debugLine="Private Sub cb_tipopago_SelectedIndexChanged (Inde"; + //BA.debugLineNum = 2471;BA.debugLine="itemselect = cb_tipopago.SelectedItem"; +_itemselect = _cb_tipopago._getselecteditem /*String*/ (); + //BA.debugLineNum = 2472;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -RDebugUtils.currentLine=7602176; - //BA.debugLineNum = 7602176;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=7602177; - //BA.debugLineNum = 7602177;BA.debugLine="Private Root As B4XView 'ignore"; +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(); -RDebugUtils.currentLine=7602178; - //BA.debugLineNum = 7602178;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=7602179; - //BA.debugLineNum = 7602179;BA.debugLine="Dim g As GPS"; + //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS"; _g = new anywheresoftware.b4a.gps.GPS(); -RDebugUtils.currentLine=7602180; - //BA.debugLineNum = 7602180;BA.debugLine="Dim clie_id As String"; + //BA.debugLineNum = 5;BA.debugLine="Dim clie_id As String"; _clie_id = ""; -RDebugUtils.currentLine=7602181; - //BA.debugLineNum = 7602181;BA.debugLine="Dim sDate,sTime As String"; + //BA.debugLineNum = 6;BA.debugLine="Dim sDate,sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=7602182; - //BA.debugLineNum = 7602182;BA.debugLine="Dim usuario As String"; + //BA.debugLineNum = 7;BA.debugLine="Dim usuario As String"; _usuario = ""; -RDebugUtils.currentLine=7602183; - //BA.debugLineNum = 7602183;BA.debugLine="Dim cuenta As String"; + //BA.debugLineNum = 8;BA.debugLine="Dim cuenta As String"; _cuenta = ""; -RDebugUtils.currentLine=7602184; - //BA.debugLineNum = 7602184;BA.debugLine="Dim btAdmin As BluetoothAdmin"; + //BA.debugLineNum = 9;BA.debugLine="Dim btAdmin As BluetoothAdmin"; _btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin(); -RDebugUtils.currentLine=7602185; - //BA.debugLineNum = 7602185;BA.debugLine="Dim cmp20 As Serial"; + //BA.debugLineNum = 10;BA.debugLine="Dim cmp20 As Serial"; _cmp20 = new anywheresoftware.b4a.objects.Serial(); -RDebugUtils.currentLine=7602186; - //BA.debugLineNum = 7602186;BA.debugLine="Dim printer As TextWriter"; + //BA.debugLineNum = 11;BA.debugLine="Dim printer As TextWriter"; _printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper(); -RDebugUtils.currentLine=7602187; - //BA.debugLineNum = 7602187;BA.debugLine="Dim PairedDevices As Map"; + //BA.debugLineNum = 12;BA.debugLine="Dim PairedDevices As Map"; _paireddevices = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=7602188; - //BA.debugLineNum = 7602188;BA.debugLine="Dim L As List"; + //BA.debugLineNum = 13;BA.debugLine="Dim L As List"; _l = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=7602189; - //BA.debugLineNum = 7602189;BA.debugLine="Dim TAMANO As Int"; + //BA.debugLineNum = 14;BA.debugLine="Dim TAMANO As Int"; _tamano = 0; -RDebugUtils.currentLine=7602190; - //BA.debugLineNum = 7602190;BA.debugLine="Dim ESPACIO As Int"; + //BA.debugLineNum = 15;BA.debugLine="Dim ESPACIO As Int"; _espacio = 0; -RDebugUtils.currentLine=7602191; - //BA.debugLineNum = 7602191;BA.debugLine="Dim BLANCO As String"; + //BA.debugLineNum = 16;BA.debugLine="Dim BLANCO As String"; _blanco = ""; -RDebugUtils.currentLine=7602192; - //BA.debugLineNum = 7602192;BA.debugLine="Dim impresoraConectada As Boolean = False"; + //BA.debugLineNum = 17;BA.debugLine="Dim impresoraConectada As Boolean = False"; _impresoraconectada = __c.False; -RDebugUtils.currentLine=7602193; - //BA.debugLineNum = 7602193;BA.debugLine="Dim LONGITUD As String"; + //BA.debugLineNum = 18;BA.debugLine="Dim LONGITUD As String"; _longitud = ""; -RDebugUtils.currentLine=7602194; - //BA.debugLineNum = 7602194;BA.debugLine="Dim LATITUD As String"; + //BA.debugLineNum = 19;BA.debugLine="Dim LATITUD As String"; _latitud = ""; -RDebugUtils.currentLine=7602195; - //BA.debugLineNum = 7602195;BA.debugLine="Dim NOMBRE As String"; + //BA.debugLineNum = 20;BA.debugLine="Dim NOMBRE As String"; _nombre = ""; -RDebugUtils.currentLine=7602196; - //BA.debugLineNum = 7602196;BA.debugLine="Dim c As Cursor"; + //BA.debugLineNum = 21;BA.debugLine="Dim c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=7602197; - //BA.debugLineNum = 7602197;BA.debugLine="Dim s As Cursor"; + //BA.debugLineNum = 22;BA.debugLine="Dim s As Cursor"; _s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=7602198; - //BA.debugLineNum = 7602198;BA.debugLine="Dim ListView1 As ListView"; + //BA.debugLineNum = 23;BA.debugLine="Dim ListView1 As ListView"; _listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=7602199; - //BA.debugLineNum = 7602199;BA.debugLine="Dim la_cuenta As Label"; + //BA.debugLineNum = 24;BA.debugLine="Dim la_cuenta As Label"; _la_cuenta = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602200; - //BA.debugLineNum = 7602200;BA.debugLine="Dim La_nombre As Label"; + //BA.debugLineNum = 25;BA.debugLine="Dim La_nombre As Label"; _la_nombre = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602201; - //BA.debugLineNum = 7602201;BA.debugLine="Dim la_Calle As Label"; + //BA.debugLineNum = 26;BA.debugLine="Dim la_Calle As Label"; _la_calle = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602202; - //BA.debugLineNum = 7602202;BA.debugLine="Dim la_numero As Label"; + //BA.debugLineNum = 27;BA.debugLine="Dim la_numero As Label"; _la_numero = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602203; - //BA.debugLineNum = 7602203;BA.debugLine="Dim la_nint As Label"; + //BA.debugLineNum = 28;BA.debugLine="Dim la_nint As Label"; _la_nint = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602204; - //BA.debugLineNum = 7602204;BA.debugLine="Dim la_edo As Label"; + //BA.debugLineNum = 29;BA.debugLine="Dim la_edo As Label"; _la_edo = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602205; - //BA.debugLineNum = 7602205;BA.debugLine="Dim la_pob As Label"; + //BA.debugLineNum = 30;BA.debugLine="Dim la_pob As Label"; _la_pob = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602206; - //BA.debugLineNum = 7602206;BA.debugLine="Dim la_col As Label"; + //BA.debugLineNum = 31;BA.debugLine="Dim la_col As Label"; _la_col = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602207; - //BA.debugLineNum = 7602207;BA.debugLine="Dim la_cp As Label"; + //BA.debugLineNum = 32;BA.debugLine="Dim la_cp As Label"; _la_cp = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602208; - //BA.debugLineNum = 7602208;BA.debugLine="Dim la_zona As Label"; + //BA.debugLineNum = 33;BA.debugLine="Dim la_zona As Label"; _la_zona = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602209; - //BA.debugLineNum = 7602209;BA.debugLine="Dim gest As Button"; + //BA.debugLineNum = 34;BA.debugLine="Dim gest As Button"; _gest = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602210; - //BA.debugLineNum = 7602210;BA.debugLine="Dim la_saldotot As Label"; + //BA.debugLineNum = 35;BA.debugLine="Dim la_saldotot As Label"; _la_saldotot = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602211; - //BA.debugLineNum = 7602211;BA.debugLine="Dim la_saldooper As Label"; + //BA.debugLineNum = 36;BA.debugLine="Dim la_saldooper As Label"; _la_saldooper = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602212; - //BA.debugLineNum = 7602212;BA.debugLine="Dim reqManager As DBRequestManager"; + //BA.debugLineNum = 37;BA.debugLine="Dim reqManager As DBRequestManager"; _reqmanager = new reparto_izca.keymon.lat.dbrequestmanager(); -RDebugUtils.currentLine=7602213; - //BA.debugLineNum = 7602213;BA.debugLine="Dim b_noEntrega As Button"; + //BA.debugLineNum = 38;BA.debugLine="Dim b_noEntrega As Button"; _b_noentrega = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602214; - //BA.debugLineNum = 7602214;BA.debugLine="Dim Label10 As Label"; + //BA.debugLineNum = 39;BA.debugLine="Dim Label10 As Label"; _label10 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602215; - //BA.debugLineNum = 7602215;BA.debugLine="Dim Label11 As Label"; + //BA.debugLineNum = 40;BA.debugLine="Dim Label11 As Label"; _label11 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602216; - //BA.debugLineNum = 7602216;BA.debugLine="Dim d As Cursor"; + //BA.debugLineNum = 41;BA.debugLine="Dim d As Cursor"; _d = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=7602217; - //BA.debugLineNum = 7602217;BA.debugLine="Dim ime As IME"; + //BA.debugLineNum = 42;BA.debugLine="Dim ime As IME"; _ime = new anywheresoftware.b4a.objects.IME(); -RDebugUtils.currentLine=7602218; - //BA.debugLineNum = 7602218;BA.debugLine="Dim Tar As Button"; + //BA.debugLineNum = 43;BA.debugLine="Dim Tar As Button"; _tar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602219; - //BA.debugLineNum = 7602219;BA.debugLine="Private L_QR As Label"; + //BA.debugLineNum = 44;BA.debugLine="Private L_QR As Label"; _l_qr = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602220; - //BA.debugLineNum = 7602220;BA.debugLine="Private BT_QR As Button"; + //BA.debugLineNum = 45;BA.debugLine="Private BT_QR As Button"; _bt_qr = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602221; - //BA.debugLineNum = 7602221;BA.debugLine="Dim Printer1 As EscPosPrinter"; + //BA.debugLineNum = 46;BA.debugLine="Dim Printer1 As EscPosPrinter"; _printer1 = new reparto_izca.keymon.lat.escposprinter(); -RDebugUtils.currentLine=7602222; - //BA.debugLineNum = 7602222;BA.debugLine="Dim la_comm As Label"; + //BA.debugLineNum = 47;BA.debugLine="Dim la_comm As Label"; _la_comm = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602223; - //BA.debugLineNum = 7602223;BA.debugLine="Dim la_actdte As Label"; + //BA.debugLineNum = 48;BA.debugLine="Dim la_actdte As Label"; _la_actdte = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602224; - //BA.debugLineNum = 7602224;BA.debugLine="Dim la_usuario As Label"; + //BA.debugLineNum = 49;BA.debugLine="Dim la_usuario As Label"; _la_usuario = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602225; - //BA.debugLineNum = 7602225;BA.debugLine="Dim la_resultado As Label"; + //BA.debugLineNum = 50;BA.debugLine="Dim la_resultado As Label"; _la_resultado = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602226; - //BA.debugLineNum = 7602226;BA.debugLine="Dim l_entre1 As Label"; + //BA.debugLineNum = 51;BA.debugLine="Dim l_entre1 As Label"; _l_entre1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602227; - //BA.debugLineNum = 7602227;BA.debugLine="Dim l_entre2 As Label"; + //BA.debugLineNum = 52;BA.debugLine="Dim l_entre2 As Label"; _l_entre2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602228; - //BA.debugLineNum = 7602228;BA.debugLine="Dim l_atiende As Label"; + //BA.debugLineNum = 53;BA.debugLine="Dim l_atiende As Label"; _l_atiende = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602229; - //BA.debugLineNum = 7602229;BA.debugLine="Dim l_atiende2 As Label"; + //BA.debugLineNum = 54;BA.debugLine="Dim l_atiende2 As Label"; _l_atiende2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602230; - //BA.debugLineNum = 7602230;BA.debugLine="Dim DATOS As Button"; + //BA.debugLineNum = 55;BA.debugLine="Dim DATOS As Button"; _datos = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602231; - //BA.debugLineNum = 7602231;BA.debugLine="Dim Guardar As Button"; + //BA.debugLineNum = 56;BA.debugLine="Dim Guardar As Button"; _guardar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602232; - //BA.debugLineNum = 7602232;BA.debugLine="Dim NUEVO As Button"; + //BA.debugLineNum = 57;BA.debugLine="Dim NUEVO As Button"; _nuevo = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602233; - //BA.debugLineNum = 7602233;BA.debugLine="Private l_total As Label"; + //BA.debugLineNum = 58;BA.debugLine="Private l_total As Label"; _l_total = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602234; - //BA.debugLineNum = 7602234;BA.debugLine="Private HIST As Button"; + //BA.debugLineNum = 59;BA.debugLine="Private HIST As Button"; _hist = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602235; - //BA.debugLineNum = 7602235;BA.debugLine="Dim PASA_IMP As String"; + //BA.debugLineNum = 60;BA.debugLine="Dim PASA_IMP As String"; _pasa_imp = ""; -RDebugUtils.currentLine=7602236; - //BA.debugLineNum = 7602236;BA.debugLine="Private B_IMP As Button"; + //BA.debugLineNum = 61;BA.debugLine="Private B_IMP As Button"; _b_imp = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602237; - //BA.debugLineNum = 7602237;BA.debugLine="Dim total_cliente As String"; + //BA.debugLineNum = 62;BA.debugLine="Dim total_cliente As String"; _total_cliente = ""; -RDebugUtils.currentLine=7602238; - //BA.debugLineNum = 7602238;BA.debugLine="Dim CREDITO As String"; + //BA.debugLineNum = 63;BA.debugLine="Dim CREDITO As String"; _credito = ""; -RDebugUtils.currentLine=7602239; - //BA.debugLineNum = 7602239;BA.debugLine="Private p_principal As Panel"; + //BA.debugLineNum = 64;BA.debugLine="Private p_principal As Panel"; _p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=7602240; - //BA.debugLineNum = 7602240;BA.debugLine="Private B_PASO2 As Button"; + //BA.debugLineNum = 65;BA.debugLine="Private B_PASO2 As Button"; _b_paso2 = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602241; - //BA.debugLineNum = 7602241;BA.debugLine="Private L_CANT As Label"; + //BA.debugLineNum = 66;BA.debugLine="Private L_CANT As Label"; _l_cant = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602242; - //BA.debugLineNum = 7602242;BA.debugLine="Dim errorImpresora As Int = 0"; + //BA.debugLineNum = 67;BA.debugLine="Dim errorImpresora As Int = 0"; _errorimpresora = (int) (0); -RDebugUtils.currentLine=7602243; - //BA.debugLineNum = 7602243;BA.debugLine="Dim banderaimp As Int"; + //BA.debugLineNum = 68;BA.debugLine="Dim banderaimp As Int"; _banderaimp = 0; -RDebugUtils.currentLine=7602244; - //BA.debugLineNum = 7602244;BA.debugLine="Private l_credi As Label"; + //BA.debugLineNum = 69;BA.debugLine="Private l_credi As Label"; _l_credi = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602245; - //BA.debugLineNum = 7602245;BA.debugLine="Private l_pagare As Label"; + //BA.debugLineNum = 70;BA.debugLine="Private l_pagare As Label"; _l_pagare = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602246; - //BA.debugLineNum = 7602246;BA.debugLine="Private l_montopag As Label"; + //BA.debugLineNum = 71;BA.debugLine="Private l_montopag As Label"; _l_montopag = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602247; - //BA.debugLineNum = 7602247;BA.debugLine="Private l_efectivo As Label"; + //BA.debugLineNum = 72;BA.debugLine="Private l_efectivo As Label"; _l_efectivo = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602248; - //BA.debugLineNum = 7602248;BA.debugLine="Private l_montoefec As Label"; + //BA.debugLineNum = 73;BA.debugLine="Private l_montoefec As Label"; _l_montoefec = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602249; - //BA.debugLineNum = 7602249;BA.debugLine="Private p_credito As Panel"; + //BA.debugLineNum = 74;BA.debugLine="Private p_credito As Panel"; _p_credito = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=7602250; - //BA.debugLineNum = 7602250;BA.debugLine="Private b_acred As Button"; + //BA.debugLineNum = 75;BA.debugLine="Private b_acred As Button"; _b_acred = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602251; - //BA.debugLineNum = 7602251;BA.debugLine="Private b_cancred As Button"; + //BA.debugLineNum = 76;BA.debugLine="Private b_cancred As Button"; _b_cancred = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602252; - //BA.debugLineNum = 7602252;BA.debugLine="Private et_montoacredito As EditText"; + //BA.debugLineNum = 77;BA.debugLine="Private et_montoacredito As EditText"; _et_montoacredito = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=7602253; - //BA.debugLineNum = 7602253;BA.debugLine="Private Label16 As Label"; + //BA.debugLineNum = 78;BA.debugLine="Private Label16 As Label"; _label16 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602254; - //BA.debugLineNum = 7602254;BA.debugLine="Private l_limite As Label"; + //BA.debugLineNum = 79;BA.debugLine="Private l_limite As Label"; _l_limite = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602255; - //BA.debugLineNum = 7602255;BA.debugLine="Dim almacen As String"; + //BA.debugLineNum = 80;BA.debugLine="Dim almacen As String"; _almacen = ""; -RDebugUtils.currentLine=7602256; - //BA.debugLineNum = 7602256;BA.debugLine="Dim fechaprev As String"; + //BA.debugLineNum = 81;BA.debugLine="Dim fechaprev As String"; _fechaprev = ""; -RDebugUtils.currentLine=7602257; - //BA.debugLineNum = 7602257;BA.debugLine="Dim rutaprev As String"; + //BA.debugLineNum = 82;BA.debugLine="Dim rutaprev As String"; _rutaprev = ""; -RDebugUtils.currentLine=7602258; - //BA.debugLineNum = 7602258;BA.debugLine="Dim rutarep As String"; + //BA.debugLineNum = 83;BA.debugLine="Dim rutarep As String"; _rutarep = ""; -RDebugUtils.currentLine=7602259; - //BA.debugLineNum = 7602259;BA.debugLine="Dim montopagare As String"; + //BA.debugLineNum = 84;BA.debugLine="Dim montopagare As String"; _montopagare = ""; -RDebugUtils.currentLine=7602260; - //BA.debugLineNum = 7602260;BA.debugLine="Private p_abono As Panel"; + //BA.debugLineNum = 85;BA.debugLine="Private p_abono As Panel"; _p_abono = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=7602261; - //BA.debugLineNum = 7602261;BA.debugLine="Private clv_abonos As CustomListView"; + //BA.debugLineNum = 86;BA.debugLine="Private clv_abonos As CustomListView"; _clv_abonos = new b4a.example3.customlistview(); -RDebugUtils.currentLine=7602262; - //BA.debugLineNum = 7602262;BA.debugLine="Private et_abono As EditText"; + //BA.debugLineNum = 87;BA.debugLine="Private et_abono As EditText"; _et_abono = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=7602263; - //BA.debugLineNum = 7602263;BA.debugLine="Private b_cancelar As Button"; + //BA.debugLineNum = 88;BA.debugLine="Private b_cancelar As Button"; _b_cancelar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602264; - //BA.debugLineNum = 7602264;BA.debugLine="Private b_abono As Button"; + //BA.debugLineNum = 89;BA.debugLine="Private b_abono As Button"; _b_abono = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602265; - //BA.debugLineNum = 7602265;BA.debugLine="Private l_montoabonostotal As Label"; + //BA.debugLineNum = 90;BA.debugLine="Private l_montoabonostotal As Label"; _l_montoabonostotal = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602266; - //BA.debugLineNum = 7602266;BA.debugLine="Dim h, j,b, f As Cursor"; + //BA.debugLineNum = 91;BA.debugLine="Dim h, j,b, f As Cursor"; _h = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _j = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _b = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _f = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=7602267; - //BA.debugLineNum = 7602267;BA.debugLine="Private l_folio As Label"; + //BA.debugLineNum = 92;BA.debugLine="Private l_folio As Label"; _l_folio = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602268; - //BA.debugLineNum = 7602268;BA.debugLine="Private l_saldo As Label"; + //BA.debugLineNum = 93;BA.debugLine="Private l_saldo As Label"; _l_saldo = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=7602269; - //BA.debugLineNum = 7602269;BA.debugLine="Private b_cxc As Button"; + //BA.debugLineNum = 94;BA.debugLine="Private b_cxc As Button"; _b_cxc = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602270; - //BA.debugLineNum = 7602270;BA.debugLine="Private cb_tipopago As B4XComboBox"; + //BA.debugLineNum = 95;BA.debugLine="Private cb_tipopago As B4XComboBox"; _cb_tipopago = new reparto_izca.keymon.lat.b4xcombobox(); -RDebugUtils.currentLine=7602271; - //BA.debugLineNum = 7602271;BA.debugLine="Dim itemselect As String"; + //BA.debugLineNum = 96;BA.debugLine="Dim itemselect As String"; _itemselect = ""; -RDebugUtils.currentLine=7602272; - //BA.debugLineNum = 7602272;BA.debugLine="Dim tipo_abonox As String"; + //BA.debugLineNum = 97;BA.debugLine="Dim tipo_abonox As String"; _tipo_abonox = ""; -RDebugUtils.currentLine=7602273; - //BA.debugLineNum = 7602273;BA.debugLine="Private b_cancel_pagare As Button"; + //BA.debugLineNum = 98;BA.debugLine="Private b_cancel_pagare As Button"; _b_cancel_pagare = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602274; - //BA.debugLineNum = 7602274;BA.debugLine="Dim NOTA As String"; + //BA.debugLineNum = 99;BA.debugLine="Dim NOTA As String"; _nota = ""; -RDebugUtils.currentLine=7602275; - //BA.debugLineNum = 7602275;BA.debugLine="Private B_IMP2 As Button"; + //BA.debugLineNum = 100;BA.debugLine="Private B_IMP2 As Button"; _b_imp2 = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=7602276; - //BA.debugLineNum = 7602276;BA.debugLine="End Sub"; + //BA.debugLineNum = 101;BA.debugLine="End Sub"; return ""; } -public String _datos_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "datos_click", false)) - {return ((String) Debug.delegate(ba, "datos_click", null));} -RDebugUtils.currentLine=8388608; - //BA.debugLineNum = 8388608;BA.debugLine="Sub DATOS_Click"; -RDebugUtils.currentLine=8388610; - //BA.debugLineNum = 8388610;BA.debugLine="End Sub"; +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _mostrar,String _mostrar1) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; + //BA.debugLineNum = 2046;BA.debugLine="Sub CreateListItem(mostrar As String, mostrar1 As"; + //BA.debugLineNum = 2047;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 2048;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, 1, 10)"; +_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10)); + //BA.debugLineNum = 2049;BA.debugLine="p.LoadLayout(\"folioabono\")"; +_p.LoadLayout("folioabono",ba); + //BA.debugLineNum = 2050;BA.debugLine="p.Height= 32dip"; +_p.setHeight(__c.DipToCurrent((int) (32))); + //BA.debugLineNum = 2051;BA.debugLine="p.Width = 80dip"; +_p.setWidth(__c.DipToCurrent((int) (80))); + //BA.debugLineNum = 2053;BA.debugLine="l_folio.Text = mostrar"; +_l_folio.setText(BA.ObjectToCharSequence(_mostrar)); + //BA.debugLineNum = 2054;BA.debugLine="l_saldo.Text = mostrar1"; +_l_saldo.setText(BA.ObjectToCharSequence(_mostrar1)); + //BA.debugLineNum = 2057;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 = 2058;BA.debugLine="End Sub"; +return null; +} +public String _datos_click() throws Exception{ + //BA.debugLineNum = 593;BA.debugLine="Sub DATOS_Click"; + //BA.debugLineNum = 595;BA.debugLine="End Sub"; return ""; } -public void _gest_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "gest_click", false)) - {Debug.delegate(ba, "gest_click", null); return;} -ResumableSub_gest_Click rsub = new ResumableSub_gest_Click(this,__ref); +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(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) { +public ResumableSub_gest_Click(reparto_izca.keymon.lat.c_cliente parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_cliente __ref; reparto_izca.keymon.lat.c_cliente parent; anywheresoftware.b4a.sql.SQL.CursorWrapper _x2 = null; int _result = 0; @@ -7961,7 +4316,6 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _cobra = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cliente"; while (true) { switch (state) { @@ -7971,15 +4325,12 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=8060940; - //BA.debugLineNum = 8060940;BA.debugLine="Dim x2 As Cursor =Starter.skmt.ExecQuery(\"SELECT"; + //BA.debugLineNum = 458;BA.debugLine="Dim x2 As Cursor =Starter.skmt.ExecQuery(\"SELECT"; _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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT gestion FROM kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=8060941; - //BA.debugLineNum = 8060941;BA.debugLine="x2.Position = 0"; + //BA.debugLineNum = 459;BA.debugLine="x2.Position = 0"; _x2.setPosition((int) (0)); -RDebugUtils.currentLine=8060942; - //BA.debugLineNum = 8060942;BA.debugLine="If x2.GetString(\"gestion\") = 2 Then"; + //BA.debugLineNum = 460;BA.debugLine="If x2.GetString(\"gestion\") = 2 Then"; if (true) break; case 1: @@ -7994,21 +4345,18 @@ this.state = 9; case 3: //C this.state = 4; -RDebugUtils.currentLine=8060943; - //BA.debugLineNum = 8060943;BA.debugLine="Msgbox2Async(\"Ya se gestiono el cliente, no se p"; + //BA.debugLineNum = 461;BA.debugLine="Msgbox2Async(\"Ya se gestiono el cliente, no se p"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Ya se gestiono el cliente, no se pueden hacer modificaciones"),BA.ObjectToCharSequence("Atención"),"","","Ok",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=8060944; - //BA.debugLineNum = 8060944;BA.debugLine="Wait For Msgbox_Result (Result As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "gest_click"), null); + //BA.debugLineNum = 462;BA.debugLine="Wait For Msgbox_Result (Result As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 41; return; case 41: //C this.state = 4; -_result = (Integer) result[1]; +_result = (Integer) result[0]; ; -RDebugUtils.currentLine=8060945; - //BA.debugLineNum = 8060945;BA.debugLine="If Result= DialogResponse.NEGATIVE Then"; + //BA.debugLineNum = 463;BA.debugLine="If Result= DialogResponse.NEGATIVE Then"; if (true) break; case 4: @@ -8021,8 +4369,7 @@ this.state = 6; case 6: //C this.state = 7; -RDebugUtils.currentLine=8060946; - //BA.debugLineNum = 8060946;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 464;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; parent._b4xpages._showpage /*String*/ (ba,"Principal"); if (true) break; @@ -8035,32 +4382,24 @@ this.state = 40; case 9: //C this.state = 10; -RDebugUtils.currentLine=8060949; - //BA.debugLineNum = 8060949;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT"; + //BA.debugLineNum = 467;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT"; _k = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA"))); -RDebugUtils.currentLine=8060950; - //BA.debugLineNum = 8060950;BA.debugLine="k.Position = 0"; + //BA.debugLineNum = 468;BA.debugLine="k.Position = 0"; _k.setPosition((int) (0)); -RDebugUtils.currentLine=8060951; - //BA.debugLineNum = 8060951;BA.debugLine="Log(k.GetString(\"CUENTA\"))"; -parent.__c.LogImpl("28060951",_k.GetString("CUENTA"),0); -RDebugUtils.currentLine=8060952; - //BA.debugLineNum = 8060952;BA.debugLine="Dim y As Cursor = Starter.skmt.ExecQuery2(\"SELEC"; + //BA.debugLineNum = 469;BA.debugLine="Log(k.GetString(\"CUENTA\"))"; +parent.__c.LogImpl("08323095",_k.GetString("CUENTA"),0); + //BA.debugLineNum = 470;BA.debugLine="Dim y As Cursor = Starter.skmt.ExecQuery2(\"SELEC"; _y = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _y = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT IFNULL(SUM(a_abono),0) AS a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{_k.GetString("CUENTA")}))); -RDebugUtils.currentLine=8060953; - //BA.debugLineNum = 8060953;BA.debugLine="y.position = 0"; + //BA.debugLineNum = 471;BA.debugLine="y.position = 0"; _y.setPosition((int) (0)); -RDebugUtils.currentLine=8060954; - //BA.debugLineNum = 8060954;BA.debugLine="Dim u As Cursor = Starter.skmt.ExecQuery2(\"SELEC"; + //BA.debugLineNum = 472;BA.debugLine="Dim u As Cursor = Starter.skmt.ExecQuery2(\"SELEC"; _u = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _u = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT IFNULL(SUM(SALDO_PENDIENTE),0) AS SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ?",new String[]{_k.GetString("CUENTA")}))); -RDebugUtils.currentLine=8060955; - //BA.debugLineNum = 8060955;BA.debugLine="u.Position = 0"; + //BA.debugLineNum = 473;BA.debugLine="u.Position = 0"; _u.setPosition((int) (0)); -RDebugUtils.currentLine=8060956; - //BA.debugLineNum = 8060956;BA.debugLine="If u.RowCount > 0 Then"; + //BA.debugLineNum = 474;BA.debugLine="If u.RowCount > 0 Then"; if (true) break; case 10: @@ -8075,8 +4414,7 @@ this.state = 38; case 12: //C this.state = 13; -RDebugUtils.currentLine=8060957; - //BA.debugLineNum = 8060957;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") <> 0 Then"; + //BA.debugLineNum = 475;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") <> 0 Then"; if (true) break; case 13: @@ -8084,19 +4422,14 @@ case 13: this.state = 36; if ((_u.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0)) == false) { this.state = 15; -}else -{RDebugUtils.currentLine=8060976; - //BA.debugLineNum = 8060976;BA.debugLine="Else If u.GetString(\"SALDO_PENDIENTE\") = 0 Then"; -if ((_u.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0))) { +}else if((_u.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0))) { this.state = 35; -}} -if (true) break; +}if (true) break; case 15: //C this.state = 16; -RDebugUtils.currentLine=8060958; - //BA.debugLineNum = 8060958;BA.debugLine="If y.RowCount > 0 Then"; + //BA.debugLineNum = 476;BA.debugLine="If y.RowCount > 0 Then"; if (true) break; case 16: @@ -8111,8 +4444,7 @@ this.state = 32; case 18: //C this.state = 19; -RDebugUtils.currentLine=8060959; - //BA.debugLineNum = 8060959;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") = y.GetStri"; + //BA.debugLineNum = 477;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") = y.GetStri"; if (true) break; case 19: @@ -8127,15 +4459,12 @@ this.state = 29; case 21: //C this.state = 22; -RDebugUtils.currentLine=8060961; - //BA.debugLineNum = 8060961;BA.debugLine="Dim cobra As Cursor = Starter.skmt.ExecQuery"; + //BA.debugLineNum = 479;BA.debugLine="Dim cobra As Cursor = Starter.skmt.ExecQuery"; _cobra = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _cobra = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=8060962; - //BA.debugLineNum = 8060962;BA.debugLine="cobra.Position = 0"; + //BA.debugLineNum = 480;BA.debugLine="cobra.Position = 0"; _cobra.setPosition((int) (0)); -RDebugUtils.currentLine=8060963; - //BA.debugLineNum = 8060963;BA.debugLine="If cobra.RowCount = 1 And cobra.GetString(\"H"; + //BA.debugLineNum = 481;BA.debugLine="If cobra.RowCount = 1 And cobra.GetString(\"H"; if (true) break; case 22: @@ -8150,20 +4479,17 @@ this.state = 26; case 24: //C this.state = 27; -RDebugUtils.currentLine=8060964; - //BA.debugLineNum = 8060964;BA.debugLine="Guardado"; -__ref._guardado /*String*/ (null); + //BA.debugLineNum = 482;BA.debugLine="Guardado"; +parent._guardado(); if (true) break; case 26: //C this.state = 27; -RDebugUtils.currentLine=8060966; - //BA.debugLineNum = 8060966;BA.debugLine="B_IMP_Click"; -__ref._b_imp_click /*void*/ (null); -RDebugUtils.currentLine=8060967; - //BA.debugLineNum = 8060967;BA.debugLine="banderaimp = 1"; -__ref._banderaimp /*int*/ = (int) (1); + //BA.debugLineNum = 484;BA.debugLine="B_IMP_Click"; +parent._b_imp_click(); + //BA.debugLineNum = 485;BA.debugLine="banderaimp = 1"; +parent._banderaimp = (int) (1); if (true) break; case 27: @@ -8175,8 +4501,7 @@ this.state = 30; case 29: //C this.state = 30; -RDebugUtils.currentLine=8060971; - //BA.debugLineNum = 8060971;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega se"; + //BA.debugLineNum = 489;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega se"; parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder hacer una entrega se necesita liquidar el(los) pagare(s)"),BA.ObjectToCharSequence("Atención"),ba); if (true) break; @@ -8189,8 +4514,7 @@ this.state = 33; case 32: //C this.state = 33; -RDebugUtils.currentLine=8060974; - //BA.debugLineNum = 8060974;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega se"; + //BA.debugLineNum = 492;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega se"; parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder hacer una entrega se necesita liquidar el(los) pagare(s)"),BA.ObjectToCharSequence("Atención"),ba); if (true) break; @@ -8203,12 +4527,10 @@ this.state = 36; case 35: //C this.state = 36; -RDebugUtils.currentLine=8060977; - //BA.debugLineNum = 8060977;BA.debugLine="B_IMP_Click"; -__ref._b_imp_click /*void*/ (null); -RDebugUtils.currentLine=8060978; - //BA.debugLineNum = 8060978;BA.debugLine="banderaimp = 1"; -__ref._banderaimp /*int*/ = (int) (1); + //BA.debugLineNum = 495;BA.debugLine="B_IMP_Click"; +parent._b_imp_click(); + //BA.debugLineNum = 496;BA.debugLine="banderaimp = 1"; +parent._banderaimp = (int) (1); if (true) break; case 36: @@ -8220,12 +4542,10 @@ this.state = 39; case 38: //C this.state = 39; -RDebugUtils.currentLine=8060981; - //BA.debugLineNum = 8060981;BA.debugLine="B_IMP_Click"; -__ref._b_imp_click /*void*/ (null); -RDebugUtils.currentLine=8060982; - //BA.debugLineNum = 8060982;BA.debugLine="banderaimp = 1"; -__ref._banderaimp /*int*/ = (int) (1); + //BA.debugLineNum = 499;BA.debugLine="B_IMP_Click"; +parent._b_imp_click(); + //BA.debugLineNum = 500;BA.debugLine="banderaimp = 1"; +parent._banderaimp = (int) (1); if (true) break; case 39: @@ -8238,83 +4558,121 @@ case 40: //C this.state = -1; ; -RDebugUtils.currentLine=8060986; - //BA.debugLineNum = 8060986;BA.debugLine="End Sub"; + //BA.debugLineNum = 504;BA.debugLine="End Sub"; if (true) break; } } } } -public String _gps_locationchanged(reparto_izca.keymon.lat.c_cliente __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "gps_locationchanged", false)) - {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));} -RDebugUtils.currentLine=7929856; - //BA.debugLineNum = 7929856;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; -RDebugUtils.currentLine=7929859; - //BA.debugLineNum = 7929859;BA.debugLine="Dim sDate,sTime As String"; +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 431;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 434;BA.debugLine="Dim sDate,sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=7929860; - //BA.debugLineNum = 7929860;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; + //BA.debugLineNum = 435;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; __c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=7929861; - //BA.debugLineNum = 7929861;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=7929862; - //BA.debugLineNum = 7929862;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=7929863; - //BA.debugLineNum = 7929863;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM HIST_GPS\")"; + //BA.debugLineNum = 436;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 437;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 438;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM HIST_GPS\")"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS"); -RDebugUtils.currentLine=7929864; - //BA.debugLineNum = 7929864;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_GPS"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_GPS (HGDATE, HGLAT, HGLON) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); -RDebugUtils.currentLine=7929865; - //BA.debugLineNum = 7929865;BA.debugLine="End Sub"; + //BA.debugLineNum = 439;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_GPS"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_GPS (HGDATE, HGLAT, HGLON) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_sdate+_stime),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ )})); + //BA.debugLineNum = 440;BA.debugLine="End Sub"; return ""; } -public String _mandapendientesreparto(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "mandapendientesreparto", false)) - {return ((String) Debug.delegate(ba, "mandapendientesreparto", null));} -RDebugUtils.currentLine=9043968; - //BA.debugLineNum = 9043968;BA.debugLine="Sub mandaPendientesreparto"; -RDebugUtils.currentLine=9043984; - //BA.debugLineNum = 9043984;BA.debugLine="End Sub"; -return ""; -} -public String _guardar_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "guardar_click", false)) - {return ((String) Debug.delegate(ba, "guardar_click", null));} -RDebugUtils.currentLine=8454144; - //BA.debugLineNum = 8454144;BA.debugLine="Sub Guardar_Click"; -RDebugUtils.currentLine=8454149; - //BA.debugLineNum = 8454149;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +public String _guardado() throws Exception{ +String _ruta = ""; +String _rutapre = ""; +String _rutaactualizar = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null; + //BA.debugLineNum = 506;BA.debugLine="Sub Guardado"; + //BA.debugLineNum = 507;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 508;BA.debugLine="DateTime.TimeFormat=\"HHmmss\""; +__c.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 509;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 510;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 511;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); + //BA.debugLineNum = 512;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 513;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; +_cuenta = _c.GetString("CUENTA"); + //BA.debugLineNum = 514;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 515;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 516;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 517;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 518;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); + //BA.debugLineNum = 519;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 520;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")"; +_ruta = _d.GetString("RUTAA"); + //BA.debugLineNum = 521;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 522;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RUTA FR"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 523;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 524;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_RUTA\""; +_rutapre = _d.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 525;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 529;BA.debugLine="Dim fechaprev As String = Subs.traefECHAPREV"; +_fechaprev = _subs._traefechaprev /*String*/ (ba); + //BA.debugLineNum = 532;BA.debugLine="Dim rutaactualizar As String"; +_rutaactualizar = ""; + //BA.debugLineNum = 533;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SELEC"; +_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 534;BA.debugLine="If rut.RowCount > 0 Then"; +if (_rut.getRowCount()>0) { + //BA.debugLineNum = 535;BA.debugLine="rut.Position = 0"; +_rut.setPosition((int) (0)); + //BA.debugLineNum = 536;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")"; +_rutaactualizar = _rut.GetString("CAT_CL_RUTA"); + }; + //BA.debugLineNum = 539;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENTA W"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa) AND NV_RUTA ='"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"' ")); + //BA.debugLineNum = 540;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA ("; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_RUTA) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cuenta),(Object)(_sdate+" "+_stime),(Object)(_usuario),(Object)("ENTREGA"),(Object)("ENTREGA COMPLETA"),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar)})); + //BA.debugLineNum = 541;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPARTO_G"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_la_cuenta.getText(),_usuario,_sdate+" "+_stime,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,_fechaprev,"ENTREGADO"})); + //BA.debugLineNum = 542;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set g"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 2, HORAENT = '"+__c.SmartStringFormatter("",(Object)(_sdate+" "+_stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"' ")); + //BA.debugLineNum = 543;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SET"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_ESTATUS = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 544;BA.debugLine="mandaPendientesreparto"; +_mandapendientesreparto(); + //BA.debugLineNum = 551;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; _b4xpages._showpage /*String*/ (ba,"Principal"); -RDebugUtils.currentLine=8454151; - //BA.debugLineNum = 8454151;BA.debugLine="End Sub"; + //BA.debugLineNum = 553;BA.debugLine="End Sub"; return ""; } -public void _hist_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "hist_click", false)) - {Debug.delegate(ba, "hist_click", null); return;} -ResumableSub_HIST_Click rsub = new ResumableSub_HIST_Click(this,__ref); +public String _guardar_click() throws Exception{ + //BA.debugLineNum = 597;BA.debugLine="Sub Guardar_Click"; + //BA.debugLineNum = 602;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +_b4xpages._showpage /*String*/ (ba,"Principal"); + //BA.debugLineNum = 604;BA.debugLine="End Sub"; +return ""; +} +public void _hist_click() throws Exception{ +ResumableSub_HIST_Click rsub = new ResumableSub_HIST_Click(this); rsub.resume(ba, null); } public static class ResumableSub_HIST_Click extends BA.ResumableSub { -public ResumableSub_HIST_Click(reparto_izca.keymon.lat.c_cliente parent,reparto_izca.keymon.lat.c_cliente __ref) { +public ResumableSub_HIST_Click(reparto_izca.keymon.lat.c_cliente parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_cliente __ref; reparto_izca.keymon.lat.c_cliente parent; anywheresoftware.b4a.sql.SQL.CursorWrapper _x2 = null; int _result = 0; @@ -8325,7 +4683,6 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _u = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_cliente"; while (true) { switch (state) { @@ -8335,15 +4692,12 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=8585233; - //BA.debugLineNum = 8585233;BA.debugLine="Dim x2 As Cursor =Starter.skmt.ExecQuery(\"SELECT"; + //BA.debugLineNum = 627;BA.debugLine="Dim x2 As Cursor =Starter.skmt.ExecQuery(\"SELECT"; _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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT gestion FROM kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=8585234; - //BA.debugLineNum = 8585234;BA.debugLine="x2.Position = 0"; + //BA.debugLineNum = 628;BA.debugLine="x2.Position = 0"; _x2.setPosition((int) (0)); -RDebugUtils.currentLine=8585235; - //BA.debugLineNum = 8585235;BA.debugLine="If x2.GetString(\"gestion\") = 2 Then"; + //BA.debugLineNum = 629;BA.debugLine="If x2.GetString(\"gestion\") = 2 Then"; if (true) break; case 1: @@ -8358,21 +4712,18 @@ this.state = 9; case 3: //C this.state = 4; -RDebugUtils.currentLine=8585236; - //BA.debugLineNum = 8585236;BA.debugLine="Msgbox2Async(\"Ya se gestiono el cliente, no se p"; + //BA.debugLineNum = 630;BA.debugLine="Msgbox2Async(\"Ya se gestiono el cliente, no se p"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Ya se gestiono el cliente, no se pueden hacer modificaciones"),BA.ObjectToCharSequence("Atención"),"","","Ok",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=8585237; - //BA.debugLineNum = 8585237;BA.debugLine="Wait For Msgbox_Result (Result As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "hist_click"), null); + //BA.debugLineNum = 631;BA.debugLine="Wait For Msgbox_Result (Result As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 45; return; case 45: //C this.state = 4; -_result = (Integer) result[1]; +_result = (Integer) result[0]; ; -RDebugUtils.currentLine=8585238; - //BA.debugLineNum = 8585238;BA.debugLine="If Result= DialogResponse.NEGATIVE Then"; + //BA.debugLineNum = 632;BA.debugLine="If Result= DialogResponse.NEGATIVE Then"; if (true) break; case 4: @@ -8385,8 +4736,7 @@ this.state = 6; case 6: //C this.state = 7; -RDebugUtils.currentLine=8585239; - //BA.debugLineNum = 8585239;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 633;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; parent._b4xpages._showpage /*String*/ (ba,"Principal"); if (true) break; @@ -8399,12 +4749,10 @@ this.state = 44; case 9: //C this.state = 10; -RDebugUtils.currentLine=8585243; - //BA.debugLineNum = 8585243;BA.debugLine="Dim pagacheca2 As Cursor = Starter.skmt.ExecQuer"; + //BA.debugLineNum = 637;BA.debugLine="Dim pagacheca2 As Cursor = Starter.skmt.ExecQuer"; _pagacheca2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _pagacheca2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PAGARES WHERE PA_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=8585245; - //BA.debugLineNum = 8585245;BA.debugLine="If pagacheca2.RowCount > 0 Then"; + //BA.debugLineNum = 639;BA.debugLine="If pagacheca2.RowCount > 0 Then"; if (true) break; case 10: @@ -8419,21 +4767,18 @@ this.state = 18; case 12: //C this.state = 13; -RDebugUtils.currentLine=8585248; - //BA.debugLineNum = 8585248;BA.debugLine="Msgbox2Async(\"El pagare ya fue generdo, no se p"; + //BA.debugLineNum = 642;BA.debugLine="Msgbox2Async(\"El pagare ya fue generdo, no se p"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("El pagare ya fue generdo, no se puede realizar modificación."),BA.ObjectToCharSequence("Atención"),"","","Ok",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=8585249; - //BA.debugLineNum = 8585249;BA.debugLine="Wait For Msgbox_Result (Result As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_cliente", "hist_click"), null); + //BA.debugLineNum = 643;BA.debugLine="Wait For Msgbox_Result (Result As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 46; return; case 46: //C this.state = 13; -_result = (Integer) result[1]; +_result = (Integer) result[0]; ; -RDebugUtils.currentLine=8585250; - //BA.debugLineNum = 8585250;BA.debugLine="If Result= DialogResponse.POSITIVE Then"; + //BA.debugLineNum = 644;BA.debugLine="If Result= DialogResponse.POSITIVE Then"; if (true) break; case 13: @@ -8446,9 +4791,8 @@ this.state = 15; case 15: //C this.state = 16; -RDebugUtils.currentLine=8585251; - //BA.debugLineNum = 8585251;BA.debugLine="Log(\"Aqui\")"; -parent.__c.LogImpl("28585251","Aqui",0); + //BA.debugLineNum = 645;BA.debugLine="Log(\"Aqui\")"; +parent.__c.LogImpl("08847395","Aqui",0); if (true) break; case 16: @@ -8460,32 +4804,24 @@ this.state = 43; case 18: //C this.state = 19; -RDebugUtils.currentLine=8585256; - //BA.debugLineNum = 8585256;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELEC"; + //BA.debugLineNum = 650;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELEC"; _k = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA from CUENTAA"))); -RDebugUtils.currentLine=8585257; - //BA.debugLineNum = 8585257;BA.debugLine="k.Position = 0"; + //BA.debugLineNum = 651;BA.debugLine="k.Position = 0"; _k.setPosition((int) (0)); -RDebugUtils.currentLine=8585258; - //BA.debugLineNum = 8585258;BA.debugLine="Log(k.GetString(\"CUENTA\"))"; -parent.__c.LogImpl("28585258",_k.GetString("CUENTA"),0); -RDebugUtils.currentLine=8585259; - //BA.debugLineNum = 8585259;BA.debugLine="Dim y As Cursor = Starter.skmt.ExecQuery2(\"SELE"; + //BA.debugLineNum = 652;BA.debugLine="Log(k.GetString(\"CUENTA\"))"; +parent.__c.LogImpl("08847402",_k.GetString("CUENTA"),0); + //BA.debugLineNum = 653;BA.debugLine="Dim y As Cursor = Starter.skmt.ExecQuery2(\"SELE"; _y = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _y = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT IFNULL(SUM(a_abono),0) AS a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{_k.GetString("CUENTA")}))); -RDebugUtils.currentLine=8585260; - //BA.debugLineNum = 8585260;BA.debugLine="y.position = 0"; + //BA.debugLineNum = 654;BA.debugLine="y.position = 0"; _y.setPosition((int) (0)); -RDebugUtils.currentLine=8585261; - //BA.debugLineNum = 8585261;BA.debugLine="Dim u As Cursor = Starter.skmt.ExecQuery2(\"SELE"; + //BA.debugLineNum = 655;BA.debugLine="Dim u As Cursor = Starter.skmt.ExecQuery2(\"SELE"; _u = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _u = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT IFNULL(SUM(SALDO_PENDIENTE),0) AS SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE = ?",new String[]{_k.GetString("CUENTA")}))); -RDebugUtils.currentLine=8585262; - //BA.debugLineNum = 8585262;BA.debugLine="u.Position = 0"; + //BA.debugLineNum = 656;BA.debugLine="u.Position = 0"; _u.setPosition((int) (0)); -RDebugUtils.currentLine=8585263; - //BA.debugLineNum = 8585263;BA.debugLine="If u.RowCount > 0 Then"; + //BA.debugLineNum = 657;BA.debugLine="If u.RowCount > 0 Then"; if (true) break; case 19: @@ -8500,8 +4836,7 @@ this.state = 41; case 21: //C this.state = 22; -RDebugUtils.currentLine=8585264; - //BA.debugLineNum = 8585264;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") <> 0 Then"; + //BA.debugLineNum = 658;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") <> 0 Then"; if (true) break; case 22: @@ -8509,19 +4844,14 @@ case 22: this.state = 39; if ((_u.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0)) == false) { this.state = 24; -}else -{RDebugUtils.currentLine=8585275; - //BA.debugLineNum = 8585275;BA.debugLine="Else If u.GetString(\"SALDO_PENDIENTE\") = 0 The"; -if ((_u.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0))) { +}else if((_u.GetString("SALDO_PENDIENTE")).equals(BA.NumberToString(0))) { this.state = 38; -}} -if (true) break; +}if (true) break; case 24: //C this.state = 25; -RDebugUtils.currentLine=8585265; - //BA.debugLineNum = 8585265;BA.debugLine="If y.RowCount > 0 Then"; + //BA.debugLineNum = 659;BA.debugLine="If y.RowCount > 0 Then"; if (true) break; case 25: @@ -8536,8 +4866,7 @@ this.state = 35; case 27: //C this.state = 28; -RDebugUtils.currentLine=8585266; - //BA.debugLineNum = 8585266;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") = y.GetStr"; + //BA.debugLineNum = 660;BA.debugLine="If u.GetString(\"SALDO_PENDIENTE\") = y.GetStr"; if (true) break; case 28: @@ -8552,19 +4881,16 @@ this.state = 32; case 30: //C this.state = 33; -RDebugUtils.currentLine=8585267; - //BA.debugLineNum = 8585267;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Ini"; + //BA.debugLineNum = 661;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Ini"; parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._detalleventa /*reparto_izca.keymon.lat.c_detalleventa*/ ._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); -RDebugUtils.currentLine=8585268; - //BA.debugLineNum = 8585268;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")"; + //BA.debugLineNum = 662;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")"; parent._b4xpages._showpage /*String*/ (ba,"DetalleVenta"); if (true) break; case 32: //C this.state = 33; -RDebugUtils.currentLine=8585270; - //BA.debugLineNum = 8585270;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega s"; + //BA.debugLineNum = 664;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega s"; parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder hacer una entrega se necesita liquidar el(los) pagare(s)"),BA.ObjectToCharSequence("Atención"),ba); if (true) break; @@ -8577,8 +4903,7 @@ this.state = 36; case 35: //C this.state = 36; -RDebugUtils.currentLine=8585273; - //BA.debugLineNum = 8585273;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega se"; + //BA.debugLineNum = 667;BA.debugLine="MsgboxAsync(\"Para poder hacer una entrega se"; parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Para poder hacer una entrega se necesita liquidar el(los) pagare(s)"),BA.ObjectToCharSequence("Atención"),ba); if (true) break; @@ -8591,11 +4916,9 @@ this.state = 39; case 38: //C this.state = 39; -RDebugUtils.currentLine=8585276; - //BA.debugLineNum = 8585276;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Initi"; + //BA.debugLineNum = 670;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Initi"; parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._detalleventa /*reparto_izca.keymon.lat.c_detalleventa*/ ._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); -RDebugUtils.currentLine=8585277; - //BA.debugLineNum = 8585277;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")"; + //BA.debugLineNum = 671;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")"; parent._b4xpages._showpage /*String*/ (ba,"DetalleVenta"); if (true) break; @@ -8608,11 +4931,9 @@ this.state = 42; case 41: //C this.state = 42; -RDebugUtils.currentLine=8585280; - //BA.debugLineNum = 8585280;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Initia"; + //BA.debugLineNum = 674;BA.debugLine="B4XPages.MainPage.detalleVenta.prodsMap.Initia"; parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._detalleventa /*reparto_izca.keymon.lat.c_detalleventa*/ ._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); -RDebugUtils.currentLine=8585281; - //BA.debugLineNum = 8585281;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")"; + //BA.debugLineNum = 675;BA.debugLine="B4XPages.ShowPage(\"DetalleVenta\")"; parent._b4xpages._showpage /*String*/ (ba,"DetalleVenta"); if (true) break; @@ -8632,58 +4953,2042 @@ case 44: //C this.state = -1; ; -RDebugUtils.currentLine=8585285; - //BA.debugLineNum = 8585285;BA.debugLine="End Sub"; + //BA.debugLineNum = 679;BA.debugLine="End Sub"; if (true) break; } } } } -public String _jobdone(reparto_izca.keymon.lat.c_cliente __ref,reparto_izca.keymon.lat.httpjob _job) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "jobdone", false)) - {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));} +public void _imprime_abonopagare() throws Exception{ +ResumableSub_imprime_abonopagare rsub = new ResumableSub_imprime_abonopagare(this); +rsub.resume(ba, null); +} +public static class ResumableSub_imprime_abonopagare extends BA.ResumableSub { +public ResumableSub_imprime_abonopagare(reparto_izca.keymon.lat.c_cliente parent) { +this.parent = parent; +} +reparto_izca.keymon.lat.c_cliente parent; +int _cont = 0; +String _telefono = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c7 = null; +String _notaabono = ""; +double _saldopendiente = 0; +double _saldopendiente1 = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c5 = null; +int _numpago = 0; +String _tipopagotick = ""; +int _resultado = 0; +String _rutaactualizar = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; +double _textedit = 0; +double _sumaresta = 0; +String _ruta = ""; +String _rutapre = ""; + +@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 = 1598;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 1599;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1600;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 1601;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +parent.__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 1602;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +parent.__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 1603;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 1604;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 1605;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 1636;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; +parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); + //BA.debugLineNum = 1637;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 1638;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 = 1640;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 1641;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 1642;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 = 1643;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 145; +return; +case 145: +//C +this.state = 7; +; + //BA.debugLineNum = 1644;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 1645;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 = 1646;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 = 1648;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 146; +return; +case 146: +//C +this.state = 38; +; + //BA.debugLineNum = 1649;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 21: +//C +this.state = 22; + //BA.debugLineNum = 1652;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 1653;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 1654;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 = 1655;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 147; +return; +case 147: +//C +this.state = 25; +; + //BA.debugLineNum = 1656;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 1657;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 = 1658;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 = 1660;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 148; +return; +case 148: +//C +this.state = 38; +; + //BA.debugLineNum = 1661;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 38: +//C +this.state = 39; +; + //BA.debugLineNum = 1663;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 1664;BA.debugLine="ESPACIO = 22"; +parent._espacio = (int) (22); + //BA.debugLineNum = 1665;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 1675;BA.debugLine="Dim telefono As String = \"\""; +_telefono = ""; + //BA.debugLineNum = 1676;BA.debugLine="Dim c7 As Cursor = Starter.skmt.ExecQuery(\"select"; +_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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_TELEFONO,' ') AS CAT_CL_TELEFONO FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1677;BA.debugLine="If c7.RowCount > 0 Then"; +if (true) break; + +case 39: +//if +this.state = 42; +if (_c7.getRowCount()>0) { +this.state = 41; +}if (true) break; + +case 41: +//C +this.state = 42; + //BA.debugLineNum = 1678;BA.debugLine="c7.Position = 0"; +_c7.setPosition((int) (0)); + //BA.debugLineNum = 1679;BA.debugLine="telefono = c7.GetString(\"CAT_CL_TELEFONO\")"; +_telefono = _c7.GetString("CAT_CL_TELEFONO"); + if (true) break; + +case 42: +//C +this.state = 43; +; + //BA.debugLineNum = 1681;BA.debugLine="c7.Close"; +_c7.Close(); + //BA.debugLineNum = 1685;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; +parent._printer1._writestring /*String*/ ("Izca Distribuciones"+parent.__c.CRLF); + //BA.debugLineNum = 1687;BA.debugLine="Printer1.WriteString(sDate & CRLF)"; +parent._printer1._writestring /*String*/ (parent._sdate+parent.__c.CRLF); + //BA.debugLineNum = 1688;BA.debugLine="Printer1.WriteString(sTime & CRLF)"; +parent._printer1._writestring /*String*/ (parent._stime+parent.__c.CRLF); + //BA.debugLineNum = 1689;BA.debugLine="Printer1.WriteString(\"Reparto:\" & usuario & CRLF"; +parent._printer1._writestring /*String*/ ("Reparto:"+parent._usuario+parent.__c.CRLF); + //BA.debugLineNum = 1690;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; +parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+parent.__c.CRLF); + //BA.debugLineNum = 1691;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; +parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+parent.__c.CRLF); + //BA.debugLineNum = 1692;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; +parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+parent.__c.CRLF); + //BA.debugLineNum = 1693;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; +parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+parent.__c.CRLF); + //BA.debugLineNum = 1694;BA.debugLine="Printer1.WriteString(\"Telefono: \" & telefono & C"; +parent._printer1._writestring /*String*/ ("Telefono: "+_telefono+parent.__c.CRLF); + //BA.debugLineNum = 1695;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1696;BA.debugLine="Dim notaabono As String"; +_notaabono = ""; + //BA.debugLineNum = 1697;BA.debugLine="Dim saldopendiente As Double"; +_saldopendiente = 0; + //BA.debugLineNum = 1699;BA.debugLine="If tipo_abonox = \"abono\" Then"; +if (true) break; + +case 43: +//if +this.state = 68; +if ((parent._tipo_abonox).equals("abono")) { +this.state = 45; +}else if((parent._tipo_abonox).equals("cxc")) { +this.state = 59; +}if (true) break; + +case 45: +//C +this.state = 46; + //BA.debugLineNum = 1702;BA.debugLine="c = Starter.skmt.ExecQuery($\"select distinct hvd"; +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 distinct hvd_num_ticket from hist_ventas where hvd_cliente = '"+parent.__c.SmartStringFormatter("",(Object)(parent._la_cuenta.getText()))+"'")))); + //BA.debugLineNum = 1703;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 46: +//if +this.state = 49; +if (parent._c.getRowCount()>0) { +this.state = 48; +}if (true) break; + +case 48: +//C +this.state = 49; + //BA.debugLineNum = 1704;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1705;BA.debugLine="notaabono = c.GetString(\"HVD_NUM_TICKET\")"; +_notaabono = parent._c.GetString("HVD_NUM_TICKET"); + if (true) break; + +case 49: +//C +this.state = 50; +; + //BA.debugLineNum = 1707;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 1709;BA.debugLine="c = Starter.skmt.ExecQuery($\"select iFNULL(sum(P"; +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(sum(PA_MONTO),0) AS SALDO_PENDIENTE from PAGARES where PA_CLIENTE = '"+parent.__c.SmartStringFormatter("",(Object)(parent._la_cuenta.getText()))+"'")))); + //BA.debugLineNum = 1710;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 50: +//if +this.state = 53; +if (parent._c.getRowCount()>0) { +this.state = 52; +}if (true) break; + +case 52: +//C +this.state = 53; + //BA.debugLineNum = 1711;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1712;BA.debugLine="saldopendiente = c.GetDouble(\"SALDO_PENDIENTE\")"; +_saldopendiente = parent._c.GetDouble("SALDO_PENDIENTE"); + //BA.debugLineNum = 1713;BA.debugLine="Log(c.GetString(\"SALDO_PENDIENTE\"))"; +parent.__c.LogImpl("09699444",parent._c.GetString("SALDO_PENDIENTE"),0); + if (true) break; + +case 53: +//C +this.state = 54; +; + //BA.debugLineNum = 1715;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 1718;BA.debugLine="Dim saldopendiente1 As Double = 0"; +_saldopendiente1 = 0; + //BA.debugLineNum = 1719;BA.debugLine="Dim c4 As Cursor= Starter.skmt.ExecQuery(\"SELECT"; +_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._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(SUM(a_abono),0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is not null"))); + //BA.debugLineNum = 1720;BA.debugLine="If c4.RowCount > 0 Then"; +if (true) break; + +case 54: +//if +this.state = 57; +if (_c4.getRowCount()>0) { +this.state = 56; +}if (true) break; + +case 56: +//C +this.state = 57; + //BA.debugLineNum = 1721;BA.debugLine="c4.Position = 0"; +_c4.setPosition((int) (0)); + //BA.debugLineNum = 1722;BA.debugLine="Dim c5 As Cursor= Starter.skmt.ExecQuery(\"SELEC"; +_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._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(a_abono,0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is not null"))); + //BA.debugLineNum = 1723;BA.debugLine="saldopendiente1 = c4.GetDouble(\"SALDO_PENDIENTE"; +_saldopendiente1 = _c4.GetDouble("SALDO_PENDIENTE"); + if (true) break; + +case 57: +//C +this.state = 68; +; + //BA.debugLineNum = 1727;BA.debugLine="c4.Close"; +_c4.Close(); + if (true) break; + +case 59: +//C +this.state = 60; + //BA.debugLineNum = 1730;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NOTA, SUM(SAL"; +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 NOTA, SUM(SALDO_PENDIENTE) AS SALDO_PENDIENTE FROM ABONOSP WHERE CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1731;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 60: +//if +this.state = 63; +if (parent._c.getRowCount()>0) { +this.state = 62; +}if (true) break; + +case 62: +//C +this.state = 63; + //BA.debugLineNum = 1732;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 1733;BA.debugLine="notaabono = c.GetString(\"NOTA\")"; +_notaabono = parent._c.GetString("NOTA"); + //BA.debugLineNum = 1734;BA.debugLine="saldopendiente = c.GetDouble(\"SALDO_PENDIENTE\")"; +_saldopendiente = parent._c.GetDouble("SALDO_PENDIENTE"); + if (true) break; + +case 63: +//C +this.state = 64; +; + //BA.debugLineNum = 1736;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 1738;BA.debugLine="Dim saldopendiente1 As Double = 0"; +_saldopendiente1 = 0; + //BA.debugLineNum = 1739;BA.debugLine="Dim c4 As Cursor= Starter.skmt.ExecQuery(\"SELECT"; +_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._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(SUM(a_abono),0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is null"))); + //BA.debugLineNum = 1740;BA.debugLine="If c4.RowCount > 0 Then"; +if (true) break; + +case 64: +//if +this.state = 67; +if (_c4.getRowCount()>0) { +this.state = 66; +}if (true) break; + +case 66: +//C +this.state = 67; + //BA.debugLineNum = 1741;BA.debugLine="c4.Position = 0"; +_c4.setPosition((int) (0)); + //BA.debugLineNum = 1742;BA.debugLine="Dim c5 As Cursor= Starter.skmt.ExecQuery(\"SELEC"; +_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._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT Ifnull(a_abono,0) AS SALDO_PENDIENTE FROM ABONOS WHERE a_cliente IN (SELECT CUENTA FROM CUENTAA) and a_tipoabono is null"))); + //BA.debugLineNum = 1743;BA.debugLine="saldopendiente1 = c4.GetDouble(\"SALDO_PENDIENTE"; +_saldopendiente1 = _c4.GetDouble("SALDO_PENDIENTE"); + if (true) break; + +case 67: +//C +this.state = 68; +; + //BA.debugLineNum = 1748;BA.debugLine="c4.Close"; +_c4.Close(); + if (true) break; + +case 68: +//C +this.state = 69; +; + //BA.debugLineNum = 1758;BA.debugLine="Dim numpago As Int = c5.RowCount + 1"; +_numpago = (int) (_c5.getRowCount()+1); + //BA.debugLineNum = 1759;BA.debugLine="Log(notaabono)"; +parent.__c.LogImpl("09699490",_notaabono,0); + //BA.debugLineNum = 1760;BA.debugLine="Log(et_abono.Text)"; +parent.__c.LogImpl("09699491",parent._et_abono.getText(),0); + //BA.debugLineNum = 1761;BA.debugLine="Printer1.WriteString(\"Comprobante de pago del pag"; +parent._printer1._writestring /*String*/ ("Comprobante de pago del pagare"+parent.__c.CRLF); + //BA.debugLineNum = 1762;BA.debugLine="Printer1.WriteString(\"Folio: \" & notaabono &\"-\"&"; +parent._printer1._writestring /*String*/ ("Folio: "+_notaabono+"-"+BA.NumberToString((_numpago))+parent.__c.CRLF); + //BA.debugLineNum = 1763;BA.debugLine="Printer1.WriteString(\"Monto deuda: \" & (NumberFo"; +parent._printer1._writestring /*String*/ ("Monto deuda: "+(parent.__c.NumberFormat(_saldopendiente-_saldopendiente1,(int) (0),(int) (2)))+parent.__c.CRLF); + //BA.debugLineNum = 1764;BA.debugLine="Printer1.WriteString(\"Monto abono: \" & (NumberFo"; +parent._printer1._writestring /*String*/ ("Monto abono: "+(parent.__c.NumberFormat((double)(Double.parseDouble(parent._et_abono.getText())),(int) (0),(int) (2)))+parent.__c.CRLF); + //BA.debugLineNum = 1765;BA.debugLine="Printer1.WriteString(\"Restante: \" &(NumberFormat("; +parent._printer1._writestring /*String*/ ("Restante: "+(parent.__c.NumberFormat(_saldopendiente-(double)(Double.parseDouble(parent._et_abono.getText()))-_saldopendiente1,(int) (0),(int) (2)))+parent.__c.CRLF); + //BA.debugLineNum = 1766;BA.debugLine="Printer1.WriteString(\"Fecha Abono: \" & sDate & C"; +parent._printer1._writestring /*String*/ ("Fecha Abono: "+parent._sdate+parent.__c.CRLF); + //BA.debugLineNum = 1767;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1768;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1769;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1770;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1771;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1772;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1773;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1774;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 1775;BA.debugLine="Printer1.WriteString(\"-------------FIRMA---------"; +parent._printer1._writestring /*String*/ ("-------------FIRMA------------"+parent.__c.CRLF); + //BA.debugLineNum = 1776;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1777;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1778;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1779;BA.debugLine="DateTime.DateFormat = \"ddMMyyyy\""; +parent.__c.DateTime.setDateFormat("ddMMyyyy"); + //BA.debugLineNum = 1780;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 1786;BA.debugLine="Dim tipopagotick As String = \"\""; +_tipopagotick = ""; + //BA.debugLineNum = 1787;BA.debugLine="If itemselect = \"TRANSFERENCIA\" Then"; +if (true) break; + +case 69: +//if +this.state = 76; +if ((parent._itemselect).equals("TRANSFERENCIA")) { +this.state = 71; +}else if((parent._itemselect).equals("EFECTIVO")) { +this.state = 73; +}else if((parent._itemselect).equals("CHEQUE")) { +this.state = 75; +}if (true) break; + +case 71: +//C +this.state = 76; + //BA.debugLineNum = 1788;BA.debugLine="tipopagotick = \"T\""; +_tipopagotick = "T"; + if (true) break; + +case 73: +//C +this.state = 76; + //BA.debugLineNum = 1790;BA.debugLine="tipopagotick = \"E\""; +_tipopagotick = "E"; + if (true) break; + +case 75: +//C +this.state = 76; + //BA.debugLineNum = 1792;BA.debugLine="tipopagotick = \"C\""; +_tipopagotick = "C"; + if (true) break; + +case 76: +//C +this.state = 77; +; + //BA.debugLineNum = 1795;BA.debugLine="Printer1.WriteBarCode(\"I\",notaabono&sDate&tipopag"; +parent._printer1._writebarcode /*String*/ ("I",_notaabono+parent._sdate+_tipopagotick+BA.NumberToString(_numpago)); + //BA.debugLineNum = 1796;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1797;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1798;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1799;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 149; +return; +case 149: +//C +this.state = 77; +; + //BA.debugLineNum = 1800;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 1801;BA.debugLine="ProgressDialogHide"; +parent.__c.ProgressDialogHide(); + //BA.debugLineNum = 1804;BA.debugLine="If tipo_abonox = \"abono\" Then"; +if (true) break; + +case 77: +//if +this.state = 144; +if ((parent._tipo_abonox).equals("abono")) { +this.state = 79; +}else if((parent._tipo_abonox).equals("cxc")) { +this.state = 87; +}if (true) break; + +case 79: +//C +this.state = 80; + //BA.debugLineNum = 1805;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 1807;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 150; +return; +case 150: +//C +this.state = 80; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 1808;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 80: +//if +this.state = 85; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 82; +}else { +this.state = 84; +}if (true) break; + +case 82: +//C +this.state = 85; + //BA.debugLineNum = 1809;BA.debugLine="imprime_abonopagare"; +parent._imprime_abonopagare(); + if (true) break; + +case 84: +//C +this.state = 85; + //BA.debugLineNum = 1811;BA.debugLine="p_abono.Visible = False"; +parent._p_abono.setVisible(parent.__c.False); + //BA.debugLineNum = 1813;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABONOS("; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha,a_tipoabono,TIPO_PAGO,a_ticket,a_numpago) VALUES ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeusuariodebd /*String*/ (ba)))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeruta /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"' ,'"+parent.__c.SmartStringFormatter("",(Object)(parent._et_abono.getText()))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._fechakmt /*String*/ (ba,BA.NumberToString(parent.__c.DateTime.getNow()))))+"', 1,'"+parent.__c.SmartStringFormatter("",(Object)(parent._itemselect))+"','"+parent.__c.SmartStringFormatter("",(Object)(_notaabono))+"','"+parent.__c.SmartStringFormatter("",(Object)(_numpago))+"')")); + //BA.debugLineNum = 1814;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False); + if (true) break; + +case 85: +//C +this.state = 144; +; + if (true) break; + +case 87: +//C +this.state = 88; + //BA.debugLineNum = 1818;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 1819;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 151; +return; +case 151: +//C +this.state = 88; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 1820;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 88: +//if +this.state = 143; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 90; +}else { +this.state = 92; +}if (true) break; + +case 90: +//C +this.state = 143; + //BA.debugLineNum = 1821;BA.debugLine="imprime_abonopagare"; +parent._imprime_abonopagare(); + if (true) break; + +case 92: +//C +this.state = 93; + //BA.debugLineNum = 1827;BA.debugLine="h = Starter.skmt.ExecQuery(\"SELECT CUENTA from"; +parent._h = (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 CUENTA from CUENTAA"))); + //BA.debugLineNum = 1828;BA.debugLine="h.Position = 0"; +parent._h.setPosition((int) (0)); + //BA.debugLineNum = 1829;BA.debugLine="Log(h.GetString(\"CUENTA\"))"; +parent.__c.LogImpl("09699560",parent._h.GetString("CUENTA"),0); + //BA.debugLineNum = 1830;BA.debugLine="j = Starter.skmt.ExecQuery2(\"SELECT a_abono FRO"; +parent._j = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT a_abono FROM ABONOS WHERE a_cliente = ?",new String[]{parent._h.GetString("CUENTA")}))); + //BA.debugLineNum = 1831;BA.debugLine="j.position = 0"; +parent._j.setPosition((int) (0)); + //BA.debugLineNum = 1832;BA.debugLine="If j.RowCount = 0 Then"; +if (true) break; + +case 93: +//if +this.state = 142; +if (parent._j.getRowCount()==0) { +this.state = 95; +}else { +this.state = 119; +}if (true) break; + +case 95: +//C +this.state = 96; + //BA.debugLineNum = 1833;BA.debugLine="p_abono.Visible = False"; +parent._p_abono.setVisible(parent.__c.False); + //BA.debugLineNum = 1834;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABONOS"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha,TIPO_PAGO,a_ticket,a_numpago) VALUES ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeusuariodebd /*String*/ (ba)))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeruta /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"' ,'"+parent.__c.SmartStringFormatter("",(Object)(parent._et_abono.getText()))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._fechakmt /*String*/ (ba,BA.NumberToString(parent.__c.DateTime.getNow()))))+"','"+parent.__c.SmartStringFormatter("",(Object)(parent._itemselect))+"','"+parent.__c.SmartStringFormatter("",(Object)(_notaabono))+"','"+parent.__c.SmartStringFormatter("",(Object)(_numpago))+"')")); + //BA.debugLineNum = 1835;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False); + //BA.debugLineNum = 1836;BA.debugLine="Dim rutaactualizar As String"; +_rutaactualizar = ""; + //BA.debugLineNum = 1837;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SE"; +_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1838;BA.debugLine="If rut.RowCount > 0 Then"; +if (true) break; + +case 96: +//if +this.state = 99; +if (_rut.getRowCount()>0) { +this.state = 98; +}if (true) break; + +case 98: +//C +this.state = 99; + //BA.debugLineNum = 1839;BA.debugLine="rut.Position = 0"; +_rut.setPosition((int) (0)); + //BA.debugLineNum = 1840;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")"; +_rutaactualizar = _rut.GetString("CAT_CL_RUTA"); + if (true) break; + +case 99: +//C +this.state = 100; +; + //BA.debugLineNum = 1842;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info se"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 0, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(parent._sdate+" "+parent._stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'")); + //BA.debugLineNum = 1843;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENT"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")); + //BA.debugLineNum = 1844;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery("; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1845;BA.debugLine="If c3.RowCount = 0 Then"; +if (true) break; + +case 100: +//if +this.state = 105; +if (_c3.getRowCount()==0) { +this.state = 102; +}else { +this.state = 104; +}if (true) break; + +case 102: +//C +this.state = 105; + //BA.debugLineNum = 1846;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR WHERE HVD_cliente in (Select CUENTA from cuentaa)")); + //BA.debugLineNum = 1847;BA.debugLine="B4XPage_Appear"; +parent._b4xpage_appear(); + if (true) break; + +case 104: +//C +this.state = 105; + //BA.debugLineNum = 1849;BA.debugLine="MsgboxAsync(\"Hay productos que ya se vendiero"; +parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Hay productos que ya se vendieron, no se puede regresar la venta"),BA.ObjectToCharSequence("Atención"),ba); + if (true) break; + +case 105: +//C +this.state = 106; +; + //BA.debugLineNum = 1851;BA.debugLine="Dim textedit As Double = et_abono.Text"; +_textedit = (double)(Double.parseDouble(parent._et_abono.getText())); + //BA.debugLineNum = 1852;BA.debugLine="Dim sumaresta As Double = saldopendiente-texte"; +_sumaresta = _saldopendiente-_textedit-_saldopendiente1; + //BA.debugLineNum = 1853;BA.debugLine="Log(NumberFormat2(sumaresta,0,2,2,False))"; +parent.__c.LogImpl("09699584",parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False),0); + //BA.debugLineNum = 1854;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \"-."; +if (true) break; + +case 106: +//if +this.state = 117; +if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals("-.00") == false) { +this.state = 108; +}if (true) break; + +case 108: +//C +this.state = 109; + //BA.debugLineNum = 1855;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \"."; +if (true) break; + +case 109: +//if +this.state = 116; +if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(".00") == false) { +this.state = 111; +}if (true) break; + +case 111: +//C +this.state = 112; + //BA.debugLineNum = 1856;BA.debugLine="Dim rutaactualizar As String"; +_rutaactualizar = ""; + //BA.debugLineNum = 1857;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\""; +_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1858;BA.debugLine="If rut.RowCount > 0 Then"; +if (true) break; + +case 112: +//if +this.state = 115; +if (_rut.getRowCount()>0) { +this.state = 114; +}if (true) break; + +case 114: +//C +this.state = 115; + //BA.debugLineNum = 1859;BA.debugLine="rut.Position = 0"; +_rut.setPosition((int) (0)); + //BA.debugLineNum = 1860;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA"; +_rutaactualizar = _rut.GetString("CAT_CL_RUTA"); + if (true) break; + +case 115: +//C +this.state = 116; +; + //BA.debugLineNum = 1862;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(parent._sdate+" "+parent._stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'")); + //BA.debugLineNum = 1863;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVE"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")); + //BA.debugLineNum = 1864;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVE"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)(parent._sdate+parent._stime),(Object)(parent._usuario),(Object)("PAGO INCOMPLETO"),(Object)("PAGO INCOMPLETO"),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar),(Object)(0)})); + //BA.debugLineNum = 1865;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTA"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT, HVD_RECHAZOCANTC = CANTC, BCAJAS = 0 , CANTC = 0 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 1866;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_RECHAZOCANT WHERE HVD_PROID = HVD_CODPROMO and HVD_CLIENTE in (Select CUENTA from cuentaa)")); + //BA.debugLineNum = 1867;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM PEDID"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 1868;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FRO"; +parent._d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); + //BA.debugLineNum = 1869;BA.debugLine="d.Position = 0"; +parent._d.setPosition((int) (0)); + //BA.debugLineNum = 1870;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")"; +_ruta = parent._d.GetString("RUTAA"); + //BA.debugLineNum = 1871;BA.debugLine="d.Close"; +parent._d.Close(); + //BA.debugLineNum = 1872;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RU"; +parent._d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1873;BA.debugLine="d.Position = 0"; +parent._d.setPosition((int) (0)); + //BA.debugLineNum = 1874;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_"; +_rutapre = parent._d.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 1875;BA.debugLine="d.Close"; +parent._d.Close(); + //BA.debugLineNum = 1876;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA"; +parent._d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1877;BA.debugLine="d.Position = 0"; +parent._d.setPosition((int) (0)); + //BA.debugLineNum = 1878;BA.debugLine="Dim fechaprev As String = d.GetString(\"HVD_F"; +parent._fechaprev = parent._d.GetString("HVD_FECHA"); + //BA.debugLineNum = 1879;BA.debugLine="d.Close"; +parent._d.Close(); + //BA.debugLineNum = 1880;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CUENTA FR"; +parent._d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); + //BA.debugLineNum = 1881;BA.debugLine="d.Position = 0"; +parent._d.setPosition((int) (0)); + //BA.debugLineNum = 1882;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPA"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent._cuenta,parent._usuario,parent._sdate+" "+parent._stime,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,parent._fechaprev,"PAGO INCOMPLETO","PAGO INCOMPLETO","NO ENTREGADO"})); + //BA.debugLineNum = 1883;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +parent._b4xpages._showpage /*String*/ (ba,"Principal"); + if (true) break; + +case 116: +//C +this.state = 117; +; + if (true) break; + +case 117: +//C +this.state = 142; +; + if (true) break; + +case 119: +//C +this.state = 120; + //BA.debugLineNum = 1887;BA.debugLine="p_abono.Visible = False"; +parent._p_abono.setVisible(parent.__c.False); + //BA.debugLineNum = 1888;BA.debugLine="Starter.skmt.ExecNonQuery($\"INSERT INTO ABONOS"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("INSERT INTO ABONOS(a_usuario, a_ruta, a_cliente, a_abono, a_fecha,TIPO_PAGO,a_ticket,a_numpago) VALUES ('"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeusuariodebd /*String*/ (ba)))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traeruta /*String*/ (ba,parent._subs._traecliente /*String*/ (ba))))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traecliente /*String*/ (ba)))+"' ,'"+parent.__c.SmartStringFormatter("",(Object)(parent._et_abono.getText()))+"', '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._fechakmt /*String*/ (ba,BA.NumberToString(parent.__c.DateTime.getNow()))))+"','"+parent.__c.SmartStringFormatter("",(Object)(parent._itemselect))+"','"+parent.__c.SmartStringFormatter("",(Object)(_notaabono))+"','"+parent.__c.SmartStringFormatter("",(Object)(_numpago))+"')")); + //BA.debugLineNum = 1889;BA.debugLine="ToastMessageShow(\"Abono guardado\", False)"; +parent.__c.ToastMessageShow(BA.ObjectToCharSequence("Abono guardado"),parent.__c.False); + //BA.debugLineNum = 1890;BA.debugLine="Dim rutaactualizar As String"; +_rutaactualizar = ""; + //BA.debugLineNum = 1891;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SE"; +_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1892;BA.debugLine="If rut.RowCount > 0 Then"; +if (true) break; + +case 120: +//if +this.state = 123; +if (_rut.getRowCount()>0) { +this.state = 122; +}if (true) break; + +case 122: +//C +this.state = 123; + //BA.debugLineNum = 1893;BA.debugLine="rut.Position = 0"; +_rut.setPosition((int) (0)); + //BA.debugLineNum = 1894;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")"; +_rutaactualizar = _rut.GetString("CAT_CL_RUTA"); + if (true) break; + +case 123: +//C +this.state = 124; +; + //BA.debugLineNum = 1896;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info se"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 0, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(parent._sdate+" "+parent._stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'")); + //BA.debugLineNum = 1897;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENT"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")); + //BA.debugLineNum = 1898;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery("; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1899;BA.debugLine="If c3.RowCount = 0 Then"; +if (true) break; + +case 124: +//if +this.state = 129; +if (_c3.getRowCount()==0) { +this.state = 126; +}else { +this.state = 128; +}if (true) break; + +case 126: +//C +this.state = 129; + //BA.debugLineNum = 1900;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR WHERE HVD_cliente in (Select CUENTA from cuentaa)")); + //BA.debugLineNum = 1901;BA.debugLine="B4XPage_Appear"; +parent._b4xpage_appear(); + if (true) break; + +case 128: +//C +this.state = 129; + //BA.debugLineNum = 1903;BA.debugLine="MsgboxAsync(\"Hay productos que ya se vendiero"; +parent.__c.MsgboxAsync(BA.ObjectToCharSequence("Hay productos que ya se vendieron, no se puede regresar la venta"),BA.ObjectToCharSequence("Atención"),ba); + if (true) break; + +case 129: +//C +this.state = 130; +; + //BA.debugLineNum = 1905;BA.debugLine="Dim textedit As Double = et_abono.Text"; +_textedit = (double)(Double.parseDouble(parent._et_abono.getText())); + //BA.debugLineNum = 1906;BA.debugLine="Dim sumaresta As Double = saldopendiente-texte"; +_sumaresta = _saldopendiente-_textedit-_saldopendiente1; + //BA.debugLineNum = 1908;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \"-."; +if (true) break; + +case 130: +//if +this.state = 141; +if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals("-.00") == false) { +this.state = 132; +}if (true) break; + +case 132: +//C +this.state = 133; + //BA.debugLineNum = 1909;BA.debugLine="If NumberFormat2(sumaresta,0,2,2,False) <> \"."; +if (true) break; + +case 133: +//if +this.state = 140; +if ((parent.__c.NumberFormat2(_sumaresta,(int) (0),(int) (2),(int) (2),parent.__c.False)).equals(".00") == false) { +this.state = 135; +}if (true) break; + +case 135: +//C +this.state = 136; + //BA.debugLineNum = 1910;BA.debugLine="Dim rutaactualizar As String"; +_rutaactualizar = ""; + //BA.debugLineNum = 1911;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\""; +_rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1912;BA.debugLine="If rut.RowCount > 0 Then"; +if (true) break; + +case 136: +//if +this.state = 139; +if (_rut.getRowCount()>0) { +this.state = 138; +}if (true) break; + +case 138: +//C +this.state = 139; + //BA.debugLineNum = 1913;BA.debugLine="rut.Position = 0"; +_rut.setPosition((int) (0)); + //BA.debugLineNum = 1914;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA"; +_rutaactualizar = _rut.GetString("CAT_CL_RUTA"); + if (true) break; + +case 139: +//C +this.state = 140; +; + //BA.debugLineNum = 1916;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+parent.__c.SmartStringFormatter("",(Object)(parent._sdate+" "+parent._stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+parent.__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'")); + //BA.debugLineNum = 1917;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVE"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)")); + //BA.debugLineNum = 1918;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVE"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(parent._la_cuenta.getText()),(Object)(parent._sdate+parent._stime),(Object)(parent._usuario),(Object)("PAGO INCOMPLETO"),(Object)("PAGO INCOMPLETO"),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar),(Object)(0)})); + //BA.debugLineNum = 1919;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTA"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT, HVD_RECHAZOCANTC = CANTC, BCAJAS = 0 , CANTC = 0 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 1920;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_RECHAZOCANT WHERE HVD_PROID = HVD_CODPROMO and HVD_CLIENTE in (Select CUENTA from cuentaa)")); + //BA.debugLineNum = 1921;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM PEDID"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); + //BA.debugLineNum = 1922;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FRO"; +parent._d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); + //BA.debugLineNum = 1923;BA.debugLine="d.Position = 0"; +parent._d.setPosition((int) (0)); + //BA.debugLineNum = 1924;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")"; +_ruta = parent._d.GetString("RUTAA"); + //BA.debugLineNum = 1925;BA.debugLine="d.Close"; +parent._d.Close(); + //BA.debugLineNum = 1926;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RU"; +parent._d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1927;BA.debugLine="d.Position = 0"; +parent._d.setPosition((int) (0)); + //BA.debugLineNum = 1928;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_"; +_rutapre = parent._d.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 1929;BA.debugLine="d.Close"; +parent._d.Close(); + //BA.debugLineNum = 1930;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA"; +parent._d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1931;BA.debugLine="d.Position = 0"; +parent._d.setPosition((int) (0)); + //BA.debugLineNum = 1932;BA.debugLine="Dim fechaprev As String = d.GetString(\"HVD_F"; +parent._fechaprev = parent._d.GetString("HVD_FECHA"); + //BA.debugLineNum = 1933;BA.debugLine="d.Close"; +parent._d.Close(); + //BA.debugLineNum = 1934;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CUENTA FR"; +parent._d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); + //BA.debugLineNum = 1935;BA.debugLine="d.Position = 0"; +parent._d.setPosition((int) (0)); + //BA.debugLineNum = 1936;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPA"; +parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{parent._cuenta,parent._usuario,parent._sdate+" "+parent._stime,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,parent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,parent._fechaprev,"PAGO INCOMPLETO","PAGO INCOMPLETO","NO ENTREGADO"})); + //BA.debugLineNum = 1937;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +parent._b4xpages._showpage /*String*/ (ba,"Principal"); + if (true) break; + +case 140: +//C +this.state = 141; +; + if (true) break; + +case 141: +//C +this.state = 142; +; + if (true) break; + +case 142: +//C +this.state = 143; +; + if (true) break; + +case 143: +//C +this.state = 144; +; + if (true) break; + +case 144: +//C +this.state = -1; +; + //BA.debugLineNum = 1947;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _imprime_pagare() throws Exception{ +ResumableSub_imprime_pagare rsub = new ResumableSub_imprime_pagare(this); +rsub.resume(ba, null); +} +public static class ResumableSub_imprime_pagare extends BA.ResumableSub { +public ResumableSub_imprime_pagare(reparto_izca.keymon.lat.c_cliente parent) { +this.parent = parent; +} +reparto_izca.keymon.lat.c_cliente parent; +int _cont = 0; +String _telefono = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c7 = null; +String _ticket = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c6 = null; +int _k = 0; +int _i = 0; +int _resultado = 0; +int step59; +int limit59; +int step76; +int limit76; +int step100; +int limit100; + +@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 = 2153;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 2154;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 2155;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 2156;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +parent.__c.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 2157;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 2158;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 2159;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 2190;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; +parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); + //BA.debugLineNum = 2191;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 2192;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 = 2194;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 2195;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 2196;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 = 2197;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 117; +return; +case 117: +//C +this.state = 7; +; + //BA.debugLineNum = 2198;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 2199;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 = 2200;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 = 2202;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 118; +return; +case 118: +//C +this.state = 38; +; + //BA.debugLineNum = 2203;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 21: +//C +this.state = 22; + //BA.debugLineNum = 2206;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 2207;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 2208;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 = 2209;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 119; +return; +case 119: +//C +this.state = 25; +; + //BA.debugLineNum = 2210;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 2211;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 = 2212;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 = 2214;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 120; +return; +case 120: +//C +this.state = 38; +; + //BA.debugLineNum = 2215;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 38: +//C +this.state = 39; +; + //BA.debugLineNum = 2218;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 2219;BA.debugLine="ESPACIO = 28"; +parent._espacio = (int) (28); + //BA.debugLineNum = 2220;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 2222;BA.debugLine="Dim telefono As String = \"\""; +_telefono = ""; + //BA.debugLineNum = 2223;BA.debugLine="Dim c7 As Cursor = Starter.skmt.ExecQuery(\"select"; +_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)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select IFNULL(CAT_CL_TELEFONO,' ') AS CAT_CL_TELEFONO FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 2224;BA.debugLine="If c7.RowCount > 0 Then"; +if (true) break; + +case 39: +//if +this.state = 42; +if (_c7.getRowCount()>0) { +this.state = 41; +}if (true) break; + +case 41: +//C +this.state = 42; + //BA.debugLineNum = 2225;BA.debugLine="c7.Position = 0"; +_c7.setPosition((int) (0)); + //BA.debugLineNum = 2226;BA.debugLine="telefono = c7.GetString(\"CAT_CL_TELEFONO\")"; +_telefono = _c7.GetString("CAT_CL_TELEFONO"); + if (true) break; + +case 42: +//C +this.state = 43; +; + //BA.debugLineNum = 2228;BA.debugLine="c7.Close"; +_c7.Close(); + //BA.debugLineNum = 2247;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 2248;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +parent.__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 2249;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 2250;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 2251;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; +parent._printer1._writestring /*String*/ ("Izca Distribuciones"+parent.__c.CRLF); + //BA.debugLineNum = 2252;BA.debugLine="Printer1.WriteString(sDate & CRLF)"; +parent._printer1._writestring /*String*/ (parent._sdate+parent.__c.CRLF); + //BA.debugLineNum = 2253;BA.debugLine="Printer1.WriteString(sTime & CRLF)"; +parent._printer1._writestring /*String*/ (parent._stime+parent.__c.CRLF); + //BA.debugLineNum = 2254;BA.debugLine="Printer1.WriteString(\"Reparto:\" & usuario & CRLF"; +parent._printer1._writestring /*String*/ ("Reparto:"+parent._usuario+parent.__c.CRLF); + //BA.debugLineNum = 2255;BA.debugLine="Printer1.WriteString(\"Tienda: \" & La_nombre.Text"; +parent._printer1._writestring /*String*/ ("Tienda: "+parent._la_nombre.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2256;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & la_cuenta."; +parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._la_cuenta.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2257;BA.debugLine="Printer1.WriteString(\"Calle: \" & la_Calle.Text &"; +parent._printer1._writestring /*String*/ ("Calle: "+parent._la_calle.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2258;BA.debugLine="Printer1.WriteString(\"Colonia: \" & la_col.Text &"; +parent._printer1._writestring /*String*/ ("Colonia: "+parent._la_col.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2259;BA.debugLine="Printer1.WriteString(\"Telefono: \" & telefono & C"; +parent._printer1._writestring /*String*/ ("Telefono: "+_telefono+parent.__c.CRLF); + //BA.debugLineNum = 2260;BA.debugLine="Dim Ticket As String = 0"; +_ticket = BA.NumberToString(0); + //BA.debugLineNum = 2261;BA.debugLine="Dim c6 As Cursor = Starter.skmt.ExecQuery(\"select"; +_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._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct HVD_NUM_TICKET FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PRONOMBRE <> 'Cobranza Pendiente' and HVD_BCREDITO = '1'"))); + //BA.debugLineNum = 2262;BA.debugLine="If c6.RowCount > 0 Then"; +if (true) break; + +case 43: +//if +this.state = 50; +if (_c6.getRowCount()>0) { +this.state = 45; +}if (true) break; + +case 45: +//C +this.state = 46; + //BA.debugLineNum = 2263;BA.debugLine="For k = 0 To c6.RowCount -1"; +if (true) break; + +case 46: +//for +this.state = 49; +step59 = 1; +limit59 = (int) (_c6.getRowCount()-1); +_k = (int) (0) ; +this.state = 121; +if (true) break; + +case 121: +//C +this.state = 49; +if ((step59 > 0 && _k <= limit59) || (step59 < 0 && _k >= limit59)) this.state = 48; +if (true) break; + +case 122: +//C +this.state = 121; +_k = ((int)(0 + _k + step59)) ; +if (true) break; + +case 48: +//C +this.state = 122; + //BA.debugLineNum = 2264;BA.debugLine="c6.Position = k"; +_c6.setPosition(_k); + //BA.debugLineNum = 2265;BA.debugLine="Ticket = c6.GetString(\"HVD_NUM_TICKET\")"; +_ticket = _c6.GetString("HVD_NUM_TICKET"); + //BA.debugLineNum = 2266;BA.debugLine="Printer1.WriteString(\"Num. Ticket \" & (k +1)&\":"; +parent._printer1._writestring /*String*/ ("Num. Ticket "+BA.NumberToString((_k+1))+": "+_ticket+parent.__c.CRLF); + if (true) break; +if (true) break; + +case 49: +//C +this.state = 50; +; + if (true) break; + +case 50: +//C +this.state = 51; +; + //BA.debugLineNum = 2269;BA.debugLine="c6.Close"; +_c6.Close(); + //BA.debugLineNum = 2270;BA.debugLine="Printer1.WriteString(\"Fecha: \" & sDate &\" \" & sT"; +parent._printer1._writestring /*String*/ ("Fecha: "+parent._sdate+" "+parent._stime+parent.__c.CRLF); + //BA.debugLineNum = 2271;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2275;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM HIST_VE"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and HVD_BCREDITO = '1' "))); + //BA.debugLineNum = 2276;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 51: +//if +this.state = 72; +if (parent._c.getRowCount()>0) { +this.state = 53; +}if (true) break; + +case 53: +//C +this.state = 54; + //BA.debugLineNum = 2277;BA.debugLine="Printer1.WriteString(\"------------PAGARE--------"; +parent._printer1._writestring /*String*/ ("------------PAGARE------------"+parent.__c.CRLF); + //BA.debugLineNum = 2278;BA.debugLine="Printer1.WriteString(\"\" & CRLF)"; +parent._printer1._writestring /*String*/ (""+parent.__c.CRLF); + //BA.debugLineNum = 2279;BA.debugLine="Printer1.WriteString(\"Pagare por los articulos\""; +parent._printer1._writestring /*String*/ ("Pagare por los articulos"+parent.__c.CRLF); + //BA.debugLineNum = 2280;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 2283;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_BCREDITO = '1' order by HVD_PROID")))); + //BA.debugLineNum = 2284;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 54: +//if +this.state = 71; +if (parent._s.getRowCount()>0) { +this.state = 56; +}if (true) break; + +case 56: +//C +this.state = 57; + //BA.debugLineNum = 2285;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 57: +//for +this.state = 70; +step76 = 1; +limit76 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 123; +if (true) break; + +case 123: +//C +this.state = 70; +if ((step76 > 0 && _i <= limit76) || (step76 < 0 && _i >= limit76)) this.state = 59; +if (true) break; + +case 124: +//C +this.state = 123; +_i = ((int)(0 + _i + step76)) ; +if (true) break; + +case 59: +//C +this.state = 60; + //BA.debugLineNum = 2286;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 2287;BA.debugLine="Log(s.GetString(\"HVD_RECHAZO\"))"; +parent.__c.LogImpl("010092679",parent._s.GetString("HVD_RECHAZO"),0); + //BA.debugLineNum = 2288;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_"; +if (true) break; + +case 60: +//if +this.state = 69; +if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) { +this.state = 62; +}if (true) break; + +case 62: +//C +this.state = 63; + //BA.debugLineNum = 2289;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = Subs.traeAlm"; +if (true) break; + +case 63: +//if +this.state = 68; +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba))) { +this.state = 65; +}else if((parent._s.GetString("HVD_RECHAZO")).equals(BA.NumberToString(1))) { +this.state = 67; +}if (true) break; + +case 65: +//C +this.state = 68; + //BA.debugLineNum = 2290;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2291;BA.debugLine="Printer1.WriteString((s.GetString(\"HVD_CANT\""; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+" "+parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + if (true) break; + +case 67: +//C +this.state = 68; + //BA.debugLineNum = 2314;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2315;BA.debugLine="Printer1.WriteString((s.GetString(\"HVD_CANT\""; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+" "+parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 2340;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + if (true) break; + +case 68: +//C +this.state = 69; +; + if (true) break; + +case 69: +//C +this.state = 124; +; + if (true) break; +if (true) break; + +case 70: +//C +this.state = 71; +; + if (true) break; + +case 71: +//C +this.state = 72; +; + if (true) break; + +case 72: +//C +this.state = 73; +; + //BA.debugLineNum = 2346;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2347;BA.debugLine="s.Close"; +parent._s.Close(); + //BA.debugLineNum = 2348;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2350;BA.debugLine="s=Starter.skmt.ExecQuery($\"select HVD_PRONOMBRE,"; +parent._s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PRONOMBRE, HVD_CANT, length(HVD_CANT) as L_CANT, HVD_COSTO_TOT, length(HVD_COSTO_TOT) as L_COSTOU,HVD_PROID, HVD_CODPROMO,IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) AND HVD_RECHAZO = 0 AND HVD_CODPROMO <> '"+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"' and HVD_BCREDITO = '1' order by HVD_CODPROMO, ESPROMO DESC, HVD_PROID")))); + //BA.debugLineNum = 2351;BA.debugLine="If S.RowCount>0 Then"; +if (true) break; + +case 73: +//if +this.state = 100; +if (parent._s.getRowCount()>0) { +this.state = 75; +}if (true) break; + +case 75: +//C +this.state = 76; + //BA.debugLineNum = 2352;BA.debugLine="Printer1.WriteString(\"-------PROMOS ENTREGA-----"; +parent._printer1._writestring /*String*/ ("-------PROMOS ENTREGA--------"+parent.__c.CRLF); + //BA.debugLineNum = 2353;BA.debugLine="Printer1.WriteString(\"Cant. Precio I"; +parent._printer1._writestring /*String*/ ("Cant. Precio Importe"+parent.__c.CRLF); + //BA.debugLineNum = 2354;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 2355;BA.debugLine="For i=0 To S.RowCount -1"; +if (true) break; + +case 76: +//for +this.state = 99; +step100 = 1; +limit100 = (int) (parent._s.getRowCount()-1); +_i = (int) (0) ; +this.state = 125; +if (true) break; + +case 125: +//C +this.state = 99; +if ((step100 > 0 && _i <= limit100) || (step100 < 0 && _i >= limit100)) this.state = 78; +if (true) break; + +case 126: +//C +this.state = 125; +_i = ((int)(0 + _i + step100)) ; +if (true) break; + +case 78: +//C +this.state = 79; + //BA.debugLineNum = 2356;BA.debugLine="S.Position=i"; +parent._s.setPosition(_i); + //BA.debugLineNum = 2357;BA.debugLine="If s.GetString(\"HVD_CANT\") - s.GetString(\"HVD_R"; +if (true) break; + +case 79: +//if +this.state = 98; +if ((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))>0) { +this.state = 81; +}if (true) break; + +case 81: +//C +this.state = 82; + //BA.debugLineNum = 2358;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; +if (true) break; + +case 82: +//if +this.state = 97; +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._subs._traealmacen /*String*/ (ba)) == false) { +this.state = 84; +}else { +this.state = 96; +}if (true) break; + +case 84: +//C +this.state = 85; + //BA.debugLineNum = 2359;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 2360;BA.debugLine="If s.GetString(\"HVD_CODPROMO\") = s.GetString("; +if (true) break; + +case 85: +//if +this.state = 94; +if ((parent._s.GetString("HVD_CODPROMO")).equals(parent._s.GetString("HVD_PROID"))) { +this.state = 87; +}else { +this.state = 89; +}if (true) break; + +case 87: +//C +this.state = 94; + if (true) break; + +case 89: +//C +this.state = 90; + //BA.debugLineNum = 2363;BA.debugLine="If s.GetString(\"HVD_PRONOMBRE\") <> \"Cobranza"; +if (true) break; + +case 90: +//if +this.state = 93; +if ((parent._s.GetString("HVD_PRONOMBRE")).equals("Cobranza Pendiente") == false) { +this.state = 92; +}if (true) break; + +case 92: +//C +this.state = 93; + //BA.debugLineNum = 2365;BA.debugLine="Printer1.WriteString((s.GetString(\"HVD_CANT"; +parent._printer1._writestring /*String*/ (BA.NumberToString(((double)(Double.parseDouble(parent._s.GetString("HVD_CANT")))-(double)(Double.parseDouble(parent._s.GetString("HVD_RECHAZOCANT")))))+" "+parent._s.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + if (true) break; + +case 93: +//C +this.state = 94; +; + if (true) break; + +case 94: +//C +this.state = 97; +; + //BA.debugLineNum = 2386;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + if (true) break; + +case 96: +//C +this.state = 97; + if (true) break; + +case 97: +//C +this.state = 98; +; + if (true) break; + +case 98: +//C +this.state = 126; +; + if (true) break; +if (true) break; + +case 99: +//C +this.state = 100; +; + if (true) break; + +case 100: +//C +this.state = 101; +; + //BA.debugLineNum = 2393;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2394;BA.debugLine="Printer1.WriteString(\"Por monto de $\" &l_montopag"; +parent._printer1._writestring /*String*/ ("Por monto de $"+parent._l_montopag.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2395;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2396;BA.debugLine="Printer1.WriteString(\"Debo(mos) y pagare(mos) inc"; +parent._printer1._writestring /*String*/ ("Debo(mos) y pagare(mos) incon"+parent.__c.CRLF); + //BA.debugLineNum = 2397;BA.debugLine="Printer1.WriteString(\"dicionalmente en __________"; +parent._printer1._writestring /*String*/ ("dicionalmente en _____________"+parent.__c.CRLF); + //BA.debugLineNum = 2398;BA.debugLine="Printer1.WriteString(\"o en el lugar donde se me \""; +parent._printer1._writestring /*String*/ ("o en el lugar donde se me "+parent.__c.CRLF); + //BA.debugLineNum = 2399;BA.debugLine="Printer1.WriteString(\"requiera por el presente pa"; +parent._printer1._writestring /*String*/ ("requiera por el presente pagare"+parent.__c.CRLF); + //BA.debugLineNum = 2400;BA.debugLine="Printer1.WriteString(\"a Izca Distribuciones la \"&"; +parent._printer1._writestring /*String*/ ("a Izca Distribuciones la "+parent.__c.CRLF); + //BA.debugLineNum = 2401;BA.debugLine="Printer1.WriteString(\"cantidad de $\"&l_montopag.T"; +parent._printer1._writestring /*String*/ ("cantidad de $"+parent._l_montopag.getText()+parent.__c.CRLF); + //BA.debugLineNum = 2402;BA.debugLine="Printer1.WriteString(\"valor recibido a entera \" &"; +parent._printer1._writestring /*String*/ ("valor recibido a entera "+parent.__c.CRLF); + //BA.debugLineNum = 2403;BA.debugLine="Printer1.WriteString(\"satisfaccion. La falta de p"; +parent._printer1._writestring /*String*/ ("satisfaccion. La falta de pago"+parent.__c.CRLF); + //BA.debugLineNum = 2404;BA.debugLine="Printer1.WriteString(\"a la fecha indicada causara"; +parent._printer1._writestring /*String*/ ("a la fecha indicada causara "+parent.__c.CRLF); + //BA.debugLineNum = 2405;BA.debugLine="Printer1.WriteString(\"intereses moratorios a razo"; +parent._printer1._writestring /*String*/ ("intereses moratorios a razon "+parent.__c.CRLF); + //BA.debugLineNum = 2406;BA.debugLine="Printer1.WriteString(\"de ______% mensual a la fec"; +parent._printer1._writestring /*String*/ ("de ______% mensual a la fecha."+parent.__c.CRLF); + //BA.debugLineNum = 2407;BA.debugLine="Printer1.WriteString(\"\" & CRLF)"; +parent._printer1._writestring /*String*/ (""+parent.__c.CRLF); + //BA.debugLineNum = 2408;BA.debugLine="Printer1.WriteString(\"\" & CRLF)"; +parent._printer1._writestring /*String*/ (""+parent.__c.CRLF); + //BA.debugLineNum = 2409;BA.debugLine="Printer1.WriteString(\" Recibi"; +parent._printer1._writestring /*String*/ (" Recibi "+parent.__c.CRLF); + //BA.debugLineNum = 2410;BA.debugLine="Printer1.WriteString(\"\" & CRLF)"; +parent._printer1._writestring /*String*/ (""+parent.__c.CRLF); + //BA.debugLineNum = 2411;BA.debugLine="Printer1.WriteString(\"\" & CRLF)"; +parent._printer1._writestring /*String*/ (""+parent.__c.CRLF); + //BA.debugLineNum = 2412;BA.debugLine="Printer1.WriteString(\"___________________________"; +parent._printer1._writestring /*String*/ ("______________________________"+parent.__c.CRLF); + //BA.debugLineNum = 2414;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2415;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2416;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2417;BA.debugLine="DateTime.DateFormat = \"ddMMyyyy\""; +parent.__c.DateTime.setDateFormat("ddMMyyyy"); + //BA.debugLineNum = 2418;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 2420;BA.debugLine="Printer1.WriteBarCode(\"I\",Ticket&sDate)"; +parent._printer1._writebarcode /*String*/ ("I",_ticket+parent._sdate); + //BA.debugLineNum = 2422;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2423;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2424;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 2425;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 127; +return; +case 127: +//C +this.state = 101; +; + //BA.debugLineNum = 2426;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 2427;BA.debugLine="ProgressDialogHide"; +parent.__c.ProgressDialogHide(); + //BA.debugLineNum = 2428;BA.debugLine="If banderaimp = 1 Then"; +if (true) break; + +case 101: +//if +this.state = 116; +if (parent._banderaimp==1) { +this.state = 103; +}else if(parent._banderaimp==0) { +this.state = 111; +}if (true) break; + +case 103: +//C +this.state = 104; + //BA.debugLineNum = 2429;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el PAGARE"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el PAGARE?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 2430;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 128; +return; +case 128: +//C +this.state = 104; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 2431;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 104: +//if +this.state = 109; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 106; +}else { +this.state = 108; +}if (true) break; + +case 106: +//C +this.state = 109; + //BA.debugLineNum = 2432;BA.debugLine="imprime_pagare"; +parent._imprime_pagare(); + if (true) break; + +case 108: +//C +this.state = 109; + //BA.debugLineNum = 2434;BA.debugLine="b_acred_Click"; +parent._b_acred_click(); + if (true) break; + +case 109: +//C +this.state = 116; +; + if (true) break; + +case 111: +//C +this.state = 112; + //BA.debugLineNum = 2439;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el PAGARE"; +parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el PAGARE?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); + //BA.debugLineNum = 2440;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); +this.state = 129; +return; +case 129: +//C +this.state = 112; +_resultado = (Integer) result[0]; +; + //BA.debugLineNum = 2441;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; +if (true) break; + +case 112: +//if +this.state = 115; +if (_resultado==parent.__c.DialogResponse.POSITIVE) { +this.state = 114; +}if (true) break; + +case 114: +//C +this.state = 115; + //BA.debugLineNum = 2442;BA.debugLine="imprime_pagare"; +parent._imprime_pagare(); + if (true) break; + +case 115: +//C +this.state = 116; +; + if (true) break; + +case 116: +//C +this.state = -1; +; + //BA.debugLineNum = 2446;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 104;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 105;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 106;BA.debugLine="End Sub"; +return null; +} +public String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{ reparto_izca.keymon.lat.dbrequestmanager._dbresult _resultado = null; String _cliente = ""; Object[] _records = null; String _k = ""; -RDebugUtils.currentLine=9109504; - //BA.debugLineNum = 9109504;BA.debugLine="Sub JobDone(Job As HttpJob)"; -RDebugUtils.currentLine=9109505; - //BA.debugLineNum = 9109505;BA.debugLine="Log(Job.Success)"; -__c.LogImpl("29109505",BA.ObjectToString(_job._success /*boolean*/ ),0); -RDebugUtils.currentLine=9109506; - //BA.debugLineNum = 9109506;BA.debugLine="If Job.Success = False Then"; + //BA.debugLineNum = 1260;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 1261;BA.debugLine="Log(Job.Success)"; +__c.LogImpl("09371649",BA.ObjectToString(_job._success /*boolean*/ ),0); + //BA.debugLineNum = 1262;BA.debugLine="If Job.Success = False Then"; if (_job._success /*boolean*/ ==__c.False) { }else { -RDebugUtils.currentLine=9109509; - //BA.debugLineNum = 9109509;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job"; -__c.LogImpl("29109509","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); -RDebugUtils.currentLine=9109510; - //BA.debugLineNum = 9109510;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 1265;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job"; +__c.LogImpl("09371653","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); + //BA.debugLineNum = 1266;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=9109511; - //BA.debugLineNum = 9109511;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo"; -_resultado = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=9109512; - //BA.debugLineNum = 9109512;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_REPART"; + //BA.debugLineNum = 1267;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo"; +_resultado = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1268;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_REPART"; if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_REPARTOPendientes_head_")>-1) { -RDebugUtils.currentLine=9109513; - //BA.debugLineNum = 9109513;BA.debugLine="Private cliente As String= resultado.Tag"; + //BA.debugLineNum = 1269;BA.debugLine="Private cliente As String= resultado.Tag"; _cliente = BA.ObjectToString(_resultado.Tag /*Object*/ ); -RDebugUtils.currentLine=9109514; - //BA.debugLineNum = 9109514;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_"; + //BA.debugLineNum = 1270;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_"; _cliente = _cliente.substring((int) (_cliente.indexOf("_")+24)); -RDebugUtils.currentLine=9109515; - //BA.debugLineNum = 9109515;BA.debugLine="Log($\"Cliente1:${cliente}\"$)"; -__c.LogImpl("29109515",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0); -RDebugUtils.currentLine=9109516; - //BA.debugLineNum = 9109516;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update REPARTO_GEO"; + //BA.debugLineNum = 1271;BA.debugLine="Log($\"Cliente1:${cliente}\"$)"; +__c.LogImpl("09371659",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0); + //BA.debugLineNum = 1272;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update REPARTO_GEO"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update REPARTO_GEO SET ENVIO = ? WHERE CLIENTE = ? AND ENVIO <> ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"1",_cliente,"1"})); -RDebugUtils.currentLine=9109517; - //BA.debugLineNum = 9109517;BA.debugLine="For Each records() As Object In resultado.Rows"; + //BA.debugLineNum = 1273;BA.debugLine="For Each records() As Object In resultado.Rows"; { final anywheresoftware.b4a.BA.IterableList group12 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen12 = group12.getSize() @@ -8691,8 +6996,7 @@ final int groupLen12 = group12.getSize() ; for (; index12 < groupLen12;index12++){ _records = (Object[])(group12.Get(index12)); -RDebugUtils.currentLine=9109518; - //BA.debugLineNum = 9109518;BA.debugLine="For Each k As String In resultado.Columns.Key"; + //BA.debugLineNum = 1274;BA.debugLine="For Each k As String In resultado.Columns.Key"; { final anywheresoftware.b4a.BA.IterableList group13 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); final int groupLen13 = group13.getSize() @@ -8700,269 +7004,185 @@ final int groupLen13 = group13.getSize() ; for (; index13 < groupLen13;index13++){ _k = BA.ObjectToString(group13.Get(index13)); -RDebugUtils.currentLine=9109519; - //BA.debugLineNum = 9109519;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record"; -__c.LogImpl("29109519",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); + //BA.debugLineNum = 1275;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record"; +__c.LogImpl("09371663",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); } }; } }; }; }; -RDebugUtils.currentLine=9109524; - //BA.debugLineNum = 9109524;BA.debugLine="Job.Release"; -_job._release /*String*/ (null); + //BA.debugLineNum = 1280;BA.debugLine="Job.Release"; +_job._release /*String*/ (); }; -RDebugUtils.currentLine=9109527; - //BA.debugLineNum = 9109527;BA.debugLine="End Sub"; + //BA.debugLineNum = 1283;BA.debugLine="End Sub"; return ""; } -public String _listview1_itemlongclick(reparto_izca.keymon.lat.c_cliente __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "listview1_itemlongclick", false)) - {return ((String) Debug.delegate(ba, "listview1_itemlongclick", new Object[] {_position,_value}));} -RDebugUtils.currentLine=7995392; - //BA.debugLineNum = 7995392;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; -RDebugUtils.currentLine=7995394; - //BA.debugLineNum = 7995394;BA.debugLine="End Sub"; +public String _listview1_itemlongclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 442;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; + //BA.debugLineNum = 444;BA.debugLine="End Sub"; return ""; } -public String _nuevo_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "nuevo_click", false)) - {return ((String) Debug.delegate(ba, "nuevo_click", null));} -RDebugUtils.currentLine=8519680; - //BA.debugLineNum = 8519680;BA.debugLine="Sub NUEVO_Click"; -RDebugUtils.currentLine=8519681; - //BA.debugLineNum = 8519681;BA.debugLine="StartActivity(MAPA_CLIENTE)"; +public String _mandapendientesreparto() throws Exception{ + //BA.debugLineNum = 1240;BA.debugLine="Sub mandaPendientesreparto"; + //BA.debugLineNum = 1256;BA.debugLine="End Sub"; +return ""; +} +public String _nuevo_click() throws Exception{ + //BA.debugLineNum = 606;BA.debugLine="Sub NUEVO_Click"; + //BA.debugLineNum = 607;BA.debugLine="StartActivity(MAPA_CLIENTE)"; __c.StartActivity(ba,(Object)(_mapa_cliente.getObject())); -RDebugUtils.currentLine=8519682; - //BA.debugLineNum = 8519682;BA.debugLine="End Sub"; + //BA.debugLineNum = 608;BA.debugLine="End Sub"; return ""; } -public String _p_abono_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "p_abono_click", false)) - {return ((String) Debug.delegate(ba, "p_abono_click", null));} -RDebugUtils.currentLine=9568256; - //BA.debugLineNum = 9568256;BA.debugLine="Private Sub p_abono_Click"; -RDebugUtils.currentLine=9568258; - //BA.debugLineNum = 9568258;BA.debugLine="End Sub"; +public String _p_abono_click() throws Exception{ + //BA.debugLineNum = 2042;BA.debugLine="Private Sub p_abono_Click"; + //BA.debugLineNum = 2044;BA.debugLine="End Sub"; return ""; } -public String _p_credito_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "p_credito_click", false)) - {return ((String) Debug.delegate(ba, "p_credito_click", null));} -RDebugUtils.currentLine=9306112; - //BA.debugLineNum = 9306112;BA.debugLine="Private Sub p_credito_Click"; -RDebugUtils.currentLine=9306114; - //BA.debugLineNum = 9306114;BA.debugLine="End Sub"; +public String _p_credito_click() throws Exception{ + //BA.debugLineNum = 1357;BA.debugLine="Private Sub p_credito_Click"; + //BA.debugLineNum = 1359;BA.debugLine="End Sub"; return ""; } -public String _printer_connected(reparto_izca.keymon.lat.c_cliente __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "printer_connected", false)) - {return ((String) Debug.delegate(ba, "printer_connected", new Object[] {_success}));} -RDebugUtils.currentLine=8847360; - //BA.debugLineNum = 8847360;BA.debugLine="Sub Printer_Connected (Success As Boolean)"; -RDebugUtils.currentLine=8847361; - //BA.debugLineNum = 8847361;BA.debugLine="If Success Then"; +public String _printer_connected(boolean _success) throws Exception{ + //BA.debugLineNum = 1166;BA.debugLine="Sub Printer_Connected (Success As Boolean)"; + //BA.debugLineNum = 1167;BA.debugLine="If Success Then"; if (_success) { -RDebugUtils.currentLine=8847363; - //BA.debugLineNum = 8847363;BA.debugLine="PASA_IMP = \"1\""; -__ref._pasa_imp /*String*/ = "1"; + //BA.debugLineNum = 1169;BA.debugLine="PASA_IMP = \"1\""; +_pasa_imp = "1"; }else { -RDebugUtils.currentLine=8847366; - //BA.debugLineNum = 8847366;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel"; + //BA.debugLineNum = 1172;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) { -RDebugUtils.currentLine=8847367; - //BA.debugLineNum = 8847367;BA.debugLine="StartPrinter"; -__ref._startprinter /*String*/ (null); + //BA.debugLineNum = 1173;BA.debugLine="StartPrinter"; +_startprinter(); }; }; -RDebugUtils.currentLine=8847370; - //BA.debugLineNum = 8847370;BA.debugLine="End Sub"; + //BA.debugLineNum = 1176;BA.debugLine="End Sub"; return ""; } -public String _startprinter(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "startprinter", false)) - {return ((String) Debug.delegate(ba, "startprinter", null));} +public String _printer1_connected(boolean _success) throws Exception{ + //BA.debugLineNum = 1141;BA.debugLine="Sub Printer1_Connected (Success As Boolean)"; + //BA.debugLineNum = 1143;BA.debugLine="If Success Then"; +if (_success) { + //BA.debugLineNum = 1144;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False); + //BA.debugLineNum = 1145;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 = 1146;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 = 1149;BA.debugLine="impresoraConectada = True"; +_impresoraconectada = __c.True; + }else { + //BA.debugLineNum = 1153;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors"; +__c.LogImpl("08978444","Error conectando la impresora",__c.Colors.Red); + //BA.debugLineNum = 1154;BA.debugLine="errorImpresora = errorImpresora + 1"; +_errorimpresora = (int) (_errorimpresora+1); + //BA.debugLineNum = 1155;BA.debugLine="If errorImpresora > 1 Then"; +if (_errorimpresora>1) { + //BA.debugLineNum = 1156;BA.debugLine="Starter.MAC_IMPRESORA = \"0\""; +_starter._mac_impresora /*String*/ = "0"; + //BA.debugLineNum = 1157;BA.debugLine="errorImpresora = 0"; +_errorimpresora = (int) (0); + }; + }; + //BA.debugLineNum = 1160;BA.debugLine="End Sub"; +return ""; +} +public String _printer1_error() throws Exception{ + //BA.debugLineNum = 1162;BA.debugLine="Sub Printer1_Error"; + //BA.debugLineNum = 1163;BA.debugLine="Log(\"error printer\")"; +__c.LogImpl("09043969","error printer",0); + //BA.debugLineNum = 1164;BA.debugLine="End Sub"; +return ""; +} +public String _startprinter() throws Exception{ anywheresoftware.b4a.objects.collections.List _l1 = null; int _resimp = 0; int _i = 0; -RDebugUtils.currentLine=8912896; - //BA.debugLineNum = 8912896;BA.debugLine="Sub StartPrinter"; -RDebugUtils.currentLine=8912897; - //BA.debugLineNum = 8912897;BA.debugLine="Dim PairedDevices As Map"; + //BA.debugLineNum = 1178;BA.debugLine="Sub StartPrinter"; + //BA.debugLineNum = 1179;BA.debugLine="Dim PairedDevices As Map"; _paireddevices = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=8912898; - //BA.debugLineNum = 8912898;BA.debugLine="Dim L1 As List"; + //BA.debugLineNum = 1180;BA.debugLine="Dim L1 As List"; _l1 = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=8912899; - //BA.debugLineNum = 8912899;BA.debugLine="Dim resimp As Int"; + //BA.debugLineNum = 1181;BA.debugLine="Dim resimp As Int"; _resimp = 0; -RDebugUtils.currentLine=8912900; - //BA.debugLineNum = 8912900;BA.debugLine="ToastMessageShow(\"Printing.....\",True)"; + //BA.debugLineNum = 1182;BA.debugLine="ToastMessageShow(\"Printing.....\",True)"; __c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True); -RDebugUtils.currentLine=8912901; - //BA.debugLineNum = 8912901;BA.debugLine="PairedDevices.Initialize"; -__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); -RDebugUtils.currentLine=8912902; - //BA.debugLineNum = 8912902;BA.debugLine="Try"; -try {RDebugUtils.currentLine=8912903; - //BA.debugLineNum = 8912903;BA.debugLine="PairedDevices = cmp20.GetPairedDevices"; -__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ = __ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .GetPairedDevices(); + //BA.debugLineNum = 1183;BA.debugLine="PairedDevices.Initialize"; +_paireddevices.Initialize(); + //BA.debugLineNum = 1184;BA.debugLine="Try"; +try { //BA.debugLineNum = 1185;BA.debugLine="PairedDevices = cmp20.GetPairedDevices"; +_paireddevices = _cmp20.GetPairedDevices(); } catch (Exception e9) { - ba.setLastException(e9);RDebugUtils.currentLine=8912905; - //BA.debugLineNum = 8912905;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")"; + ba.setLastException(e9); //BA.debugLineNum = 1187;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")"; __c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba); -RDebugUtils.currentLine=8912906; - //BA.debugLineNum = 8912906;BA.debugLine="printer.Close"; -__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close(); -RDebugUtils.currentLine=8912907; - //BA.debugLineNum = 8912907;BA.debugLine="cmp20.Disconnect"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect(); + //BA.debugLineNum = 1188;BA.debugLine="printer.Close"; +_printer.Close(); + //BA.debugLineNum = 1189;BA.debugLine="cmp20.Disconnect"; +_cmp20.Disconnect(); }; -RDebugUtils.currentLine=8912910; - //BA.debugLineNum = 8912910;BA.debugLine="If PairedDevices.Size = 0 Then"; -if (__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .getSize()==0) { -RDebugUtils.currentLine=8912911; - //BA.debugLineNum = 8912911;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No"; + //BA.debugLineNum = 1192;BA.debugLine="If PairedDevices.Size = 0 Then"; +if (_paireddevices.getSize()==0) { + //BA.debugLineNum = 1193;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No"; __c.Msgbox(BA.ObjectToCharSequence("Error Connecting to Printer - Printer Not Found"),BA.ObjectToCharSequence(""),ba); -RDebugUtils.currentLine=8912912; - //BA.debugLineNum = 8912912;BA.debugLine="Return"; + //BA.debugLineNum = 1194;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=8912915; - //BA.debugLineNum = 8912915;BA.debugLine="If PairedDevices.Size = 1 Then"; -if (__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .getSize()==1) { -RDebugUtils.currentLine=8912916; - //BA.debugLineNum = 8912916;BA.debugLine="Try"; -try {RDebugUtils.currentLine=8912917; - //BA.debugLineNum = 8912917;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .Get(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .GetKeyAt((int) (0))))); + //BA.debugLineNum = 1197;BA.debugLine="If PairedDevices.Size = 1 Then"; +if (_paireddevices.getSize()==1) { + //BA.debugLineNum = 1198;BA.debugLine="Try"; +try { //BA.debugLineNum = 1199;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);RDebugUtils.currentLine=8912919; - //BA.debugLineNum = 8912919;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore"; + ba.setLastException(e21); //BA.debugLineNum = 1201;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore"; __c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba); -RDebugUtils.currentLine=8912920; - //BA.debugLineNum = 8912920;BA.debugLine="printer.Close"; -__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close(); -RDebugUtils.currentLine=8912921; - //BA.debugLineNum = 8912921;BA.debugLine="cmp20.Disconnect"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect(); + //BA.debugLineNum = 1202;BA.debugLine="printer.Close"; +_printer.Close(); + //BA.debugLineNum = 1203;BA.debugLine="cmp20.Disconnect"; +_cmp20.Disconnect(); }; }else { -RDebugUtils.currentLine=8912924; - //BA.debugLineNum = 8912924;BA.debugLine="L1.Initialize"; + //BA.debugLineNum = 1206;BA.debugLine="L1.Initialize"; _l1.Initialize(); -RDebugUtils.currentLine=8912925; - //BA.debugLineNum = 8912925;BA.debugLine="For i = 0 To PairedDevices.Size - 1"; + //BA.debugLineNum = 1207;BA.debugLine="For i = 0 To PairedDevices.Size - 1"; { final int step27 = 1; -final int limit27 = (int) (__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .getSize()-1); +final int limit27 = (int) (_paireddevices.getSize()-1); _i = (int) (0) ; for (;_i <= limit27 ;_i = _i + step27 ) { -RDebugUtils.currentLine=8912926; - //BA.debugLineNum = 8912926;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))"; -_l1.Add(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .GetKeyAt(_i)); + //BA.debugLineNum = 1208;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))"; +_l1.Add(_paireddevices.GetKeyAt(_i)); } }; -RDebugUtils.currentLine=8912928; - //BA.debugLineNum = 8912928;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign"; + //BA.debugLineNum = 1210;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign"; _resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba); -RDebugUtils.currentLine=8912929; - //BA.debugLineNum = 8912929;BA.debugLine="If resimp <> DialogResponse.CANCEL Then"; + //BA.debugLineNum = 1211;BA.debugLine="If resimp <> DialogResponse.CANCEL Then"; if (_resimp!=__c.DialogResponse.CANCEL) { -RDebugUtils.currentLine=8912930; - //BA.debugLineNum = 8912930;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(__ref._paireddevices /*anywheresoftware.b4a.objects.collections.Map*/ .Get(_l1.Get(_resimp)))); + //BA.debugLineNum = 1212;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))"; +_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp)))); }; }; -RDebugUtils.currentLine=8912933; - //BA.debugLineNum = 8912933;BA.debugLine="End Sub"; + //BA.debugLineNum = 1215;BA.debugLine="End Sub"; return ""; } -public String _printer1_connected(reparto_izca.keymon.lat.c_cliente __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "printer1_connected", false)) - {return ((String) Debug.delegate(ba, "printer1_connected", new Object[] {_success}));} -RDebugUtils.currentLine=8716288; - //BA.debugLineNum = 8716288;BA.debugLine="Sub Printer1_Connected (Success As Boolean)"; -RDebugUtils.currentLine=8716290; - //BA.debugLineNum = 8716290;BA.debugLine="If Success Then"; -if (_success) { -RDebugUtils.currentLine=8716291; - //BA.debugLineNum = 8716291;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)"; -__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False); -RDebugUtils.currentLine=8716292; - //BA.debugLineNum = 8716292;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")})); -RDebugUtils.currentLine=8716293; - //BA.debugLineNum = 8716293;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*/ )})); -RDebugUtils.currentLine=8716296; - //BA.debugLineNum = 8716296;BA.debugLine="impresoraConectada = True"; -__ref._impresoraconectada /*boolean*/ = __c.True; - }else { -RDebugUtils.currentLine=8716300; - //BA.debugLineNum = 8716300;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors"; -__c.LogImpl("28716300","Error conectando la impresora",__c.Colors.Red); -RDebugUtils.currentLine=8716301; - //BA.debugLineNum = 8716301;BA.debugLine="errorImpresora = errorImpresora + 1"; -__ref._errorimpresora /*int*/ = (int) (__ref._errorimpresora /*int*/ +1); -RDebugUtils.currentLine=8716302; - //BA.debugLineNum = 8716302;BA.debugLine="If errorImpresora > 1 Then"; -if (__ref._errorimpresora /*int*/ >1) { -RDebugUtils.currentLine=8716303; - //BA.debugLineNum = 8716303;BA.debugLine="Starter.MAC_IMPRESORA = \"0\""; -_starter._mac_impresora /*String*/ = "0"; -RDebugUtils.currentLine=8716304; - //BA.debugLineNum = 8716304;BA.debugLine="errorImpresora = 0"; -__ref._errorimpresora /*int*/ = (int) (0); - }; - }; -RDebugUtils.currentLine=8716307; - //BA.debugLineNum = 8716307;BA.debugLine="End Sub"; -return ""; -} -public String _printer1_error(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "printer1_error", false)) - {return ((String) Debug.delegate(ba, "printer1_error", null));} -RDebugUtils.currentLine=8781824; - //BA.debugLineNum = 8781824;BA.debugLine="Sub Printer1_Error"; -RDebugUtils.currentLine=8781825; - //BA.debugLineNum = 8781825;BA.debugLine="Log(\"error printer\")"; -__c.LogImpl("28781825","error printer",0); -RDebugUtils.currentLine=8781826; - //BA.debugLineNum = 8781826;BA.debugLine="End Sub"; -return ""; -} -public String _tar_click(reparto_izca.keymon.lat.c_cliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_cliente"; -if (Debug.shouldDelegate(ba, "tar_click", false)) - {return ((String) Debug.delegate(ba, "tar_click", null));} -RDebugUtils.currentLine=8323072; - //BA.debugLineNum = 8323072;BA.debugLine="Sub Tar_Click"; -RDebugUtils.currentLine=8323074; - //BA.debugLineNum = 8323074;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; +public String _tar_click() throws Exception{ + //BA.debugLineNum = 588;BA.debugLine="Sub Tar_Click"; + //BA.debugLineNum = 590;BA.debugLine="B4XPages.ShowPage(\"Productos\")"; _b4xpages._showpage /*String*/ (ba,"Productos"); -RDebugUtils.currentLine=8323075; - //BA.debugLineNum = 8323075;BA.debugLine="End Sub"; + //BA.debugLineNum = 591;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED")) + return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]); +if (BA.fastSubCompare(sub, "JOBDONE")) + return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_clientes.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_clientes.java index 818f242..9f4cc01 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_clientes.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_clientes.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_clientes"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_clientes"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_clientes extends B4AClass.ImplB4AClass implements BA.SubDelegator ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4a.objects.B4XViewWrapper _root = null; public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; public String _q_buscar = ""; @@ -68,101 +61,35 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_clientes __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=10092544; - //BA.debugLineNum = 10092544;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=10092545; - //BA.debugLineNum = 10092545;BA.debugLine="Return Me"; -if (true) return this; -RDebugUtils.currentLine=10092546; - //BA.debugLineNum = 10092546;BA.debugLine="End Sub"; -return null; -} -public boolean _activity_keypress(reparto_izca.keymon.lat.c_clientes __ref,int _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "activity_keypress", false)) - {return ((Boolean) Debug.delegate(ba, "activity_keypress", new Object[] {_key}));} -RDebugUtils.currentLine=10485760; - //BA.debugLineNum = 10485760;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean 'ign"; -RDebugUtils.currentLine=10485762; - //BA.debugLineNum = 10485762;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then"; +public boolean _activity_keypress(int _key) throws Exception{ + //BA.debugLineNum = 219;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean 'ign"; + //BA.debugLineNum = 221;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then"; if (_key==__c.KeyCodes.KEYCODE_BACK) { -RDebugUtils.currentLine=10485763; - //BA.debugLineNum = 10485763;BA.debugLine="If entro = 3 And Not(conMapa) Then"; -if ((__ref._entro /*String*/ ).equals(BA.NumberToString(3)) && __c.Not(__ref._conmapa /*boolean*/ )) { -RDebugUtils.currentLine=10485764; - //BA.debugLineNum = 10485764;BA.debugLine="b_GetDirs.Visible = False"; -__ref._b_getdirs /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=10485766; - //BA.debugLineNum = 10485766;BA.debugLine="B4XPage_Created(Root)"; -__ref._b4xpage_created /*String*/ (null,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=10485767; - //BA.debugLineNum = 10485767;BA.debugLine="Return True"; + //BA.debugLineNum = 222;BA.debugLine="If entro = 3 And Not(conMapa) Then"; +if ((_entro).equals(BA.NumberToString(3)) && __c.Not(_conmapa)) { + //BA.debugLineNum = 223;BA.debugLine="b_GetDirs.Visible = False"; +_b_getdirs.setVisible(__c.False); + //BA.debugLineNum = 225;BA.debugLine="B4XPage_Created(Root)"; +_b4xpage_created(_root); + //BA.debugLineNum = 226;BA.debugLine="Return True"; if (true) return __c.True; }; -RDebugUtils.currentLine=10485769; - //BA.debugLineNum = 10485769;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 228;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; _b4xpages._showpage /*String*/ (ba,"Principal"); -RDebugUtils.currentLine=10485770; - //BA.debugLineNum = 10485770;BA.debugLine="Return False"; + //BA.debugLineNum = 229;BA.debugLine="Return False"; if (true) return __c.False; }; -RDebugUtils.currentLine=10485774; - //BA.debugLineNum = 10485774;BA.debugLine="End Sub"; + //BA.debugLineNum = 233;BA.debugLine="End Sub"; return false; } -public String _b4xpage_created(reparto_izca.keymon.lat.c_clientes __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=10158080; - //BA.debugLineNum = 10158080;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=10158081; - //BA.debugLineNum = 10158081;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=10158083; - //BA.debugLineNum = 10158083;BA.debugLine="Root.LoadLayout(\"clientes\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("clientes",ba); -RDebugUtils.currentLine=10158084; - //BA.debugLineNum = 10158084;BA.debugLine="entro =\"2\""; -__ref._entro /*String*/ = "2"; -RDebugUtils.currentLine=10158085; - //BA.debugLineNum = 10158085;BA.debugLine="lv1Top = ListView1.Top"; -__ref._lv1top /*String*/ = BA.NumberToString(__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTop()); -RDebugUtils.currentLine=10158086; - //BA.debugLineNum = 10158086;BA.debugLine="clientesMapaO.Initialize"; -__ref._clientesmapao /*reparto_izca.keymon.lat.b4xorderedmap*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=10158087; - //BA.debugLineNum = 10158087;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints\""; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints"); -RDebugUtils.currentLine=10158088; - //BA.debugLineNum = 10158088;BA.debugLine="Log(\"Coordenadas del almacen: \" & Starter.cedisLo"; -__c.LogImpl("210158088","Coordenadas del almacen: "+BA.NumberToString(_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude())+","+BA.NumberToString(_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()),0); -RDebugUtils.currentLine=10158089; - //BA.debugLineNum = 10158089;BA.debugLine="End Sub"; -return ""; -} -public void _b_getdirs_click(reparto_izca.keymon.lat.c_clientes __ref) throws Exception{ -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "b_getdirs_click", false)) - {Debug.delegate(ba, "b_getdirs_click", null); return;} -ResumableSub_b_GetDirs_Click rsub = new ResumableSub_b_GetDirs_Click(this,__ref); +public void _b_getdirs_click() throws Exception{ +ResumableSub_b_GetDirs_Click rsub = new ResumableSub_b_GetDirs_Click(this); rsub.resume(ba, null); } public static class ResumableSub_b_GetDirs_Click extends BA.ResumableSub { -public ResumableSub_b_GetDirs_Click(reparto_izca.keymon.lat.c_clientes parent,reparto_izca.keymon.lat.c_clientes __ref) { +public ResumableSub_b_GetDirs_Click(reparto_izca.keymon.lat.c_clientes parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_clientes __ref; reparto_izca.keymon.lat.c_clientes parent; anywheresoftware.b4a.objects.collections.Map _m2 = null; int _f = 0; @@ -186,7 +113,6 @@ int groupLen38; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_clientes"; while (true) { switch (state) { @@ -196,23 +122,19 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=10747905; - //BA.debugLineNum = 10747905;BA.debugLine="ProgressDialogShow(\"Calculando distancias y tiemp"; + //BA.debugLineNum = 467;BA.debugLine="ProgressDialogShow(\"Calculando distancias y tiemp"; parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Calculando distancias y tiempos ...")); -RDebugUtils.currentLine=10747906; - //BA.debugLineNum = 10747906;BA.debugLine="Private m2 As Map"; + //BA.debugLineNum = 468;BA.debugLine="Private m2 As Map"; _m2 = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=10747907; - //BA.debugLineNum = 10747907;BA.debugLine="Private f As Int = 0"; + //BA.debugLineNum = 469;BA.debugLine="Private f As Int = 0"; _f = (int) (0); -RDebugUtils.currentLine=10747908; - //BA.debugLineNum = 10747908;BA.debugLine="For Each k As Object In distOrderedMap.Keys 'Trae"; + //BA.debugLineNum = 470;BA.debugLine="For Each k As Object In distOrderedMap.Keys 'Trae"; if (true) break; case 1: //for this.state = 30; -group4 = __ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null); +group4 = parent._distorderedmap._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (); index4 = 0; groupLen4 = group4.getSize(); this.state = 31; @@ -235,20 +157,15 @@ if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=10747909; - //BA.debugLineNum = 10747909;BA.debugLine="m2 = distOrderedMap.Get(k)"; -_m2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,_k))); -RDebugUtils.currentLine=10747910; - //BA.debugLineNum = 10747910;BA.debugLine="Private distancia2 As String = m2.Get(\"distancia"; + //BA.debugLineNum = 471;BA.debugLine="m2 = distOrderedMap.Get(k)"; +_m2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._distorderedmap._get /*Object*/ (_k))); + //BA.debugLineNum = 472;BA.debugLine="Private distancia2 As String = m2.Get(\"distancia"; _distancia2 = BA.ObjectToString(_m2.Get((Object)("distancia"))); -RDebugUtils.currentLine=10747911; - //BA.debugLineNum = 10747911;BA.debugLine="Private thisLoc1 As String = m2.Get(\"ubicacion\")"; + //BA.debugLineNum = 473;BA.debugLine="Private thisLoc1 As String = m2.Get(\"ubicacion\")"; _thisloc1 = BA.ObjectToString(_m2.Get((Object)("ubicacion"))); -RDebugUtils.currentLine=10747912; - //BA.debugLineNum = 10747912;BA.debugLine="Private locActual As String = Tracker.UUGCoords."; + //BA.debugLineNum = 474;BA.debugLine="Private locActual As String = Tracker.UUGCoords."; _locactual = BA.NumberToString(parent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude())+","+BA.NumberToString(parent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()); -RDebugUtils.currentLine=10747913; - //BA.debugLineNum = 10747913;BA.debugLine="If locActual = \"0,0\" Then 'Si no tenemos ubicaci"; + //BA.debugLineNum = 475;BA.debugLine="If locActual = \"0,0\" Then 'Si no tenemos ubicaci"; if (true) break; case 4: @@ -261,49 +178,42 @@ this.state = 6; case 6: //C this.state = 7; -RDebugUtils.currentLine=10747914; - //BA.debugLineNum = 10747914;BA.debugLine="c = Starter.skmt.ExecQuery(\"select * from hist_"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from hist_gps"))); -RDebugUtils.currentLine=10747915; - //BA.debugLineNum = 10747915;BA.debugLine="If c.RowCount > 0 Then"; + //BA.debugLineNum = 476;BA.debugLine="c = Starter.skmt.ExecQuery(\"select * from hist_"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from hist_gps"))); + //BA.debugLineNum = 477;BA.debugLine="If c.RowCount > 0 Then"; if (true) break; case 7: //if this.state = 10; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._c.getRowCount()>0) { this.state = 9; }if (true) break; case 9: //C this.state = 10; -RDebugUtils.currentLine=10747916; - //BA.debugLineNum = 10747916;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=10747917; - //BA.debugLineNum = 10747917;BA.debugLine="locActual = c.GetString(\"hglon\") & \",\" & c.Get"; -_locactual = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("hglon")+","+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("hglat"); + //BA.debugLineNum = 478;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 479;BA.debugLine="locActual = c.GetString(\"hglon\") & \",\" & c.Get"; +_locactual = parent._c.GetString("hglon")+","+parent._c.GetString("hglat"); if (true) break; case 10: //C this.state = 11; ; -RDebugUtils.currentLine=10747919; - //BA.debugLineNum = 10747919;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 481;BA.debugLine="c.Close"; +parent._c.Close(); if (true) break; case 11: //C this.state = 12; ; -RDebugUtils.currentLine=10747921; - //BA.debugLineNum = 10747921;BA.debugLine="f = f+1"; + //BA.debugLineNum = 483;BA.debugLine="f = f+1"; _f = (int) (_f+1); -RDebugUtils.currentLine=10747922; - //BA.debugLineNum = 10747922;BA.debugLine="If f < 8 Then"; + //BA.debugLineNum = 484;BA.debugLine="If f < 8 Then"; if (true) break; case 12: @@ -316,8 +226,7 @@ this.state = 14; case 14: //C this.state = 15; -RDebugUtils.currentLine=10747923; - //BA.debugLineNum = 10747923;BA.debugLine="If locActual = \"0,0\" Then 'Si todavia no tenemo"; + //BA.debugLineNum = 485;BA.debugLine="If locActual = \"0,0\" Then 'Si todavia no tenemo"; if (true) break; case 15: @@ -330,11 +239,9 @@ this.state = 17; case 17: //C this.state = 18; -RDebugUtils.currentLine=10747924; - //BA.debugLineNum = 10747924;BA.debugLine="ToastMessageShow(\"No se pudo obtener la ubicac"; + //BA.debugLineNum = 486;BA.debugLine="ToastMessageShow(\"No se pudo obtener la ubicac"; parent.__c.ToastMessageShow(BA.ObjectToCharSequence("No se pudo obtener la ubicacion actual!!"),parent.__c.True); -RDebugUtils.currentLine=10747925; - //BA.debugLineNum = 10747925;BA.debugLine="f = 8"; + //BA.debugLineNum = 487;BA.debugLine="f = 8"; _f = (int) (8); if (true) break; @@ -342,40 +249,31 @@ case 18: //C this.state = 19; ; -RDebugUtils.currentLine=10747927; - //BA.debugLineNum = 10747927;BA.debugLine="Log($\"locActual: ${locActual}, thisLoc1: ${this"; -parent.__c.LogImpl("210747927",("locActual: "+parent.__c.SmartStringFormatter("",(Object)(_locactual))+", thisLoc1: "+parent.__c.SmartStringFormatter("",(Object)(_thisloc1))+""),0); -RDebugUtils.currentLine=10747928; - //BA.debugLineNum = 10747928;BA.debugLine="Wait For(distanciaEntreCoords(distancia2, locAc"; -parent.__c.WaitFor("complete", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_clientes", "b_getdirs_click"), __ref._distanciaentrecoords /*anywheresoftware.b4a.keywords.Common.ResumableSubWrapper*/ (null,_distancia2,_locactual,_thisloc1)); + //BA.debugLineNum = 489;BA.debugLine="Log($\"locActual: ${locActual}, thisLoc1: ${this"; +parent.__c.LogImpl("011010071",("locActual: "+parent.__c.SmartStringFormatter("",(Object)(_locactual))+", thisLoc1: "+parent.__c.SmartStringFormatter("",(Object)(_thisloc1))+""),0); + //BA.debugLineNum = 490;BA.debugLine="Wait For(distanciaEntreCoords(distancia2, locAc"; +parent.__c.WaitFor("complete", ba, this, parent._distanciaentrecoords(_distancia2,_locactual,_thisloc1)); this.state = 33; return; case 33: //C this.state = 19; -_r = (anywheresoftware.b4a.objects.collections.List) result[1]; +_r = (anywheresoftware.b4a.objects.collections.List) result[0]; ; -RDebugUtils.currentLine=10747929; - //BA.debugLineNum = 10747929;BA.debugLine="LogColor($\"R: ${r.Get(0)} - ${r.Get(1)} - ${r.G"; -parent.__c.LogImpl("210747929",("R: "+parent.__c.SmartStringFormatter("",_r.Get((int) (0)))+" - "+parent.__c.SmartStringFormatter("",_r.Get((int) (1)))+" - "+parent.__c.SmartStringFormatter("",_r.Get((int) (2)))+""),parent.__c.Colors.Green); -RDebugUtils.currentLine=10747930; - //BA.debugLineNum = 10747930;BA.debugLine="Private tId As Int = r.Get(0)"; + //BA.debugLineNum = 491;BA.debugLine="LogColor($\"R: ${r.Get(0)} - ${r.Get(1)} - ${r.G"; +parent.__c.LogImpl("011010073",("R: "+parent.__c.SmartStringFormatter("",_r.Get((int) (0)))+" - "+parent.__c.SmartStringFormatter("",_r.Get((int) (1)))+" - "+parent.__c.SmartStringFormatter("",_r.Get((int) (2)))+""),parent.__c.Colors.Green); + //BA.debugLineNum = 492;BA.debugLine="Private tId As Int = r.Get(0)"; _tid = (int)(BA.ObjectToNumber(_r.Get((int) (0)))); -RDebugUtils.currentLine=10747931; - //BA.debugLineNum = 10747931;BA.debugLine="Private tMap As Map = distOrderedMap.Get(tId)"; + //BA.debugLineNum = 493;BA.debugLine="Private tMap As Map = distOrderedMap.Get(tId)"; _tmap = new anywheresoftware.b4a.objects.collections.Map(); -_tmap = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,(Object)(_tid)))); -RDebugUtils.currentLine=10747932; - //BA.debugLineNum = 10747932;BA.debugLine="LogColor(\"|\" & tId & \"| - \" &distOrderedMap.Get"; -parent.__c.LogImpl("210747932","|"+BA.NumberToString(_tid)+"| - "+BA.ObjectToString(__ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,(Object)(_tid))),parent.__c.Colors.Blue); -RDebugUtils.currentLine=10747933; - //BA.debugLineNum = 10747933;BA.debugLine="Private tempNDD As String = tMap.Get(\"nomDirDis"; +_tmap = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._distorderedmap._get /*Object*/ ((Object)(_tid)))); + //BA.debugLineNum = 494;BA.debugLine="LogColor(\"|\" & tId & \"| - \" &distOrderedMap.Get"; +parent.__c.LogImpl("011010076","|"+BA.NumberToString(_tid)+"| - "+BA.ObjectToString(parent._distorderedmap._get /*Object*/ ((Object)(_tid))),parent.__c.Colors.Blue); + //BA.debugLineNum = 495;BA.debugLine="Private tempNDD As String = tMap.Get(\"nomDirDis"; _tempndd = BA.ObjectToString(_tmap.Get((Object)("nomDirDist"))); -RDebugUtils.currentLine=10747934; - //BA.debugLineNum = 10747934;BA.debugLine="Private indexD As Int = tempNDD.IndexOf(\"Distan"; + //BA.debugLineNum = 496;BA.debugLine="Private indexD As Int = tempNDD.IndexOf(\"Distan"; _indexd = _tempndd.indexOf("Distancia:"); -RDebugUtils.currentLine=10747935; - //BA.debugLineNum = 10747935;BA.debugLine="If indexD > -1 Then tempNDD = tempNDD.SubString"; + //BA.debugLineNum = 497;BA.debugLine="If indexD > -1 Then tempNDD = tempNDD.SubString"; if (true) break; case 19: @@ -395,33 +293,26 @@ case 24: //C this.state = 25; ; -RDebugUtils.currentLine=10747936; - //BA.debugLineNum = 10747936;BA.debugLine="Log(tempNDD)"; -parent.__c.LogImpl("210747936",_tempndd,0); -RDebugUtils.currentLine=10747937; - //BA.debugLineNum = 10747937;BA.debugLine="tempNDD = tempNDD & $\"Dist: $1.1{(r.Get(1)/1000"; + //BA.debugLineNum = 498;BA.debugLine="Log(tempNDD)"; +parent.__c.LogImpl("011010080",_tempndd,0); + //BA.debugLineNum = 499;BA.debugLine="tempNDD = tempNDD & $\"Dist: $1.1{(r.Get(1)/1000"; _tempndd = _tempndd+("Dist: "+parent.__c.SmartStringFormatter("1.1",(Object)(((double)(BA.ObjectToNumber(_r.Get((int) (1))))/(double)1000)))+" kms, Tiempo aprox: "+parent.__c.SmartStringFormatter("1.0",(Object)((((double)(BA.ObjectToNumber(_r.Get((int) (2))))*2)/(double)60)))+" min."); -RDebugUtils.currentLine=10747938; - //BA.debugLineNum = 10747938;BA.debugLine="Private esteCliente As Map = CreateMap(\"distanc"; + //BA.debugLineNum = 500;BA.debugLine="Private esteCliente As Map = CreateMap(\"distanc"; _estecliente = new anywheresoftware.b4a.objects.collections.Map(); _estecliente = parent.__c.createMap(new Object[] {(Object)("distancia"),(Object)(_distancia2),(Object)("ubicacion"),_tmap.Get((Object)("ubicacion")),(Object)("codigo"),_tmap.Get((Object)("codigo")),(Object)("nomDirDist"),(Object)(_tempndd)}); -RDebugUtils.currentLine=10747939; - //BA.debugLineNum = 10747939;BA.debugLine="distOrderedMap.Put(tId, esteCliente)"; -__ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._put /*String*/ (null,(Object)(_tid),(Object)(_estecliente.getObject())); -RDebugUtils.currentLine=10747940; - //BA.debugLineNum = 10747940;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=10747941; - //BA.debugLineNum = 10747941;BA.debugLine="Private m3 As Map"; + //BA.debugLineNum = 501;BA.debugLine="distOrderedMap.Put(tId, esteCliente)"; +parent._distorderedmap._put /*String*/ ((Object)(_tid),(Object)(_estecliente.getObject())); + //BA.debugLineNum = 502;BA.debugLine="ListView1.Clear"; +parent._listview1.Clear(); + //BA.debugLineNum = 503;BA.debugLine="Private m3 As Map"; _m3 = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=10747942; - //BA.debugLineNum = 10747942;BA.debugLine="For Each k As Object In distOrderedMap.Keys 'G"; + //BA.debugLineNum = 504;BA.debugLine="For Each k As Object In distOrderedMap.Keys 'G"; if (true) break; case 25: //for this.state = 28; -group38 = __ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null); +group38 = parent._distorderedmap._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (); index38 = 0; groupLen38 = group38.getSize(); this.state = 34; @@ -444,15 +335,12 @@ if (true) break; case 27: //C this.state = 35; -RDebugUtils.currentLine=10747943; - //BA.debugLineNum = 10747943;BA.debugLine="m3 = distOrderedMap.Get(k)"; -_m3 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,_k))); -RDebugUtils.currentLine=10747944; - //BA.debugLineNum = 10747944;BA.debugLine="m3.Get(\"codigo\")"; + //BA.debugLineNum = 505;BA.debugLine="m3 = distOrderedMap.Get(k)"; +_m3 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._distorderedmap._get /*Object*/ (_k))); + //BA.debugLineNum = 506;BA.debugLine="m3.Get(\"codigo\")"; _m3.Get((Object)("codigo")); -RDebugUtils.currentLine=10747945; - //BA.debugLineNum = 10747945;BA.debugLine="ListView1.AddTwoLines(m3.Get(\"codigo\"), m3.Get"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(_m3.Get((Object)("codigo"))),BA.ObjectToCharSequence(_m3.Get((Object)("nomDirDist")))); + //BA.debugLineNum = 507;BA.debugLine="ListView1.AddTwoLines(m3.Get(\"codigo\"), m3.Get"; +parent._listview1.AddTwoLines(BA.ObjectToCharSequence(_m3.Get((Object)("codigo"))),BA.ObjectToCharSequence(_m3.Get((Object)("nomDirDist")))); if (true) break; if (true) break; @@ -473,51 +361,172 @@ case 30: //C this.state = -1; ; -RDebugUtils.currentLine=10747949; - //BA.debugLineNum = 10747949;BA.debugLine="ProgressDialogHide"; + //BA.debugLineNum = 511;BA.debugLine="ProgressDialogHide"; parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=10747950; - //BA.debugLineNum = 10747950;BA.debugLine="End Sub"; + //BA.debugLineNum = 512;BA.debugLine="End Sub"; if (true) break; } } } } -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _distanciaentrecoords(reparto_izca.keymon.lat.c_clientes __ref,String _id,String _coords1,String _coords2) throws Exception{ -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "distanciaentrecoords", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "distanciaentrecoords", new Object[] {_id,_coords1,_coords2}));} -ResumableSub_distanciaEntreCoords rsub = new ResumableSub_distanciaEntreCoords(this,__ref,_id,_coords1,_coords2); +public void _complete(anywheresoftware.b4a.objects.collections.List _r) throws Exception{ +} +public String _b_getrutainfo_click() throws Exception{ + //BA.debugLineNum = 570;BA.debugLine="Private Sub b_getRutaInfo_Click"; + //BA.debugLineNum = 572;BA.debugLine="caculaRutaGPS(todosAVisitar)"; +_cacularutagps(_todosavisitar()); + //BA.debugLineNum = 573;BA.debugLine="End Sub"; +return ""; +} +public String _b_getrutainfo_longclick() throws Exception{ + //BA.debugLineNum = 576;BA.debugLine="Private Sub b_getRutaInfo_LongClick"; + //BA.debugLineNum = 577;BA.debugLine="If b_limpiarRuta.Visible Then"; +if (_b_limpiarruta.getVisible()) { + //BA.debugLineNum = 578;BA.debugLine="b_limpiarRuta.Visible = False"; +_b_limpiarruta.setVisible(__c.False); + }else { + //BA.debugLineNum = 580;BA.debugLine="b_limpiarRuta.Visible = True"; +_b_limpiarruta.setVisible(__c.True); + }; + //BA.debugLineNum = 582;BA.debugLine="End Sub"; +return ""; +} +public String _b_limpiarruta_click() throws Exception{ + //BA.debugLineNum = 585;BA.debugLine="Private Sub b_limpiarRuta_Click"; + //BA.debugLineNum = 586;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints\""; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints"); + //BA.debugLineNum = 587;BA.debugLine="b_limpiarRuta.Visible = False"; +_b_limpiarruta.setVisible(__c.False); + //BA.debugLineNum = 588;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 589;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_appear() throws Exception{ +anywheresoftware.b4a.objects.CSBuilder _cs = null; +anywheresoftware.b4a.objects.CSBuilder _cs2 = null; +int _i = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _x = null; +String[] _y = null; + //BA.debugLineNum = 49;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 50;BA.debugLine="busca.Text = \"\""; +_busca.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 51;BA.debugLine="b_GetDirs.Visible = False"; +_b_getdirs.setVisible(__c.False); + //BA.debugLineNum = 53;BA.debugLine="entro =\"2\""; +_entro = "2"; + //BA.debugLineNum = 57;BA.debugLine="p_colonia.Width = Root.Width"; +_p_colonia.setWidth(_root.getWidth()); + //BA.debugLineNum = 58;BA.debugLine="p_colonia.Height = Root.Height"; +_p_colonia.setHeight(_root.getHeight()); + //BA.debugLineNum = 59;BA.debugLine="p_colonia.Top = 0"; +_p_colonia.setTop((int) (0)); + //BA.debugLineNum = 60;BA.debugLine="p_colonia.Left = 0"; +_p_colonia.setLeft((int) (0)); + //BA.debugLineNum = 61;BA.debugLine="Subs.centraListView(ListView1, p_colonia.Width)"; +_subs._centralistview /*String*/ (ba,_listview1,_p_colonia.getWidth()); + //BA.debugLineNum = 62;BA.debugLine="ListView1.Height = p_colonia.Height * 0.75"; +_listview1.setHeight((int) (_p_colonia.getHeight()*0.75)); + //BA.debugLineNum = 63;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2)); + //BA.debugLineNum = 64;BA.debugLine="If Not(l_rutaInfo.Visible) Then"; +if (__c.Not(_l_rutainfo.getVisible())) { + //BA.debugLineNum = 65;BA.debugLine="ListView1.Top = lv1Top"; +_listview1.setTop((int)(Double.parseDouble(_lv1top))); + }else { + //BA.debugLineNum = 67;BA.debugLine="ListView1.Top = lv1Top + 100"; +_listview1.setTop((int) ((double)(Double.parseDouble(_lv1top))+100)); + }; + //BA.debugLineNum = 69;BA.debugLine="c=Starter.skmt.ExecQuery(\"select codigo, indice,"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice"))); + //BA.debugLineNum = 70;BA.debugLine="If c.RowCount > 0 Then 'Ya hay waypoints en la ba"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 71;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 73;BA.debugLine="conMapa = True"; +_conmapa = __c.True; + //BA.debugLineNum = 75;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 76;BA.debugLine="Dim cs, cs2 As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); +_cs2 = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 77;BA.debugLine="entro = 3"; +_entro = BA.NumberToString(3); + //BA.debugLineNum = 79;BA.debugLine="For i=0 To c.RowCount -1 'Generamos el listView"; +{ +final int step23 = 1; +final int limit23 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit23 ;_i = _i + step23 ) { + //BA.debugLineNum = 80;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 81;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 82;BA.debugLine="cs2.Initialize"; +_cs2.Initialize(); + //BA.debugLineNum = 86;BA.debugLine="ListView1.AddTwoLines(cs.Color(Colors.RGB(100,1"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(_c.GetString("codigo"))).PopAll().getObject()),BA.ObjectToCharSequence(_cs2.Append(BA.ObjectToCharSequence(_c.GetString("CAT_CL_NOMBRE"))).Color(__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(" Calle: ")).Pop().Append(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CALLE").trim()+" "+_c.GetString("CAT_CL_NOEXT"))).PopAll().getObject())); + } +}; + }else { + //BA.debugLineNum = 89;BA.debugLine="generaListViewRutas"; +_generalistviewrutas(); + }; + //BA.debugLineNum = 91;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 92;BA.debugLine="p_colonia.Width = Root.Width"; +_p_colonia.setWidth(_root.getWidth()); + //BA.debugLineNum = 93;BA.debugLine="p_colonia.Height = Root.Height"; +_p_colonia.setHeight(_root.getHeight()); + //BA.debugLineNum = 94;BA.debugLine="Subs.centraEtiqueta(l_rutaInfo, Root.Width)"; +_subs._centraetiqueta /*String*/ (ba,_l_rutainfo,_root.getWidth()); + //BA.debugLineNum = 95;BA.debugLine="Subs.centraListView(ListView1, p_colonia.Width)"; +_subs._centralistview /*String*/ (ba,_listview1,_p_colonia.getWidth()); + //BA.debugLineNum = 96;BA.debugLine="ListView1.Height = p_colonia.Height * 0.70"; +_listview1.setHeight((int) (_p_colonia.getHeight()*0.70)); + //BA.debugLineNum = 97;BA.debugLine="Subs.centraEtiqueta(lfila, Root.Width)"; +_subs._centraetiqueta /*String*/ (ba,_lfila,_root.getWidth()); + //BA.debugLineNum = 98;BA.debugLine="b_getRutaInfo.Visible = True"; +_b_getrutainfo.setVisible(__c.True); + //BA.debugLineNum = 99;BA.debugLine="b_getRutaInfo.BringToFront"; +_b_getrutainfo.BringToFront(); + //BA.debugLineNum = 100;BA.debugLine="If Starter.cedisLocation.Latitude = \"0\" Then"; +if (_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()==(double)(Double.parseDouble("0"))) { + //BA.debugLineNum = 101;BA.debugLine="Private x As Cursor = Starter.skmt.ExecQuery(\"se"; +_x = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_x = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'COORDS_ALMACEN'"))); + //BA.debugLineNum = 102;BA.debugLine="If x.RowCount > 0 Then"; +if (_x.getRowCount()>0) { + //BA.debugLineNum = 103;BA.debugLine="x.Position = 0"; +_x.setPosition((int) (0)); + //BA.debugLineNum = 104;BA.debugLine="Private y() As String"; +_y = new String[(int) (0)]; +java.util.Arrays.fill(_y,""); + //BA.debugLineNum = 105;BA.debugLine="Starter.cedisLocation.Latitude = Regex.Split(\","; +_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude((double)(Double.parseDouble(__c.Regex.Split(",",_x.GetString("CAT_VA_VALOR"))[(int) (1)]))); + //BA.debugLineNum = 106;BA.debugLine="Starter.cedisLocation.Longitude = Regex.Split(\""; +_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude((double)(Double.parseDouble(__c.Regex.Split(",",_x.GetString("CAT_VA_VALOR"))[(int) (0)]))); + }; + }; + //BA.debugLineNum = 109;BA.debugLine="Log(Starter.cedisLocation)"; +__c.LogImpl("010485820",BA.ObjectToString(_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ ),0); + //BA.debugLineNum = 110;BA.debugLine="End Sub"; +return ""; +} +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{ +ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } -public static class ResumableSub_distanciaEntreCoords extends BA.ResumableSub { -public ResumableSub_distanciaEntreCoords(reparto_izca.keymon.lat.c_clientes parent,reparto_izca.keymon.lat.c_clientes __ref,String _id,String _coords1,String _coords2) { +public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { +public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_clientes parent) { this.parent = parent; -this.__ref = __ref; -this._id = _id; -this._coords1 = _coords1; -this._coords2 = _coords2; -this.__ref = parent; } -reparto_izca.keymon.lat.c_clientes __ref; reparto_izca.keymon.lat.c_clientes parent; -String _id; -String _coords1; -String _coords2; -String _distanciatotal = ""; -String _tiempo = ""; -reparto_izca.keymon.lat.httpjob _j = null; -anywheresoftware.b4a.objects.collections.JSONParser _jp = null; -anywheresoftware.b4a.objects.collections.Map _m = null; -anywheresoftware.b4a.objects.collections.List _rutas = null; -anywheresoftware.b4a.objects.collections.Map _rutas2 = null; -anywheresoftware.b4a.objects.collections.List _r = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_clientes"; while (true) { switch (state) { @@ -527,179 +536,133 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = 1; -RDebugUtils.currentLine=10616833; - //BA.debugLineNum = 10616833;BA.debugLine="Sleep(1050)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_clientes", "distanciaentrecoords"),(int) (1050)); -this.state = 11; -return; -case 11: -//C -this.state = 1; -; -RDebugUtils.currentLine=10616834; - //BA.debugLineNum = 10616834;BA.debugLine="Private distanciaTotal As String = \"0\""; -_distanciatotal = "0"; -RDebugUtils.currentLine=10616835; - //BA.debugLineNum = 10616835;BA.debugLine="Private tiempo As String = \"0\""; -_tiempo = "0"; -RDebugUtils.currentLine=10616836; - //BA.debugLineNum = 10616836;BA.debugLine="Dim j As HttpJob"; -_j = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=10616837; - //BA.debugLineNum = 10616837;BA.debugLine="j.Initialize(\"\", Me)"; -_j._initialize /*String*/ (null,ba,"",parent); -RDebugUtils.currentLine=10616838; - //BA.debugLineNum = 10616838;BA.debugLine="j.Download(\"https://router.project-osrm.org/route"; -_j._download /*String*/ (null,"https://router.project-osrm.org/route/v1/driving/"+_coords1+";"+_coords2+"?overview=false"); -RDebugUtils.currentLine=10616839; - //BA.debugLineNum = 10616839;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; -parent.__c.WaitFor("jobdone", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_clientes", "distanciaentrecoords"), (Object)(_j)); -this.state = 12; -return; -case 12: -//C -this.state = 1; -_j = (reparto_izca.keymon.lat.httpjob) result[1]; -; -RDebugUtils.currentLine=10616840; - //BA.debugLineNum = 10616840;BA.debugLine="If j.Success Then"; + //BA.debugLineNum = 116;BA.debugLine="Log(entro)"; +parent.__c.LogImpl("010551299",parent._entro,0); + //BA.debugLineNum = 117;BA.debugLine="If rutaGenerada Or entro = 3 Then ' Si ya generam"; if (true) break; case 1: //if -this.state = 10; -if (_j._success /*boolean*/ ) { +this.state = 6; +if (parent._rutagenerada || (parent._entro).equals(BA.NumberToString(3))) { this.state = 3; -}else { -this.state = 9; +}else if((parent._entro).equals(BA.NumberToString(2))) { +this.state = 5; }if (true) break; case 3: //C -this.state = 4; -RDebugUtils.currentLine=10616841; - //BA.debugLineNum = 10616841;BA.debugLine="Dim jp As JSONParser"; -_jp = new anywheresoftware.b4a.objects.collections.JSONParser(); -RDebugUtils.currentLine=10616842; - //BA.debugLineNum = 10616842;BA.debugLine="jp.Initialize(j.GetString)"; -_jp.Initialize(_j._getstring /*String*/ (null)); -RDebugUtils.currentLine=10616843; - //BA.debugLineNum = 10616843;BA.debugLine="Dim m As Map = jp.NextObject"; -_m = new anywheresoftware.b4a.objects.collections.Map(); -_m = _jp.NextObject(); -RDebugUtils.currentLine=10616844; - //BA.debugLineNum = 10616844;BA.debugLine="Log($\"Respuesta: ${m.Get(\"code\")}\"$)"; -parent.__c.LogImpl("210616844",("Respuesta: "+parent.__c.SmartStringFormatter("",_m.Get((Object)("code")))+""),0); -RDebugUtils.currentLine=10616845; - //BA.debugLineNum = 10616845;BA.debugLine="If m.Get(\"code\") = \"Ok\" Then"; -if (true) break; - -case 4: -//if -this.state = 7; -if ((_m.Get((Object)("code"))).equals((Object)("Ok"))) { this.state = 6; -}if (true) break; + //BA.debugLineNum = 118;BA.debugLine="b_limpiarRuta_Click"; +parent._b_limpiarruta_click(); + //BA.debugLineNum = 119;BA.debugLine="l_rutaInfo.Text = \"\""; +parent._l_rutainfo.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 120;BA.debugLine="rutaGenerada = False"; +parent._rutagenerada = parent.__c.False; + if (true) break; + +case 5: +//C +this.state = 6; + //BA.debugLineNum = 122;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +parent._b4xpages._showpage /*String*/ (ba,"Principal"); + if (true) break; case 6: //C -this.state = 7; -RDebugUtils.currentLine=10616847; - //BA.debugLineNum = 10616847;BA.debugLine="Dim rutas As List = m.Get(\"routes\")"; -_rutas = new anywheresoftware.b4a.objects.collections.List(); -_rutas = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m.Get((Object)("routes")))); -RDebugUtils.currentLine=10616848; - //BA.debugLineNum = 10616848;BA.debugLine="Dim rutas2 As Map = rutas.Get(0)"; -_rutas2 = new anywheresoftware.b4a.objects.collections.Map(); -_rutas2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_rutas.Get((int) (0)))); -RDebugUtils.currentLine=10616852; - //BA.debugLineNum = 10616852;BA.debugLine="distanciaTotal = rutas2.Get(\"distance\")"; -_distanciatotal = BA.ObjectToString(_rutas2.Get((Object)("distance"))); -RDebugUtils.currentLine=10616853; - //BA.debugLineNum = 10616853;BA.debugLine="tiempo = rutas2.Get(\"duration\")"; -_tiempo = BA.ObjectToString(_rutas2.Get((Object)("duration"))); -RDebugUtils.currentLine=10616854; - //BA.debugLineNum = 10616854;BA.debugLine="Log($\"Distancia total: ${distanciaTotal}, Tiemp"; -parent.__c.LogImpl("210616854",("Distancia total: "+parent.__c.SmartStringFormatter("",(Object)(_distanciatotal))+", Tiempo: "+parent.__c.SmartStringFormatter("",(Object)(_tiempo))+""),0); - if (true) break; - -case 7: -//C -this.state = 10; -; - if (true) break; - -case 9: -//C -this.state = 10; -RDebugUtils.currentLine=10616857; - //BA.debugLineNum = 10616857;BA.debugLine="Log(\"Error!\")"; -parent.__c.LogImpl("210616857","Error!",0); - if (true) break; - -case 10: -//C this.state = -1; ; -RDebugUtils.currentLine=10616859; - //BA.debugLineNum = 10616859;BA.debugLine="j.Release"; -_j._release /*String*/ (null); -RDebugUtils.currentLine=10616860; - //BA.debugLineNum = 10616860;BA.debugLine="Private r As List"; -_r = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=10616861; - //BA.debugLineNum = 10616861;BA.debugLine="r.Initialize"; -_r.Initialize(); -RDebugUtils.currentLine=10616862; - //BA.debugLineNum = 10616862;BA.debugLine="r.Add(id)"; -_r.Add((Object)(_id)); -RDebugUtils.currentLine=10616863; - //BA.debugLineNum = 10616863;BA.debugLine="r.Add(distanciaTotal)"; -_r.Add((Object)(_distanciatotal)); -RDebugUtils.currentLine=10616864; - //BA.debugLineNum = 10616864;BA.debugLine="r.Add(tiempo)"; -_r.Add((Object)(_tiempo)); -RDebugUtils.currentLine=10616865; - //BA.debugLineNum = 10616865;BA.debugLine="Return r"; + //BA.debugLineNum = 124;BA.debugLine="Return False"; if (true) { -parent.__c.ReturnFromResumableSub(this,(Object)(_r));return;}; -RDebugUtils.currentLine=10616866; - //BA.debugLineNum = 10616866;BA.debugLine="End Sub"; +parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; + //BA.debugLineNum = 125;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b_getrutainfo_click(reparto_izca.keymon.lat.c_clientes __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "b_getrutainfo_click", false)) - {return ((String) Debug.delegate(ba, "b_getrutainfo_click", null));} -RDebugUtils.currentLine=10878976; - //BA.debugLineNum = 10878976;BA.debugLine="Private Sub b_getRutaInfo_Click"; -RDebugUtils.currentLine=10878978; - //BA.debugLineNum = 10878978;BA.debugLine="caculaRutaGPS(todosAVisitar)"; -__ref._cacularutagps /*void*/ (null,__ref._todosavisitar /*anywheresoftware.b4a.objects.collections.List*/ (null)); -RDebugUtils.currentLine=10878979; - //BA.debugLineNum = 10878979;BA.debugLine="End Sub"; +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 36;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 37;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 39;BA.debugLine="Root.LoadLayout(\"clientes\")"; +_root.LoadLayout("clientes",ba); + //BA.debugLineNum = 40;BA.debugLine="entro =\"2\""; +_entro = "2"; + //BA.debugLineNum = 41;BA.debugLine="lv1Top = ListView1.Top"; +_lv1top = BA.NumberToString(_listview1.getTop()); + //BA.debugLineNum = 42;BA.debugLine="clientesMapaO.Initialize"; +_clientesmapao._initialize /*String*/ (ba); + //BA.debugLineNum = 43;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints\""; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints"); + //BA.debugLineNum = 44;BA.debugLine="Log(\"Coordenadas del almacen: \" & Starter.cedisLo"; +__c.LogImpl("010420232","Coordenadas del almacen: "+BA.NumberToString(_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude())+","+BA.NumberToString(_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()),0); + //BA.debugLineNum = 45;BA.debugLine="End Sub"; return ""; } -public void _cacularutagps(reparto_izca.keymon.lat.c_clientes __ref,anywheresoftware.b4a.objects.collections.List _coords) throws Exception{ -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "cacularutagps", false)) - {Debug.delegate(ba, "cacularutagps", new Object[] {_coords}); return;} -ResumableSub_caculaRutaGPS rsub = new ResumableSub_caculaRutaGPS(this,__ref,_coords); +public String _busca_textchanged(String _old,String _new) throws Exception{ +int _i = 0; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +anywheresoftware.b4a.objects.LabelWrapper _label2 = null; + //BA.debugLineNum = 235;BA.debugLine="Sub BUSCA_TextChanged (Old As String, New As Strin"; + //BA.debugLineNum = 236;BA.debugLine="q_buscar = \"%\" & busca.Text & \"%\""; +_q_buscar = "%"+_busca.getText()+"%"; + //BA.debugLineNum = 237;BA.debugLine="c2=Starter.skmt.ExecQuery2(\"select CAT_CL_NOMBRE"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info where CAT_CL_NOMBRE like ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_CODIGO ",new String[]{_q_buscar}))); + //BA.debugLineNum = 238;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 239;BA.debugLine="lfila.text = \"Nombre y Calle\""; +_lfila.setText(BA.ObjectToCharSequence("Nombre y Calle")); + //BA.debugLineNum = 240;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2)); + //BA.debugLineNum = 241;BA.debugLine="If c2.RowCount>0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 242;BA.debugLine="For i=0 To c2.RowCount -1"; +{ +final int step7 = 1; +final int limit7 = (int) (_c2.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit7 ;_i = _i + step7 ) { + //BA.debugLineNum = 243;BA.debugLine="c2.Position=i"; +_c2.setPosition(_i); + //BA.debugLineNum = 244;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 245;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 246;BA.debugLine="label1.TextSize = 15"; +_label1.setTextSize((float) (15)); + //BA.debugLineNum = 247;BA.debugLine="label1.TextColor = Colors.Black"; +_label1.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 248;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 249;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 250;BA.debugLine="label2.TextSize = 15"; +_label2.setTextSize((float) (15)); + //BA.debugLineNum = 251;BA.debugLine="label2.TextColor = Colors.Black"; +_label2.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 252;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_CODI"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c2.GetString("CAT_CL_CODIGO")),BA.ObjectToCharSequence(_c2.GetString("CAT_CL_NOMBRE")+" CALLE: "+_c2.GetString("CAT_CL_CALLE"))); + } +}; + }; + //BA.debugLineNum = 255;BA.debugLine="entro = \"3\""; +_entro = "3"; + //BA.debugLineNum = 256;BA.debugLine="c2.Close"; +_c2.Close(); + //BA.debugLineNum = 257;BA.debugLine="End Sub"; +return ""; +} +public void _cacularutagps(anywheresoftware.b4a.objects.collections.List _coords) throws Exception{ +ResumableSub_caculaRutaGPS rsub = new ResumableSub_caculaRutaGPS(this,_coords); rsub.resume(ba, null); } public static class ResumableSub_caculaRutaGPS extends BA.ResumableSub { -public ResumableSub_caculaRutaGPS(reparto_izca.keymon.lat.c_clientes parent,reparto_izca.keymon.lat.c_clientes __ref,anywheresoftware.b4a.objects.collections.List _coords) { +public ResumableSub_caculaRutaGPS(reparto_izca.keymon.lat.c_clientes parent,anywheresoftware.b4a.objects.collections.List _coords) { this.parent = parent; -this.__ref = __ref; this._coords = _coords; -this.__ref = parent; } -reparto_izca.keymon.lat.c_clientes __ref; reparto_izca.keymon.lat.c_clientes parent; anywheresoftware.b4a.objects.collections.List _coords; anywheresoftware.b4a.objects.collections.List _tmplist = null; @@ -726,7 +689,6 @@ int limit49; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_clientes"; while (true) { switch (state) { @@ -736,30 +698,22 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=11075585; - //BA.debugLineNum = 11075585;BA.debugLine="Private tmpList As List"; + //BA.debugLineNum = 592;BA.debugLine="Private tmpList As List"; _tmplist = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=11075586; - //BA.debugLineNum = 11075586;BA.debugLine="Dim cs, cs2 As CSBuilder"; + //BA.debugLineNum = 593;BA.debugLine="Dim cs, cs2 As CSBuilder"; _cs = new anywheresoftware.b4a.objects.CSBuilder(); _cs2 = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=11075587; - //BA.debugLineNum = 11075587;BA.debugLine="tmpList.Initialize"; + //BA.debugLineNum = 594;BA.debugLine="tmpList.Initialize"; _tmplist.Initialize(); -RDebugUtils.currentLine=11075588; - //BA.debugLineNum = 11075588;BA.debugLine="tmpList.AddAll(Array As String(\"ACTUAL\", Tracker."; + //BA.debugLineNum = 595;BA.debugLine="tmpList.AddAll(Array As String(\"ACTUAL\", Tracker."; _tmplist.AddAll(anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"ACTUAL",BA.NumberToString(parent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()),BA.NumberToString(parent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude())})); -RDebugUtils.currentLine=11075589; - //BA.debugLineNum = 11075589;BA.debugLine="coords.InsertAt(0,tmpList)"; + //BA.debugLineNum = 596;BA.debugLine="coords.InsertAt(0,tmpList)"; _coords.InsertAt((int) (0),(Object)(_tmplist.getObject())); -RDebugUtils.currentLine=11075590; - //BA.debugLineNum = 11075590;BA.debugLine="Log(\"=================================\")"; -parent.__c.LogImpl("211075590","=================================",0); -RDebugUtils.currentLine=11075592; - //BA.debugLineNum = 11075592;BA.debugLine="Private coordsStr As String = \"\""; + //BA.debugLineNum = 597;BA.debugLine="Log(\"=================================\")"; +parent.__c.LogImpl("011337734","=================================",0); + //BA.debugLineNum = 599;BA.debugLine="Private coordsStr As String = \"\""; _coordsstr = ""; -RDebugUtils.currentLine=11075593; - //BA.debugLineNum = 11075593;BA.debugLine="For Each tienda As List In coords"; + //BA.debugLineNum = 600;BA.debugLine="For Each tienda As List In coords"; if (true) break; case 1: @@ -789,8 +743,7 @@ if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=11075595; - //BA.debugLineNum = 11075595;BA.debugLine="If coordsStr = \"\" Then"; + //BA.debugLineNum = 602;BA.debugLine="If coordsStr = \"\" Then"; if (true) break; case 4: @@ -805,16 +758,14 @@ this.state = 8; case 6: //C this.state = 9; -RDebugUtils.currentLine=11075596; - //BA.debugLineNum = 11075596;BA.debugLine="coordsStr = $\"${tienda.get(0)},${tienda.get(1)}"; + //BA.debugLineNum = 603;BA.debugLine="coordsStr = $\"${tienda.get(0)},${tienda.get(1)}"; _coordsstr = (""+parent.__c.SmartStringFormatter("",_tienda.Get((int) (0)))+","+parent.__c.SmartStringFormatter("",_tienda.Get((int) (1)))+","+parent.__c.SmartStringFormatter("",_tienda.Get((int) (2)))+""); if (true) break; case 8: //C this.state = 9; -RDebugUtils.currentLine=11075598; - //BA.debugLineNum = 11075598;BA.debugLine="coordsStr = $\"${coordsStr};${tienda.get(0)},${t"; + //BA.debugLineNum = 605;BA.debugLine="coordsStr = $\"${coordsStr};${tienda.get(0)},${t"; _coordsstr = (""+parent.__c.SmartStringFormatter("",(Object)(_coordsstr))+";"+parent.__c.SmartStringFormatter("",_tienda.Get((int) (0)))+","+parent.__c.SmartStringFormatter("",_tienda.Get((int) (1)))+","+parent.__c.SmartStringFormatter("",_tienda.Get((int) (2)))+""); if (true) break; @@ -829,36 +780,28 @@ case 10: //C this.state = 11; ; -RDebugUtils.currentLine=11075601; - //BA.debugLineNum = 11075601;BA.debugLine="Log(coordsStr)"; -parent.__c.LogImpl("211075601",_coordsstr,0); -RDebugUtils.currentLine=11075602; - //BA.debugLineNum = 11075602;BA.debugLine="ProgressDialogShow2(\"Calculando distancia y tiemp"; + //BA.debugLineNum = 608;BA.debugLine="Log(coordsStr)"; +parent.__c.LogImpl("011337745",_coordsstr,0); + //BA.debugLineNum = 609;BA.debugLine="ProgressDialogShow2(\"Calculando distancia y tiemp"; parent.__c.ProgressDialogShow2(ba,BA.ObjectToCharSequence("Calculando distancia y tiempo, un momento por favor."),parent.__c.False); -RDebugUtils.currentLine=11075603; - //BA.debugLineNum = 11075603;BA.debugLine="Dim j As HttpJob"; + //BA.debugLineNum = 610;BA.debugLine="Dim j As HttpJob"; _j = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=11075604; - //BA.debugLineNum = 11075604;BA.debugLine="j.Initialize(\"trip\", Me) 'Calculamos el resto de"; -_j._initialize /*String*/ (null,ba,"trip",parent); -RDebugUtils.currentLine=11075605; - //BA.debugLineNum = 11075605;BA.debugLine="j.Download($\"http://keymon.net:9002/ruteador?m=OS"; -_j._download /*String*/ (null,("http://keymon.net:9002/ruteador?m=OSRM&r="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traerutareparto /*String*/ (ba)))+"&a="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"&f=CEDIS,"+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+"&c="+parent.__c.SmartStringFormatter("",(Object)(_coordsstr))+"")); -RDebugUtils.currentLine=11075606; - //BA.debugLineNum = 11075606;BA.debugLine="Log($\"http://keymon.net:9002/ruteador?m=OSRM&r=${"; -parent.__c.LogImpl("211075606",("http://keymon.net:9002/ruteador?m=OSRM&r="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traerutareparto /*String*/ (ba)))+"&a="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"&f=CEDIS,"+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+"&c="+parent.__c.SmartStringFormatter("",(Object)(_coordsstr))+""),0); -RDebugUtils.currentLine=11075607; - //BA.debugLineNum = 11075607;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; -parent.__c.WaitFor("jobdone", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_clientes", "cacularutagps"), (Object)(_j)); + //BA.debugLineNum = 611;BA.debugLine="j.Initialize(\"trip\", Me) 'Calculamos el resto de"; +_j._initialize /*String*/ (ba,"trip",parent); + //BA.debugLineNum = 612;BA.debugLine="j.Download($\"http://keymon.net:9002/ruteador?m=OS"; +_j._download /*String*/ (("http://keymon.net:9002/ruteador?m=OSRM&r="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traerutareparto /*String*/ (ba)))+"&a="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"&f=CEDIS,"+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+"&c="+parent.__c.SmartStringFormatter("",(Object)(_coordsstr))+"")); + //BA.debugLineNum = 613;BA.debugLine="Log($\"http://keymon.net:9002/ruteador?m=OSRM&r=${"; +parent.__c.LogImpl("011337750",("http://keymon.net:9002/ruteador?m=OSRM&r="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traerutareparto /*String*/ (ba)))+"&a="+parent.__c.SmartStringFormatter("",(Object)(parent._subs._traealmacen /*String*/ (ba)))+"&f=CEDIS,"+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+"&c="+parent.__c.SmartStringFormatter("",(Object)(_coordsstr))+""),0); + //BA.debugLineNum = 614;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; +parent.__c.WaitFor("jobdone", ba, this, (Object)(_j)); this.state = 35; return; case 35: //C this.state = 11; -_j = (reparto_izca.keymon.lat.httpjob) result[1]; +_j = (reparto_izca.keymon.lat.httpjob) result[0]; ; -RDebugUtils.currentLine=11075608; - //BA.debugLineNum = 11075608;BA.debugLine="If j.Success Then"; + //BA.debugLineNum = 615;BA.debugLine="If j.Success Then"; if (true) break; case 11: @@ -873,21 +816,16 @@ this.state = 31; case 13: //C this.state = 14; -RDebugUtils.currentLine=11075609; - //BA.debugLineNum = 11075609;BA.debugLine="Dim jp As JSONParser"; + //BA.debugLineNum = 616;BA.debugLine="Dim jp As JSONParser"; _jp = new anywheresoftware.b4a.objects.collections.JSONParser(); -RDebugUtils.currentLine=11075610; - //BA.debugLineNum = 11075610;BA.debugLine="jp.Initialize(j.GetString)"; -_jp.Initialize(_j._getstring /*String*/ (null)); -RDebugUtils.currentLine=11075611; - //BA.debugLineNum = 11075611;BA.debugLine="Dim m As Map = jp.NextObject"; + //BA.debugLineNum = 617;BA.debugLine="jp.Initialize(j.GetString)"; +_jp.Initialize(_j._getstring /*String*/ ()); + //BA.debugLineNum = 618;BA.debugLine="Dim m As Map = jp.NextObject"; _m = new anywheresoftware.b4a.objects.collections.Map(); _m = _jp.NextObject(); -RDebugUtils.currentLine=11075612; - //BA.debugLineNum = 11075612;BA.debugLine="Log(m)"; -parent.__c.LogImpl("211075612",BA.ObjectToString(_m),0); -RDebugUtils.currentLine=11075613; - //BA.debugLineNum = 11075613;BA.debugLine="If m.Get(\"code\") = \"OK\" Then"; + //BA.debugLineNum = 619;BA.debugLine="Log(m)"; +parent.__c.LogImpl("011337756",BA.ObjectToString(_m),0); + //BA.debugLineNum = 620;BA.debugLine="If m.Get(\"code\") = \"OK\" Then"; if (true) break; case 14: @@ -900,36 +838,26 @@ this.state = 16; case 16: //C this.state = 17; -RDebugUtils.currentLine=11075614; - //BA.debugLineNum = 11075614;BA.debugLine="Log(\"===== OK\")"; -parent.__c.LogImpl("211075614","===== OK",0); -RDebugUtils.currentLine=11075615; - //BA.debugLineNum = 11075615;BA.debugLine="rutaGenerada = True"; -__ref._rutagenerada /*boolean*/ = parent.__c.True; -RDebugUtils.currentLine=11075616; - //BA.debugLineNum = 11075616;BA.debugLine="Dim puntos As Int = m.Get(\"puntos\")"; + //BA.debugLineNum = 621;BA.debugLine="Log(\"===== OK\")"; +parent.__c.LogImpl("011337758","===== OK",0); + //BA.debugLineNum = 622;BA.debugLine="rutaGenerada = True"; +parent._rutagenerada = parent.__c.True; + //BA.debugLineNum = 623;BA.debugLine="Dim puntos As Int = m.Get(\"puntos\")"; _puntos = (int)(BA.ObjectToNumber(_m.Get((Object)("puntos")))); -RDebugUtils.currentLine=11075617; - //BA.debugLineNum = 11075617;BA.debugLine="Private coords As List = m.Get(\"coords\")"; + //BA.debugLineNum = 624;BA.debugLine="Private coords As List = m.Get(\"coords\")"; _coords = new anywheresoftware.b4a.objects.collections.List(); _coords = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m.Get((Object)("coords")))); -RDebugUtils.currentLine=11075618; - //BA.debugLineNum = 11075618;BA.debugLine="Private duration As String = m.Get(\"duration\")"; + //BA.debugLineNum = 625;BA.debugLine="Private duration As String = m.Get(\"duration\")"; _duration = BA.ObjectToString(_m.Get((Object)("duration"))); -RDebugUtils.currentLine=11075619; - //BA.debugLineNum = 11075619;BA.debugLine="Private distance As String = m.Get(\"distance\")"; + //BA.debugLineNum = 626;BA.debugLine="Private distance As String = m.Get(\"distance\")"; _distance = BA.ObjectToString(_m.Get((Object)("distance"))); -RDebugUtils.currentLine=11075620; - //BA.debugLineNum = 11075620;BA.debugLine="Private mensaje As String = m.Get(\"mensaje\")"; + //BA.debugLineNum = 627;BA.debugLine="Private mensaje As String = m.Get(\"mensaje\")"; _mensaje = BA.ObjectToString(_m.Get((Object)("mensaje"))); -RDebugUtils.currentLine=11075621; - //BA.debugLineNum = 11075621;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoint"; + //BA.debugLineNum = 628;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoint"; parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints"); -RDebugUtils.currentLine=11075622; - //BA.debugLineNum = 11075622;BA.debugLine="Starter.skmt.ExecNonQuery(\"update kmt_info set"; + //BA.debugLineNum = 629;BA.debugLine="Starter.skmt.ExecNonQuery(\"update kmt_info set"; parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update kmt_info set SECUENCIA = 0"); -RDebugUtils.currentLine=11075623; - //BA.debugLineNum = 11075623;BA.debugLine="For i = 0 To coords.Size - 1"; + //BA.debugLineNum = 630;BA.debugLine="For i = 0 To coords.Size - 1"; if (true) break; case 17: @@ -956,15 +884,12 @@ if (true) break; case 19: //C this.state = 37; -RDebugUtils.currentLine=11075624; - //BA.debugLineNum = 11075624;BA.debugLine="Private ti As Map = coords.Get(i)"; + //BA.debugLineNum = 631;BA.debugLine="Private ti As Map = coords.Get(i)"; _ti = new anywheresoftware.b4a.objects.collections.Map(); _ti = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_coords.Get(_i))); -RDebugUtils.currentLine=11075625; - //BA.debugLineNum = 11075625;BA.debugLine="Starter.skmt.ExecNonQuery($\"update kmt_info se"; + //BA.debugLineNum = 632;BA.debugLine="Starter.skmt.ExecNonQuery($\"update kmt_info se"; parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update kmt_info set SECUENCIA = "+parent.__c.SmartStringFormatter("",_ti.Get((Object)("pos")))+" where CAT_CL_CODIGO = '"+parent.__c.SmartStringFormatter("",(Object)((BA.ObjectToString(_ti.Get((Object)("id")))).substring((int) (1))))+"'")); -RDebugUtils.currentLine=11075626; - //BA.debugLineNum = 11075626;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into waypoi"; + //BA.debugLineNum = 633;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into waypoi"; parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into waypoints (codigo, indice) values ('"+parent.__c.SmartStringFormatter("",(Object)((BA.ObjectToString(_ti.Get((Object)("id")))).substring((int) (1))))+"', '"+parent.__c.SmartStringFormatter("",_ti.Get((Object)("pos")))+"')")); if (true) break; if (true) break; @@ -973,48 +898,40 @@ case 20: //C this.state = 21; ; -RDebugUtils.currentLine=11075628; - //BA.debugLineNum = 11075628;BA.debugLine="c = Starter.skmt.ExecQuery(\"select codigo, indi"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice"))); -RDebugUtils.currentLine=11075629; - //BA.debugLineNum = 11075629;BA.debugLine="If c.RowCount > 0 Then 'Ya hay waypoints en la"; + //BA.debugLineNum = 635;BA.debugLine="c = Starter.skmt.ExecQuery(\"select codigo, indi"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice"))); + //BA.debugLineNum = 636;BA.debugLine="If c.RowCount > 0 Then 'Ya hay waypoints en la"; if (true) break; case 21: //if this.state = 28; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._c.getRowCount()>0) { this.state = 23; }if (true) break; case 23: //C this.state = 24; -RDebugUtils.currentLine=11075630; - //BA.debugLineNum = 11075630;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=11075631; - //BA.debugLineNum = 11075631;BA.debugLine="conMapa = True"; -__ref._conmapa /*boolean*/ = parent.__c.True; -RDebugUtils.currentLine=11075632; - //BA.debugLineNum = 11075632;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=11075633; - //BA.debugLineNum = 11075633;BA.debugLine="Dim cs, cs2 As CSBuilder"; + //BA.debugLineNum = 637;BA.debugLine="c.Position = 0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 638;BA.debugLine="conMapa = True"; +parent._conmapa = parent.__c.True; + //BA.debugLineNum = 639;BA.debugLine="ListView1.Clear"; +parent._listview1.Clear(); + //BA.debugLineNum = 640;BA.debugLine="Dim cs, cs2 As CSBuilder"; _cs = new anywheresoftware.b4a.objects.CSBuilder(); _cs2 = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=11075634; - //BA.debugLineNum = 11075634;BA.debugLine="entro = 3"; -__ref._entro /*String*/ = BA.NumberToString(3); -RDebugUtils.currentLine=11075635; - //BA.debugLineNum = 11075635;BA.debugLine="For i=0 To c.RowCount -1 'Generamos el listVie"; + //BA.debugLineNum = 641;BA.debugLine="entro = 3"; +parent._entro = BA.NumberToString(3); + //BA.debugLineNum = 642;BA.debugLine="For i=0 To c.RowCount -1 'Generamos el listVie"; if (true) break; case 24: //for this.state = 27; step49 = 1; -limit49 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit49 = (int) (parent._c.getRowCount()-1); _i = (int) (0) ; this.state = 38; if (true) break; @@ -1034,18 +951,14 @@ if (true) break; case 26: //C this.state = 39; -RDebugUtils.currentLine=11075636; - //BA.debugLineNum = 11075636;BA.debugLine="c.Position = i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=11075637; - //BA.debugLineNum = 11075637;BA.debugLine="cs.Initialize"; + //BA.debugLineNum = 643;BA.debugLine="c.Position = i"; +parent._c.setPosition(_i); + //BA.debugLineNum = 644;BA.debugLine="cs.Initialize"; _cs.Initialize(); -RDebugUtils.currentLine=11075638; - //BA.debugLineNum = 11075638;BA.debugLine="cs2.Initialize"; + //BA.debugLineNum = 645;BA.debugLine="cs2.Initialize"; _cs2.Initialize(); -RDebugUtils.currentLine=11075639; - //BA.debugLineNum = 11075639;BA.debugLine="ListView1.AddTwoLines(cs.Color(Colors.RGB(100"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(_cs.Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("codigo"))).PopAll().getObject()),BA.ObjectToCharSequence(_cs2.Append(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE"))).Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(" Calle: ")).Pop().Append(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE").trim()+" "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOEXT"))).PopAll().getObject())); + //BA.debugLineNum = 646;BA.debugLine="ListView1.AddTwoLines(cs.Color(Colors.RGB(100"; +parent._listview1.AddTwoLines(BA.ObjectToCharSequence(_cs.Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(parent._c.GetString("codigo"))).PopAll().getObject()),BA.ObjectToCharSequence(_cs2.Append(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NOMBRE"))).Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(" Calle: ")).Pop().Append(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE").trim()+" "+parent._c.GetString("CAT_CL_NOEXT"))).PopAll().getObject())); if (true) break; if (true) break; @@ -1059,30 +972,22 @@ case 28: //C this.state = 29; ; -RDebugUtils.currentLine=11075642; - //BA.debugLineNum = 11075642;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=11075643; - //BA.debugLineNum = 11075643;BA.debugLine="Log($\"Distancia total: $1.1{distance/1000} kms,"; -parent.__c.LogImpl("211075643",("Distancia total: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_distance))/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_duration))/(double)60))+" mins. ("+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_duration))/(double)60/(double)60))+" hrs)"),0); -RDebugUtils.currentLine=11075644; - //BA.debugLineNum = 11075644;BA.debugLine="l_rutaInfo.Text = $\"Distancia: $1.1{distance/10"; -__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Distancia: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_distance))/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_duration))/(double)60/(double)60))+" hrs"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Visitas restantes: "+parent.__c.SmartStringFormatter("",(Object)(_puntos-1))+""))); -RDebugUtils.currentLine=11075645; - //BA.debugLineNum = 11075645;BA.debugLine="l_rutaInfo.Width = Root.Width * 0.9"; -__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.9)); -RDebugUtils.currentLine=11075646; - //BA.debugLineNum = 11075646;BA.debugLine="Subs.centraEtiqueta(l_rutaInfo, Root.Width)"; -parent._subs._centraetiqueta /*String*/ (ba,__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=11075647; - //BA.debugLineNum = 11075647;BA.debugLine="l_rutaInfo.Visible = True"; -__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.True); -RDebugUtils.currentLine=11075648; - //BA.debugLineNum = 11075648;BA.debugLine="l_rutaInfo.BringToFront"; -__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .BringToFront(); -RDebugUtils.currentLine=11075649; - //BA.debugLineNum = 11075649;BA.debugLine="ListView1.Top = lv1Top + 100"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setTop((int) ((double)(Double.parseDouble(__ref._lv1top /*String*/ ))+100)); + //BA.debugLineNum = 649;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 650;BA.debugLine="Log($\"Distancia total: $1.1{distance/1000} kms,"; +parent.__c.LogImpl("011337787",("Distancia total: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_distance))/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_duration))/(double)60))+" mins. ("+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_duration))/(double)60/(double)60))+" hrs)"),0); + //BA.debugLineNum = 651;BA.debugLine="l_rutaInfo.Text = $\"Distancia: $1.1{distance/10"; +parent._l_rutainfo.setText(BA.ObjectToCharSequence(("Distancia: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_distance))/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)((double)(Double.parseDouble(_duration))/(double)60/(double)60))+" hrs"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Visitas restantes: "+parent.__c.SmartStringFormatter("",(Object)(_puntos-1))+""))); + //BA.debugLineNum = 652;BA.debugLine="l_rutaInfo.Width = Root.Width * 0.9"; +parent._l_rutainfo.setWidth((int) (parent._root.getWidth()*0.9)); + //BA.debugLineNum = 653;BA.debugLine="Subs.centraEtiqueta(l_rutaInfo, Root.Width)"; +parent._subs._centraetiqueta /*String*/ (ba,parent._l_rutainfo,parent._root.getWidth()); + //BA.debugLineNum = 654;BA.debugLine="l_rutaInfo.Visible = True"; +parent._l_rutainfo.setVisible(parent.__c.True); + //BA.debugLineNum = 655;BA.debugLine="l_rutaInfo.BringToFront"; +parent._l_rutainfo.BringToFront(); + //BA.debugLineNum = 656;BA.debugLine="ListView1.Top = lv1Top + 100"; +parent._listview1.setTop((int) ((double)(Double.parseDouble(parent._lv1top))+100)); if (true) break; case 29: @@ -1094,304 +999,238 @@ this.state = 32; case 31: //C this.state = 32; -RDebugUtils.currentLine=11075652; - //BA.debugLineNum = 11075652;BA.debugLine="LogColor(\"**************** Error! ************"; -parent.__c.LogImpl("211075652","**************** Error! ******************",parent.__c.Colors.Red); + //BA.debugLineNum = 659;BA.debugLine="LogColor(\"**************** Error! ************"; +parent.__c.LogImpl("011337796","**************** Error! ******************",parent.__c.Colors.Red); if (true) break; case 32: //C this.state = -1; ; -RDebugUtils.currentLine=11075654; - //BA.debugLineNum = 11075654;BA.debugLine="j.Release"; -_j._release /*String*/ (null); -RDebugUtils.currentLine=11075655; - //BA.debugLineNum = 11075655;BA.debugLine="ProgressDialogHide"; + //BA.debugLineNum = 661;BA.debugLine="j.Release"; +_j._release /*String*/ (); + //BA.debugLineNum = 662;BA.debugLine="ProgressDialogHide"; parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=11075656; - //BA.debugLineNum = 11075656;BA.debugLine="End Sub"; + //BA.debugLineNum = 663;BA.debugLine="End Sub"; if (true) break; } } } } -public anywheresoftware.b4a.objects.collections.List _todosavisitar(reparto_izca.keymon.lat.c_clientes __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "todosavisitar", false)) - {return ((anywheresoftware.b4a.objects.collections.List) Debug.delegate(ba, "todosavisitar", null));} -String _sqlderuta = ""; -anywheresoftware.b4a.objects.collections.List _avisitar = null; -anywheresoftware.b4a.objects.collections.List _tmplist = null; -anywheresoftware.b4a.sql.SQL.ResultSetWrapper _coords = null; -RDebugUtils.currentLine=11141120; - //BA.debugLineNum = 11141120;BA.debugLine="Sub todosAVisitar As List"; -RDebugUtils.currentLine=11141121; - //BA.debugLineNum = 11141121;BA.debugLine="Log(laRuta)"; -__c.LogImpl("211141121",__ref._laruta /*String*/ ,0); -RDebugUtils.currentLine=11141122; - //BA.debugLineNum = 11141122;BA.debugLine="Log(entro)"; -__c.LogImpl("211141122",__ref._entro /*String*/ ,0); -RDebugUtils.currentLine=11141123; - //BA.debugLineNum = 11141123;BA.debugLine="Private sqlDeRuta As String = \"\""; -_sqlderuta = ""; -RDebugUtils.currentLine=11141124; - //BA.debugLineNum = 11141124;BA.debugLine="If entro = 3 Then sqlDeRuta = $\"and CAT_CL_RUTA ="; -if ((__ref._entro /*String*/ ).equals(BA.NumberToString(3))) { -_sqlderuta = ("and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(__ref._laruta /*String*/ ))+"'");}; -RDebugUtils.currentLine=11141125; - //BA.debugLineNum = 11141125;BA.debugLine="Private aVisitar, tmpList As List"; -_avisitar = new anywheresoftware.b4a.objects.collections.List(); -_tmplist = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=11141126; - //BA.debugLineNum = 11141126;BA.debugLine="aVisitar.Initialize"; -_avisitar.Initialize(); -RDebugUtils.currentLine=11141127; - //BA.debugLineNum = 11141127;BA.debugLine="Private coords As ResultSet = Starter.skmt.ExecQu"; -_coords = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); -_coords = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 "+__c.SmartStringFormatter("",(Object)(_sqlderuta))+"")))); -RDebugUtils.currentLine=11141128; - //BA.debugLineNum = 11141128;BA.debugLine="Do While coords.NextRow"; -while (_coords.NextRow()) { -RDebugUtils.currentLine=11141129; - //BA.debugLineNum = 11141129;BA.debugLine="tmpList.Initialize"; -_tmplist.Initialize(); -RDebugUtils.currentLine=11141130; - //BA.debugLineNum = 11141130;BA.debugLine="tmpList.AddAll(Array As String(coords.GetString("; -_tmplist.AddAll(anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_coords.GetString("CAT_CL_CODIGO"),_coords.GetString("CAT_CL_LONG"),_coords.GetString("CAT_CL_LAT")})); -RDebugUtils.currentLine=11141131; - //BA.debugLineNum = 11141131;BA.debugLine="aVisitar.Add(tmpList)"; -_avisitar.Add((Object)(_tmplist.getObject())); - } -; -RDebugUtils.currentLine=11141133; - //BA.debugLineNum = 11141133;BA.debugLine="Log(aVisitar)"; -__c.LogImpl("211141133",BA.ObjectToString(_avisitar),0); -RDebugUtils.currentLine=11141134; - //BA.debugLineNum = 11141134;BA.debugLine="Return aVisitar"; -if (true) return _avisitar; -RDebugUtils.currentLine=11141135; - //BA.debugLineNum = 11141135;BA.debugLine="End Sub"; -return null; +public void _jobdone(reparto_izca.keymon.lat.httpjob _j) throws Exception{ } -public String _b_getrutainfo_longclick(reparto_izca.keymon.lat.c_clientes __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "b_getrutainfo_longclick", false)) - {return ((String) Debug.delegate(ba, "b_getrutainfo_longclick", null));} -RDebugUtils.currentLine=10944512; - //BA.debugLineNum = 10944512;BA.debugLine="Private Sub b_getRutaInfo_LongClick"; -RDebugUtils.currentLine=10944513; - //BA.debugLineNum = 10944513;BA.debugLine="If b_limpiarRuta.Visible Then"; -if (__ref._b_limpiarruta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()) { -RDebugUtils.currentLine=10944514; - //BA.debugLineNum = 10944514;BA.debugLine="b_limpiarRuta.Visible = False"; -__ref._b_limpiarruta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); - }else { -RDebugUtils.currentLine=10944516; - //BA.debugLineNum = 10944516;BA.debugLine="b_limpiarRuta.Visible = True"; -__ref._b_limpiarruta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); - }; -RDebugUtils.currentLine=10944518; - //BA.debugLineNum = 10944518;BA.debugLine="End Sub"; +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore"; +_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 4;BA.debugLine="Dim q_buscar As String"; +_q_buscar = ""; + //BA.debugLineNum = 6;BA.debugLine="Dim entro As String"; +_entro = ""; + //BA.debugLineNum = 7;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 8;BA.debugLine="Dim c2 As Cursor"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 9;BA.debugLine="Dim ListView1 As ListView"; +_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Dim lfila As Label"; +_lfila = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 12;BA.debugLine="Dim busca As EditText"; +_busca = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 13;BA.debugLine="Private p_colonia As Panel"; +_p_colonia = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Dim laRuta As String"; +_laruta = ""; + //BA.debugLineNum = 17;BA.debugLine="Private b_GetDirs As Button"; +_b_getdirs = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 18;BA.debugLine="Private distOrderedMap, clientesMapaO As B4XOrder"; +_distorderedmap = new reparto_izca.keymon.lat.b4xorderedmap(); +_clientesmapao = new reparto_izca.keymon.lat.b4xorderedmap(); + //BA.debugLineNum = 19;BA.debugLine="Private img_getDirs As ImageView"; +_img_getdirs = new anywheresoftware.b4a.objects.ImageViewWrapper(); + //BA.debugLineNum = 20;BA.debugLine="Private l_rutaInfo As Label"; +_l_rutainfo = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 21;BA.debugLine="Private b_getRutaInfo As Button"; +_b_getrutainfo = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 22;BA.debugLine="Private conMapa As Boolean = False"; +_conmapa = __c.False; + //BA.debugLineNum = 23;BA.debugLine="Dim listaWayPoints As List"; +_listawaypoints = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 24;BA.debugLine="Dim lv1Top As String"; +_lv1top = ""; + //BA.debugLineNum = 25;BA.debugLine="Private b_limpiarRuta As Button"; +_b_limpiarruta = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Dim rutaGenerada As Boolean = False"; +_rutagenerada = __c.False; + //BA.debugLineNum = 27;BA.debugLine="Dim rutaacambiar As String"; +_rutaacambiar = ""; + //BA.debugLineNum = 28;BA.debugLine="End Sub"; return ""; } -public String _b_limpiarruta_click(reparto_izca.keymon.lat.c_clientes __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "b_limpiarruta_click", false)) - {return ((String) Debug.delegate(ba, "b_limpiarruta_click", null));} -RDebugUtils.currentLine=11010048; - //BA.debugLineNum = 11010048;BA.debugLine="Private Sub b_limpiarRuta_Click"; -RDebugUtils.currentLine=11010049; - //BA.debugLineNum = 11010049;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints\""; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints"); -RDebugUtils.currentLine=11010050; - //BA.debugLineNum = 11010050;BA.debugLine="b_limpiarRuta.Visible = False"; -__ref._b_limpiarruta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=11010051; - //BA.debugLineNum = 11010051;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=11010052; - //BA.debugLineNum = 11010052;BA.debugLine="End Sub"; -return ""; +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _distanciaentrecoords(String _id,String _coords1,String _coords2) throws Exception{ +ResumableSub_distanciaEntreCoords rsub = new ResumableSub_distanciaEntreCoords(this,_id,_coords1,_coords2); +rsub.resume(ba, null); +return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_clientes __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} -anywheresoftware.b4a.objects.CSBuilder _cs = null; -anywheresoftware.b4a.objects.CSBuilder _cs2 = null; -int _i = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _x = null; -String[] _y = null; -RDebugUtils.currentLine=10223616; - //BA.debugLineNum = 10223616;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=10223617; - //BA.debugLineNum = 10223617;BA.debugLine="busca.Text = \"\""; -__ref._busca /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=10223618; - //BA.debugLineNum = 10223618;BA.debugLine="b_GetDirs.Visible = False"; -__ref._b_getdirs /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=10223620; - //BA.debugLineNum = 10223620;BA.debugLine="entro =\"2\""; -__ref._entro /*String*/ = "2"; -RDebugUtils.currentLine=10223624; - //BA.debugLineNum = 10223624;BA.debugLine="p_colonia.Width = Root.Width"; -__ref._p_colonia /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=10223625; - //BA.debugLineNum = 10223625;BA.debugLine="p_colonia.Height = Root.Height"; -__ref._p_colonia /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=10223626; - //BA.debugLineNum = 10223626;BA.debugLine="p_colonia.Top = 0"; -__ref._p_colonia /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTop((int) (0)); -RDebugUtils.currentLine=10223627; - //BA.debugLineNum = 10223627;BA.debugLine="p_colonia.Left = 0"; -__ref._p_colonia /*anywheresoftware.b4a.objects.PanelWrapper*/ .setLeft((int) (0)); -RDebugUtils.currentLine=10223628; - //BA.debugLineNum = 10223628;BA.debugLine="Subs.centraListView(ListView1, p_colonia.Width)"; -_subs._centralistview /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__ref._p_colonia /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()); -RDebugUtils.currentLine=10223629; - //BA.debugLineNum = 10223629;BA.debugLine="ListView1.Height = p_colonia.Height * 0.75"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setHeight((int) (__ref._p_colonia /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()*0.75)); -RDebugUtils.currentLine=10223630; - //BA.debugLineNum = 10223630;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; -_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2)); -RDebugUtils.currentLine=10223631; - //BA.debugLineNum = 10223631;BA.debugLine="If Not(l_rutaInfo.Visible) Then"; -if (__c.Not(__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .getVisible())) { -RDebugUtils.currentLine=10223632; - //BA.debugLineNum = 10223632;BA.debugLine="ListView1.Top = lv1Top"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setTop((int)(Double.parseDouble(__ref._lv1top /*String*/ ))); - }else { -RDebugUtils.currentLine=10223634; - //BA.debugLineNum = 10223634;BA.debugLine="ListView1.Top = lv1Top + 100"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setTop((int) ((double)(Double.parseDouble(__ref._lv1top /*String*/ ))+100)); - }; -RDebugUtils.currentLine=10223636; - //BA.debugLineNum = 10223636;BA.debugLine="c=Starter.skmt.ExecQuery(\"select codigo, indice,"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice"))); -RDebugUtils.currentLine=10223637; - //BA.debugLineNum = 10223637;BA.debugLine="If c.RowCount > 0 Then 'Ya hay waypoints en la ba"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=10223638; - //BA.debugLineNum = 10223638;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=10223640; - //BA.debugLineNum = 10223640;BA.debugLine="conMapa = True"; -__ref._conmapa /*boolean*/ = __c.True; -RDebugUtils.currentLine=10223642; - //BA.debugLineNum = 10223642;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=10223643; - //BA.debugLineNum = 10223643;BA.debugLine="Dim cs, cs2 As CSBuilder"; -_cs = new anywheresoftware.b4a.objects.CSBuilder(); -_cs2 = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=10223644; - //BA.debugLineNum = 10223644;BA.debugLine="entro = 3"; -__ref._entro /*String*/ = BA.NumberToString(3); -RDebugUtils.currentLine=10223646; - //BA.debugLineNum = 10223646;BA.debugLine="For i=0 To c.RowCount -1 'Generamos el listView"; +public static class ResumableSub_distanciaEntreCoords extends BA.ResumableSub { +public ResumableSub_distanciaEntreCoords(reparto_izca.keymon.lat.c_clientes parent,String _id,String _coords1,String _coords2) { +this.parent = parent; +this._id = _id; +this._coords1 = _coords1; +this._coords2 = _coords2; +} +reparto_izca.keymon.lat.c_clientes parent; +String _id; +String _coords1; +String _coords2; +String _distanciatotal = ""; +String _tiempo = ""; +reparto_izca.keymon.lat.httpjob _j = null; +anywheresoftware.b4a.objects.collections.JSONParser _jp = null; +anywheresoftware.b4a.objects.collections.Map _m = null; +anywheresoftware.b4a.objects.collections.List _rutas = null; +anywheresoftware.b4a.objects.collections.Map _rutas2 = null; +anywheresoftware.b4a.objects.collections.List _r = null; + +@Override +public void resume(BA ba, Object[] result) throws Exception{ + + while (true) { + switch (state) { + case -1: { -final int step23 = 1; -final int limit23 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit23 ;_i = _i + step23 ) { -RDebugUtils.currentLine=10223647; - //BA.debugLineNum = 10223647;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=10223648; - //BA.debugLineNum = 10223648;BA.debugLine="cs.Initialize"; -_cs.Initialize(); -RDebugUtils.currentLine=10223649; - //BA.debugLineNum = 10223649;BA.debugLine="cs2.Initialize"; -_cs2.Initialize(); -RDebugUtils.currentLine=10223653; - //BA.debugLineNum = 10223653;BA.debugLine="ListView1.AddTwoLines(cs.Color(Colors.RGB(100,1"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("codigo"))).PopAll().getObject()),BA.ObjectToCharSequence(_cs2.Append(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE"))).Color(__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(" Calle: ")).Pop().Append(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE").trim()+" "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOEXT"))).PopAll().getObject())); - } -}; - }else { -RDebugUtils.currentLine=10223656; - //BA.debugLineNum = 10223656;BA.debugLine="generaListViewRutas"; -__ref._generalistviewrutas /*void*/ (null); - }; -RDebugUtils.currentLine=10223658; - //BA.debugLineNum = 10223658;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=10223659; - //BA.debugLineNum = 10223659;BA.debugLine="p_colonia.Width = Root.Width"; -__ref._p_colonia /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=10223660; - //BA.debugLineNum = 10223660;BA.debugLine="p_colonia.Height = Root.Height"; -__ref._p_colonia /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=10223661; - //BA.debugLineNum = 10223661;BA.debugLine="Subs.centraEtiqueta(l_rutaInfo, Root.Width)"; -_subs._centraetiqueta /*String*/ (ba,__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=10223662; - //BA.debugLineNum = 10223662;BA.debugLine="Subs.centraListView(ListView1, p_colonia.Width)"; -_subs._centralistview /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__ref._p_colonia /*anywheresoftware.b4a.objects.PanelWrapper*/ .getWidth()); -RDebugUtils.currentLine=10223663; - //BA.debugLineNum = 10223663;BA.debugLine="ListView1.Height = p_colonia.Height * 0.70"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setHeight((int) (__ref._p_colonia /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()*0.70)); -RDebugUtils.currentLine=10223664; - //BA.debugLineNum = 10223664;BA.debugLine="Subs.centraEtiqueta(lfila, Root.Width)"; -_subs._centraetiqueta /*String*/ (ba,__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=10223665; - //BA.debugLineNum = 10223665;BA.debugLine="b_getRutaInfo.Visible = True"; -__ref._b_getrutainfo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=10223666; - //BA.debugLineNum = 10223666;BA.debugLine="b_getRutaInfo.BringToFront"; -__ref._b_getrutainfo /*anywheresoftware.b4a.objects.ButtonWrapper*/ .BringToFront(); -RDebugUtils.currentLine=10223667; - //BA.debugLineNum = 10223667;BA.debugLine="If Starter.cedisLocation.Latitude = \"0\" Then"; -if (_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()==(double)(Double.parseDouble("0"))) { -RDebugUtils.currentLine=10223668; - //BA.debugLineNum = 10223668;BA.debugLine="Private x As Cursor = Starter.skmt.ExecQuery(\"se"; -_x = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_x = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'COORDS_ALMACEN'"))); -RDebugUtils.currentLine=10223669; - //BA.debugLineNum = 10223669;BA.debugLine="If x.RowCount > 0 Then"; -if (_x.getRowCount()>0) { -RDebugUtils.currentLine=10223670; - //BA.debugLineNum = 10223670;BA.debugLine="x.Position = 0"; -_x.setPosition((int) (0)); -RDebugUtils.currentLine=10223671; - //BA.debugLineNum = 10223671;BA.debugLine="Private y() As String"; -_y = new String[(int) (0)]; -java.util.Arrays.fill(_y,""); -RDebugUtils.currentLine=10223672; - //BA.debugLineNum = 10223672;BA.debugLine="Starter.cedisLocation.Latitude = Regex.Split(\","; -_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude((double)(Double.parseDouble(__c.Regex.Split(",",_x.GetString("CAT_VA_VALOR"))[(int) (1)]))); -RDebugUtils.currentLine=10223673; - //BA.debugLineNum = 10223673;BA.debugLine="Starter.cedisLocation.Longitude = Regex.Split(\""; -_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude((double)(Double.parseDouble(__c.Regex.Split(",",_x.GetString("CAT_VA_VALOR"))[(int) (0)]))); - }; - }; -RDebugUtils.currentLine=10223676; - //BA.debugLineNum = 10223676;BA.debugLine="Log(Starter.cedisLocation)"; -__c.LogImpl("210223676",BA.ObjectToString(_starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ ),0); -RDebugUtils.currentLine=10223677; - //BA.debugLineNum = 10223677;BA.debugLine="End Sub"; -return ""; +parent.__c.ReturnFromResumableSub(this,null);return;} +case 0: +//C +this.state = 1; + //BA.debugLineNum = 263;BA.debugLine="Sleep(1050)"; +parent.__c.Sleep(ba,this,(int) (1050)); +this.state = 11; +return; +case 11: +//C +this.state = 1; +; + //BA.debugLineNum = 264;BA.debugLine="Private distanciaTotal As String = \"0\""; +_distanciatotal = "0"; + //BA.debugLineNum = 265;BA.debugLine="Private tiempo As String = \"0\""; +_tiempo = "0"; + //BA.debugLineNum = 266;BA.debugLine="Dim j As HttpJob"; +_j = new reparto_izca.keymon.lat.httpjob(); + //BA.debugLineNum = 267;BA.debugLine="j.Initialize(\"\", Me)"; +_j._initialize /*String*/ (ba,"",parent); + //BA.debugLineNum = 268;BA.debugLine="j.Download(\"https://router.project-osrm.org/route"; +_j._download /*String*/ ("https://router.project-osrm.org/route/v1/driving/"+_coords1+";"+_coords2+"?overview=false"); + //BA.debugLineNum = 269;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; +parent.__c.WaitFor("jobdone", ba, this, (Object)(_j)); +this.state = 12; +return; +case 12: +//C +this.state = 1; +_j = (reparto_izca.keymon.lat.httpjob) result[0]; +; + //BA.debugLineNum = 270;BA.debugLine="If j.Success Then"; +if (true) break; + +case 1: +//if +this.state = 10; +if (_j._success /*boolean*/ ) { +this.state = 3; +}else { +this.state = 9; +}if (true) break; + +case 3: +//C +this.state = 4; + //BA.debugLineNum = 271;BA.debugLine="Dim jp As JSONParser"; +_jp = new anywheresoftware.b4a.objects.collections.JSONParser(); + //BA.debugLineNum = 272;BA.debugLine="jp.Initialize(j.GetString)"; +_jp.Initialize(_j._getstring /*String*/ ()); + //BA.debugLineNum = 273;BA.debugLine="Dim m As Map = jp.NextObject"; +_m = new anywheresoftware.b4a.objects.collections.Map(); +_m = _jp.NextObject(); + //BA.debugLineNum = 274;BA.debugLine="Log($\"Respuesta: ${m.Get(\"code\")}\"$)"; +parent.__c.LogImpl("010878988",("Respuesta: "+parent.__c.SmartStringFormatter("",_m.Get((Object)("code")))+""),0); + //BA.debugLineNum = 275;BA.debugLine="If m.Get(\"code\") = \"Ok\" Then"; +if (true) break; + +case 4: +//if +this.state = 7; +if ((_m.Get((Object)("code"))).equals((Object)("Ok"))) { +this.state = 6; +}if (true) break; + +case 6: +//C +this.state = 7; + //BA.debugLineNum = 277;BA.debugLine="Dim rutas As List = m.Get(\"routes\")"; +_rutas = new anywheresoftware.b4a.objects.collections.List(); +_rutas = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m.Get((Object)("routes")))); + //BA.debugLineNum = 278;BA.debugLine="Dim rutas2 As Map = rutas.Get(0)"; +_rutas2 = new anywheresoftware.b4a.objects.collections.Map(); +_rutas2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_rutas.Get((int) (0)))); + //BA.debugLineNum = 282;BA.debugLine="distanciaTotal = rutas2.Get(\"distance\")"; +_distanciatotal = BA.ObjectToString(_rutas2.Get((Object)("distance"))); + //BA.debugLineNum = 283;BA.debugLine="tiempo = rutas2.Get(\"duration\")"; +_tiempo = BA.ObjectToString(_rutas2.Get((Object)("duration"))); + //BA.debugLineNum = 284;BA.debugLine="Log($\"Distancia total: ${distanciaTotal}, Tiemp"; +parent.__c.LogImpl("010878998",("Distancia total: "+parent.__c.SmartStringFormatter("",(Object)(_distanciatotal))+", Tiempo: "+parent.__c.SmartStringFormatter("",(Object)(_tiempo))+""),0); + if (true) break; + +case 7: +//C +this.state = 10; +; + if (true) break; + +case 9: +//C +this.state = 10; + //BA.debugLineNum = 287;BA.debugLine="Log(\"Error!\")"; +parent.__c.LogImpl("010879001","Error!",0); + if (true) break; + +case 10: +//C +this.state = -1; +; + //BA.debugLineNum = 289;BA.debugLine="j.Release"; +_j._release /*String*/ (); + //BA.debugLineNum = 290;BA.debugLine="Private r As List"; +_r = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 291;BA.debugLine="r.Initialize"; +_r.Initialize(); + //BA.debugLineNum = 292;BA.debugLine="r.Add(id)"; +_r.Add((Object)(_id)); + //BA.debugLineNum = 293;BA.debugLine="r.Add(distanciaTotal)"; +_r.Add((Object)(_distanciatotal)); + //BA.debugLineNum = 294;BA.debugLine="r.Add(tiempo)"; +_r.Add((Object)(_tiempo)); + //BA.debugLineNum = 295;BA.debugLine="Return r"; +if (true) { +parent.__c.ReturnFromResumableSub(this,(Object)(_r));return;}; + //BA.debugLineNum = 296;BA.debugLine="End Sub"; +if (true) break; + + } + } + } } -public void _generalistviewrutas(reparto_izca.keymon.lat.c_clientes __ref) throws Exception{ -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "generalistviewrutas", false)) - {Debug.delegate(ba, "generalistviewrutas", null); return;} -ResumableSub_generaListViewRutas rsub = new ResumableSub_generaListViewRutas(this,__ref); +public void _generalistviewrutas() throws Exception{ +ResumableSub_generaListViewRutas rsub = new ResumableSub_generaListViewRutas(this); rsub.resume(ba, null); } public static class ResumableSub_generaListViewRutas extends BA.ResumableSub { -public ResumableSub_generaListViewRutas(reparto_izca.keymon.lat.c_clientes parent,reparto_izca.keymon.lat.c_clientes __ref) { +public ResumableSub_generaListViewRutas(reparto_izca.keymon.lat.c_clientes parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_clientes __ref; reparto_izca.keymon.lat.c_clientes parent; anywheresoftware.b4a.objects.LabelWrapper _label1 = null; anywheresoftware.b4a.objects.LabelWrapper _label2 = null; @@ -1401,7 +1240,6 @@ int limit16; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_clientes"; while (true) { switch (state) { @@ -1411,77 +1249,61 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=10420225; - //BA.debugLineNum = 10420225;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=10420226; - //BA.debugLineNum = 10420226;BA.debugLine="Sleep(110)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_clientes", "generalistviewrutas"),(int) (110)); + //BA.debugLineNum = 196;BA.debugLine="ListView1.Clear"; +parent._listview1.Clear(); + //BA.debugLineNum = 197;BA.debugLine="Sleep(110)"; +parent.__c.Sleep(ba,this,(int) (110)); this.state = 9; return; case 9: //C this.state = 1; ; -RDebugUtils.currentLine=10420227; - //BA.debugLineNum = 10420227;BA.debugLine="lfila.Text = \"RUTA PREVENTA\""; -__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("RUTA PREVENTA")); -RDebugUtils.currentLine=10420228; - //BA.debugLineNum = 10420228;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 198;BA.debugLine="lfila.Text = \"RUTA PREVENTA\""; +parent._lfila.setText(BA.ObjectToCharSequence("RUTA PREVENTA")); + //BA.debugLineNum = 199;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=10420229; - //BA.debugLineNum = 10420229;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=10420230; - //BA.debugLineNum = 10420230;BA.debugLine="label1.TextSize = 15"; + //BA.debugLineNum = 200;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = parent._listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 201;BA.debugLine="label1.TextSize = 15"; _label1.setTextSize((float) (15)); -RDebugUtils.currentLine=10420231; - //BA.debugLineNum = 10420231;BA.debugLine="label1.TextColor = Colors.Black"; + //BA.debugLineNum = 202;BA.debugLine="label1.TextColor = Colors.Black"; _label1.setTextColor(parent.__c.Colors.Black); -RDebugUtils.currentLine=10420232; - //BA.debugLineNum = 10420232;BA.debugLine="Dim label2 As Label"; + //BA.debugLineNum = 203;BA.debugLine="Dim label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=10420233; - //BA.debugLineNum = 10420233;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=10420234; - //BA.debugLineNum = 10420234;BA.debugLine="label2.TextSize = 15"; + //BA.debugLineNum = 204;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = parent._listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 205;BA.debugLine="label2.TextSize = 15"; _label2.setTextSize((float) (15)); -RDebugUtils.currentLine=10420235; - //BA.debugLineNum = 10420235;BA.debugLine="label2.TextColor = Colors.Black"; + //BA.debugLineNum = 206;BA.debugLine="label2.TextColor = Colors.Black"; _label2.setTextColor(parent.__c.Colors.Black); -RDebugUtils.currentLine=10420236; - //BA.debugLineNum = 10420236;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 60dip"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().setItemHeight(parent.__c.DipToCurrent((int) (60))); -RDebugUtils.currentLine=10420237; - //BA.debugLineNum = 10420237;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA, cou"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA, count(*) as cuantos from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 group by CAT_CL_RUTA order by CAT_CL_RUTA asc"))); -RDebugUtils.currentLine=10420238; - //BA.debugLineNum = 10420238;BA.debugLine="If c.RowCount>0 Then"; + //BA.debugLineNum = 207;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 60dip"; +parent._listview1.getTwoLinesLayout().setItemHeight(parent.__c.DipToCurrent((int) (60))); + //BA.debugLineNum = 208;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA, cou"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA, count(*) as cuantos from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 group by CAT_CL_RUTA order by CAT_CL_RUTA asc"))); + //BA.debugLineNum = 209;BA.debugLine="If c.RowCount>0 Then"; if (true) break; case 1: //if this.state = 8; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._c.getRowCount()>0) { this.state = 3; }if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=10420239; - //BA.debugLineNum = 10420239;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=10420240; - //BA.debugLineNum = 10420240;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 210;BA.debugLine="ListView1.Clear"; +parent._listview1.Clear(); + //BA.debugLineNum = 211;BA.debugLine="For i=0 To c.RowCount -1"; if (true) break; case 4: //for this.state = 7; step16 = 1; -limit16 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit16 = (int) (parent._c.getRowCount()-1); _i = (int) (0) ; this.state = 10; if (true) break; @@ -1501,12 +1323,10 @@ if (true) break; case 6: //C this.state = 11; -RDebugUtils.currentLine=10420241; - //BA.debugLineNum = 10420241;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=10420242; - //BA.debugLineNum = 10420242;BA.debugLine="ListView1.AddTwoLines(\"Ruta: \" & c.GetString(\"C"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence("Ruta: "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")),BA.ObjectToCharSequence("Por visitar: "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("cuantos"))); + //BA.debugLineNum = 212;BA.debugLine="c.Position=i"; +parent._c.setPosition(_i); + //BA.debugLineNum = 213;BA.debugLine="ListView1.AddTwoLines(\"Ruta: \" & c.GetString(\"C"; +parent._listview1.AddTwoLines(BA.ObjectToCharSequence("Ruta: "+parent._c.GetString("CAT_CL_RUTA")),BA.ObjectToCharSequence("Por visitar: "+parent._c.GetString("cuantos"))); if (true) break; if (true) break; @@ -1520,274 +1340,33 @@ case 8: //C this.state = -1; ; -RDebugUtils.currentLine=10420245; - //BA.debugLineNum = 10420245;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=10420246; - //BA.debugLineNum = 10420246;BA.debugLine="End Sub"; + //BA.debugLineNum = 216;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 217;BA.debugLine="End Sub"; if (true) break; } } } } -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest(reparto_izca.keymon.lat.c_clientes __ref) throws Exception{ -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));} -ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref); -rsub.resume(ba, null); -return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 31;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 32;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 33;BA.debugLine="End Sub"; +return null; } -public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { -public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_clientes parent,reparto_izca.keymon.lat.c_clientes __ref) { -this.parent = parent; -this.__ref = __ref; -this.__ref = parent; -} -reparto_izca.keymon.lat.c_clientes __ref; -reparto_izca.keymon.lat.c_clientes parent; - -@Override -public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_clientes"; - - while (true) { - switch (state) { - case -1: -{ -parent.__c.ReturnFromResumableSub(this,null);return;} -case 0: -//C -this.state = 1; -RDebugUtils.currentLine=10289155; - //BA.debugLineNum = 10289155;BA.debugLine="Log(entro)"; -parent.__c.LogImpl("210289155",__ref._entro /*String*/ ,0); -RDebugUtils.currentLine=10289156; - //BA.debugLineNum = 10289156;BA.debugLine="If rutaGenerada Or entro = 3 Then ' Si ya generam"; -if (true) break; - -case 1: -//if -this.state = 6; -if (__ref._rutagenerada /*boolean*/ || (__ref._entro /*String*/ ).equals(BA.NumberToString(3))) { -this.state = 3; -}else -{RDebugUtils.currentLine=10289160; - //BA.debugLineNum = 10289160;BA.debugLine="else if entro = 2 Then ' Si estamos mostrando las"; -if ((__ref._entro /*String*/ ).equals(BA.NumberToString(2))) { -this.state = 5; -}} -if (true) break; - -case 3: -//C -this.state = 6; -RDebugUtils.currentLine=10289157; - //BA.debugLineNum = 10289157;BA.debugLine="b_limpiarRuta_Click"; -__ref._b_limpiarruta_click /*String*/ (null); -RDebugUtils.currentLine=10289158; - //BA.debugLineNum = 10289158;BA.debugLine="l_rutaInfo.Text = \"\""; -__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=10289159; - //BA.debugLineNum = 10289159;BA.debugLine="rutaGenerada = False"; -__ref._rutagenerada /*boolean*/ = parent.__c.False; - if (true) break; - -case 5: -//C -this.state = 6; -RDebugUtils.currentLine=10289161; - //BA.debugLineNum = 10289161;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; -parent._b4xpages._showpage /*String*/ (ba,"Principal"); - if (true) break; - -case 6: -//C -this.state = -1; -; -RDebugUtils.currentLine=10289163; - //BA.debugLineNum = 10289163;BA.debugLine="Return False"; -if (true) { -parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; -RDebugUtils.currentLine=10289164; - //BA.debugLineNum = 10289164;BA.debugLine="End Sub"; -if (true) break; - - } - } - } -} -public String _busca_textchanged(reparto_izca.keymon.lat.c_clientes __ref,String _old,String _new) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "busca_textchanged", false)) - {return ((String) Debug.delegate(ba, "busca_textchanged", new Object[] {_old,_new}));} -int _i = 0; -anywheresoftware.b4a.objects.LabelWrapper _label1 = null; -anywheresoftware.b4a.objects.LabelWrapper _label2 = null; -RDebugUtils.currentLine=10551296; - //BA.debugLineNum = 10551296;BA.debugLine="Sub BUSCA_TextChanged (Old As String, New As Strin"; -RDebugUtils.currentLine=10551297; - //BA.debugLineNum = 10551297;BA.debugLine="q_buscar = \"%\" & busca.Text & \"%\""; -__ref._q_buscar /*String*/ = "%"+__ref._busca /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()+"%"; -RDebugUtils.currentLine=10551298; - //BA.debugLineNum = 10551298;BA.debugLine="c2=Starter.skmt.ExecQuery2(\"select CAT_CL_NOMBRE"; -__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info where CAT_CL_NOMBRE like ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_CODIGO ",new String[]{__ref._q_buscar /*String*/ }))); -RDebugUtils.currentLine=10551299; - //BA.debugLineNum = 10551299;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=10551300; - //BA.debugLineNum = 10551300;BA.debugLine="lfila.text = \"Nombre y Calle\""; -__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Nombre y Calle")); -RDebugUtils.currentLine=10551301; - //BA.debugLineNum = 10551301;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; -_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2)); -RDebugUtils.currentLine=10551302; - //BA.debugLineNum = 10551302;BA.debugLine="If c2.RowCount>0 Then"; -if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=10551303; - //BA.debugLineNum = 10551303;BA.debugLine="For i=0 To c2.RowCount -1"; -{ -final int step7 = 1; -final int limit7 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit7 ;_i = _i + step7 ) { -RDebugUtils.currentLine=10551304; - //BA.debugLineNum = 10551304;BA.debugLine="c2.Position=i"; -__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=10551305; - //BA.debugLineNum = 10551305;BA.debugLine="Dim label1 As Label"; -_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=10551306; - //BA.debugLineNum = 10551306;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=10551307; - //BA.debugLineNum = 10551307;BA.debugLine="label1.TextSize = 15"; -_label1.setTextSize((float) (15)); -RDebugUtils.currentLine=10551308; - //BA.debugLineNum = 10551308;BA.debugLine="label1.TextColor = Colors.Black"; -_label1.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=10551309; - //BA.debugLineNum = 10551309;BA.debugLine="Dim label2 As Label"; -_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=10551310; - //BA.debugLineNum = 10551310;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=10551311; - //BA.debugLineNum = 10551311;BA.debugLine="label2.TextSize = 15"; -_label2.setTextSize((float) (15)); -RDebugUtils.currentLine=10551312; - //BA.debugLineNum = 10551312;BA.debugLine="label2.TextColor = Colors.Black"; -_label2.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=10551313; - //BA.debugLineNum = 10551313;BA.debugLine="ListView1.AddTwoLines(c2.GetString(\"CAT_CL_CODI"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")),BA.ObjectToCharSequence(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")+" CALLE: "+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE"))); - } -}; - }; -RDebugUtils.currentLine=10551316; - //BA.debugLineNum = 10551316;BA.debugLine="entro = \"3\""; -__ref._entro /*String*/ = "3"; -RDebugUtils.currentLine=10551317; - //BA.debugLineNum = 10551317;BA.debugLine="c2.Close"; -__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=10551318; - //BA.debugLineNum = 10551318;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.c_clientes __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_clientes"; -RDebugUtils.currentLine=10027008; - //BA.debugLineNum = 10027008;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=10027009; - //BA.debugLineNum = 10027009;BA.debugLine="Private Root As B4XView 'ignore"; -_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=10027010; - //BA.debugLineNum = 10027010;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=10027011; - //BA.debugLineNum = 10027011;BA.debugLine="Dim q_buscar As String"; -_q_buscar = ""; -RDebugUtils.currentLine=10027013; - //BA.debugLineNum = 10027013;BA.debugLine="Dim entro As String"; -_entro = ""; -RDebugUtils.currentLine=10027014; - //BA.debugLineNum = 10027014;BA.debugLine="Dim c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=10027015; - //BA.debugLineNum = 10027015;BA.debugLine="Dim c2 As Cursor"; -_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=10027016; - //BA.debugLineNum = 10027016;BA.debugLine="Dim ListView1 As ListView"; -_listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=10027018; - //BA.debugLineNum = 10027018;BA.debugLine="Dim lfila As Label"; -_lfila = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=10027019; - //BA.debugLineNum = 10027019;BA.debugLine="Dim busca As EditText"; -_busca = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=10027020; - //BA.debugLineNum = 10027020;BA.debugLine="Private p_colonia As Panel"; -_p_colonia = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=10027023; - //BA.debugLineNum = 10027023;BA.debugLine="Dim laRuta As String"; -_laruta = ""; -RDebugUtils.currentLine=10027024; - //BA.debugLineNum = 10027024;BA.debugLine="Private b_GetDirs As Button"; -_b_getdirs = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=10027025; - //BA.debugLineNum = 10027025;BA.debugLine="Private distOrderedMap, clientesMapaO As B4XOrder"; -_distorderedmap = new reparto_izca.keymon.lat.b4xorderedmap(); -_clientesmapao = new reparto_izca.keymon.lat.b4xorderedmap(); -RDebugUtils.currentLine=10027026; - //BA.debugLineNum = 10027026;BA.debugLine="Private img_getDirs As ImageView"; -_img_getdirs = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=10027027; - //BA.debugLineNum = 10027027;BA.debugLine="Private l_rutaInfo As Label"; -_l_rutainfo = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=10027028; - //BA.debugLineNum = 10027028;BA.debugLine="Private b_getRutaInfo As Button"; -_b_getrutainfo = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=10027029; - //BA.debugLineNum = 10027029;BA.debugLine="Private conMapa As Boolean = False"; -_conmapa = __c.False; -RDebugUtils.currentLine=10027030; - //BA.debugLineNum = 10027030;BA.debugLine="Dim listaWayPoints As List"; -_listawaypoints = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=10027031; - //BA.debugLineNum = 10027031;BA.debugLine="Dim lv1Top As String"; -_lv1top = ""; -RDebugUtils.currentLine=10027032; - //BA.debugLineNum = 10027032;BA.debugLine="Private b_limpiarRuta As Button"; -_b_limpiarruta = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=10027033; - //BA.debugLineNum = 10027033;BA.debugLine="Dim rutaGenerada As Boolean = False"; -_rutagenerada = __c.False; -RDebugUtils.currentLine=10027034; - //BA.debugLineNum = 10027034;BA.debugLine="Dim rutaacambiar As String"; -_rutaacambiar = ""; -RDebugUtils.currentLine=10027035; - //BA.debugLineNum = 10027035;BA.debugLine="End Sub"; -return ""; -} -public void _listview1_itemclick(reparto_izca.keymon.lat.c_clientes __ref,int _position,Object _value) throws Exception{ -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "listview1_itemclick", false)) - {Debug.delegate(ba, "listview1_itemclick", new Object[] {_position,_value}); return;} -ResumableSub_ListView1_ItemClick rsub = new ResumableSub_ListView1_ItemClick(this,__ref,_position,_value); +public void _listview1_itemclick(int _position,Object _value) throws Exception{ +ResumableSub_ListView1_ItemClick rsub = new ResumableSub_ListView1_ItemClick(this,_position,_value); rsub.resume(ba, null); } public static class ResumableSub_ListView1_ItemClick extends BA.ResumableSub { -public ResumableSub_ListView1_ItemClick(reparto_izca.keymon.lat.c_clientes parent,reparto_izca.keymon.lat.c_clientes __ref,int _position,Object _value) { +public ResumableSub_ListView1_ItemClick(reparto_izca.keymon.lat.c_clientes parent,int _position,Object _value) { this.parent = parent; -this.__ref = __ref; this._position = _position; this._value = _value; -this.__ref = parent; } -reparto_izca.keymon.lat.c_clientes __ref; reparto_izca.keymon.lat.c_clientes parent; int _position; Object _value; @@ -1808,7 +1387,6 @@ int groupLen45; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_clientes"; while (true) { switch (state) { @@ -1818,32 +1396,27 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=10354690; - //BA.debugLineNum = 10354690;BA.debugLine="Log(Value)"; -parent.__c.LogImpl("210354690",BA.ObjectToString(_value),0); -RDebugUtils.currentLine=10354691; - //BA.debugLineNum = 10354691;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=10354692; - //BA.debugLineNum = 10354692;BA.debugLine="Sleep(50)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_clientes", "listview1_itemclick"),(int) (50)); + //BA.debugLineNum = 129;BA.debugLine="Log(Value)"; +parent.__c.LogImpl("010616834",BA.ObjectToString(_value),0); + //BA.debugLineNum = 130;BA.debugLine="ListView1.Clear"; +parent._listview1.Clear(); + //BA.debugLineNum = 131;BA.debugLine="Sleep(50)"; +parent.__c.Sleep(ba,this,(int) (50)); this.state = 31; return; case 31: //C this.state = 1; ; -RDebugUtils.currentLine=10354693; - //BA.debugLineNum = 10354693;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; -parent._subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,parent.__c.Colors.LightGray,(int) (2)); -RDebugUtils.currentLine=10354694; - //BA.debugLineNum = 10354694;BA.debugLine="If Not(l_rutaInfo.Visible) Then"; + //BA.debugLineNum = 132;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; +parent._subs._setdivider /*String*/ (ba,parent._listview1,parent.__c.Colors.LightGray,(int) (2)); + //BA.debugLineNum = 133;BA.debugLine="If Not(l_rutaInfo.Visible) Then"; if (true) break; case 1: //if this.state = 6; -if (parent.__c.Not(__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .getVisible())) { +if (parent.__c.Not(parent._l_rutainfo.getVisible())) { this.state = 3; }else { this.state = 5; @@ -1852,150 +1425,119 @@ this.state = 5; case 3: //C this.state = 6; -RDebugUtils.currentLine=10354695; - //BA.debugLineNum = 10354695;BA.debugLine="ListView1.Top = lv1Top"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setTop((int)(Double.parseDouble(__ref._lv1top /*String*/ ))); + //BA.debugLineNum = 134;BA.debugLine="ListView1.Top = lv1Top"; +parent._listview1.setTop((int)(Double.parseDouble(parent._lv1top))); if (true) break; case 5: //C this.state = 6; -RDebugUtils.currentLine=10354697; - //BA.debugLineNum = 10354697;BA.debugLine="ListView1.Top = lv1Top + 100"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setTop((int) ((double)(Double.parseDouble(__ref._lv1top /*String*/ ))+100)); + //BA.debugLineNum = 136;BA.debugLine="ListView1.Top = lv1Top + 100"; +parent._listview1.setTop((int) ((double)(Double.parseDouble(parent._lv1top))+100)); if (true) break; case 6: //C this.state = 7; ; -RDebugUtils.currentLine=10354699; - //BA.debugLineNum = 10354699;BA.debugLine="l_rutaInfo.Visible = False"; -__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.False); -RDebugUtils.currentLine=10354700; - //BA.debugLineNum = 10354700;BA.debugLine="b_GetDirs.Visible = False"; -__ref._b_getdirs /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(parent.__c.False); -RDebugUtils.currentLine=10354701; - //BA.debugLineNum = 10354701;BA.debugLine="If entro = \"2\" Then"; + //BA.debugLineNum = 138;BA.debugLine="l_rutaInfo.Visible = False"; +parent._l_rutainfo.setVisible(parent.__c.False); + //BA.debugLineNum = 139;BA.debugLine="b_GetDirs.Visible = False"; +parent._b_getdirs.setVisible(parent.__c.False); + //BA.debugLineNum = 140;BA.debugLine="If entro = \"2\" Then"; if (true) break; case 7: //if this.state = 30; -if ((__ref._entro /*String*/ ).equals("2")) { +if ((parent._entro).equals("2")) { this.state = 9; -}else -{RDebugUtils.currentLine=10354747; - //BA.debugLineNum = 10354747;BA.debugLine="Else If entro = \"3\" Then"; -if ((__ref._entro /*String*/ ).equals("3")) { +}else if((parent._entro).equals("3")) { this.state = 29; -}} -if (true) break; +}if (true) break; case 9: //C this.state = 10; -RDebugUtils.currentLine=10354705; - //BA.debugLineNum = 10354705;BA.debugLine="Private lrt As String"; + //BA.debugLineNum = 144;BA.debugLine="Private lrt As String"; _lrt = ""; -RDebugUtils.currentLine=10354706; - //BA.debugLineNum = 10354706;BA.debugLine="lrt = Value"; + //BA.debugLineNum = 145;BA.debugLine="lrt = Value"; _lrt = BA.ObjectToString(_value); -RDebugUtils.currentLine=10354707; - //BA.debugLineNum = 10354707;BA.debugLine="laRuta = lrt.SubString(6) 'Quitamos el texto \"Ru"; -__ref._laruta /*String*/ = _lrt.substring((int) (6)); -RDebugUtils.currentLine=10354708; - //BA.debugLineNum = 10354708;BA.debugLine="Log($\"Original: ${Value} - Mod: |${lrt.SubString"; -parent.__c.LogImpl("210354708",("Original: "+parent.__c.SmartStringFormatter("",_value)+" - Mod: |"+parent.__c.SmartStringFormatter("",(Object)(_lrt.substring((int) (6))))+"| - laRuta: "+parent.__c.SmartStringFormatter("",(Object)(__ref._laruta /*String*/ ))+""),0); -RDebugUtils.currentLine=10354709; - //BA.debugLineNum = 10354709;BA.debugLine="rutaacambiar = laRuta"; -__ref._rutaacambiar /*String*/ = __ref._laruta /*String*/ ; -RDebugUtils.currentLine=10354710; - //BA.debugLineNum = 10354710;BA.debugLine="c2 = Starter.skmt.ExecQuery2(\"select CAT_CL_NOMB"; -__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where CAT_CL_RUTA = ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_NOMBRE ",new String[]{__ref._laruta /*String*/ }))); -RDebugUtils.currentLine=10354711; - //BA.debugLineNum = 10354711;BA.debugLine="Private thisLoc As Location"; + //BA.debugLineNum = 146;BA.debugLine="laRuta = lrt.SubString(6) 'Quitamos el texto \"Ru"; +parent._laruta = _lrt.substring((int) (6)); + //BA.debugLineNum = 147;BA.debugLine="Log($\"Original: ${Value} - Mod: |${lrt.SubString"; +parent.__c.LogImpl("010616852",("Original: "+parent.__c.SmartStringFormatter("",_value)+" - Mod: |"+parent.__c.SmartStringFormatter("",(Object)(_lrt.substring((int) (6))))+"| - laRuta: "+parent.__c.SmartStringFormatter("",(Object)(parent._laruta))+""),0); + //BA.debugLineNum = 148;BA.debugLine="rutaacambiar = laRuta"; +parent._rutaacambiar = parent._laruta; + //BA.debugLineNum = 149;BA.debugLine="c2 = Starter.skmt.ExecQuery2(\"select CAT_CL_NOMB"; +parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where CAT_CL_RUTA = ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_NOMBRE ",new String[]{parent._laruta}))); + //BA.debugLineNum = 150;BA.debugLine="Private thisLoc As Location"; _thisloc = new anywheresoftware.b4a.gps.LocationWrapper(); -RDebugUtils.currentLine=10354712; - //BA.debugLineNum = 10354712;BA.debugLine="Private label1 As Label"; + //BA.debugLineNum = 151;BA.debugLine="Private label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=10354713; - //BA.debugLineNum = 10354713;BA.debugLine="Private label2 As Label"; + //BA.debugLineNum = 152;BA.debugLine="Private label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=10354714; - //BA.debugLineNum = 10354714;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=10354715; - //BA.debugLineNum = 10354715;BA.debugLine="label1.TextSize = 15"; + //BA.debugLineNum = 153;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = parent._listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 154;BA.debugLine="label1.TextSize = 15"; _label1.setTextSize((float) (15)); -RDebugUtils.currentLine=10354716; - //BA.debugLineNum = 10354716;BA.debugLine="label1.TextColor = Colors.black"; + //BA.debugLineNum = 155;BA.debugLine="label1.TextColor = Colors.black"; _label1.setTextColor(parent.__c.Colors.Black); -RDebugUtils.currentLine=10354717; - //BA.debugLineNum = 10354717;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=10354718; - //BA.debugLineNum = 10354718;BA.debugLine="label2.TextSize = 15"; + //BA.debugLineNum = 156;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = parent._listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 157;BA.debugLine="label2.TextSize = 15"; _label2.setTextSize((float) (15)); -RDebugUtils.currentLine=10354719; - //BA.debugLineNum = 10354719;BA.debugLine="label2.TextColor = Colors.black"; + //BA.debugLineNum = 158;BA.debugLine="label2.TextColor = Colors.black"; _label2.setTextColor(parent.__c.Colors.Black); -RDebugUtils.currentLine=10354720; - //BA.debugLineNum = 10354720;BA.debugLine="label2.Height = 57dip"; + //BA.debugLineNum = 159;BA.debugLine="label2.Height = 57dip"; _label2.setHeight(parent.__c.DipToCurrent((int) (57))); -RDebugUtils.currentLine=10354721; - //BA.debugLineNum = 10354721;BA.debugLine="thisLoc.Initialize"; + //BA.debugLineNum = 160;BA.debugLine="thisLoc.Initialize"; _thisloc.Initialize(); -RDebugUtils.currentLine=10354722; - //BA.debugLineNum = 10354722;BA.debugLine="If entro = 2 Then ListView1.TwoLinesLayout.ItemH"; + //BA.debugLineNum = 161;BA.debugLine="If entro = 2 Then ListView1.TwoLinesLayout.ItemH"; if (true) break; case 10: //if this.state = 15; -if ((__ref._entro /*String*/ ).equals(BA.NumberToString(2))) { +if ((parent._entro).equals(BA.NumberToString(2))) { this.state = 12; ;}if (true) break; case 12: //C this.state = 15; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().setItemHeight(parent.__c.DipToCurrent((int) (90))); +parent._listview1.getTwoLinesLayout().setItemHeight(parent.__c.DipToCurrent((int) (90))); if (true) break; case 15: //C this.state = 16; ; -RDebugUtils.currentLine=10354723; - //BA.debugLineNum = 10354723;BA.debugLine="lfila.text = \"Nombre y Calle\""; -__ref._lfila /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Nombre y Calle")); -RDebugUtils.currentLine=10354724; - //BA.debugLineNum = 10354724;BA.debugLine="distOrderedMap.Initialize"; -__ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=10354725; - //BA.debugLineNum = 10354725;BA.debugLine="If c2.RowCount > 0 Then"; + //BA.debugLineNum = 162;BA.debugLine="lfila.text = \"Nombre y Calle\""; +parent._lfila.setText(BA.ObjectToCharSequence("Nombre y Calle")); + //BA.debugLineNum = 163;BA.debugLine="distOrderedMap.Initialize"; +parent._distorderedmap._initialize /*String*/ (ba); + //BA.debugLineNum = 164;BA.debugLine="If c2.RowCount > 0 Then"; if (true) break; case 16: //if this.state = 27; -if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._c2.getRowCount()>0) { this.state = 18; }if (true) break; case 18: //C this.state = 19; -RDebugUtils.currentLine=10354726; - //BA.debugLineNum = 10354726;BA.debugLine="For i = 0 To c2.RowCount -1 'Generamos mapa de"; + //BA.debugLineNum = 165;BA.debugLine="For i = 0 To c2.RowCount -1 'Generamos mapa de"; if (true) break; case 19: //for this.state = 22; step34 = 1; -limit34 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit34 = (int) (parent._c2.getRowCount()-1); _i = (int) (0) ; this.state = 32; if (true) break; @@ -2015,25 +1557,19 @@ if (true) break; case 21: //C this.state = 33; -RDebugUtils.currentLine=10354727; - //BA.debugLineNum = 10354727;BA.debugLine="c2.Position = i"; -__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=10354728; - //BA.debugLineNum = 10354728;BA.debugLine="thisLoc.Latitude = c2.GetString(\"CAT_CL_LAT\")"; -_thisloc.setLatitude((double)(Double.parseDouble(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LAT")))); -RDebugUtils.currentLine=10354729; - //BA.debugLineNum = 10354729;BA.debugLine="thisLoc.Longitude = c2.GetString(\"CAT_CL_LONG\""; -_thisloc.setLongitude((double)(Double.parseDouble(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LONG")))); -RDebugUtils.currentLine=10354731; - //BA.debugLineNum = 10354731;BA.debugLine="Private distancia As Int = Tracker.UUGCoords.D"; + //BA.debugLineNum = 166;BA.debugLine="c2.Position = i"; +parent._c2.setPosition(_i); + //BA.debugLineNum = 167;BA.debugLine="thisLoc.Latitude = c2.GetString(\"CAT_CL_LAT\")"; +_thisloc.setLatitude((double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LAT")))); + //BA.debugLineNum = 168;BA.debugLine="thisLoc.Longitude = c2.GetString(\"CAT_CL_LONG\""; +_thisloc.setLongitude((double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LONG")))); + //BA.debugLineNum = 170;BA.debugLine="Private distancia As Int = Tracker.UUGCoords.D"; _distancia = (int) (parent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .DistanceTo((android.location.Location)(_thisloc.getObject()))); -RDebugUtils.currentLine=10354732; - //BA.debugLineNum = 10354732;BA.debugLine="Private esteCliente As Map = CreateMap(\"distan"; + //BA.debugLineNum = 171;BA.debugLine="Private esteCliente As Map = CreateMap(\"distan"; _estecliente = new anywheresoftware.b4a.objects.collections.Map(); -_estecliente = parent.__c.createMap(new Object[] {(Object)("distancia"),(Object)(_distancia),(Object)("ubicacion"),(Object)(BA.NumberToString(_thisloc.getLongitude())+","+BA.NumberToString(_thisloc.getLatitude())),(Object)("codigo"),(Object)(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")),(Object)("nomDirDist"),(Object)((""+parent.__c.SmartStringFormatter("",(Object)(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")))+" CALLE: "+parent.__c.SmartStringFormatter("",(Object)(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE")))+" "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Distancia: "+parent.__c.SmartStringFormatter("1.1",(Object)((_distancia/(double)1000)))+" kms"))}); -RDebugUtils.currentLine=10354733; - //BA.debugLineNum = 10354733;BA.debugLine="distOrderedMap.Put(distancia, esteCliente)"; -__ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._put /*String*/ (null,(Object)(_distancia),(Object)(_estecliente.getObject())); +_estecliente = parent.__c.createMap(new Object[] {(Object)("distancia"),(Object)(_distancia),(Object)("ubicacion"),(Object)(BA.NumberToString(_thisloc.getLongitude())+","+BA.NumberToString(_thisloc.getLatitude())),(Object)("codigo"),(Object)(parent._c2.GetString("CAT_CL_CODIGO")),(Object)("nomDirDist"),(Object)((""+parent.__c.SmartStringFormatter("",(Object)(parent._c2.GetString("CAT_CL_NOMBRE")))+" CALLE: "+parent.__c.SmartStringFormatter("",(Object)(parent._c2.GetString("CAT_CL_CALLE")))+" "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Distancia: "+parent.__c.SmartStringFormatter("1.1",(Object)((_distancia/(double)1000)))+" kms"))}); + //BA.debugLineNum = 172;BA.debugLine="distOrderedMap.Put(distancia, esteCliente)"; +parent._distorderedmap._put /*String*/ ((Object)(_distancia),(Object)(_estecliente.getObject())); if (true) break; if (true) break; @@ -2041,23 +1577,19 @@ case 22: //C this.state = 23; ; -RDebugUtils.currentLine=10354735; - //BA.debugLineNum = 10354735;BA.debugLine="distOrderedMap.Keys.Sort(True) 'Ordenamos la ma"; -__ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null).Sort(parent.__c.True); -RDebugUtils.currentLine=10354736; - //BA.debugLineNum = 10354736;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=10354737; - //BA.debugLineNum = 10354737;BA.debugLine="Private m1 As Map"; + //BA.debugLineNum = 174;BA.debugLine="distOrderedMap.Keys.Sort(True) 'Ordenamos la ma"; +parent._distorderedmap._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().Sort(parent.__c.True); + //BA.debugLineNum = 175;BA.debugLine="ListView1.Clear"; +parent._listview1.Clear(); + //BA.debugLineNum = 176;BA.debugLine="Private m1 As Map"; _m1 = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=10354738; - //BA.debugLineNum = 10354738;BA.debugLine="For Each k As Object In distOrderedMap.Keys 'G"; + //BA.debugLineNum = 177;BA.debugLine="For Each k As Object In distOrderedMap.Keys 'G"; if (true) break; case 23: //for this.state = 26; -group45 = __ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null); +group45 = parent._distorderedmap._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (); index45 = 0; groupLen45 = group45.getSize(); this.state = 34; @@ -2080,15 +1612,12 @@ if (true) break; case 25: //C this.state = 35; -RDebugUtils.currentLine=10354739; - //BA.debugLineNum = 10354739;BA.debugLine="m1 = distOrderedMap.Get(k)"; -_m1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._distorderedmap /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,_k))); -RDebugUtils.currentLine=10354740; - //BA.debugLineNum = 10354740;BA.debugLine="m1.Get(\"codigo\")"; + //BA.debugLineNum = 178;BA.debugLine="m1 = distOrderedMap.Get(k)"; +_m1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._distorderedmap._get /*Object*/ (_k))); + //BA.debugLineNum = 179;BA.debugLine="m1.Get(\"codigo\")"; _m1.Get((Object)("codigo")); -RDebugUtils.currentLine=10354742; - //BA.debugLineNum = 10354742;BA.debugLine="ListView1.AddTwoLines(m1.Get(\"codigo\"), m1.Get"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(_m1.Get((Object)("codigo"))),BA.ObjectToCharSequence(_m1.Get((Object)("nomDirDist")))); + //BA.debugLineNum = 181;BA.debugLine="ListView1.AddTwoLines(m1.Get(\"codigo\"), m1.Get"; +parent._listview1.AddTwoLines(BA.ObjectToCharSequence(_m1.Get((Object)("codigo"))),BA.ObjectToCharSequence(_m1.Get((Object)("nomDirDist")))); if (true) break; if (true) break; @@ -2102,25 +1631,20 @@ case 27: //C this.state = 30; ; -RDebugUtils.currentLine=10354745; - //BA.debugLineNum = 10354745;BA.debugLine="c2.Close"; -__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=10354746; - //BA.debugLineNum = 10354746;BA.debugLine="entro = \"3\""; -__ref._entro /*String*/ = "3"; + //BA.debugLineNum = 184;BA.debugLine="c2.Close"; +parent._c2.Close(); + //BA.debugLineNum = 185;BA.debugLine="entro = \"3\""; +parent._entro = "3"; if (true) break; case 29: //C this.state = 30; -RDebugUtils.currentLine=10354749; - //BA.debugLineNum = 10354749;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; + //BA.debugLineNum = 188;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); -RDebugUtils.currentLine=10354750; - //BA.debugLineNum = 10354750;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA"; + //BA.debugLineNum = 189;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA"; parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_value})); -RDebugUtils.currentLine=10354751; - //BA.debugLineNum = 10354751;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; + //BA.debugLineNum = 190;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; parent._b4xpages._showpage /*String*/ (ba,"Cliente"); if (true) break; @@ -2128,29 +1652,62 @@ case 30: //C this.state = -1; ; -RDebugUtils.currentLine=10354753; - //BA.debugLineNum = 10354753;BA.debugLine="End Sub"; + //BA.debugLineNum = 192;BA.debugLine="End Sub"; if (true) break; } } } } -public void _traerutadia(reparto_izca.keymon.lat.c_clientes __ref,reparto_izca.keymon.lat.b4xorderedmap _avisitar) throws Exception{ -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "traerutadia", false)) - {Debug.delegate(ba, "traerutadia", new Object[] {_avisitar}); return;} -ResumableSub_traeRutaDia rsub = new ResumableSub_traeRutaDia(this,__ref,_avisitar); +public anywheresoftware.b4a.objects.collections.List _todosavisitar() throws Exception{ +String _sqlderuta = ""; +anywheresoftware.b4a.objects.collections.List _avisitar = null; +anywheresoftware.b4a.objects.collections.List _tmplist = null; +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _coords = null; + //BA.debugLineNum = 666;BA.debugLine="Sub todosAVisitar As List"; + //BA.debugLineNum = 667;BA.debugLine="Log(laRuta)"; +__c.LogImpl("011403265",_laruta,0); + //BA.debugLineNum = 668;BA.debugLine="Log(entro)"; +__c.LogImpl("011403266",_entro,0); + //BA.debugLineNum = 669;BA.debugLine="Private sqlDeRuta As String = \"\""; +_sqlderuta = ""; + //BA.debugLineNum = 670;BA.debugLine="If entro = 3 Then sqlDeRuta = $\"and CAT_CL_RUTA ="; +if ((_entro).equals(BA.NumberToString(3))) { +_sqlderuta = ("and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(_laruta))+"'");}; + //BA.debugLineNum = 671;BA.debugLine="Private aVisitar, tmpList As List"; +_avisitar = new anywheresoftware.b4a.objects.collections.List(); +_tmplist = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 672;BA.debugLine="aVisitar.Initialize"; +_avisitar.Initialize(); + //BA.debugLineNum = 673;BA.debugLine="Private coords As ResultSet = Starter.skmt.ExecQu"; +_coords = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); +_coords = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 "+__c.SmartStringFormatter("",(Object)(_sqlderuta))+"")))); + //BA.debugLineNum = 674;BA.debugLine="Do While coords.NextRow"; +while (_coords.NextRow()) { + //BA.debugLineNum = 675;BA.debugLine="tmpList.Initialize"; +_tmplist.Initialize(); + //BA.debugLineNum = 676;BA.debugLine="tmpList.AddAll(Array As String(coords.GetString("; +_tmplist.AddAll(anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_coords.GetString("CAT_CL_CODIGO"),_coords.GetString("CAT_CL_LONG"),_coords.GetString("CAT_CL_LAT")})); + //BA.debugLineNum = 677;BA.debugLine="aVisitar.Add(tmpList)"; +_avisitar.Add((Object)(_tmplist.getObject())); + } +; + //BA.debugLineNum = 679;BA.debugLine="Log(aVisitar)"; +__c.LogImpl("011403277",BA.ObjectToString(_avisitar),0); + //BA.debugLineNum = 680;BA.debugLine="Return aVisitar"; +if (true) return _avisitar; + //BA.debugLineNum = 681;BA.debugLine="End Sub"; +return null; +} +public void _traerutadia(reparto_izca.keymon.lat.b4xorderedmap _avisitar) throws Exception{ +ResumableSub_traeRutaDia rsub = new ResumableSub_traeRutaDia(this,_avisitar); rsub.resume(ba, null); } public static class ResumableSub_traeRutaDia extends BA.ResumableSub { -public ResumableSub_traeRutaDia(reparto_izca.keymon.lat.c_clientes parent,reparto_izca.keymon.lat.c_clientes __ref,reparto_izca.keymon.lat.b4xorderedmap _avisitar) { +public ResumableSub_traeRutaDia(reparto_izca.keymon.lat.c_clientes parent,reparto_izca.keymon.lat.b4xorderedmap _avisitar) { this.parent = parent; -this.__ref = __ref; this._avisitar = _avisitar; -this.__ref = parent; } -reparto_izca.keymon.lat.c_clientes __ref; reparto_izca.keymon.lat.c_clientes parent; reparto_izca.keymon.lat.b4xorderedmap _avisitar; String _coordsinicio = ""; @@ -2204,7 +1761,6 @@ int limit135; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_clientes"; while (true) { switch (state) { @@ -2214,64 +1770,49 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=10682369; - //BA.debugLineNum = 10682369;BA.debugLine="Private coordsInicio As String = $\"${Starter.cedi"; + //BA.debugLineNum = 301;BA.debugLine="Private coordsInicio As String = $\"${Starter.cedi"; _coordsinicio = (""+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+""); -RDebugUtils.currentLine=10682370; - //BA.debugLineNum = 10682370;BA.debugLine="Log($\"Coordenadas de inicio: ${Starter.cedisLocat"; -parent.__c.LogImpl("210682370",("Coordenadas de inicio: "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+""),0); -RDebugUtils.currentLine=10682371; - //BA.debugLineNum = 10682371;BA.debugLine="Private rutaCompleta As String = coordsInicio"; + //BA.debugLineNum = 302;BA.debugLine="Log($\"Coordenadas de inicio: ${Starter.cedisLocat"; +parent.__c.LogImpl("010944514",("Coordenadas de inicio: "+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLongitude()))+","+parent.__c.SmartStringFormatter("",(Object)(parent._starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .getLatitude()))+""),0); + //BA.debugLineNum = 303;BA.debugLine="Private rutaCompleta As String = coordsInicio"; _rutacompleta = _coordsinicio; -RDebugUtils.currentLine=10682372; - //BA.debugLineNum = 10682372;BA.debugLine="Private preRuta As String = coordsInicio"; + //BA.debugLineNum = 304;BA.debugLine="Private preRuta As String = coordsInicio"; _preruta = _coordsinicio; -RDebugUtils.currentLine=10682373; - //BA.debugLineNum = 10682373;BA.debugLine="Private distanciaTotal, distanciaTotal0, tiempo0,"; + //BA.debugLineNum = 305;BA.debugLine="Private distanciaTotal, distanciaTotal0, tiempo0,"; _distanciatotal = 0; _distanciatotal0 = 0; _tiempo0 = 0; _tiempo = 0; -RDebugUtils.currentLine=10682374; - //BA.debugLineNum = 10682374;BA.debugLine="Private masDe100 As Boolean"; + //BA.debugLineNum = 306;BA.debugLine="Private masDe100 As Boolean"; _masde100 = false; -RDebugUtils.currentLine=10682375; - //BA.debugLineNum = 10682375;BA.debugLine="Private m4 As Map"; + //BA.debugLineNum = 307;BA.debugLine="Private m4 As Map"; _m4 = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=10682376; - //BA.debugLineNum = 10682376;BA.debugLine="Private visitaActual As Int = 0"; + //BA.debugLineNum = 308;BA.debugLine="Private visitaActual As Int = 0"; _visitaactual = (int) (0); -RDebugUtils.currentLine=10682377; - //BA.debugLineNum = 10682377;BA.debugLine="Private cuantosAntes As Int = 0"; + //BA.debugLineNum = 309;BA.debugLine="Private cuantosAntes As Int = 0"; _cuantosantes = (int) (0); -RDebugUtils.currentLine=10682378; - //BA.debugLineNum = 10682378;BA.debugLine="listaWayPoints.Initialize"; -__ref._listawaypoints /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=10682379; - //BA.debugLineNum = 10682379;BA.debugLine="If aVisitar.Keys.Size > 98 Then 'Si los clientes"; + //BA.debugLineNum = 310;BA.debugLine="listaWayPoints.Initialize"; +parent._listawaypoints.Initialize(); + //BA.debugLineNum = 311;BA.debugLine="If aVisitar.Keys.Size > 98 Then 'Si los clientes"; if (true) break; case 1: //if this.state = 4; -if (_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null).getSize()>98) { +if (_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().getSize()>98) { this.state = 3; }if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=10682380; - //BA.debugLineNum = 10682380;BA.debugLine="cuantosAntes = aVisitar.Keys.Size - 98 'Definimo"; -_cuantosantes = (int) (_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null).getSize()-98); -RDebugUtils.currentLine=10682381; - //BA.debugLineNum = 10682381;BA.debugLine="preRuta = coordsInicio 'Ponemos las coordenadas"; + //BA.debugLineNum = 312;BA.debugLine="cuantosAntes = aVisitar.Keys.Size - 98 'Definimo"; +_cuantosantes = (int) (_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().getSize()-98); + //BA.debugLineNum = 313;BA.debugLine="preRuta = coordsInicio 'Ponemos las coordenadas"; _preruta = _coordsinicio; -RDebugUtils.currentLine=10682382; - //BA.debugLineNum = 10682382;BA.debugLine="rutaCompleta = \"\""; + //BA.debugLineNum = 314;BA.debugLine="rutaCompleta = \"\""; _rutacompleta = ""; -RDebugUtils.currentLine=10682383; - //BA.debugLineNum = 10682383;BA.debugLine="masDe100 = True"; + //BA.debugLineNum = 315;BA.debugLine="masDe100 = True"; _masde100 = parent.__c.True; if (true) break; @@ -2279,17 +1820,15 @@ case 4: //C this.state = 5; ; -RDebugUtils.currentLine=10682385; - //BA.debugLineNum = 10682385;BA.debugLine="Log($\"a visitar: ${aVisitar.Keys.Size}\"$)"; -parent.__c.LogImpl("210682385",("a visitar: "+parent.__c.SmartStringFormatter("",(Object)(_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null).getSize()))+""),0); -RDebugUtils.currentLine=10682386; - //BA.debugLineNum = 10682386;BA.debugLine="For Each k As Object In aVisitar.Keys"; + //BA.debugLineNum = 317;BA.debugLine="Log($\"a visitar: ${aVisitar.Keys.Size}\"$)"; +parent.__c.LogImpl("010944529",("a visitar: "+parent.__c.SmartStringFormatter("",(Object)(_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().getSize()))+""),0); + //BA.debugLineNum = 318;BA.debugLine="For Each k As Object In aVisitar.Keys"; if (true) break; case 5: //for this.state = 15; -group18 = _avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null); +group18 = _avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (); index18 = 0; groupLen18 = group18.getSize(); this.state = 70; @@ -2312,14 +1851,11 @@ if (true) break; case 7: //C this.state = 8; -RDebugUtils.currentLine=10682387; - //BA.debugLineNum = 10682387;BA.debugLine="visitaActual = visitaActual + 1"; + //BA.debugLineNum = 319;BA.debugLine="visitaActual = visitaActual + 1"; _visitaactual = (int) (_visitaactual+1); -RDebugUtils.currentLine=10682388; - //BA.debugLineNum = 10682388;BA.debugLine="m4 = aVisitar.Get(k)"; -_m4 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_avisitar._get /*Object*/ (null,_k))); -RDebugUtils.currentLine=10682390; - //BA.debugLineNum = 10682390;BA.debugLine="If visitaActual < cuantosAntes + 2 Then 'Si esta"; + //BA.debugLineNum = 320;BA.debugLine="m4 = aVisitar.Get(k)"; +_m4 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_avisitar._get /*Object*/ (_k))); + //BA.debugLineNum = 322;BA.debugLine="If visitaActual < cuantosAntes + 2 Then 'Si esta"; if (true) break; case 8: @@ -2332,13 +1868,11 @@ this.state = 10; case 10: //C this.state = 11; -RDebugUtils.currentLine=10682391; - //BA.debugLineNum = 10682391;BA.debugLine="preRuta = preRuta & \";\" & m4.Get(\"coords\")"; + //BA.debugLineNum = 323;BA.debugLine="preRuta = preRuta & \";\" & m4.Get(\"coords\")"; _preruta = _preruta+";"+BA.ObjectToString(_m4.Get((Object)("coords"))); if (true) break; ; -RDebugUtils.currentLine=10682394; - //BA.debugLineNum = 10682394;BA.debugLine="If visitaActual >= cuantosAntes + 2 Then 'Si est"; + //BA.debugLineNum = 326;BA.debugLine="If visitaActual >= cuantosAntes + 2 Then 'Si est"; case 11: //if @@ -2350,8 +1884,7 @@ this.state = 13; case 13: //C this.state = 14; -RDebugUtils.currentLine=10682395; - //BA.debugLineNum = 10682395;BA.debugLine="rutaCompleta = rutaCompleta & \";\" & m4.Get(\"coo"; + //BA.debugLineNum = 327;BA.debugLine="rutaCompleta = rutaCompleta & \";\" & m4.Get(\"coo"; _rutacompleta = _rutacompleta+";"+BA.ObjectToString(_m4.Get((Object)("coords"))); if (true) break; @@ -2366,11 +1899,9 @@ case 15: //C this.state = 16; ; -RDebugUtils.currentLine=10682399; - //BA.debugLineNum = 10682399;BA.debugLine="rutaCompleta = rutaCompleta & \";\" & coordsInicio"; + //BA.debugLineNum = 331;BA.debugLine="rutaCompleta = rutaCompleta & \";\" & coordsInicio"; _rutacompleta = _rutacompleta+";"+_coordsinicio; -RDebugUtils.currentLine=10682401; - //BA.debugLineNum = 10682401;BA.debugLine="If rutaCompleta.StartsWith(\";\") Then rutaCompleta"; + //BA.debugLineNum = 333;BA.debugLine="If rutaCompleta.StartsWith(\";\") Then rutaCompleta"; if (true) break; case 16: @@ -2390,23 +1921,17 @@ case 21: //C this.state = 22; ; -RDebugUtils.currentLine=10682404; - //BA.debugLineNum = 10682404;BA.debugLine="ProgressDialogShow2(\"Calculando distancia y tiemp"; + //BA.debugLineNum = 336;BA.debugLine="ProgressDialogShow2(\"Calculando distancia y tiemp"; parent.__c.ProgressDialogShow2(ba,BA.ObjectToCharSequence("Calculando distancia y tiempo, un momento por favor."),parent.__c.False); -RDebugUtils.currentLine=10682405; - //BA.debugLineNum = 10682405;BA.debugLine="Private tiempoVisitas As Double 'TIMEPO DE 4 MINU"; + //BA.debugLineNum = 337;BA.debugLine="Private tiempoVisitas As Double 'TIMEPO DE 4 MINU"; _tiempovisitas = 0; -RDebugUtils.currentLine=10682406; - //BA.debugLineNum = 10682406;BA.debugLine="tiempoVisitas = aVisitar.Keys.Size * 4 * 60 'Aqui"; -_tiempovisitas = _avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null).getSize()*4*60; -RDebugUtils.currentLine=10682407; - //BA.debugLineNum = 10682407;BA.debugLine="tiempo0 = 0"; + //BA.debugLineNum = 338;BA.debugLine="tiempoVisitas = aVisitar.Keys.Size * 4 * 60 'Aqui"; +_tiempovisitas = _avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().getSize()*4*60; + //BA.debugLineNum = 339;BA.debugLine="tiempo0 = 0"; _tiempo0 = 0; -RDebugUtils.currentLine=10682408; - //BA.debugLineNum = 10682408;BA.debugLine="distanciaTotal0 = 0"; + //BA.debugLineNum = 340;BA.debugLine="distanciaTotal0 = 0"; _distanciatotal0 = 0; -RDebugUtils.currentLine=10682409; - //BA.debugLineNum = 10682409;BA.debugLine="If masDe100 Then 'Si son mas de 100, entonces pri"; + //BA.debugLineNum = 341;BA.debugLine="If masDe100 Then 'Si son mas de 100, entonces pri"; if (true) break; case 22: @@ -2419,27 +1944,22 @@ this.state = 24; case 24: //C this.state = 25; -RDebugUtils.currentLine=10682410; - //BA.debugLineNum = 10682410;BA.debugLine="Dim j0 As HttpJob"; + //BA.debugLineNum = 342;BA.debugLine="Dim j0 As HttpJob"; _j0 = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=10682411; - //BA.debugLineNum = 10682411;BA.debugLine="j0.Initialize(\"trip0\", Me)"; -_j0._initialize /*String*/ (null,ba,"trip0",parent); -RDebugUtils.currentLine=10682412; - //BA.debugLineNum = 10682412;BA.debugLine="j0.Download(\"https://router.project-osrm.org/tri"; -_j0._download /*String*/ (null,"https://router.project-osrm.org/trip/v1/driving/"+_preruta+"?source=first&destination=last&roundtrip=false&geometries=geojson"); -RDebugUtils.currentLine=10682414; - //BA.debugLineNum = 10682414;BA.debugLine="Wait For (j0) JobDone(j0 As HttpJob)"; -parent.__c.WaitFor("jobdone", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_clientes", "traerutadia"), (Object)(_j0)); + //BA.debugLineNum = 343;BA.debugLine="j0.Initialize(\"trip0\", Me)"; +_j0._initialize /*String*/ (ba,"trip0",parent); + //BA.debugLineNum = 344;BA.debugLine="j0.Download(\"https://router.project-osrm.org/tri"; +_j0._download /*String*/ ("https://router.project-osrm.org/trip/v1/driving/"+_preruta+"?source=first&destination=last&roundtrip=false&geometries=geojson"); + //BA.debugLineNum = 346;BA.debugLine="Wait For (j0) JobDone(j0 As HttpJob)"; +parent.__c.WaitFor("jobdone", ba, this, (Object)(_j0)); this.state = 72; return; case 72: //C this.state = 25; -_j0 = (reparto_izca.keymon.lat.httpjob) result[1]; +_j0 = (reparto_izca.keymon.lat.httpjob) result[0]; ; -RDebugUtils.currentLine=10682415; - //BA.debugLineNum = 10682415;BA.debugLine="If j0.Success Then"; + //BA.debugLineNum = 347;BA.debugLine="If j0.Success Then"; if (true) break; case 25: @@ -2454,18 +1974,14 @@ this.state = 37; case 27: //C this.state = 28; -RDebugUtils.currentLine=10682416; - //BA.debugLineNum = 10682416;BA.debugLine="Dim jp0 As JSONParser"; + //BA.debugLineNum = 348;BA.debugLine="Dim jp0 As JSONParser"; _jp0 = new anywheresoftware.b4a.objects.collections.JSONParser(); -RDebugUtils.currentLine=10682417; - //BA.debugLineNum = 10682417;BA.debugLine="jp0.Initialize(j0.GetString)"; -_jp0.Initialize(_j0._getstring /*String*/ (null)); -RDebugUtils.currentLine=10682418; - //BA.debugLineNum = 10682418;BA.debugLine="Dim m0 As Map = jp0.NextObject"; + //BA.debugLineNum = 349;BA.debugLine="jp0.Initialize(j0.GetString)"; +_jp0.Initialize(_j0._getstring /*String*/ ()); + //BA.debugLineNum = 350;BA.debugLine="Dim m0 As Map = jp0.NextObject"; _m0 = new anywheresoftware.b4a.objects.collections.Map(); _m0 = _jp0.NextObject(); -RDebugUtils.currentLine=10682419; - //BA.debugLineNum = 10682419;BA.debugLine="If m0.Get(\"code\") = \"Ok\" Then"; + //BA.debugLineNum = 351;BA.debugLine="If m0.Get(\"code\") = \"Ok\" Then"; if (true) break; case 28: @@ -2478,15 +1994,12 @@ this.state = 30; case 30: //C this.state = 31; -RDebugUtils.currentLine=10682420; - //BA.debugLineNum = 10682420;BA.debugLine="Dim puntos0 As List = m0.Get(\"waypoints\")"; + //BA.debugLineNum = 352;BA.debugLine="Dim puntos0 As List = m0.Get(\"waypoints\")"; _puntos0 = new anywheresoftware.b4a.objects.collections.List(); _puntos0 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m0.Get((Object)("waypoints")))); -RDebugUtils.currentLine=10682421; - //BA.debugLineNum = 10682421;BA.debugLine="Private esteWayPoint0 As Map"; + //BA.debugLineNum = 353;BA.debugLine="Private esteWayPoint0 As Map"; _estewaypoint0 = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=10682422; - //BA.debugLineNum = 10682422;BA.debugLine="For p = 0 To puntos0.Size -1"; + //BA.debugLineNum = 354;BA.debugLine="For p = 0 To puntos0.Size -1"; if (true) break; case 31: @@ -2513,21 +2026,16 @@ if (true) break; case 33: //C this.state = 74; -RDebugUtils.currentLine=10682423; - //BA.debugLineNum = 10682423;BA.debugLine="esteWayPoint0 = puntos0.Get(p)"; + //BA.debugLineNum = 355;BA.debugLine="esteWayPoint0 = puntos0.Get(p)"; _estewaypoint0 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_puntos0.Get(_p))); -RDebugUtils.currentLine=10682426; - //BA.debugLineNum = 10682426;BA.debugLine="esteWayPoint0.Remove(\"hint\")"; + //BA.debugLineNum = 358;BA.debugLine="esteWayPoint0.Remove(\"hint\")"; _estewaypoint0.Remove((Object)("hint")); -RDebugUtils.currentLine=10682427; - //BA.debugLineNum = 10682427;BA.debugLine="esteWayPoint0.Remove(\"distance\")"; + //BA.debugLineNum = 359;BA.debugLine="esteWayPoint0.Remove(\"distance\")"; _estewaypoint0.Remove((Object)("distance")); -RDebugUtils.currentLine=10682428; - //BA.debugLineNum = 10682428;BA.debugLine="esteWayPoint0.Remove(\"trips_index\")"; + //BA.debugLineNum = 360;BA.debugLine="esteWayPoint0.Remove(\"trips_index\")"; _estewaypoint0.Remove((Object)("trips_index")); -RDebugUtils.currentLine=10682429; - //BA.debugLineNum = 10682429;BA.debugLine="listaWayPoints.Add(esteWayPoint0)"; -__ref._listawaypoints /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_estewaypoint0.getObject())); + //BA.debugLineNum = 361;BA.debugLine="listaWayPoints.Add(esteWayPoint0)"; +parent._listawaypoints.Add((Object)(_estewaypoint0.getObject())); if (true) break; if (true) break; @@ -2535,26 +2043,20 @@ case 34: //C this.state = 35; ; -RDebugUtils.currentLine=10682432; - //BA.debugLineNum = 10682432;BA.debugLine="Dim rutas0 As List = m0.Get(\"trips\")"; + //BA.debugLineNum = 364;BA.debugLine="Dim rutas0 As List = m0.Get(\"trips\")"; _rutas0 = new anywheresoftware.b4a.objects.collections.List(); _rutas0 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m0.Get((Object)("trips")))); -RDebugUtils.currentLine=10682433; - //BA.debugLineNum = 10682433;BA.debugLine="Dim rutas20 As Map = rutas0.Get(0)"; + //BA.debugLineNum = 365;BA.debugLine="Dim rutas20 As Map = rutas0.Get(0)"; _rutas20 = new anywheresoftware.b4a.objects.collections.Map(); _rutas20 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_rutas0.Get((int) (0)))); -RDebugUtils.currentLine=10682436; - //BA.debugLineNum = 10682436;BA.debugLine="distanciaTotal0 = rutas20.Get(\"distance\")"; + //BA.debugLineNum = 368;BA.debugLine="distanciaTotal0 = rutas20.Get(\"distance\")"; _distanciatotal0 = (double)(BA.ObjectToNumber(_rutas20.Get((Object)("distance")))); -RDebugUtils.currentLine=10682437; - //BA.debugLineNum = 10682437;BA.debugLine="tiempo0 = rutas20.Get(\"duration\")"; + //BA.debugLineNum = 369;BA.debugLine="tiempo0 = rutas20.Get(\"duration\")"; _tiempo0 = (double)(BA.ObjectToNumber(_rutas20.Get((Object)("duration")))); -RDebugUtils.currentLine=10682438; - //BA.debugLineNum = 10682438;BA.debugLine="tiempo0 = ((tiempo0 * 2) ) 'Tiempo X 2 (es muy"; + //BA.debugLineNum = 370;BA.debugLine="tiempo0 = ((tiempo0 * 2) ) 'Tiempo X 2 (es muy"; _tiempo0 = ((_tiempo0*2)); -RDebugUtils.currentLine=10682439; - //BA.debugLineNum = 10682439;BA.debugLine="Log($\"Distancia total ruta inicial: $1.1{dista"; -parent.__c.LogImpl("210682439",("Distancia total ruta inicial: "+parent.__c.SmartStringFormatter("1.1",(Object)(_distanciatotal0/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo0/(double)60))+" mins. ("+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo0/(double)60/(double)60))+" hrs)"),0); + //BA.debugLineNum = 371;BA.debugLine="Log($\"Distancia total ruta inicial: $1.1{dista"; +parent.__c.LogImpl("010944583",("Distancia total ruta inicial: "+parent.__c.SmartStringFormatter("1.1",(Object)(_distanciatotal0/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo0/(double)60))+" mins. ("+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo0/(double)60/(double)60))+" hrs)"),0); if (true) break; case 35: @@ -2566,45 +2068,38 @@ this.state = 38; case 37: //C this.state = 38; -RDebugUtils.currentLine=10682443; - //BA.debugLineNum = 10682443;BA.debugLine="Log(\"Error!\")"; -parent.__c.LogImpl("210682443","Error!",0); + //BA.debugLineNum = 375;BA.debugLine="Log(\"Error!\")"; +parent.__c.LogImpl("010944587","Error!",0); if (true) break; case 38: //C this.state = 39; ; -RDebugUtils.currentLine=10682445; - //BA.debugLineNum = 10682445;BA.debugLine="j0.Release"; -_j0._release /*String*/ (null); + //BA.debugLineNum = 377;BA.debugLine="j0.Release"; +_j0._release /*String*/ (); if (true) break; case 39: //C this.state = 40; ; -RDebugUtils.currentLine=10682448; - //BA.debugLineNum = 10682448;BA.debugLine="Dim j As HttpJob"; + //BA.debugLineNum = 380;BA.debugLine="Dim j As HttpJob"; _j = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=10682449; - //BA.debugLineNum = 10682449;BA.debugLine="j.Initialize(\"trip\", Me) 'Calculamos el resto de"; -_j._initialize /*String*/ (null,ba,"trip",parent); -RDebugUtils.currentLine=10682450; - //BA.debugLineNum = 10682450;BA.debugLine="j.Download(\"https://router.project-osrm.org/trip/"; -_j._download /*String*/ (null,"https://router.project-osrm.org/trip/v1/driving/"+_rutacompleta+"?source=first&destination=last&roundtrip=false&geometries=geojson"); -RDebugUtils.currentLine=10682452; - //BA.debugLineNum = 10682452;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; -parent.__c.WaitFor("jobdone", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_clientes", "traerutadia"), (Object)(_j)); + //BA.debugLineNum = 381;BA.debugLine="j.Initialize(\"trip\", Me) 'Calculamos el resto de"; +_j._initialize /*String*/ (ba,"trip",parent); + //BA.debugLineNum = 382;BA.debugLine="j.Download(\"https://router.project-osrm.org/trip/"; +_j._download /*String*/ ("https://router.project-osrm.org/trip/v1/driving/"+_rutacompleta+"?source=first&destination=last&roundtrip=false&geometries=geojson"); + //BA.debugLineNum = 384;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; +parent.__c.WaitFor("jobdone", ba, this, (Object)(_j)); this.state = 75; return; case 75: //C this.state = 40; -_j = (reparto_izca.keymon.lat.httpjob) result[1]; +_j = (reparto_izca.keymon.lat.httpjob) result[0]; ; -RDebugUtils.currentLine=10682453; - //BA.debugLineNum = 10682453;BA.debugLine="If j.Success Then"; + //BA.debugLineNum = 385;BA.debugLine="If j.Success Then"; if (true) break; case 40: @@ -2619,18 +2114,14 @@ this.state = 52; case 42: //C this.state = 43; -RDebugUtils.currentLine=10682454; - //BA.debugLineNum = 10682454;BA.debugLine="Dim jp As JSONParser"; + //BA.debugLineNum = 386;BA.debugLine="Dim jp As JSONParser"; _jp = new anywheresoftware.b4a.objects.collections.JSONParser(); -RDebugUtils.currentLine=10682455; - //BA.debugLineNum = 10682455;BA.debugLine="jp.Initialize(j.GetString)"; -_jp.Initialize(_j._getstring /*String*/ (null)); -RDebugUtils.currentLine=10682456; - //BA.debugLineNum = 10682456;BA.debugLine="Dim m As Map = jp.NextObject"; + //BA.debugLineNum = 387;BA.debugLine="jp.Initialize(j.GetString)"; +_jp.Initialize(_j._getstring /*String*/ ()); + //BA.debugLineNum = 388;BA.debugLine="Dim m As Map = jp.NextObject"; _m = new anywheresoftware.b4a.objects.collections.Map(); _m = _jp.NextObject(); -RDebugUtils.currentLine=10682457; - //BA.debugLineNum = 10682457;BA.debugLine="If m.Get(\"code\") = \"Ok\" Then"; + //BA.debugLineNum = 389;BA.debugLine="If m.Get(\"code\") = \"Ok\" Then"; if (true) break; case 43: @@ -2643,18 +2134,14 @@ this.state = 45; case 45: //C this.state = 46; -RDebugUtils.currentLine=10682458; - //BA.debugLineNum = 10682458;BA.debugLine="Dim puntos As List = m.Get(\"waypoints\")"; + //BA.debugLineNum = 390;BA.debugLine="Dim puntos As List = m.Get(\"waypoints\")"; _puntos = new anywheresoftware.b4a.objects.collections.List(); _puntos = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m.Get((Object)("waypoints")))); -RDebugUtils.currentLine=10682459; - //BA.debugLineNum = 10682459;BA.debugLine="Private esteWayPoint As Map"; + //BA.debugLineNum = 391;BA.debugLine="Private esteWayPoint As Map"; _estewaypoint = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=10682460; - //BA.debugLineNum = 10682460;BA.debugLine="Dim twpi As Int"; + //BA.debugLineNum = 392;BA.debugLine="Dim twpi As Int"; _twpi = 0; -RDebugUtils.currentLine=10682461; - //BA.debugLineNum = 10682461;BA.debugLine="For p = 0 To puntos.Size -1"; + //BA.debugLineNum = 393;BA.debugLine="For p = 0 To puntos.Size -1"; if (true) break; case 46: @@ -2681,30 +2168,22 @@ if (true) break; case 48: //C this.state = 77; -RDebugUtils.currentLine=10682462; - //BA.debugLineNum = 10682462;BA.debugLine="esteWayPoint = puntos.Get(p)"; + //BA.debugLineNum = 394;BA.debugLine="esteWayPoint = puntos.Get(p)"; _estewaypoint = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_puntos.Get(_p))); -RDebugUtils.currentLine=10682465; - //BA.debugLineNum = 10682465;BA.debugLine="esteWayPoint.Remove(\"hint\")"; + //BA.debugLineNum = 397;BA.debugLine="esteWayPoint.Remove(\"hint\")"; _estewaypoint.Remove((Object)("hint")); -RDebugUtils.currentLine=10682466; - //BA.debugLineNum = 10682466;BA.debugLine="esteWayPoint.Remove(\"distance\")"; + //BA.debugLineNum = 398;BA.debugLine="esteWayPoint.Remove(\"distance\")"; _estewaypoint.Remove((Object)("distance")); -RDebugUtils.currentLine=10682467; - //BA.debugLineNum = 10682467;BA.debugLine="esteWayPoint.Remove(\"trips_index\")"; + //BA.debugLineNum = 399;BA.debugLine="esteWayPoint.Remove(\"trips_index\")"; _estewaypoint.Remove((Object)("trips_index")); -RDebugUtils.currentLine=10682468; - //BA.debugLineNum = 10682468;BA.debugLine="twpi = esteWayPoint.Get(\"waypoint_index\")"; + //BA.debugLineNum = 400;BA.debugLine="twpi = esteWayPoint.Get(\"waypoint_index\")"; _twpi = (int)(BA.ObjectToNumber(_estewaypoint.Get((Object)("waypoint_index")))); -RDebugUtils.currentLine=10682469; - //BA.debugLineNum = 10682469;BA.debugLine="esteWayPoint.Remove(\"waypoint_index\")"; + //BA.debugLineNum = 401;BA.debugLine="esteWayPoint.Remove(\"waypoint_index\")"; _estewaypoint.Remove((Object)("waypoint_index")); -RDebugUtils.currentLine=10682470; - //BA.debugLineNum = 10682470;BA.debugLine="esteWayPoint.Put(\"waypoint_index\", (twpi + cua"; + //BA.debugLineNum = 402;BA.debugLine="esteWayPoint.Put(\"waypoint_index\", (twpi + cua"; _estewaypoint.Put((Object)("waypoint_index"),(Object)((_twpi+_cuantosantes+2))); -RDebugUtils.currentLine=10682471; - //BA.debugLineNum = 10682471;BA.debugLine="listaWayPoints.Add(esteWayPoint)"; -__ref._listawaypoints /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_estewaypoint.getObject())); + //BA.debugLineNum = 403;BA.debugLine="listaWayPoints.Add(esteWayPoint)"; +parent._listawaypoints.Add((Object)(_estewaypoint.getObject())); if (true) break; if (true) break; @@ -2712,50 +2191,36 @@ case 49: //C this.state = 50; ; -RDebugUtils.currentLine=10682474; - //BA.debugLineNum = 10682474;BA.debugLine="Dim rutas As List = m.Get(\"trips\")"; + //BA.debugLineNum = 406;BA.debugLine="Dim rutas As List = m.Get(\"trips\")"; _rutas = new anywheresoftware.b4a.objects.collections.List(); _rutas = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_m.Get((Object)("trips")))); -RDebugUtils.currentLine=10682475; - //BA.debugLineNum = 10682475;BA.debugLine="Dim rutas2 As Map = rutas.Get(0)"; + //BA.debugLineNum = 407;BA.debugLine="Dim rutas2 As Map = rutas.Get(0)"; _rutas2 = new anywheresoftware.b4a.objects.collections.Map(); _rutas2 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_rutas.Get((int) (0)))); -RDebugUtils.currentLine=10682476; - //BA.debugLineNum = 10682476;BA.debugLine="distanciaTotal = rutas2.Get(\"distance\")"; + //BA.debugLineNum = 408;BA.debugLine="distanciaTotal = rutas2.Get(\"distance\")"; _distanciatotal = (double)(BA.ObjectToNumber(_rutas2.Get((Object)("distance")))); -RDebugUtils.currentLine=10682477; - //BA.debugLineNum = 10682477;BA.debugLine="Log(\"distancia ruta 2:\" & (distanciaTotal) & \"|"; -parent.__c.LogImpl("210682477","distancia ruta 2:"+BA.NumberToString((_distanciatotal))+"|"+BA.ObjectToString(_rutas2.Get((Object)("distance"))),0); -RDebugUtils.currentLine=10682478; - //BA.debugLineNum = 10682478;BA.debugLine="distanciaTotal = distanciaTotal + distanciaTota"; + //BA.debugLineNum = 409;BA.debugLine="Log(\"distancia ruta 2:\" & (distanciaTotal) & \"|"; +parent.__c.LogImpl("010944621","distancia ruta 2:"+BA.NumberToString((_distanciatotal))+"|"+BA.ObjectToString(_rutas2.Get((Object)("distance"))),0); + //BA.debugLineNum = 410;BA.debugLine="distanciaTotal = distanciaTotal + distanciaTota"; _distanciatotal = _distanciatotal+_distanciatotal0; -RDebugUtils.currentLine=10682479; - //BA.debugLineNum = 10682479;BA.debugLine="tiempo = rutas2.Get(\"duration\")"; + //BA.debugLineNum = 411;BA.debugLine="tiempo = rutas2.Get(\"duration\")"; _tiempo = (double)(BA.ObjectToNumber(_rutas2.Get((Object)("duration")))); -RDebugUtils.currentLine=10682480; - //BA.debugLineNum = 10682480;BA.debugLine="tiempo = (((tiempo + tiempo0) * 2) + tiempoVisi"; + //BA.debugLineNum = 412;BA.debugLine="tiempo = (((tiempo + tiempo0) * 2) + tiempoVisi"; _tiempo = (((_tiempo+_tiempo0)*2)+_tiempovisitas); -RDebugUtils.currentLine=10682481; - //BA.debugLineNum = 10682481;BA.debugLine="Log($\"Distancia total: $1.1{distanciaTotal/1000"; -parent.__c.LogImpl("210682481",("Distancia total: "+parent.__c.SmartStringFormatter("1.1",(Object)(_distanciatotal/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo/(double)60))+" mins. ("+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo/(double)60/(double)60))+" hrs)"),0); -RDebugUtils.currentLine=10682482; - //BA.debugLineNum = 10682482;BA.debugLine="l_rutaInfo.Text = $\"Distancia: $1.1{distanciaTo"; -__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(("Distancia: "+parent.__c.SmartStringFormatter("1.1",(Object)(_distanciatotal/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo/(double)60/(double)60))+" hrs"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Visitas restantes: "+parent.__c.SmartStringFormatter("",(Object)(_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null).getSize()))+""))); -RDebugUtils.currentLine=10682483; - //BA.debugLineNum = 10682483;BA.debugLine="l_rutaInfo.Width = Root.Width * 0.9"; -__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setWidth((int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()*0.9)); -RDebugUtils.currentLine=10682484; - //BA.debugLineNum = 10682484;BA.debugLine="Subs.centraEtiqueta(l_rutaInfo, Root.Width)"; -parent._subs._centraetiqueta /*String*/ (ba,__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=10682485; - //BA.debugLineNum = 10682485;BA.debugLine="l_rutaInfo.Visible = True"; -__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(parent.__c.True); -RDebugUtils.currentLine=10682486; - //BA.debugLineNum = 10682486;BA.debugLine="l_rutaInfo.BringToFront"; -__ref._l_rutainfo /*anywheresoftware.b4a.objects.LabelWrapper*/ .BringToFront(); -RDebugUtils.currentLine=10682487; - //BA.debugLineNum = 10682487;BA.debugLine="ListView1.Top = lv1Top + 100"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .setTop((int) ((double)(Double.parseDouble(__ref._lv1top /*String*/ ))+100)); + //BA.debugLineNum = 413;BA.debugLine="Log($\"Distancia total: $1.1{distanciaTotal/1000"; +parent.__c.LogImpl("010944625",("Distancia total: "+parent.__c.SmartStringFormatter("1.1",(Object)(_distanciatotal/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo/(double)60))+" mins. ("+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo/(double)60/(double)60))+" hrs)"),0); + //BA.debugLineNum = 414;BA.debugLine="l_rutaInfo.Text = $\"Distancia: $1.1{distanciaTo"; +parent._l_rutainfo.setText(BA.ObjectToCharSequence(("Distancia: "+parent.__c.SmartStringFormatter("1.1",(Object)(_distanciatotal/(double)1000))+" kms, tiempo aprox: "+parent.__c.SmartStringFormatter("1.1",(Object)(_tiempo/(double)60/(double)60))+" hrs"+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+"Visitas restantes: "+parent.__c.SmartStringFormatter("",(Object)(_avisitar._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().getSize()))+""))); + //BA.debugLineNum = 415;BA.debugLine="l_rutaInfo.Width = Root.Width * 0.9"; +parent._l_rutainfo.setWidth((int) (parent._root.getWidth()*0.9)); + //BA.debugLineNum = 416;BA.debugLine="Subs.centraEtiqueta(l_rutaInfo, Root.Width)"; +parent._subs._centraetiqueta /*String*/ (ba,parent._l_rutainfo,parent._root.getWidth()); + //BA.debugLineNum = 417;BA.debugLine="l_rutaInfo.Visible = True"; +parent._l_rutainfo.setVisible(parent.__c.True); + //BA.debugLineNum = 418;BA.debugLine="l_rutaInfo.BringToFront"; +parent._l_rutainfo.BringToFront(); + //BA.debugLineNum = 419;BA.debugLine="ListView1.Top = lv1Top + 100"; +parent._listview1.setTop((int) ((double)(Double.parseDouble(parent._lv1top))+100)); if (true) break; case 50: @@ -2767,42 +2232,34 @@ this.state = 53; case 52: //C this.state = 53; -RDebugUtils.currentLine=10682490; - //BA.debugLineNum = 10682490;BA.debugLine="LogColor(\"**************** Error! ************"; -parent.__c.LogImpl("210682490","**************** Error! ******************",parent.__c.Colors.Red); + //BA.debugLineNum = 422;BA.debugLine="LogColor(\"**************** Error! ************"; +parent.__c.LogImpl("010944634","**************** Error! ******************",parent.__c.Colors.Red); if (true) break; case 53: //C this.state = 54; ; -RDebugUtils.currentLine=10682492; - //BA.debugLineNum = 10682492;BA.debugLine="j.Release"; -_j._release /*String*/ (null); -RDebugUtils.currentLine=10682493; - //BA.debugLineNum = 10682493;BA.debugLine="ProgressDialogHide"; + //BA.debugLineNum = 424;BA.debugLine="j.Release"; +_j._release /*String*/ (); + //BA.debugLineNum = 425;BA.debugLine="ProgressDialogHide"; parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=10682495; - //BA.debugLineNum = 10682495;BA.debugLine="Private r As Int = 1"; + //BA.debugLineNum = 427;BA.debugLine="Private r As Int = 1"; _r = (int) (1); -RDebugUtils.currentLine=10682496; - //BA.debugLineNum = 10682496;BA.debugLine="Private r1, wps As Map"; + //BA.debugLineNum = 428;BA.debugLine="Private r1, wps As Map"; _r1 = new anywheresoftware.b4a.objects.collections.Map(); _wps = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=10682497; - //BA.debugLineNum = 10682497;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints\""; + //BA.debugLineNum = 429;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints\""; parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints"); -RDebugUtils.currentLine=10682498; - //BA.debugLineNum = 10682498;BA.debugLine="Log(\"BORRAMOS WAYPOINTS\")"; -parent.__c.LogImpl("210682498","BORRAMOS WAYPOINTS",0); -RDebugUtils.currentLine=10682499; - //BA.debugLineNum = 10682499;BA.debugLine="For Each k As Object In clientesMapaO.Keys 'Guard"; + //BA.debugLineNum = 430;BA.debugLine="Log(\"BORRAMOS WAYPOINTS\")"; +parent.__c.LogImpl("010944642","BORRAMOS WAYPOINTS",0); + //BA.debugLineNum = 431;BA.debugLine="For Each k As Object In clientesMapaO.Keys 'Guard"; if (true) break; case 54: //for this.state = 61; -group112 = __ref._clientesmapao /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null); +group112 = parent._clientesmapao._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (); index112 = 0; groupLen112 = group112.getSize(); this.state = 78; @@ -2825,40 +2282,32 @@ if (true) break; case 56: //C this.state = 57; -RDebugUtils.currentLine=10682500; - //BA.debugLineNum = 10682500;BA.debugLine="If listaWayPoints.Size > 0 Then"; + //BA.debugLineNum = 432;BA.debugLine="If listaWayPoints.Size > 0 Then"; if (true) break; case 57: //if this.state = 60; -if (__ref._listawaypoints /*anywheresoftware.b4a.objects.collections.List*/ .getSize()>0) { +if (parent._listawaypoints.getSize()>0) { this.state = 59; }if (true) break; case 59: //C this.state = 60; -RDebugUtils.currentLine=10682501; - //BA.debugLineNum = 10682501;BA.debugLine="r1 = clientesMapaO.Get(k)"; -_r1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._clientesmapao /*reparto_izca.keymon.lat.b4xorderedmap*/ ._get /*Object*/ (null,_k))); -RDebugUtils.currentLine=10682502; - //BA.debugLineNum = 10682502;BA.debugLine="r1.Get(\"codigo\")"; + //BA.debugLineNum = 433;BA.debugLine="r1 = clientesMapaO.Get(k)"; +_r1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._clientesmapao._get /*Object*/ (_k))); + //BA.debugLineNum = 434;BA.debugLine="r1.Get(\"codigo\")"; _r1.Get((Object)("codigo")); -RDebugUtils.currentLine=10682503; - //BA.debugLineNum = 10682503;BA.debugLine="Log(listaWayPoints.Get(r) & \"|\" & r1.Get(\"coord"; -parent.__c.LogImpl("210682503",BA.ObjectToString(__ref._listawaypoints /*anywheresoftware.b4a.objects.collections.List*/ .Get(_r))+"|"+BA.ObjectToString(_r1.Get((Object)("coords")))+"|"+BA.ObjectToString(_r1.Get((Object)("calle"))),0); -RDebugUtils.currentLine=10682504; - //BA.debugLineNum = 10682504;BA.debugLine="wps = listaWayPoints.Get(r)"; -_wps = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._listawaypoints /*anywheresoftware.b4a.objects.collections.List*/ .Get(_r))); -RDebugUtils.currentLine=10682505; - //BA.debugLineNum = 10682505;BA.debugLine="Starter.skmt.ExecNonQuery($\"update kmt_info set"; + //BA.debugLineNum = 435;BA.debugLine="Log(listaWayPoints.Get(r) & \"|\" & r1.Get(\"coord"; +parent.__c.LogImpl("010944647",BA.ObjectToString(parent._listawaypoints.Get(_r))+"|"+BA.ObjectToString(_r1.Get((Object)("coords")))+"|"+BA.ObjectToString(_r1.Get((Object)("calle"))),0); + //BA.debugLineNum = 436;BA.debugLine="wps = listaWayPoints.Get(r)"; +_wps = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(parent._listawaypoints.Get(_r))); + //BA.debugLineNum = 437;BA.debugLine="Starter.skmt.ExecNonQuery($\"update kmt_info set"; parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update kmt_info set SECUENCIA = "+parent.__c.SmartStringFormatter("",_wps.Get((Object)("waypoint_index")))+" where CAT_CL_CODIGO = '"+parent.__c.SmartStringFormatter("",_r1.Get((Object)("codigo")))+"'")); -RDebugUtils.currentLine=10682506; - //BA.debugLineNum = 10682506;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into waypoin"; + //BA.debugLineNum = 438;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into waypoin"; parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into waypoints values (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_r1.Get((Object)("codigo")),_wps.Get((Object)("waypoint_index"))})); -RDebugUtils.currentLine=10682507; - //BA.debugLineNum = 10682507;BA.debugLine="r = r + 1"; + //BA.debugLineNum = 439;BA.debugLine="r = r + 1"; _r = (int) (_r+1); if (true) break; @@ -2873,69 +2322,56 @@ case 61: //C this.state = 62; ; -RDebugUtils.currentLine=10682510; - //BA.debugLineNum = 10682510;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=10682511; - //BA.debugLineNum = 10682511;BA.debugLine="Sleep(100)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_clientes", "traerutadia"),(int) (100)); + //BA.debugLineNum = 442;BA.debugLine="ListView1.Clear"; +parent._listview1.Clear(); + //BA.debugLineNum = 443;BA.debugLine="Sleep(100)"; +parent.__c.Sleep(ba,this,(int) (100)); this.state = 80; return; case 80: //C this.state = 62; ; -RDebugUtils.currentLine=10682512; - //BA.debugLineNum = 10682512;BA.debugLine="Dim label2 As Label"; + //BA.debugLineNum = 444;BA.debugLine="Dim label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=10682513; - //BA.debugLineNum = 10682513;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=10682514; - //BA.debugLineNum = 10682514;BA.debugLine="label2.TextSize = 15"; + //BA.debugLineNum = 445;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = parent._listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 446;BA.debugLine="label2.TextSize = 15"; _label2.setTextSize((float) (15)); -RDebugUtils.currentLine=10682515; - //BA.debugLineNum = 10682515;BA.debugLine="label2.Height = 100dip"; + //BA.debugLineNum = 447;BA.debugLine="label2.Height = 100dip"; _label2.setHeight(parent.__c.DipToCurrent((int) (100))); -RDebugUtils.currentLine=10682516; - //BA.debugLineNum = 10682516;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 70dip"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().setItemHeight(parent.__c.DipToCurrent((int) (70))); -RDebugUtils.currentLine=10682517; - //BA.debugLineNum = 10682517;BA.debugLine="Dim cs, cs2 As CSBuilder"; + //BA.debugLineNum = 448;BA.debugLine="ListView1.TwoLinesLayout.ItemHeight = 70dip"; +parent._listview1.getTwoLinesLayout().setItemHeight(parent.__c.DipToCurrent((int) (70))); + //BA.debugLineNum = 449;BA.debugLine="Dim cs, cs2 As CSBuilder"; _cs = new anywheresoftware.b4a.objects.CSBuilder(); _cs2 = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=10682518; - //BA.debugLineNum = 10682518;BA.debugLine="entro = 3"; -__ref._entro /*String*/ = BA.NumberToString(3); -RDebugUtils.currentLine=10682519; - //BA.debugLineNum = 10682519;BA.debugLine="Log(\"Generamos ListView1 en traeRutaDia\")"; -parent.__c.LogImpl("210682519","Generamos ListView1 en traeRutaDia",0); -RDebugUtils.currentLine=10682521; - //BA.debugLineNum = 10682521;BA.debugLine="c=Starter.skmt.ExecQuery(\"select codigo, indice,"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice"))); -RDebugUtils.currentLine=10682522; - //BA.debugLineNum = 10682522;BA.debugLine="If c.RowCount > 0 Then"; + //BA.debugLineNum = 450;BA.debugLine="entro = 3"; +parent._entro = BA.NumberToString(3); + //BA.debugLineNum = 451;BA.debugLine="Log(\"Generamos ListView1 en traeRutaDia\")"; +parent.__c.LogImpl("010944663","Generamos ListView1 en traeRutaDia",0); + //BA.debugLineNum = 453;BA.debugLine="c=Starter.skmt.ExecQuery(\"select codigo, indice,"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select codigo, indice, CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_NOEXT from waypoints inner join kmt_info on waypoints.codigo = kmt_info.CAT_CL_CODIGO where gestion = 0 AND CAT_CL_RUTA <> 1000 order by indice"))); + //BA.debugLineNum = 454;BA.debugLine="If c.RowCount > 0 Then"; if (true) break; case 62: //if this.state = 69; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { +if (parent._c.getRowCount()>0) { this.state = 64; }if (true) break; case 64: //C this.state = 65; -RDebugUtils.currentLine=10682523; - //BA.debugLineNum = 10682523;BA.debugLine="For i=0 To c.RowCount -1 'Generamos el listView"; + //BA.debugLineNum = 455;BA.debugLine="For i=0 To c.RowCount -1 'Generamos el listView"; if (true) break; case 65: //for this.state = 68; step135 = 1; -limit135 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +limit135 = (int) (parent._c.getRowCount()-1); _i = (int) (0) ; this.state = 81; if (true) break; @@ -2955,18 +2391,14 @@ if (true) break; case 67: //C this.state = 82; -RDebugUtils.currentLine=10682524; - //BA.debugLineNum = 10682524;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=10682525; - //BA.debugLineNum = 10682525;BA.debugLine="cs.Initialize"; + //BA.debugLineNum = 456;BA.debugLine="c.Position=i"; +parent._c.setPosition(_i); + //BA.debugLineNum = 457;BA.debugLine="cs.Initialize"; _cs.Initialize(); -RDebugUtils.currentLine=10682526; - //BA.debugLineNum = 10682526;BA.debugLine="cs2.Initialize"; + //BA.debugLineNum = 458;BA.debugLine="cs2.Initialize"; _cs2.Initialize(); -RDebugUtils.currentLine=10682527; - //BA.debugLineNum = 10682527;BA.debugLine="ListView1.AddTwoLines(cs.Color(Colors.RGB(100,1"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(_cs.Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("codigo"))).PopAll().getObject()),BA.ObjectToCharSequence(_cs2.Append(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE"))).Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(" Calle: ")).Pop().Append(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE").trim()+" "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOEXT"))).PopAll().getObject())); + //BA.debugLineNum = 459;BA.debugLine="ListView1.AddTwoLines(cs.Color(Colors.RGB(100,1"; +parent._listview1.AddTwoLines(BA.ObjectToCharSequence(_cs.Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(parent._c.GetString("codigo"))).PopAll().getObject()),BA.ObjectToCharSequence(_cs2.Append(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_NOMBRE"))).Color(parent.__c.Colors.RGB((int) (100),(int) (149),(int) (237))).Append(BA.ObjectToCharSequence(" Calle: ")).Pop().Append(BA.ObjectToCharSequence(parent._c.GetString("CAT_CL_CALLE").trim()+" "+parent._c.GetString("CAT_CL_NOEXT"))).PopAll().getObject())); if (true) break; if (true) break; @@ -2980,127 +2412,92 @@ case 69: //C this.state = -1; ; -RDebugUtils.currentLine=10682530; - //BA.debugLineNum = 10682530;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=10682531; - //BA.debugLineNum = 10682531;BA.debugLine="End Sub"; + //BA.debugLineNum = 462;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 463;BA.debugLine="End Sub"; if (true) break; } } } } -public reparto_izca.keymon.lat.b4xorderedmap _traetodosavisitar(reparto_izca.keymon.lat.c_clientes __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_clientes"; -if (Debug.shouldDelegate(ba, "traetodosavisitar", false)) - {return ((reparto_izca.keymon.lat.b4xorderedmap) Debug.delegate(ba, "traetodosavisitar", null));} +public reparto_izca.keymon.lat.b4xorderedmap _traetodosavisitar() throws Exception{ anywheresoftware.b4a.gps.LocationWrapper _thisloc = null; anywheresoftware.b4a.gps.LocationWrapper _ubicacioninicial = null; int _i = 0; int _j = 0; int _distancia = 0; anywheresoftware.b4a.objects.collections.Map _estecliente = null; -RDebugUtils.currentLine=10813440; - //BA.debugLineNum = 10813440;BA.debugLine="Sub traeTodosAVisitar As B4XOrderedMap 'ignore"; -RDebugUtils.currentLine=10813441; - //BA.debugLineNum = 10813441;BA.debugLine="Log(\"Iniciamos traeTodosAVisitar\")"; -__c.LogImpl("210813441","Iniciamos traeTodosAVisitar",0); -RDebugUtils.currentLine=10813444; - //BA.debugLineNum = 10813444;BA.debugLine="Private thisLoc, ubicacionInicial As Location"; + //BA.debugLineNum = 515;BA.debugLine="Sub traeTodosAVisitar As B4XOrderedMap 'ignore"; + //BA.debugLineNum = 516;BA.debugLine="Log(\"Iniciamos traeTodosAVisitar\")"; +__c.LogImpl("011075585","Iniciamos traeTodosAVisitar",0); + //BA.debugLineNum = 519;BA.debugLine="Private thisLoc, ubicacionInicial As Location"; _thisloc = new anywheresoftware.b4a.gps.LocationWrapper(); _ubicacioninicial = new anywheresoftware.b4a.gps.LocationWrapper(); -RDebugUtils.currentLine=10813445; - //BA.debugLineNum = 10813445;BA.debugLine="ubicacionInicial = Starter.cedisLocation"; + //BA.debugLineNum = 520;BA.debugLine="ubicacionInicial = Starter.cedisLocation"; _ubicacioninicial = _starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ ; -RDebugUtils.currentLine=10813446; - //BA.debugLineNum = 10813446;BA.debugLine="LogColor(ubicacionInicial, Colors.Gray)"; -__c.LogImpl("210813446",BA.ObjectToString(_ubicacioninicial),__c.Colors.Gray); -RDebugUtils.currentLine=10813447; - //BA.debugLineNum = 10813447;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(gestion) as"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(gestion) as hayVisitados from kmt_info"))); -RDebugUtils.currentLine=10813448; - //BA.debugLineNum = 10813448;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=10813449; - //BA.debugLineNum = 10813449;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=10813451; - //BA.debugLineNum = 10813451;BA.debugLine="If c.GetString(\"hayVisitados\") > 0 Then ubicacio"; -if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("hayVisitados")))>0) { + //BA.debugLineNum = 521;BA.debugLine="LogColor(ubicacionInicial, Colors.Gray)"; +__c.LogImpl("011075590",BA.ObjectToString(_ubicacioninicial),__c.Colors.Gray); + //BA.debugLineNum = 522;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(gestion) as"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(gestion) as hayVisitados from kmt_info"))); + //BA.debugLineNum = 523;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 524;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 526;BA.debugLine="If c.GetString(\"hayVisitados\") > 0 Then ubicacio"; +if ((double)(Double.parseDouble(_c.GetString("hayVisitados")))>0) { _ubicacioninicial = _tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ ;}; }; -RDebugUtils.currentLine=10813453; - //BA.debugLineNum = 10813453;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=10813454; - //BA.debugLineNum = 10813454;BA.debugLine="LogColor(ubicacionInicial, Colors.Red)"; -__c.LogImpl("210813454",BA.ObjectToString(_ubicacioninicial),__c.Colors.Red); -RDebugUtils.currentLine=10813455; - //BA.debugLineNum = 10813455;BA.debugLine="thisLoc.Initialize"; + //BA.debugLineNum = 528;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 529;BA.debugLine="LogColor(ubicacionInicial, Colors.Red)"; +__c.LogImpl("011075598",BA.ObjectToString(_ubicacioninicial),__c.Colors.Red); + //BA.debugLineNum = 530;BA.debugLine="thisLoc.Initialize"; _thisloc.Initialize(); -RDebugUtils.currentLine=10813456; - //BA.debugLineNum = 10813456;BA.debugLine="clientesMapaO.Clear"; -__ref._clientesmapao /*reparto_izca.keymon.lat.b4xorderedmap*/ ._clear /*String*/ (null); -RDebugUtils.currentLine=10813458; - //BA.debugLineNum = 10813458;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA, cou"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA, count(*) as cuantos from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 group by CAT_CL_RUTA order by CAT_CL_RUTA asc"))); -RDebugUtils.currentLine=10813459; - //BA.debugLineNum = 10813459;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=10813461; - //BA.debugLineNum = 10813461;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 531;BA.debugLine="clientesMapaO.Clear"; +_clientesmapao._clear /*String*/ (); + //BA.debugLineNum = 533;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_CL_RUTA, cou"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA, count(*) as cuantos from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000 group by CAT_CL_RUTA order by CAT_CL_RUTA asc"))); + //BA.debugLineNum = 534;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 536;BA.debugLine="For i=0 To c.RowCount -1"; { final int step16 = 1; -final int limit16 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit16 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit16 ;_i = _i + step16 ) { -RDebugUtils.currentLine=10813462; - //BA.debugLineNum = 10813462;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=10813464; - //BA.debugLineNum = 10813464;BA.debugLine="c2=Starter.skmt.ExecQuery2(\"select CAT_CL_NOMB"; -__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where CAT_CL_RUTA = ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_NOMBRE ",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA")}))); -RDebugUtils.currentLine=10813465; - //BA.debugLineNum = 10813465;BA.debugLine="If c2.RowCount>0 Then"; -if (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=10813466; - //BA.debugLineNum = 10813466;BA.debugLine="For j=0 To c2.RowCount -1 'Generamos lista de"; + //BA.debugLineNum = 537;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 539;BA.debugLine="c2=Starter.skmt.ExecQuery2(\"select CAT_CL_NOMB"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO, CAT_CL_LAT, CAT_CL_LONG from kmt_info where CAT_CL_RUTA = ? and gestion = 0 AND CAT_CL_RUTA <> 1000 order by CAT_CL_NOMBRE ",new String[]{_c.GetString("CAT_CL_RUTA")}))); + //BA.debugLineNum = 540;BA.debugLine="If c2.RowCount>0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 541;BA.debugLine="For j=0 To c2.RowCount -1 'Generamos lista de"; { final int step20 = 1; -final int limit20 = (int) (__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit20 = (int) (_c2.getRowCount()-1); _j = (int) (0) ; for (;_j <= limit20 ;_j = _j + step20 ) { -RDebugUtils.currentLine=10813467; - //BA.debugLineNum = 10813467;BA.debugLine="c2.Position=j"; -__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_j); -RDebugUtils.currentLine=10813469; - //BA.debugLineNum = 10813469;BA.debugLine="thisLoc.Latitude = c2.GetString(\"CAT_CL_LAT\")"; -_thisloc.setLatitude((double)(Double.parseDouble(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LAT")))); -RDebugUtils.currentLine=10813470; - //BA.debugLineNum = 10813470;BA.debugLine="thisLoc.Longitude = c2.GetString(\"CAT_CL_LONG"; -_thisloc.setLongitude((double)(Double.parseDouble(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LONG")))); -RDebugUtils.currentLine=10813471; - //BA.debugLineNum = 10813471;BA.debugLine="If Not(thisLoc.Latitude = 0.0) And Not(thisLo"; + //BA.debugLineNum = 542;BA.debugLine="c2.Position=j"; +_c2.setPosition(_j); + //BA.debugLineNum = 544;BA.debugLine="thisLoc.Latitude = c2.GetString(\"CAT_CL_LAT\")"; +_thisloc.setLatitude((double)(Double.parseDouble(_c2.GetString("CAT_CL_LAT")))); + //BA.debugLineNum = 545;BA.debugLine="thisLoc.Longitude = c2.GetString(\"CAT_CL_LONG"; +_thisloc.setLongitude((double)(Double.parseDouble(_c2.GetString("CAT_CL_LONG")))); + //BA.debugLineNum = 546;BA.debugLine="If Not(thisLoc.Latitude = 0.0) And Not(thisLo"; if (__c.Not(_thisloc.getLatitude()==0.0) && __c.Not(_thisloc.getLatitude()==0)) { -RDebugUtils.currentLine=10813472; - //BA.debugLineNum = 10813472;BA.debugLine="Private distancia As Int = ubicacionInicial."; + //BA.debugLineNum = 547;BA.debugLine="Private distancia As Int = ubicacionInicial."; _distancia = (int) (_ubicacioninicial.DistanceTo((android.location.Location)(_thisloc.getObject()))); -RDebugUtils.currentLine=10813473; - //BA.debugLineNum = 10813473;BA.debugLine="If clientesMapaO.ContainsKey(distancia) Then"; -if (__ref._clientesmapao /*reparto_izca.keymon.lat.b4xorderedmap*/ ._containskey /*boolean*/ (null,(Object)(_distancia))) { + //BA.debugLineNum = 548;BA.debugLine="If clientesMapaO.ContainsKey(distancia) Then"; +if (_clientesmapao._containskey /*boolean*/ ((Object)(_distancia))) { _distancia = (int) (_distancia+1);}; -RDebugUtils.currentLine=10813474; - //BA.debugLineNum = 10813474;BA.debugLine="Private esteCliente As Map = CreateMap(\"dist"; + //BA.debugLineNum = 549;BA.debugLine="Private esteCliente As Map = CreateMap(\"dist"; _estecliente = new anywheresoftware.b4a.objects.collections.Map(); -_estecliente = __c.createMap(new Object[] {(Object)("distancia"),(Object)(_distancia),(Object)("ordenDist"),(Object)(_j),(Object)("coords"),(Object)(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LONG")+","+__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_LAT")),(Object)("codigo"),(Object)(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")),(Object)("nombre"),(Object)(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")),(Object)("calle"),(Object)(__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CALLE"))}); -RDebugUtils.currentLine=10813475; - //BA.debugLineNum = 10813475;BA.debugLine="clientesMapaO.Put(distancia, esteCliente)"; -__ref._clientesmapao /*reparto_izca.keymon.lat.b4xorderedmap*/ ._put /*String*/ (null,(Object)(_distancia),(Object)(_estecliente.getObject())); +_estecliente = __c.createMap(new Object[] {(Object)("distancia"),(Object)(_distancia),(Object)("ordenDist"),(Object)(_j),(Object)("coords"),(Object)(_c2.GetString("CAT_CL_LONG")+","+_c2.GetString("CAT_CL_LAT")),(Object)("codigo"),(Object)(_c2.GetString("CAT_CL_CODIGO")),(Object)("nombre"),(Object)(_c2.GetString("CAT_CL_NOMBRE")),(Object)("calle"),(Object)(_c2.GetString("CAT_CL_CALLE"))}); + //BA.debugLineNum = 550;BA.debugLine="clientesMapaO.Put(distancia, esteCliente)"; +_clientesmapao._put /*String*/ ((Object)(_distancia),(Object)(_estecliente.getObject())); }else { -RDebugUtils.currentLine=10813477; - //BA.debugLineNum = 10813477;BA.debugLine="ToastMessageShow(\"Hay tiendas SIN coordenada"; + //BA.debugLineNum = 552;BA.debugLine="ToastMessageShow(\"Hay tiendas SIN coordenada"; __c.ToastMessageShow(BA.ObjectToCharSequence("Hay tiendas SIN coordenadas, fueron excluidas!!"),__c.False); }; } @@ -3109,23 +2506,23 @@ __c.ToastMessageShow(BA.ObjectToCharSequence("Hay tiendas SIN coordenadas, fuero } }; }; -RDebugUtils.currentLine=10813485; - //BA.debugLineNum = 10813485;BA.debugLine="clientesMapaO.Keys.Sort(True) 'Ordenamos la lista"; -__ref._clientesmapao /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getkeys /*anywheresoftware.b4a.objects.collections.List*/ (null).Sort(__c.True); -RDebugUtils.currentLine=10813486; - //BA.debugLineNum = 10813486;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=10813487; - //BA.debugLineNum = 10813487;BA.debugLine="c2.Close"; -__ref._c2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=10813488; - //BA.debugLineNum = 10813488;BA.debugLine="Log(c.RowCount & \" rutas, \" & clientesMapaO.Size"; -__c.LogImpl("210813488",BA.NumberToString(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount())+" rutas, "+BA.NumberToString(__ref._clientesmapao /*reparto_izca.keymon.lat.b4xorderedmap*/ ._getsize /*int*/ (null))+" clientes",0); -RDebugUtils.currentLine=10813491; - //BA.debugLineNum = 10813491;BA.debugLine="Return clientesMapaO"; -if (true) return __ref._clientesmapao /*reparto_izca.keymon.lat.b4xorderedmap*/ ; -RDebugUtils.currentLine=10813492; - //BA.debugLineNum = 10813492;BA.debugLine="End Sub"; + //BA.debugLineNum = 560;BA.debugLine="clientesMapaO.Keys.Sort(True) 'Ordenamos la lista"; +_clientesmapao._getkeys /*anywheresoftware.b4a.objects.collections.List*/ ().Sort(__c.True); + //BA.debugLineNum = 561;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 562;BA.debugLine="c2.Close"; +_c2.Close(); + //BA.debugLineNum = 563;BA.debugLine="Log(c.RowCount & \" rutas, \" & clientesMapaO.Size"; +__c.LogImpl("011075632",BA.NumberToString(_c.getRowCount())+" rutas, "+BA.NumberToString(_clientesmapao._getsize /*int*/ ())+" clientes",0); + //BA.debugLineNum = 566;BA.debugLine="Return clientesMapaO"; +if (true) return _clientesmapao; + //BA.debugLineNum = 567;BA.debugLine="End Sub"; return null; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_detalle_promo.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_detalle_promo.java index 408d5bd..d8ec412 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_detalle_promo.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_detalle_promo.java @@ -10,7 +10,7 @@ public class c_detalle_promo extends B4AClass.ImplB4AClass implements BA.SubDele private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_detalle_promo"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_detalle_promo"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_detalle_promo extends B4AClass.ImplB4AClass implements BA.SubDele ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -56,292 +49,197 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_detalle_promo __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="c_detalle_promo"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=11272192; - //BA.debugLineNum = 11272192;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=11272193; - //BA.debugLineNum = 11272193;BA.debugLine="Return Me"; -if (true) return this; -RDebugUtils.currentLine=11272194; - //BA.debugLineNum = 11272194;BA.debugLine="End Sub"; -return null; -} -public boolean _activity_keypress(reparto_izca.keymon.lat.c_detalle_promo __ref,int _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalle_promo"; -if (Debug.shouldDelegate(ba, "activity_keypress", false)) - {return ((Boolean) Debug.delegate(ba, "activity_keypress", new Object[] {_key}));} -RDebugUtils.currentLine=11599872; - //BA.debugLineNum = 11599872;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean"; -RDebugUtils.currentLine=11599874; - //BA.debugLineNum = 11599874;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then"; +public boolean _activity_keypress(int _key) throws Exception{ + //BA.debugLineNum = 96;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean"; + //BA.debugLineNum = 98;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then"; if (_key==__c.KeyCodes.KEYCODE_BACK) { -RDebugUtils.currentLine=11599877; - //BA.debugLineNum = 11599877;BA.debugLine="B4XPages.ShowPage(\"\")"; + //BA.debugLineNum = 101;BA.debugLine="B4XPages.ShowPage(\"\")"; _b4xpages._showpage /*String*/ (ba,""); }; -RDebugUtils.currentLine=11599881; - //BA.debugLineNum = 11599881;BA.debugLine="Return False"; + //BA.debugLineNum = 105;BA.debugLine="Return False"; if (true) return __c.False; -RDebugUtils.currentLine=11599882; - //BA.debugLineNum = 11599882;BA.debugLine="End Sub"; + //BA.debugLineNum = 106;BA.debugLine="End Sub"; return false; } -public String _activity_pause(reparto_izca.keymon.lat.c_detalle_promo __ref,boolean _userclosed) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalle_promo"; -RDebugUtils.currentLine=11468800; - //BA.debugLineNum = 11468800;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; -RDebugUtils.currentLine=11468802; - //BA.debugLineNum = 11468802;BA.debugLine="End Sub"; +public String _activity_pause(boolean _userclosed) throws Exception{ + //BA.debugLineNum = 87;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 89;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_detalle_promo __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalle_promo"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} +public String _b4xpage_appear() throws Exception{ int _i = 0; anywheresoftware.b4a.objects.LabelWrapper _label1 = null; anywheresoftware.b4a.objects.LabelWrapper _label2 = null; -RDebugUtils.currentLine=11403264; - //BA.debugLineNum = 11403264;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=11403265; - //BA.debugLineNum = 11403265;BA.debugLine="Starter.skmt.Initialize(Starter.ruta,\"kmt.db\", Tr"; + //BA.debugLineNum = 56;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 57;BA.debugLine="Starter.skmt.Initialize(Starter.ruta,\"kmt.db\", Tr"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .Initialize(_starter._ruta /*String*/ ,"kmt.db",__c.True); -RDebugUtils.currentLine=11403266; - //BA.debugLineNum = 11403266;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_DP_IDPROD, C"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_DP_IDPROD, CAT_DP_PZAS, CAT_DP_PRECIO FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID)"))); -RDebugUtils.currentLine=11403267; - //BA.debugLineNum = 11403267;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=11403268; - //BA.debugLineNum = 11403268;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; -_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2)); -RDebugUtils.currentLine=11403269; - //BA.debugLineNum = 11403269;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=11403270; - //BA.debugLineNum = 11403270;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 58;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_DP_IDPROD, C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_DP_IDPROD, CAT_DP_PZAS, CAT_DP_PRECIO FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID)"))); + //BA.debugLineNum = 59;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 60;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2)); + //BA.debugLineNum = 61;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 62;BA.debugLine="For i=0 To c.RowCount -1"; { final int step6 = 1; -final int limit6 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit6 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit6 ;_i = _i + step6 ) { -RDebugUtils.currentLine=11403271; - //BA.debugLineNum = 11403271;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=11403272; - //BA.debugLineNum = 11403272;BA.debugLine="b=Starter.skmt.ExecQuery2(\"select CAT_GP_NOMBRE"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_GP_NOMBRE from cat_gunaprod where CAT_GP_ID = ?",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_DP_IDPROD")}))); -RDebugUtils.currentLine=11403273; - //BA.debugLineNum = 11403273;BA.debugLine="B.Position =0"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=11403274; - //BA.debugLineNum = 11403274;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 63;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 64;BA.debugLine="b=Starter.skmt.ExecQuery2(\"select CAT_GP_NOMBRE"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_GP_NOMBRE from cat_gunaprod where CAT_GP_ID = ?",new String[]{_c.GetString("CAT_DP_IDPROD")}))); + //BA.debugLineNum = 65;BA.debugLine="B.Position =0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 66;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11403275; - //BA.debugLineNum = 11403275;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=11403276; - //BA.debugLineNum = 11403276;BA.debugLine="label1.TextSize = 10"; + //BA.debugLineNum = 67;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 68;BA.debugLine="label1.TextSize = 10"; _label1.setTextSize((float) (10)); -RDebugUtils.currentLine=11403277; - //BA.debugLineNum = 11403277;BA.debugLine="label1.TextColor = Colors.White"; + //BA.debugLineNum = 69;BA.debugLine="label1.TextColor = Colors.White"; _label1.setTextColor(__c.Colors.White); -RDebugUtils.currentLine=11403278; - //BA.debugLineNum = 11403278;BA.debugLine="Dim label2 As Label"; + //BA.debugLineNum = 70;BA.debugLine="Dim label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11403279; - //BA.debugLineNum = 11403279;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=11403280; - //BA.debugLineNum = 11403280;BA.debugLine="label2.TextSize = 10"; + //BA.debugLineNum = 71;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 72;BA.debugLine="label2.TextSize = 10"; _label2.setTextSize((float) (10)); -RDebugUtils.currentLine=11403281; - //BA.debugLineNum = 11403281;BA.debugLine="label2.TextColor = Colors.White"; + //BA.debugLineNum = 73;BA.debugLine="label2.TextColor = Colors.White"; _label2.setTextColor(__c.Colors.White); -RDebugUtils.currentLine=11403282; - //BA.debugLineNum = 11403282;BA.debugLine="If c.GetString(\"CAT_DP_PRECIO\") = 0 Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_DP_PRECIO")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=11403283; - //BA.debugLineNum = 11403283;BA.debugLine="regalo = \"SI\""; -__ref._regalo /*String*/ = "SI"; + //BA.debugLineNum = 74;BA.debugLine="If c.GetString(\"CAT_DP_PRECIO\") = 0 Then"; +if ((_c.GetString("CAT_DP_PRECIO")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 75;BA.debugLine="regalo = \"SI\""; +_regalo = "SI"; }else { -RDebugUtils.currentLine=11403285; - //BA.debugLineNum = 11403285;BA.debugLine="regalo = \"NO\""; -__ref._regalo /*String*/ = "NO"; + //BA.debugLineNum = 77;BA.debugLine="regalo = \"NO\""; +_regalo = "NO"; }; -RDebugUtils.currentLine=11403287; - //BA.debugLineNum = 11403287;BA.debugLine="ListView1.AddTwoLines(B.GetString(\"CAT_GP_NOMBR"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("Cantidad # "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_DP_PZAS")+" REGALO "+__ref._regalo /*String*/ )); -RDebugUtils.currentLine=11403288; - //BA.debugLineNum = 11403288;BA.debugLine="b.Close"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 79;BA.debugLine="ListView1.AddTwoLines(B.GetString(\"CAT_GP_NOMBR"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_b.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("Cantidad # "+_c.GetString("CAT_DP_PZAS")+" REGALO "+_regalo)); + //BA.debugLineNum = 80;BA.debugLine="b.Close"; +_b.Close(); } }; -RDebugUtils.currentLine=11403290; - //BA.debugLineNum = 11403290;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 82;BA.debugLine="c.Close"; +_c.Close(); }; -RDebugUtils.currentLine=11403293; - //BA.debugLineNum = 11403293;BA.debugLine="End Sub"; + //BA.debugLineNum = 85;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_created(reparto_izca.keymon.lat.c_detalle_promo __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalle_promo"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} +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; -RDebugUtils.currentLine=11337728; - //BA.debugLineNum = 11337728;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=11337729; - //BA.debugLineNum = 11337729;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=11337731; - //BA.debugLineNum = 11337731;BA.debugLine="Root.LoadLayout(\"detalle_promo\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("detalle_promo",ba); -RDebugUtils.currentLine=11337732; - //BA.debugLineNum = 11337732;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_DP_IDPROD, C"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_DP_IDPROD, CAT_DP_PZAS, CAT_DP_PRECIO FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID)"))); -RDebugUtils.currentLine=11337733; - //BA.debugLineNum = 11337733;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=11337734; - //BA.debugLineNum = 11337734;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; -_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2)); -RDebugUtils.currentLine=11337735; - //BA.debugLineNum = 11337735;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=11337736; - //BA.debugLineNum = 11337736;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 22;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 23;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 25;BA.debugLine="Root.LoadLayout(\"detalle_promo\")"; +_root.LoadLayout("detalle_promo",ba); + //BA.debugLineNum = 26;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CAT_DP_IDPROD, C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_DP_IDPROD, CAT_DP_PZAS, CAT_DP_PRECIO FROM CAT_DETALLES_PAQ WHERE CAT_DP_ID IN (Select PROIDID from PROIDID)"))); + //BA.debugLineNum = 27;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 28;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2)); + //BA.debugLineNum = 29;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 30;BA.debugLine="For i=0 To c.RowCount -1"; { final int step7 = 1; -final int limit7 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit7 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit7 ;_i = _i + step7 ) { -RDebugUtils.currentLine=11337737; - //BA.debugLineNum = 11337737;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=11337738; - //BA.debugLineNum = 11337738;BA.debugLine="b=Starter.skmt.ExecQuery2(\"select CAT_GP_NOMBRE"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_GP_NOMBRE from cat_gunaprod where CAT_GP_ID = ?",new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_DP_IDPROD")}))); -RDebugUtils.currentLine=11337739; - //BA.debugLineNum = 11337739;BA.debugLine="B.Position =0"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=11337740; - //BA.debugLineNum = 11337740;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 31;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 32;BA.debugLine="b=Starter.skmt.ExecQuery2(\"select CAT_GP_NOMBRE"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_GP_NOMBRE from cat_gunaprod where CAT_GP_ID = ?",new String[]{_c.GetString("CAT_DP_IDPROD")}))); + //BA.debugLineNum = 33;BA.debugLine="B.Position =0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 34;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11337741; - //BA.debugLineNum = 11337741;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=11337742; - //BA.debugLineNum = 11337742;BA.debugLine="label1.TextSize = 10"; + //BA.debugLineNum = 35;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 36;BA.debugLine="label1.TextSize = 10"; _label1.setTextSize((float) (10)); -RDebugUtils.currentLine=11337743; - //BA.debugLineNum = 11337743;BA.debugLine="label1.TextColor = Colors.White"; + //BA.debugLineNum = 37;BA.debugLine="label1.TextColor = Colors.White"; _label1.setTextColor(__c.Colors.White); -RDebugUtils.currentLine=11337744; - //BA.debugLineNum = 11337744;BA.debugLine="Dim label2 As Label"; + //BA.debugLineNum = 38;BA.debugLine="Dim label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11337745; - //BA.debugLineNum = 11337745;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=11337746; - //BA.debugLineNum = 11337746;BA.debugLine="label2.TextSize = 10"; + //BA.debugLineNum = 39;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 40;BA.debugLine="label2.TextSize = 10"; _label2.setTextSize((float) (10)); -RDebugUtils.currentLine=11337747; - //BA.debugLineNum = 11337747;BA.debugLine="label2.TextColor = Colors.White"; + //BA.debugLineNum = 41;BA.debugLine="label2.TextColor = Colors.White"; _label2.setTextColor(__c.Colors.White); -RDebugUtils.currentLine=11337748; - //BA.debugLineNum = 11337748;BA.debugLine="If c.GetString(\"CAT_DP_PRECIO\") = 0 Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_DP_PRECIO")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=11337749; - //BA.debugLineNum = 11337749;BA.debugLine="regalo = \"SI\""; -__ref._regalo /*String*/ = "SI"; + //BA.debugLineNum = 42;BA.debugLine="If c.GetString(\"CAT_DP_PRECIO\") = 0 Then"; +if ((_c.GetString("CAT_DP_PRECIO")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 43;BA.debugLine="regalo = \"SI\""; +_regalo = "SI"; }else { -RDebugUtils.currentLine=11337751; - //BA.debugLineNum = 11337751;BA.debugLine="regalo = \"NO\""; -__ref._regalo /*String*/ = "NO"; + //BA.debugLineNum = 45;BA.debugLine="regalo = \"NO\""; +_regalo = "NO"; }; -RDebugUtils.currentLine=11337753; - //BA.debugLineNum = 11337753;BA.debugLine="ListView1.AddTwoLines(B.GetString(\"CAT_GP_NOMBR"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("Cantidad # "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_DP_PZAS")+" REGALO "+__ref._regalo /*String*/ )); -RDebugUtils.currentLine=11337754; - //BA.debugLineNum = 11337754;BA.debugLine="b.Close"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 47;BA.debugLine="ListView1.AddTwoLines(B.GetString(\"CAT_GP_NOMBR"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_b.GetString("CAT_GP_NOMBRE")),BA.ObjectToCharSequence("Cantidad # "+_c.GetString("CAT_DP_PZAS")+" REGALO "+_regalo)); + //BA.debugLineNum = 48;BA.debugLine="b.Close"; +_b.Close(); } }; -RDebugUtils.currentLine=11337756; - //BA.debugLineNum = 11337756;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 50;BA.debugLine="c.Close"; +_c.Close(); }; -RDebugUtils.currentLine=11337758; - //BA.debugLineNum = 11337758;BA.debugLine="End Sub"; + //BA.debugLineNum = 52;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.c_detalle_promo __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalle_promo"; -RDebugUtils.currentLine=11206656; - //BA.debugLineNum = 11206656;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=11206657; - //BA.debugLineNum = 11206657;BA.debugLine="Private Root As B4XView 'ignore"; +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(); -RDebugUtils.currentLine=11206658; - //BA.debugLineNum = 11206658;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=11206659; - //BA.debugLineNum = 11206659;BA.debugLine="Dim c As Cursor"; + //BA.debugLineNum = 4;BA.debugLine="Dim c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=11206661; - //BA.debugLineNum = 11206661;BA.debugLine="Dim Regresar As Button"; + //BA.debugLineNum = 6;BA.debugLine="Dim Regresar As Button"; _regresar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=11206662; - //BA.debugLineNum = 11206662;BA.debugLine="Dim b As Cursor"; + //BA.debugLineNum = 7;BA.debugLine="Dim b As Cursor"; _b = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=11206663; - //BA.debugLineNum = 11206663;BA.debugLine="Dim regalo As String"; + //BA.debugLineNum = 8;BA.debugLine="Dim regalo As String"; _regalo = ""; -RDebugUtils.currentLine=11206664; - //BA.debugLineNum = 11206664;BA.debugLine="Dim ListView1 As ListView"; + //BA.debugLineNum = 9;BA.debugLine="Dim ListView1 As ListView"; _listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=11206665; - //BA.debugLineNum = 11206665;BA.debugLine="Dim L_CANT As Label"; + //BA.debugLineNum = 10;BA.debugLine="Dim L_CANT As Label"; _l_cant = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11206666; - //BA.debugLineNum = 11206666;BA.debugLine="Dim L_TOTAL As Label"; + //BA.debugLineNum = 11;BA.debugLine="Dim L_TOTAL As Label"; _l_total = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11206667; - //BA.debugLineNum = 11206667;BA.debugLine="Dim borra As Button"; + //BA.debugLineNum = 12;BA.debugLine="Dim borra As Button"; _borra = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=11206668; - //BA.debugLineNum = 11206668;BA.debugLine="Dim Existe As String"; + //BA.debugLineNum = 13;BA.debugLine="Dim Existe As String"; _existe = ""; -RDebugUtils.currentLine=11206669; - //BA.debugLineNum = 11206669;BA.debugLine="End Sub"; + //BA.debugLineNum = 14;BA.debugLine="End Sub"; return ""; } -public String _regresar_click(reparto_izca.keymon.lat.c_detalle_promo __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalle_promo"; -if (Debug.shouldDelegate(ba, "regresar_click", false)) - {return ((String) Debug.delegate(ba, "regresar_click", null));} -RDebugUtils.currentLine=11534336; - //BA.debugLineNum = 11534336;BA.debugLine="Sub Regresar_Click"; -RDebugUtils.currentLine=11534338; - //BA.debugLineNum = 11534338;BA.debugLine="B4XPages.ShowPage(\"\")"; +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 17;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 18;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 19;BA.debugLine="End Sub"; +return null; +} +public String _regresar_click() throws Exception{ + //BA.debugLineNum = 91;BA.debugLine="Sub Regresar_Click"; + //BA.debugLineNum = 93;BA.debugLine="B4XPages.ShowPage(\"\")"; _b4xpages._showpage /*String*/ (ba,""); -RDebugUtils.currentLine=11534339; - //BA.debugLineNum = 11534339;BA.debugLine="End Sub"; + //BA.debugLineNum = 94;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_detalleventa.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_detalleventa.java index 7814d6d..672b205 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_detalleventa.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_detalleventa.java @@ -10,7 +10,7 @@ public class c_detalleventa extends B4AClass.ImplB4AClass implements BA.SubDeleg private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_detalleventa"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_detalleventa"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_detalleventa extends B4AClass.ImplB4AClass implements BA.SubDeleg ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -90,37 +83,12 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_detalleventa __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=11730944; - //BA.debugLineNum = 11730944;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=11730945; - //BA.debugLineNum = 11730945;BA.debugLine="Return Me"; -if (true) return this; -RDebugUtils.currentLine=11730946; - //BA.debugLineNum = 11730946;BA.debugLine="End Sub"; -return null; -} -public String _b_guardar_click(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "b_guardar_click", false)) - {return ((String) Debug.delegate(ba, "b_guardar_click", null));} -RDebugUtils.currentLine=12582912; - //BA.debugLineNum = 12582912;BA.debugLine="Private Sub b_guardar_Click"; -RDebugUtils.currentLine=12582914; - //BA.debugLineNum = 12582914;BA.debugLine="End Sub"; +public String _b_guardar_click() throws Exception{ + //BA.debugLineNum = 915;BA.debugLine="Private Sub b_guardar_Click"; + //BA.debugLineNum = 917;BA.debugLine="End Sub"; return ""; } -public String _b_prodmas_click(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "b_prodmas_click", false)) - {return ((String) Debug.delegate(ba, "b_prodmas_click", null));} +public String _b_prodmas_click() throws Exception{ int _index = 0; anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; @@ -130,168 +98,569 @@ String _maxprods = ""; String _minimoadesc = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null; anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; -RDebugUtils.currentLine=12451840; - //BA.debugLineNum = 12451840;BA.debugLine="Sub b_prodMas_Click"; -RDebugUtils.currentLine=12451841; - //BA.debugLineNum = 12451841;BA.debugLine="etCantHasFocus = False"; -__ref._etcanthasfocus /*boolean*/ = __c.False; -RDebugUtils.currentLine=12451843; - //BA.debugLineNum = 12451843;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)"; -__c.LogImpl("212451843","b_prodMas_Click",__c.Colors.Magenta); -RDebugUtils.currentLine=12451844; - //BA.debugLineNum = 12451844;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; -_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=12451845; - //BA.debugLineNum = 12451845;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; + //BA.debugLineNum = 650;BA.debugLine="Sub b_prodMas_Click"; + //BA.debugLineNum = 651;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 653;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)"; +__c.LogImpl("012713987","b_prodMas_Click",__c.Colors.Magenta); + //BA.debugLineNum = 654;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; +_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 655;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; _pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index); -RDebugUtils.currentLine=12451846; - //BA.debugLineNum = 12451846;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl0 = _clv_pedido._getpanel(_index); + //BA.debugLineNum = 656;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; _pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); _pnl = _pnl0.GetView((int) (0)); -RDebugUtils.currentLine=12451847; - //BA.debugLineNum = 12451847;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; + //BA.debugLineNum = 657;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; _lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); _lacant = _pnl.GetView((int) (2)).GetView((int) (3)); -RDebugUtils.currentLine=12451851; - //BA.debugLineNum = 12451851;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; + //BA.debugLineNum = 661;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; _estetag = new anywheresoftware.b4a.objects.collections.List(); _estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))); -RDebugUtils.currentLine=12451852; - //BA.debugLineNum = 12451852;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&"; -__c.LogImpl("212451852","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=12451853; - //BA.debugLineNum = 12451853;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; + //BA.debugLineNum = 662;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&"; +__c.LogImpl("012713996","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 663;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; if ((_lacant.getText()).equals("")) { _lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12451855; - //BA.debugLineNum = 12451855;BA.debugLine="Private maxProds = esteTag.Get(1) + esteTag.Get(4"; + //BA.debugLineNum = 665;BA.debugLine="Private maxProds = esteTag.Get(1) + esteTag.Get(4"; _maxprods = BA.NumberToString((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4))))); -RDebugUtils.currentLine=12451857; - //BA.debugLineNum = 12451857;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag"; -__c.LogImpl("212451857",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green); -RDebugUtils.currentLine=12451860; - //BA.debugLineNum = 12451860;BA.debugLine="Private minimoadesc As String"; + //BA.debugLineNum = 667;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag"; +__c.LogImpl("012714001",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green); + //BA.debugLineNum = 670;BA.debugLine="Private minimoadesc As String"; _minimoadesc = ""; -RDebugUtils.currentLine=12451861; - //BA.debugLineNum = 12451861;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\""; + //BA.debugLineNum = 671;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\""; _minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=12451862; - //BA.debugLineNum = 12451862;BA.debugLine="If minimos.RowCount > 0 Then"; + //BA.debugLineNum = 672;BA.debugLine="If minimos.RowCount > 0 Then"; if (_minimos.getRowCount()>0) { -RDebugUtils.currentLine=12451863; - //BA.debugLineNum = 12451863;BA.debugLine="minimos.Position = 0"; + //BA.debugLineNum = 673;BA.debugLine="minimos.Position = 0"; _minimos.setPosition((int) (0)); -RDebugUtils.currentLine=12451864; - //BA.debugLineNum = 12451864;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN"; + //BA.debugLineNum = 674;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN"; _minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA"); }else { -RDebugUtils.currentLine=12451866; - //BA.debugLineNum = 12451866;BA.debugLine="minimoadesc = \"1\""; + //BA.debugLineNum = 676;BA.debugLine="minimoadesc = \"1\""; _minimoadesc = "1"; }; -RDebugUtils.currentLine=12451868; - //BA.debugLineNum = 12451868;BA.debugLine="minimos.Close"; + //BA.debugLineNum = 678;BA.debugLine="minimos.Close"; _minimos.Close(); -RDebugUtils.currentLine=12451870; - //BA.debugLineNum = 12451870;BA.debugLine="minimoadesc = \"1\""; + //BA.debugLineNum = 680;BA.debugLine="minimoadesc = \"1\""; _minimoadesc = "1"; -RDebugUtils.currentLine=12451871; - //BA.debugLineNum = 12451871;BA.debugLine="If esteTag.Get(7) <> \"1\" Then"; + //BA.debugLineNum = 681;BA.debugLine="If esteTag.Get(7) <> \"1\" Then"; if ((_estetag.Get((int) (7))).equals((Object)("1")) == false) { -RDebugUtils.currentLine=12451874; - //BA.debugLineNum = 12451874;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then"; + //BA.debugLineNum = 684;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then"; if ((_estetag.Get((int) (5))).equals(_estetag.Get((int) (6)))) { -RDebugUtils.currentLine=12451876; - //BA.debugLineNum = 12451876;BA.debugLine="If laCant.Text + 1 <= maxProds Then"; + //BA.debugLineNum = 686;BA.debugLine="If laCant.Text + 1 <= maxProds Then"; if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) { -RDebugUtils.currentLine=12451877; - //BA.debugLineNum = 12451877;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)"; -__c.LogImpl("212451877",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0); -RDebugUtils.currentLine=12451878; - //BA.debugLineNum = 12451878;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$"; + //BA.debugLineNum = 687;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)"; +__c.LogImpl("012714021",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0); + //BA.debugLineNum = 688;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$"; _lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""))); -RDebugUtils.currentLine=12451879; - //BA.debugLineNum = 12451879;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro"; + //BA.debugLineNum = 689;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))})); -RDebugUtils.currentLine=12451882; - //BA.debugLineNum = 12451882;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; + //BA.debugLineNum = 692;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_RECHAZOCANT - (1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"') WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); -RDebugUtils.currentLine=12451884; - //BA.debugLineNum = 12451884;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))"; + //BA.debugLineNum = 694;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))"; _subs._prodventa /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2)))); -RDebugUtils.currentLine=12451889; - //BA.debugLineNum = 12451889;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); + //BA.debugLineNum = 699;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); }; }else { -RDebugUtils.currentLine=12451893; - //BA.debugLineNum = 12451893;BA.debugLine="If laCant.Text + 1 <= maxProds Then"; + //BA.debugLineNum = 703;BA.debugLine="If laCant.Text + 1 <= maxProds Then"; if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) { -RDebugUtils.currentLine=12451894; - //BA.debugLineNum = 12451894;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)"; -__c.LogImpl("212451894",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0); -RDebugUtils.currentLine=12451895; - //BA.debugLineNum = 12451895;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$"; + //BA.debugLineNum = 704;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)"; +__c.LogImpl("012714038",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0); + //BA.debugLineNum = 705;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$"; _lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""))); -RDebugUtils.currentLine=12451896; - //BA.debugLineNum = 12451896;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro"; + //BA.debugLineNum = 706;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})); -RDebugUtils.currentLine=12451897; - //BA.debugLineNum = 12451897;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PED"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))}))); -RDebugUtils.currentLine=12451898; - //BA.debugLineNum = 12451898;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=12451899; - //BA.debugLineNum = 12451899;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery"; + //BA.debugLineNum = 707;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PED"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))}))); + //BA.debugLineNum = 708;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 709;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery"; _c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=12451900; - //BA.debugLineNum = 12451900;BA.debugLine="If c2.RowCount > 0 Then"; + //BA.debugLineNum = 710;BA.debugLine="If c2.RowCount > 0 Then"; if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=12451901; - //BA.debugLineNum = 12451901;BA.debugLine="c2.Position = 0"; + //BA.debugLineNum = 711;BA.debugLine="c2.Position = 0"; _c2.setPosition((int) (0)); -RDebugUtils.currentLine=12451903; - //BA.debugLineNum = 12451903;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; + //BA.debugLineNum = 713;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); }; }else { -RDebugUtils.currentLine=12451906; - //BA.debugLineNum = 12451906;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery"; + //BA.debugLineNum = 716;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery"; _c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=12451907; - //BA.debugLineNum = 12451907;BA.debugLine="If c2.RowCount > 0 Then"; + //BA.debugLineNum = 717;BA.debugLine="If c2.RowCount > 0 Then"; if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=12451908; - //BA.debugLineNum = 12451908;BA.debugLine="c2.Position = 0"; + //BA.debugLineNum = 718;BA.debugLine="c2.Position = 0"; _c2.setPosition((int) (0)); -RDebugUtils.currentLine=12451910; - //BA.debugLineNum = 12451910;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI"; + //BA.debugLineNum = 720;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO) VALUES (?,?,?,?,?,?,?,0,0,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("CAT_GP_NOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),_c2.GetString("CAT_GP_PRECIO"),_c2.GetString("CAT_GP_PRECIO"),BA.ObjectToString(_estetag.Get((int) (8)))})); }; }; -RDebugUtils.currentLine=12451915; - //BA.debugLineNum = 12451915;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))"; + //BA.debugLineNum = 725;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))"; _subs._prodventa /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2)))); -RDebugUtils.currentLine=12451920; - //BA.debugLineNum = 12451920;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); + //BA.debugLineNum = 730;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); }; }; }; -RDebugUtils.currentLine=12451939; - //BA.debugLineNum = 12451939;BA.debugLine="End Sub"; + //BA.debugLineNum = 749;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} +public String _b_prodmasc_click() throws Exception{ +int _index = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; +anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null; +anywheresoftware.b4a.objects.collections.List _estetag = null; +String _maxprods = ""; + //BA.debugLineNum = 928;BA.debugLine="Private Sub b_prodMasC_Click"; + //BA.debugLineNum = 929;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 931;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)"; +__c.LogImpl("013041667","b_prodMas_Click",__c.Colors.Magenta); + //BA.debugLineNum = 932;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; +_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 933;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_pedido._getpanel(_index); + //BA.debugLineNum = 934;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 935;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3"; +_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacantc = _pnl.GetView((int) (3)).GetView((int) (3)); + //BA.debugLineNum = 939;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T"; +_estetag = new anywheresoftware.b4a.objects.collections.List(); +_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag()))); + //BA.debugLineNum = 940;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta"; +__c.LogImpl("013041676","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 941;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; +if ((_lacantc.getText()).equals("")) { +_lacantc.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 943;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es"; +_maxprods = BA.NumberToString(((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4)))))); + //BA.debugLineNum = 944;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)"; +__c.LogImpl("013041680",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red); + //BA.debugLineNum = 945;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)"; +__c.LogImpl("013041681",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red); + //BA.debugLineNum = 946;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag"; +__c.LogImpl("013041682",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green); + //BA.debugLineNum = 948;BA.debugLine="Log(maxProds)"; +__c.LogImpl("013041684",_maxprods,0); + //BA.debugLineNum = 951;BA.debugLine="If esteTag.Get(7) <> \"1\" Then"; +if ((_estetag.Get((int) (7))).equals((Object)("1")) == false) { + //BA.debugLineNum = 954;BA.debugLine="If laCantc.Text + 1 <= maxProds Then"; +if ((double)(Double.parseDouble(_lacantc.getText()))+1<=(double)(Double.parseDouble(_maxprods))) { + //BA.debugLineNum = 955;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)"; +__c.LogImpl("013041691",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0); + //BA.debugLineNum = 956;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$"; +_lacantc.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""))); + //BA.debugLineNum = 958;BA.debugLine="Log(laCantc.Text)"; +__c.LogImpl("013041694",_lacantc.getText(),0); + //BA.debugLineNum = 959;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) -(1 * "+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+") WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); + //BA.debugLineNum = 967;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }; + //BA.debugLineNum = 970;BA.debugLine="End Sub"; +return ""; +} +public String _b_prodmenos_click() throws Exception{ +int _index = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; +anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null; +anywheresoftware.b4a.objects.collections.List _estetag = null; +String _minimoadesc = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; +float _preciou = 0f; + //BA.debugLineNum = 506;BA.debugLine="Sub b_prodMenos_Click"; + //BA.debugLineNum = 507;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 508;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)"; +__c.LogImpl("012648450","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0); + //BA.debugLineNum = 509;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)"; +__c.LogImpl("012648451","b_prodMenos_Click",__c.Colors.Magenta); + //BA.debugLineNum = 510;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; +_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 511;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_pedido._getpanel(_index); + //BA.debugLineNum = 512;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 513;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; +_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant = _pnl.GetView((int) (2)).GetView((int) (3)); + //BA.debugLineNum = 515;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; +_estetag = new anywheresoftware.b4a.objects.collections.List(); +_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))); + //BA.debugLineNum = 516;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get("; +__c.LogImpl("012648458","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 517;BA.debugLine="Private minimoadesc As String"; +_minimoadesc = ""; + //BA.debugLineNum = 518;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\""; +_minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); + //BA.debugLineNum = 519;BA.debugLine="If minimos.RowCount > 0 Then"; +if (_minimos.getRowCount()>0) { + //BA.debugLineNum = 520;BA.debugLine="minimos.Position = 0"; +_minimos.setPosition((int) (0)); + //BA.debugLineNum = 521;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN"; +_minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA"); + }else { + //BA.debugLineNum = 523;BA.debugLine="minimoadesc = \"1\""; +_minimoadesc = "1"; + }; + //BA.debugLineNum = 525;BA.debugLine="minimos.Close"; +_minimos.Close(); + //BA.debugLineNum = 527;BA.debugLine="minimoadesc = \"1\""; +_minimoadesc = "1"; + //BA.debugLineNum = 528;BA.debugLine="If esteTag.Get(7) = \"1\" Then"; +if ((_estetag.Get((int) (7))).equals((Object)("1"))) { + //BA.debugLineNum = 529;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; +if ((_lacant.getText()).equals("")) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 530;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$"; +_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+""))); + //BA.debugLineNum = 531;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; +if ((double)(Double.parseDouble(_lacant.getText()))<0) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 532;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\""; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))}))); + //BA.debugLineNum = 533;BA.debugLine="If c3.RowCount > 0 Then"; +if (_c3.getRowCount()>0) { + //BA.debugLineNum = 534;BA.debugLine="c3.Position = 0"; +_c3.setPosition((int) (0)); + //BA.debugLineNum = 535;BA.debugLine="If c3.GetString(\"PE_CANT\") > minimoadesc Then"; +if ((double)(Double.parseDouble(_c3.GetString("PE_CANT")))>(double)(Double.parseDouble(_minimoadesc))) { + //BA.debugLineNum = 536;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); + //BA.debugLineNum = 537;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 538;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 540;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) and CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); + }; + }else if((_c3.GetString("PE_CANT")).equals(_minimoadesc)) { + //BA.debugLineNum = 543;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); + //BA.debugLineNum = 544;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 545;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 548;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); + }; + }; + }; + //BA.debugLineNum = 555;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else { + //BA.debugLineNum = 558;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then"; +if ((_estetag.Get((int) (5))).equals(_estetag.Get((int) (6)))) { + //BA.debugLineNum = 559;BA.debugLine="If laCant.Text > 0 Then"; +if ((double)(Double.parseDouble(_lacant.getText()))>0) { + //BA.debugLineNum = 560;BA.debugLine="If esteTag.Get(3) <> Subs.traeAlmacen Then 'Si"; +if ((_estetag.Get((int) (3))).equals((Object)(_subs._traealmacen /*String*/ (ba))) == false) { + //BA.debugLineNum = 561;BA.debugLine="Private c2 As Cursor =Starter.skmt.ExecQuery("; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' AND HVD_CLIENTE IN (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")))); + //BA.debugLineNum = 562;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 563;BA.debugLine="If c2.GetString(\"HVD_RECHAZO\") = \"0\" Then"; +if ((_c2.GetString("HVD_RECHAZO")).equals("0")) { + //BA.debugLineNum = 566;BA.debugLine="Log(\"ES PROMO\")"; +__c.LogImpl("012648508","ES PROMO",0); + //BA.debugLineNum = 567;BA.debugLine="Log(esteTag.Get(3))"; +__c.LogImpl("012648509",BA.ObjectToString(_estetag.Get((int) (3))),0); + //BA.debugLineNum = 568;BA.debugLine="result = Msgbox2(\"Si se modifica una promoc"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Si se modifica una promoción, la promoción se rompe y solo quedarÔn los productos sueltos, ¿seguro que desea continuar?"),BA.ObjectToCharSequence("Modificar Promoción"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 569;BA.debugLine="If result = DialogResponse.POSITIVE Then 'Qu"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 570;BA.debugLine="prodsMap.Remove(esteTag.Get(3))"; +_prodsmap.Remove(_estetag.Get((int) (3))); + //BA.debugLineNum = 574;BA.debugLine="LogColor(esteTag.Get(3),Colors.Blue)"; +__c.LogImpl("012648516",BA.ObjectToString(_estetag.Get((int) (3))),__c.Colors.Blue); + //BA.debugLineNum = 577;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VEN"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT WHERE HVD_CODPROMO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_CLIENTE in (Select CUENTA from cuentaa)")); + //BA.debugLineNum = 578;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VEN"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_CANT WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_CODPROMO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_CLIENTE in (Select CUENTA from cuentaa)")); + //BA.debugLineNum = 581;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 582;BA.debugLine="LogColor(prodsMap, Colors.red)"; +__c.LogImpl("012648524",BA.ObjectToString(_prodsmap),__c.Colors.Red); + //BA.debugLineNum = 583;BA.debugLine="reconstruirPedido = True"; +_reconstruirpedido = __c.True; + //BA.debugLineNum = 584;BA.debugLine="promoABorrar = esteTag.Get(3)"; +_promoaborrar = BA.ObjectToString(_estetag.Get((int) (3))); + //BA.debugLineNum = 585;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else { + //BA.debugLineNum = 588;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; +if ((_lacant.getText()).equals("")) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 589;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$"; +_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+""))); + //BA.debugLineNum = 590;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; +if ((double)(Double.parseDouble(_lacant.getText()))<0) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 591;BA.debugLine="Log(\"NO ES promo\")"; +__c.LogImpl("012648533","NO ES promo",0); + //BA.debugLineNum = 592;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"') WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); + //BA.debugLineNum = 593;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunap"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))})); + //BA.debugLineNum = 594;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }else { + //BA.debugLineNum = 597;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; +if ((_lacant.getText()).equals("")) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 598;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$"; +_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+""))); + //BA.debugLineNum = 599;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; +if ((double)(Double.parseDouble(_lacant.getText()))<0) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 600;BA.debugLine="Log(\"NO ES promo\")"; +__c.LogImpl("012648542","NO ES promo",0); + //BA.debugLineNum = 601;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), BCAJAS = 0, CANTC = 0 WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); + //BA.debugLineNum = 602;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapr"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))})); + //BA.debugLineNum = 603;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }; + }else { + //BA.debugLineNum = 608;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; +if ((_lacant.getText()).equals("")) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 609;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$"; +_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+""))); + //BA.debugLineNum = 610;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; +if ((double)(Double.parseDouble(_lacant.getText()))<0) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 611;BA.debugLine="Log(\"NO ES promo\")"; +__c.LogImpl("012648553","NO ES promo",0); + //BA.debugLineNum = 616;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2("; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))}))); + //BA.debugLineNum = 617;BA.debugLine="If c3.RowCount > 0 Then"; +if (_c3.getRowCount()>0) { + //BA.debugLineNum = 618;BA.debugLine="c3.Position = 0"; +_c3.setPosition((int) (0)); + //BA.debugLineNum = 619;BA.debugLine="If c3.GetString(\"PE_CANT\") > 1 Then"; +if ((double)(Double.parseDouble(_c3.GetString("PE_CANT")))>1) { + //BA.debugLineNum = 620;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); + //BA.debugLineNum = 621;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 622;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 623;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); + }; + }else if((_c3.GetString("PE_CANT")).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 626;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); + //BA.debugLineNum = 627;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 628;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 629;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDI"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); + }; + }; + }; + //BA.debugLineNum = 633;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }; + //BA.debugLineNum = 636;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get"; +_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))); + //BA.debugLineNum = 637;BA.debugLine="Log(\"PU: \" & preciou)"; +__c.LogImpl("012648579","PU: "+BA.NumberToString(_preciou),0); + //BA.debugLineNum = 648;BA.debugLine="End Sub"; +return ""; +} +public String _b_prodmenosc_click() throws Exception{ +int _index = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; +anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null; +anywheresoftware.b4a.objects.collections.List _estetag = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; +float _preciou = 0f; + //BA.debugLineNum = 972;BA.debugLine="Private Sub b_prodMenosC_Click"; + //BA.debugLineNum = 973;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 974;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)"; +__c.LogImpl("013107202","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0); + //BA.debugLineNum = 975;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)"; +__c.LogImpl("013107203","b_prodMenos_Click",__c.Colors.Magenta); + //BA.debugLineNum = 976;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; +_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 977;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_pedido._getpanel(_index); + //BA.debugLineNum = 978;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 979;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3"; +_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacantc = _pnl.GetView((int) (3)).GetView((int) (3)); + //BA.debugLineNum = 981;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T"; +_estetag = new anywheresoftware.b4a.objects.collections.List(); +_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag()))); + //BA.debugLineNum = 982;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get"; +__c.LogImpl("013107210","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 983;BA.debugLine="Log(esteTag)"; +__c.LogImpl("013107211",BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 985;BA.debugLine="If esteTag.Get(7) = \"1\" Then"; +if ((_estetag.Get((int) (7))).equals((Object)("1"))) { + //BA.debugLineNum = 986;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\""; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS, CONSECUTIVO FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))}))); + //BA.debugLineNum = 987;BA.debugLine="Log(c3.RowCount)"; +__c.LogImpl("013107215",BA.NumberToString(_c3.getRowCount()),0); + //BA.debugLineNum = 988;BA.debugLine="Log(esteTag.Get(8))"; +__c.LogImpl("013107216",BA.ObjectToString(_estetag.Get((int) (8))),0); + //BA.debugLineNum = 989;BA.debugLine="If c3.RowCount > 0 Then"; +if (_c3.getRowCount()>0) { + //BA.debugLineNum = 990;BA.debugLine="Log(\"AQUI VEMOS SI ACTUALIZAMOS\")"; +__c.LogImpl("013107218","AQUI VEMOS SI ACTUALIZAMOS",0); + //BA.debugLineNum = 991;BA.debugLine="c3.Position = 0"; +_c3.setPosition((int) (0)); + //BA.debugLineNum = 992;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then"; +if ((double)(Double.parseDouble(_c3.GetString("PE_CAJAS")))>1) { + //BA.debugLineNum = 993;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"+__c.SmartStringFormatter("",(Object)(_subs._traeprecioc /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c3.GetString("CONSECUTIVO")))+"'")); + }else if((_c3.GetString("PE_CAJAS")).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 995;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c3.GetString("CONSECUTIVO")))+"'")); + }; + }; + //BA.debugLineNum = 998;BA.debugLine="Log(\"entre al if o algo asi \")"; +__c.LogImpl("013107226","entre al if o algo asi ",0); + //BA.debugLineNum = 999;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; +if ((_lacantc.getText()).equals("")) { +_lacantc.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 1000;BA.debugLine="laCantc.Text = laCantc.Text - 1"; +_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1)); + //BA.debugLineNum = 1001;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0"; +if ((double)(Double.parseDouble(_lacantc.getText()))<0) { +_lacantc.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 1002;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else { + //BA.debugLineNum = 1007;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then"; +if ((_estetag.Get((int) (5))).equals(_estetag.Get((int) (6)))) { + //BA.debugLineNum = 1009;BA.debugLine="If laCantc.Text > 0 Then"; +if ((double)(Double.parseDouble(_lacantc.getText()))>0) { + //BA.debugLineNum = 1010;BA.debugLine="Log(\"entre al if o algo asi \")"; +__c.LogImpl("013107238","entre al if o algo asi ",0); + //BA.debugLineNum = 1011;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; +if ((_lacantc.getText()).equals("")) { +_lacantc.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 1012;BA.debugLine="laCantc.Text = laCantc.Text - 1"; +_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1)); + //BA.debugLineNum = 1013;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0"; +if ((double)(Double.parseDouble(_lacantc.getText()))<0) { +_lacantc.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 1014;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = (IFNULL(HVD_RECHAZOCANT,0) +(1 * "+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+")) WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); + //BA.debugLineNum = 1015;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = (cat_gp_almacen + (1 * ?)) where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2)),(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2)))))})); + //BA.debugLineNum = 1016;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else if((_lacantc.getText()).equals(BA.NumberToString(0))) { + }; + }else { + //BA.debugLineNum = 1023;BA.debugLine="If laCantc.Text > 0 Then"; +if ((double)(Double.parseDouble(_lacantc.getText()))>0) { + //BA.debugLineNum = 1026;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2"; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))}))); + //BA.debugLineNum = 1027;BA.debugLine="If c3.RowCount > 0 Then"; +if (_c3.getRowCount()>0) { + //BA.debugLineNum = 1028;BA.debugLine="Log(\"AQUI VEMOS SI ACTUALIZAMOS\")"; +__c.LogImpl("013107256","AQUI VEMOS SI ACTUALIZAMOS",0); + //BA.debugLineNum = 1029;BA.debugLine="c3.Position = 0"; +_c3.setPosition((int) (0)); + //BA.debugLineNum = 1030;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then"; +if ((double)(Double.parseDouble(_c3.GetString("PE_CAJAS")))>1) { + //BA.debugLineNum = 1031;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"+__c.SmartStringFormatter("",(Object)(_subs._traeprecioc /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); + }else if((_c3.GetString("PE_CAJAS")).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 1033;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDI"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); + }; + }; + //BA.debugLineNum = 1036;BA.debugLine="Log(\"entre al if o algo asi \")"; +__c.LogImpl("013107264","entre al if o algo asi ",0); + //BA.debugLineNum = 1037;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; +if ((_lacantc.getText()).equals("")) { +_lacantc.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 1038;BA.debugLine="laCantc.Text = laCantc.Text - 1"; +_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1)); + //BA.debugLineNum = 1039;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0"; +if ((double)(Double.parseDouble(_lacantc.getText()))<0) { +_lacantc.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 1040;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else if((_lacantc.getText()).equals(BA.NumberToString(0))) { + }; + }; + }; + //BA.debugLineNum = 1048;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get"; +_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))); + //BA.debugLineNum = 1049;BA.debugLine="Log(\"PU: \" & preciou)"; +__c.LogImpl("013107277","PU: "+BA.NumberToString(_preciou),0); + //BA.debugLineNum = 1050;BA.debugLine="End Sub"; +return ""; +} +public String _b_regresar_click() throws Exception{ + //BA.debugLineNum = 317;BA.debugLine="Sub b_regresar_Click"; + //BA.debugLineNum = 318;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 319;BA.debugLine="End Sub"; +return ""; +} +public String _b_revversar_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; + //BA.debugLineNum = 1056;BA.debugLine="Private Sub b_revversar_Click"; + //BA.debugLineNum = 1057;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery(\"SE"; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1058;BA.debugLine="If c3.RowCount = 0 Then"; +if (_c3.getRowCount()==0) { + //BA.debugLineNum = 1059;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS s"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR WHERE HVD_cliente in (Select CUENTA from cuentaa)")); + //BA.debugLineNum = 1060;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else { + //BA.debugLineNum = 1062;BA.debugLine="MsgboxAsync(\"Hay productos que ya se vendieron,"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Hay productos que ya se vendieron, no se puede regresar la venta"),BA.ObjectToCharSequence("Atención"),ba); + }; + //BA.debugLineNum = 1066;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_appear() throws Exception{ int _i = 0; anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null; int _cantres = 0; @@ -316,436 +685,310 @@ String _arti2 = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null; String _cuenta3 = ""; String _arti3 = ""; -RDebugUtils.currentLine=11862016; - //BA.debugLineNum = 11862016;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=11862017; - //BA.debugLineNum = 11862017;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; -_subs._centrapanel /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=11862021; - //BA.debugLineNum = 11862021;BA.debugLine="L_CANT.Text =\"\""; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=11862022; - //BA.debugLineNum = 11862022;BA.debugLine="L_TOTAL.Text=\"\""; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=11862023; - //BA.debugLineNum = 11862023;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 "))); -RDebugUtils.currentLine=11862024; - //BA.debugLineNum = 11862024;BA.debugLine="C.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=11862025; - //BA.debugLineNum = 11862025;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; -__ref._existe /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE"); -RDebugUtils.currentLine=11862026; - //BA.debugLineNum = 11862026;BA.debugLine="C.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=11862028; - //BA.debugLineNum = 11862028;BA.debugLine="c=Starter.skmt.ExecQuery(\"select hvd_num_registro"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select hvd_num_registro,CONSECUTIVO, HVD_CLIENTE, HVD_PRONOMBRE, HVD_PROID, HVD_CANT, HVD_COSTO_TOT, HVD_CODPROMO, BCAJAS, CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_rechazo <> 2 and hvd_cant > 0 and HVD_PRONOMBRE <> 'Cobranza Pendiente' order by HVD_CODPROMO desc, HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=11862029; - //BA.debugLineNum = 11862029;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=11862030; - //BA.debugLineNum = 11862030;BA.debugLine="clv_pedido.Clear"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=11862031; - //BA.debugLineNum = 11862031;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; -_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2)); -RDebugUtils.currentLine=11862032; - //BA.debugLineNum = 11862032;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().SetLayoutAnimated((int) (100),__c.DipToCurrent((int) (0)),__c.DipToCurrent((int) (60)),(int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-50),(int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.62)); -RDebugUtils.currentLine=11862033; - //BA.debugLineNum = 11862033;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._base_resize(__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().getWidth(),__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().getHeight()); -RDebugUtils.currentLine=11862035; - //BA.debugLineNum = 11862035;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=11862038; - //BA.debugLineNum = 11862038;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 68;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 69;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth()); + //BA.debugLineNum = 73;BA.debugLine="L_CANT.Text =\"\""; +_l_cant.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 74;BA.debugLine="L_TOTAL.Text=\"\""; +_l_total.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 75;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 "))); + //BA.debugLineNum = 76;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 77;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; +_existe = _c.GetString("EXISTE"); + //BA.debugLineNum = 78;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 80;BA.debugLine="c=Starter.skmt.ExecQuery(\"select hvd_num_registro"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select hvd_num_registro,CONSECUTIVO, HVD_CLIENTE, HVD_PRONOMBRE, HVD_PROID, HVD_CANT, HVD_COSTO_TOT, HVD_CODPROMO, BCAJAS, CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_rechazo <> 2 and hvd_cant > 0 and HVD_PRONOMBRE <> 'Cobranza Pendiente' order by HVD_CODPROMO desc, HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 81;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 82;BA.debugLine="clv_pedido.Clear"; +_clv_pedido._clear(); + //BA.debugLineNum = 83;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2)); + //BA.debugLineNum = 84;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6"; +_clv_pedido._getbase().SetLayoutAnimated((int) (100),__c.DipToCurrent((int) (0)),__c.DipToCurrent((int) (60)),(int) (_root.getWidth()-50),(int) (_root.getHeight()*0.62)); + //BA.debugLineNum = 85;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,"; +_clv_pedido._base_resize(_clv_pedido._getbase().getWidth(),_clv_pedido._getbase().getHeight()); + //BA.debugLineNum = 87;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 90;BA.debugLine="For i=0 To c.RowCount -1"; { final int step15 = 1; -final int limit15 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit15 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit15 ;_i = _i + step15 ) { -RDebugUtils.currentLine=11862039; - //BA.debugLineNum = 11862039;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=11862041; - //BA.debugLineNum = 11862041;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 91;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 93;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($"; _c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT FROM PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'")))); -RDebugUtils.currentLine=11862042; - //BA.debugLineNum = 11862042;BA.debugLine="If c4.RowCount > 0 Then"; +_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT FROM PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'")))); + //BA.debugLineNum = 94;BA.debugLine="If c4.RowCount > 0 Then"; if (_c4.getRowCount()>0) { -RDebugUtils.currentLine=11862043; - //BA.debugLineNum = 11862043;BA.debugLine="c4.Position = 0"; + //BA.debugLineNum = 95;BA.debugLine="c4.Position = 0"; _c4.setPosition((int) (0)); -RDebugUtils.currentLine=11862044; - //BA.debugLineNum = 11862044;BA.debugLine="Private cantres As Int = c4.GetString(\"PE_CANT"; + //BA.debugLineNum = 96;BA.debugLine="Private cantres As Int = c4.GetString(\"PE_CANT"; _cantres = (int)(Double.parseDouble(_c4.GetString("PE_CANT"))); }else { -RDebugUtils.currentLine=11862046; - //BA.debugLineNum = 11862046;BA.debugLine="cantres = 0"; + //BA.debugLineNum = 98;BA.debugLine="cantres = 0"; _cantres = (int) (0); }; -RDebugUtils.currentLine=11862049; - //BA.debugLineNum = 11862049;BA.debugLine="If c.GetString(\"BCAJAS\") = \"0\" Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("BCAJAS")).equals("0")) { -RDebugUtils.currentLine=11862050; - //BA.debugLineNum = 11862050;BA.debugLine="If c.GetString(\"HVD_CANT\") <> c.GetString(\"HVD"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")).equals(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")) == false) { -RDebugUtils.currentLine=11862052; - //BA.debugLineNum = 11862052;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery"; + //BA.debugLineNum = 101;BA.debugLine="If c.GetString(\"BCAJAS\") = \"0\" Then"; +if ((_c.GetString("BCAJAS")).equals("0")) { + //BA.debugLineNum = 102;BA.debugLine="If c.GetString(\"HVD_CANT\") <> c.GetString(\"HVD"; +if ((_c.GetString("HVD_CANT")).equals(_c.GetString("HVD_RECHAZOCANT")) == false) { + //BA.debugLineNum = 104;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery"; _oc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO")))+"'")))); -RDebugUtils.currentLine=11862053; - //BA.debugLineNum = 11862053;BA.debugLine="Private cant2 As Int = 0"; +_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+"'")))); + //BA.debugLineNum = 105;BA.debugLine="Private cant2 As Int = 0"; _cant2 = (int) (0); -RDebugUtils.currentLine=11862054; - //BA.debugLineNum = 11862054;BA.debugLine="If oc.RowCount > 0 Then"; + //BA.debugLineNum = 106;BA.debugLine="If oc.RowCount > 0 Then"; if (_oc.getRowCount()>0) { -RDebugUtils.currentLine=11862055; - //BA.debugLineNum = 11862055;BA.debugLine="oc.Position = 0"; + //BA.debugLineNum = 107;BA.debugLine="oc.Position = 0"; _oc.setPosition((int) (0)); -RDebugUtils.currentLine=11862056; - //BA.debugLineNum = 11862056;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")"; + //BA.debugLineNum = 108;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")"; _cant2 = (int)(Double.parseDouble(_oc.GetString("HVD_CANT"))); }; -RDebugUtils.currentLine=11862058; - //BA.debugLineNum = 11862058;BA.debugLine="oc.Close"; + //BA.debugLineNum = 110;BA.debugLine="oc.Close"; _oc.Close(); -RDebugUtils.currentLine=11862059; - //BA.debugLineNum = 11862059;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 111;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11862060; - //BA.debugLineNum = 11862060;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=11862061; - //BA.debugLineNum = 11862061;BA.debugLine="label1.TextSize = 12"; + //BA.debugLineNum = 112;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 113;BA.debugLine="label1.TextSize = 12"; _label1.setTextSize((float) (12)); -RDebugUtils.currentLine=11862062; - //BA.debugLineNum = 11862062;BA.debugLine="label1.TextColor = Colors.black"; + //BA.debugLineNum = 114;BA.debugLine="label1.TextColor = Colors.black"; _label1.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=11862063; - //BA.debugLineNum = 11862063;BA.debugLine="Dim label2 As Label"; + //BA.debugLineNum = 115;BA.debugLine="Dim label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11862064; - //BA.debugLineNum = 11862064;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=11862065; - //BA.debugLineNum = 11862065;BA.debugLine="label2.TextSize = 12"; + //BA.debugLineNum = 116;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 117;BA.debugLine="label2.TextSize = 12"; _label2.setTextSize((float) (12)); -RDebugUtils.currentLine=11862066; - //BA.debugLineNum = 11862066;BA.debugLine="label2.TextColor = Colors.black"; + //BA.debugLineNum = 118;BA.debugLine="label2.TextColor = Colors.black"; _label2.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=11862067; - //BA.debugLineNum = 11862067;BA.debugLine="Private bgColor, textColor As Int"; + //BA.debugLineNum = 119;BA.debugLine="Private bgColor, textColor As Int"; _bgcolor = 0; _textcolor = 0; -RDebugUtils.currentLine=11862068; - //BA.debugLineNum = 11862068;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; + //BA.debugLineNum = 120;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; _bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249)); -RDebugUtils.currentLine=11862069; - //BA.debugLineNum = 11862069;BA.debugLine="textColor = Colors.black"; + //BA.debugLineNum = 121;BA.debugLine="textColor = Colors.black"; _textcolor = __c.Colors.Black; -RDebugUtils.currentLine=11862070; - //BA.debugLineNum = 11862070;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAl"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) { -RDebugUtils.currentLine=11862072; - //BA.debugLineNum = 11862072;BA.debugLine="bgColor = Colors.White"; + //BA.debugLineNum = 122;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAl"; +if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) { + //BA.debugLineNum = 124;BA.debugLine="bgColor = Colors.White"; _bgcolor = __c.Colors.White; }; -RDebugUtils.currentLine=11862076; - //BA.debugLineNum = 11862076;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HV"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")),(int) (((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))))),(int) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-_cantres),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),_subs._traecliente /*String*/ (ba),_subs._traecliente /*String*/ (ba),BA.NumberToString(0),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + //BA.debugLineNum = 128;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HV"; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,_c.GetString("HVD_PROID"),_c.GetString("HVD_CODPROMO"),_c.GetString("CONSECUTIVO")),(int) (((double)(Double.parseDouble(_c.GetString("HVD_CANT")))-(double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT"))))),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-_cantres),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_subs._traecliente /*String*/ (ba),_subs._traecliente /*String*/ (ba),BA.NumberToString(0),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); }; - }else -{RDebugUtils.currentLine=11862079; - //BA.debugLineNum = 11862079;BA.debugLine="Else If c.GetString(\"BCAJAS\") = \"1\" Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("BCAJAS")).equals("1")) { -RDebugUtils.currentLine=11862080; - //BA.debugLineNum = 11862080;BA.debugLine="If c.GetString(\"HVD_CANT\") <> c.GetString(\"HVD"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")).equals(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")) == false) { -RDebugUtils.currentLine=11862082; - //BA.debugLineNum = 11862082;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery"; + }else if((_c.GetString("BCAJAS")).equals("1")) { + //BA.debugLineNum = 132;BA.debugLine="If c.GetString(\"HVD_CANT\") <> c.GetString(\"HVD"; +if ((_c.GetString("HVD_CANT")).equals(_c.GetString("HVD_RECHAZOCANT")) == false) { + //BA.debugLineNum = 134;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery"; _oc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO")))+"'")))); -RDebugUtils.currentLine=11862083; - //BA.debugLineNum = 11862083;BA.debugLine="Private cant2 As Int = 0"; +_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+"'")))); + //BA.debugLineNum = 135;BA.debugLine="Private cant2 As Int = 0"; _cant2 = (int) (0); -RDebugUtils.currentLine=11862084; - //BA.debugLineNum = 11862084;BA.debugLine="If oc.RowCount > 0 Then"; + //BA.debugLineNum = 136;BA.debugLine="If oc.RowCount > 0 Then"; if (_oc.getRowCount()>0) { -RDebugUtils.currentLine=11862085; - //BA.debugLineNum = 11862085;BA.debugLine="oc.Position = 0"; + //BA.debugLineNum = 137;BA.debugLine="oc.Position = 0"; _oc.setPosition((int) (0)); -RDebugUtils.currentLine=11862086; - //BA.debugLineNum = 11862086;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")"; + //BA.debugLineNum = 138;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")"; _cant2 = (int)(Double.parseDouble(_oc.GetString("HVD_CANT"))); }; -RDebugUtils.currentLine=11862088; - //BA.debugLineNum = 11862088;BA.debugLine="oc.Close"; + //BA.debugLineNum = 140;BA.debugLine="oc.Close"; _oc.Close(); -RDebugUtils.currentLine=11862089; - //BA.debugLineNum = 11862089;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 141;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11862090; - //BA.debugLineNum = 11862090;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=11862091; - //BA.debugLineNum = 11862091;BA.debugLine="label1.TextSize = 12"; + //BA.debugLineNum = 142;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 143;BA.debugLine="label1.TextSize = 12"; _label1.setTextSize((float) (12)); -RDebugUtils.currentLine=11862092; - //BA.debugLineNum = 11862092;BA.debugLine="label1.TextColor = Colors.black"; + //BA.debugLineNum = 144;BA.debugLine="label1.TextColor = Colors.black"; _label1.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=11862093; - //BA.debugLineNum = 11862093;BA.debugLine="Dim label2 As Label"; + //BA.debugLineNum = 145;BA.debugLine="Dim label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11862094; - //BA.debugLineNum = 11862094;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=11862095; - //BA.debugLineNum = 11862095;BA.debugLine="label2.TextSize = 12"; + //BA.debugLineNum = 146;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 147;BA.debugLine="label2.TextSize = 12"; _label2.setTextSize((float) (12)); -RDebugUtils.currentLine=11862096; - //BA.debugLineNum = 11862096;BA.debugLine="label2.TextColor = Colors.black"; + //BA.debugLineNum = 148;BA.debugLine="label2.TextColor = Colors.black"; _label2.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=11862097; - //BA.debugLineNum = 11862097;BA.debugLine="Private bgColor, textColor As Int"; + //BA.debugLineNum = 149;BA.debugLine="Private bgColor, textColor As Int"; _bgcolor = 0; _textcolor = 0; -RDebugUtils.currentLine=11862098; - //BA.debugLineNum = 11862098;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; + //BA.debugLineNum = 150;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; _bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249)); -RDebugUtils.currentLine=11862099; - //BA.debugLineNum = 11862099;BA.debugLine="textColor = Colors.black"; + //BA.debugLineNum = 151;BA.debugLine="textColor = Colors.black"; _textcolor = __c.Colors.Black; -RDebugUtils.currentLine=11862100; - //BA.debugLineNum = 11862100;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAl"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) { -RDebugUtils.currentLine=11862102; - //BA.debugLineNum = 11862102;BA.debugLine="bgColor = Colors.White"; + //BA.debugLineNum = 152;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAl"; +if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) { + //BA.debugLineNum = 154;BA.debugLine="bgColor = Colors.White"; _bgcolor = __c.Colors.White; }; -RDebugUtils.currentLine=11862106; - //BA.debugLineNum = 11862106;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HV"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),BA.NumberToString(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANTC"))))),(int) ((((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")))-(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))))),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),_subs._traecliente /*String*/ (ba),_subs._traecliente /*String*/ (ba),BA.NumberToString(0),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + //BA.debugLineNum = 158;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HV"; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),BA.NumberToString(((double)(Double.parseDouble(_c.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c.GetString("CANTC"))))),(int) ((((double)(Double.parseDouble(_c.GetString("HVD_CANT")))-(double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))))),(int)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT"))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_subs._traecliente /*String*/ (ba),_subs._traecliente /*String*/ (ba),BA.NumberToString(0),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + }; }; - }} -; } }; }; -RDebugUtils.currentLine=11862114; - //BA.debugLineNum = 11862114;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(\"Sele"; + //BA.debugLineNum = 166;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery(\"Sele"; _c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select * from PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa) AND PE_TIPO NOT IN ('SOBRANTE','FALTANTE')"))); -RDebugUtils.currentLine=11862115; - //BA.debugLineNum = 11862115;BA.debugLine="If c3.RowCount>0 Then"; + //BA.debugLineNum = 167;BA.debugLine="If c3.RowCount>0 Then"; if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=11862116; - //BA.debugLineNum = 11862116;BA.debugLine="For i= 0 To c3.RowCount -1"; + //BA.debugLineNum = 168;BA.debugLine="For i= 0 To c3.RowCount -1"; { final int step79 = 1; final int limit79 = (int) (_c3.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit79 ;_i = _i + step79 ) { -RDebugUtils.currentLine=11862117; - //BA.debugLineNum = 11862117;BA.debugLine="c3.Position = i"; + //BA.debugLineNum = 169;BA.debugLine="c3.Position = i"; _c3.setPosition(_i); -RDebugUtils.currentLine=11862118; - //BA.debugLineNum = 11862118;BA.debugLine="If c3.GetString(\"PE_BCAJAS\") = \"1\" Then"; + //BA.debugLineNum = 170;BA.debugLine="If c3.GetString(\"PE_BCAJAS\") = \"1\" Then"; if ((_c3.GetString("PE_BCAJAS")).equals("1")) { -RDebugUtils.currentLine=11862119; - //BA.debugLineNum = 11862119;BA.debugLine="Private bgColor, textColor As Int"; + //BA.debugLineNum = 171;BA.debugLine="Private bgColor, textColor As Int"; _bgcolor = 0; _textcolor = 0; -RDebugUtils.currentLine=11862120; - //BA.debugLineNum = 11862120;BA.debugLine="bgColor = Colors.RGB(221, 132, 132)'rosa"; + //BA.debugLineNum = 172;BA.debugLine="bgColor = Colors.RGB(221, 132, 132)'rosa"; _bgcolor = __c.Colors.RGB((int) (221),(int) (132),(int) (132)); -RDebugUtils.currentLine=11862121; - //BA.debugLineNum = 11862121;BA.debugLine="textColor = Colors.black"; + //BA.debugLineNum = 173;BA.debugLine="textColor = Colors.black"; _textcolor = __c.Colors.Black; -RDebugUtils.currentLine=11862122; - //BA.debugLineNum = 11862122;BA.debugLine="clv_pedido.Add(CreateListItem2(c3.GetString(\"P"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,_c3.GetString("PE_PRONOMBRE"),_c3.GetString("PE_COSTOU"),(int)(Double.parseDouble(_c3.GetString("PE_CANT"))),(int) (0),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,_c3.GetString("PE_PROID"),_bgcolor,_textcolor,_subs._traealmacen /*String*/ (ba),_subs._traecliente /*String*/ (ba),_c3.GetString("PE_CLIENTEOR"),BA.NumberToString(1),(int)(Double.parseDouble(_c3.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); -RDebugUtils.currentLine=11862123; - //BA.debugLineNum = 11862123;BA.debugLine="Log(\"#####################\"&c3.GetString(\"PE_P"; -__c.LogImpl("211862123","#####################"+_c3.GetString("PE_PRONOMBRE")+","+_c3.GetString("PE_CANT"),0); + //BA.debugLineNum = 174;BA.debugLine="clv_pedido.Add(CreateListItem2(c3.GetString(\"P"; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_c3.GetString("PE_PRONOMBRE"),_c3.GetString("PE_COSTOU"),(int)(Double.parseDouble(_c3.GetString("PE_CANT"))),(int) (0),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c3.GetString("PE_PROID"),_bgcolor,_textcolor,_subs._traealmacen /*String*/ (ba),_subs._traecliente /*String*/ (ba),_c3.GetString("PE_CLIENTEOR"),BA.NumberToString(1),(int)(Double.parseDouble(_c3.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + //BA.debugLineNum = 175;BA.debugLine="Log(\"#####################\"&c3.GetString(\"PE_P"; +__c.LogImpl("012124267","#####################"+_c3.GetString("PE_PRONOMBRE")+","+_c3.GetString("PE_CANT"),0); }else { -RDebugUtils.currentLine=11862125; - //BA.debugLineNum = 11862125;BA.debugLine="Private bgColor, textColor As Int"; + //BA.debugLineNum = 177;BA.debugLine="Private bgColor, textColor As Int"; _bgcolor = 0; _textcolor = 0; -RDebugUtils.currentLine=11862126; - //BA.debugLineNum = 11862126;BA.debugLine="bgColor = Colors.RGB(221, 132, 132)'rosa"; + //BA.debugLineNum = 178;BA.debugLine="bgColor = Colors.RGB(221, 132, 132)'rosa"; _bgcolor = __c.Colors.RGB((int) (221),(int) (132),(int) (132)); -RDebugUtils.currentLine=11862127; - //BA.debugLineNum = 11862127;BA.debugLine="textColor = Colors.black"; + //BA.debugLineNum = 179;BA.debugLine="textColor = Colors.black"; _textcolor = __c.Colors.Black; -RDebugUtils.currentLine=11862128; - //BA.debugLineNum = 11862128;BA.debugLine="Log(\"#####################\"&c3.GetString(\"PE_P"; -__c.LogImpl("211862128","#####################"+_c3.GetString("PE_PRONOMBRE")+","+_c3.GetString("PE_CANT"),0); -RDebugUtils.currentLine=11862129; - //BA.debugLineNum = 11862129;BA.debugLine="clv_pedido.Add(CreateListItem(c3.GetString(\"PE"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,_c3.GetString("PE_PRONOMBRE"),_c3.GetString("PE_COSTOU"),(int)(Double.parseDouble(_c3.GetString("PE_CANT"))),(int) (0),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,_c3.GetString("PE_PROID"),_bgcolor,_textcolor,_subs._traealmacen /*String*/ (ba),_subs._traecliente /*String*/ (ba),_c3.GetString("PE_CLIENTEOR"),BA.NumberToString(1),(int)(Double.parseDouble(_c3.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + //BA.debugLineNum = 180;BA.debugLine="Log(\"#####################\"&c3.GetString(\"PE_P"; +__c.LogImpl("012124272","#####################"+_c3.GetString("PE_PRONOMBRE")+","+_c3.GetString("PE_CANT"),0); + //BA.debugLineNum = 181;BA.debugLine="clv_pedido.Add(CreateListItem(c3.GetString(\"PE"; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c3.GetString("PE_PRONOMBRE"),_c3.GetString("PE_COSTOU"),(int)(Double.parseDouble(_c3.GetString("PE_CANT"))),(int) (0),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c3.GetString("PE_PROID"),_bgcolor,_textcolor,_subs._traealmacen /*String*/ (ba),_subs._traecliente /*String*/ (ba),_c3.GetString("PE_CLIENTEOR"),BA.NumberToString(1),(int)(Double.parseDouble(_c3.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); }; } }; }; -RDebugUtils.currentLine=11862135; - //BA.debugLineNum = 11862135;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 187;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s"; _vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT,HVD_COSTO_TOT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT from HIST_VENTAS where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE in (select cuenta from cuentaa) and HVD_PRONOMBRE <> 'Cobranza Pendiente'")))); -RDebugUtils.currentLine=11862137; - //BA.debugLineNum = 11862137;BA.debugLine="Private Cuenta As String = 0"; + //BA.debugLineNum = 189;BA.debugLine="Private Cuenta As String = 0"; _cuenta = BA.NumberToString(0); -RDebugUtils.currentLine=11862138; - //BA.debugLineNum = 11862138;BA.debugLine="Private arti As String = 0"; + //BA.debugLineNum = 190;BA.debugLine="Private arti As String = 0"; _arti = BA.NumberToString(0); -RDebugUtils.currentLine=11862139; - //BA.debugLineNum = 11862139;BA.debugLine="If vc.RowCount > 0 Then"; + //BA.debugLineNum = 191;BA.debugLine="If vc.RowCount > 0 Then"; if (_vc.getRowCount()>0) { -RDebugUtils.currentLine=11862140; - //BA.debugLineNum = 11862140;BA.debugLine="For i = 0 To vc.RowCount - 1"; + //BA.debugLineNum = 192;BA.debugLine="For i = 0 To vc.RowCount - 1"; { final int step100 = 1; final int limit100 = (int) (_vc.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit100 ;_i = _i + step100 ) { -RDebugUtils.currentLine=11862141; - //BA.debugLineNum = 11862141;BA.debugLine="vc.Position = i"; + //BA.debugLineNum = 193;BA.debugLine="vc.Position = i"; _vc.setPosition(_i); -RDebugUtils.currentLine=11862142; - //BA.debugLineNum = 11862142;BA.debugLine="Private cantres As Int = 0"; + //BA.debugLineNum = 194;BA.debugLine="Private cantres As Int = 0"; _cantres = (int) (0); -RDebugUtils.currentLine=11862143; - //BA.debugLineNum = 11862143;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 195;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($"; _c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT FROM PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("HVD_PROID")))+"' AND PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)")))); -RDebugUtils.currentLine=11862144; - //BA.debugLineNum = 11862144;BA.debugLine="If c4.RowCount > 0 Then"; + //BA.debugLineNum = 196;BA.debugLine="If c4.RowCount > 0 Then"; if (_c4.getRowCount()>0) { -RDebugUtils.currentLine=11862145; - //BA.debugLineNum = 11862145;BA.debugLine="c4.Position = 0"; + //BA.debugLineNum = 197;BA.debugLine="c4.Position = 0"; _c4.setPosition((int) (0)); -RDebugUtils.currentLine=11862146; - //BA.debugLineNum = 11862146;BA.debugLine="cantres = c4.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 198;BA.debugLine="cantres = c4.GetString(\"PE_CANT\")"; _cantres = (int)(Double.parseDouble(_c4.GetString("PE_CANT"))); -RDebugUtils.currentLine=11862147; - //BA.debugLineNum = 11862147;BA.debugLine="Log(c4.GetString(\"PE_CANT\"))"; -__c.LogImpl("211862147",_c4.GetString("PE_CANT"),0); + //BA.debugLineNum = 199;BA.debugLine="Log(c4.GetString(\"PE_CANT\"))"; +__c.LogImpl("012124291",_c4.GetString("PE_CANT"),0); }else { -RDebugUtils.currentLine=11862149; - //BA.debugLineNum = 11862149;BA.debugLine="cantres = 0"; + //BA.debugLineNum = 201;BA.debugLine="cantres = 0"; _cantres = (int) (0); }; -RDebugUtils.currentLine=11862154; - //BA.debugLineNum = 11862154;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - vc.Ge"; + //BA.debugLineNum = 206;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - vc.Ge"; _arti = BA.NumberToString((double)(Double.parseDouble(_arti))+((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))); -RDebugUtils.currentLine=11862155; - //BA.debugLineNum = 11862155;BA.debugLine="Cuenta = Cuenta + ((vc.GetString(\"HVD_CANT\") -"; + //BA.debugLineNum = 207;BA.debugLine="Cuenta = Cuenta + ((vc.GetString(\"HVD_CANT\") -"; _cuenta = BA.NumberToString((double)(Double.parseDouble(_cuenta))+(((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc.GetString("HVD_CANT")))))); } }; }; -RDebugUtils.currentLine=11862162; - //BA.debugLineNum = 11862162;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuery(\"s"; + //BA.debugLineNum = 214;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuery(\"s"; _vc2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 1 AND HVD_PRONOMBRE <> 'Cobranza Pendiente'"))); -RDebugUtils.currentLine=11862163; - //BA.debugLineNum = 11862163;BA.debugLine="Private Cuenta1 As String = 0"; + //BA.debugLineNum = 215;BA.debugLine="Private Cuenta1 As String = 0"; _cuenta1 = BA.NumberToString(0); -RDebugUtils.currentLine=11862164; - //BA.debugLineNum = 11862164;BA.debugLine="Private arti1 As String = 0"; + //BA.debugLineNum = 216;BA.debugLine="Private arti1 As String = 0"; _arti1 = BA.NumberToString(0); -RDebugUtils.currentLine=11862165; - //BA.debugLineNum = 11862165;BA.debugLine="If vc2.RowCount > 0 Then"; + //BA.debugLineNum = 217;BA.debugLine="If vc2.RowCount > 0 Then"; if (_vc2.getRowCount()>0) { -RDebugUtils.currentLine=11862166; - //BA.debugLineNum = 11862166;BA.debugLine="For i = 0 To vc2.RowCount - 1"; + //BA.debugLineNum = 218;BA.debugLine="For i = 0 To vc2.RowCount - 1"; { final int step119 = 1; final int limit119 = (int) (_vc2.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit119 ;_i = _i + step119 ) { -RDebugUtils.currentLine=11862167; - //BA.debugLineNum = 11862167;BA.debugLine="vc2.Position = i"; + //BA.debugLineNum = 219;BA.debugLine="vc2.Position = i"; _vc2.setPosition(_i); -RDebugUtils.currentLine=11862168; - //BA.debugLineNum = 11862168;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetString"; + //BA.debugLineNum = 220;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetString"; _preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc2.GetString("CANTC"))),(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=11862169; - //BA.debugLineNum = 11862169;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQuery("; + //BA.debugLineNum = 221;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQuery("; _vc3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc2.GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=11862170; - //BA.debugLineNum = 11862170;BA.debugLine="If vc3.RowCount > 0 Then"; + //BA.debugLineNum = 222;BA.debugLine="If vc3.RowCount > 0 Then"; if (_vc3.getRowCount()>0) { -RDebugUtils.currentLine=11862171; - //BA.debugLineNum = 11862171;BA.debugLine="vc3.Position = 0"; + //BA.debugLineNum = 223;BA.debugLine="vc3.Position = 0"; _vc3.setPosition((int) (0)); -RDebugUtils.currentLine=11862172; - //BA.debugLineNum = 11862172;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC\")-("; + //BA.debugLineNum = 224;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC\")-("; _cuenta1 = BA.NumberToString((double)(Double.parseDouble(_cuenta1))+(((double)(Double.parseDouble(_vc2.GetString("CANTC")))-((double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))/(double)(double)(Double.parseDouble(_vc3.GetString("CONVERSION")))))*_preu)); -RDebugUtils.currentLine=11862173; - //BA.debugLineNum = 11862173;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\") - v"; + //BA.debugLineNum = 225;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\") - v"; _arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+((double)(Double.parseDouble(_vc2.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT"))))); }; } }; }; -RDebugUtils.currentLine=11862179; - //BA.debugLineNum = 11862179;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 231;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuery($\""; _vc4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' AND HVD_PRONOMBRE <> 'Cobranza Pendiente'")))); -RDebugUtils.currentLine=11862180; - //BA.debugLineNum = 11862180;BA.debugLine="Private Cuenta2 As String = 0"; + //BA.debugLineNum = 232;BA.debugLine="Private Cuenta2 As String = 0"; _cuenta2 = BA.NumberToString(0); -RDebugUtils.currentLine=11862181; - //BA.debugLineNum = 11862181;BA.debugLine="Private arti2 As String = 0"; + //BA.debugLineNum = 233;BA.debugLine="Private arti2 As String = 0"; _arti2 = BA.NumberToString(0); -RDebugUtils.currentLine=11862182; - //BA.debugLineNum = 11862182;BA.debugLine="If vc4.RowCount > 0 Then"; + //BA.debugLineNum = 234;BA.debugLine="If vc4.RowCount > 0 Then"; if (_vc4.getRowCount()>0) { -RDebugUtils.currentLine=11862184; - //BA.debugLineNum = 11862184;BA.debugLine="For i = 0 To vc4.RowCount - 1"; + //BA.debugLineNum = 236;BA.debugLine="For i = 0 To vc4.RowCount - 1"; { final int step134 = 1; final int limit134 = (int) (_vc4.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit134 ;_i = _i + step134 ) { -RDebugUtils.currentLine=11862185; - //BA.debugLineNum = 11862185;BA.debugLine="vc4.Position = i"; + //BA.debugLineNum = 237;BA.debugLine="vc4.Position = i"; _vc4.setPosition(_i); -RDebugUtils.currentLine=11862186; - //BA.debugLineNum = 11862186;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetString("; + //BA.debugLineNum = 238;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetString("; if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { -RDebugUtils.currentLine=11862187; - //BA.debugLineNum = 11862187;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then"; + //BA.debugLineNum = 239;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then"; if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=11862188; - //BA.debugLineNum = 11862188;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_COSTO_"; + //BA.debugLineNum = 240;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_COSTO_"; _cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT")))); -RDebugUtils.currentLine=11862189; - //BA.debugLineNum = 11862189;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")"; + //BA.debugLineNum = 241;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")"; _arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))); }else { -RDebugUtils.currentLine=11862191; - //BA.debugLineNum = 11862191;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQuer"; + //BA.debugLineNum = 243;BA.debugLine="Private vc5 As Cursor = Starter.skmt.ExecQuer"; _vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc4.GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=11862192; - //BA.debugLineNum = 11862192;BA.debugLine="If vc5.RowCount > 0 Then"; + //BA.debugLineNum = 244;BA.debugLine="If vc5.RowCount > 0 Then"; if (_vc5.getRowCount()>0) { -RDebugUtils.currentLine=11862193; - //BA.debugLineNum = 11862193;BA.debugLine="vc5.Position= 0"; + //BA.debugLineNum = 245;BA.debugLine="vc5.Position= 0"; _vc5.setPosition((int) (0)); -RDebugUtils.currentLine=11862195; - //BA.debugLineNum = 11862195;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_CANT"; + //BA.debugLineNum = 247;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_CANT"; _cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_vc5.GetString("CAT_GP_PRECIO"))))); -RDebugUtils.currentLine=11862196; - //BA.debugLineNum = 11862196;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\")- v"; + //BA.debugLineNum = 248;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\")- v"; _arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))); }; }; @@ -753,969 +996,106 @@ _arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double } }; }; -RDebugUtils.currentLine=11862207; - //BA.debugLineNum = 11862207;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($\"S"; + //BA.debugLineNum = 259;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery($\"S"; _c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_TIPO NOT IN ('SOBRANTE','FALTANTE')")))); -RDebugUtils.currentLine=11862208; - //BA.debugLineNum = 11862208;BA.debugLine="Private Cuenta3 As String = 0"; + //BA.debugLineNum = 260;BA.debugLine="Private Cuenta3 As String = 0"; _cuenta3 = BA.NumberToString(0); -RDebugUtils.currentLine=11862209; - //BA.debugLineNum = 11862209;BA.debugLine="Private arti3 As String = 0"; + //BA.debugLineNum = 261;BA.debugLine="Private arti3 As String = 0"; _arti3 = BA.NumberToString(0); -RDebugUtils.currentLine=11862210; - //BA.debugLineNum = 11862210;BA.debugLine="If c4.RowCount > 0 Then"; + //BA.debugLineNum = 262;BA.debugLine="If c4.RowCount > 0 Then"; if (_c4.getRowCount()>0) { -RDebugUtils.currentLine=11862211; - //BA.debugLineNum = 11862211;BA.debugLine="For i = 0 To c4.RowCount -1"; + //BA.debugLineNum = 263;BA.debugLine="For i = 0 To c4.RowCount -1"; { final int step155 = 1; final int limit155 = (int) (_c4.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit155 ;_i = _i + step155 ) { -RDebugUtils.currentLine=11862212; - //BA.debugLineNum = 11862212;BA.debugLine="c4.Position = i"; + //BA.debugLineNum = 264;BA.debugLine="c4.Position = i"; _c4.setPosition(_i); -RDebugUtils.currentLine=11862213; - //BA.debugLineNum = 11862213;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 265;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")"; _arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT")))); -RDebugUtils.currentLine=11862214; - //BA.debugLineNum = 11862214;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_TOT\""; + //BA.debugLineNum = 266;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_TOT\""; _cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT")))); } }; }; -RDebugUtils.currentLine=11862218; - //BA.debugLineNum = 11862218;BA.debugLine="If Cuenta < 0 Then"; + //BA.debugLineNum = 270;BA.debugLine="If Cuenta < 0 Then"; if ((double)(Double.parseDouble(_cuenta))<0) { -RDebugUtils.currentLine=11862219; - //BA.debugLineNum = 11862219;BA.debugLine="Cuenta = 0"; + //BA.debugLineNum = 271;BA.debugLine="Cuenta = 0"; _cuenta = BA.NumberToString(0); }; -RDebugUtils.currentLine=11862221; - //BA.debugLineNum = 11862221;BA.debugLine="If Cuenta1 < 0 Then"; + //BA.debugLineNum = 273;BA.debugLine="If Cuenta1 < 0 Then"; if ((double)(Double.parseDouble(_cuenta1))<0) { -RDebugUtils.currentLine=11862222; - //BA.debugLineNum = 11862222;BA.debugLine="Cuenta = 0"; + //BA.debugLineNum = 274;BA.debugLine="Cuenta = 0"; _cuenta = BA.NumberToString(0); }; -RDebugUtils.currentLine=11862224; - //BA.debugLineNum = 11862224;BA.debugLine="If Cuenta2 < 0 Then"; + //BA.debugLineNum = 276;BA.debugLine="If Cuenta2 < 0 Then"; if ((double)(Double.parseDouble(_cuenta2))<0) { -RDebugUtils.currentLine=11862225; - //BA.debugLineNum = 11862225;BA.debugLine="Cuenta = 0"; + //BA.debugLineNum = 277;BA.debugLine="Cuenta = 0"; _cuenta = BA.NumberToString(0); }; -RDebugUtils.currentLine=11862227; - //BA.debugLineNum = 11862227;BA.debugLine="If Cuenta3 < 0 Then"; + //BA.debugLineNum = 279;BA.debugLine="If Cuenta3 < 0 Then"; if ((double)(Double.parseDouble(_cuenta3))<0) { -RDebugUtils.currentLine=11862228; - //BA.debugLineNum = 11862228;BA.debugLine="Cuenta = 0"; + //BA.debugLineNum = 280;BA.debugLine="Cuenta = 0"; _cuenta = BA.NumberToString(0); }; -RDebugUtils.currentLine=11862231; - //BA.debugLineNum = 11862231;BA.debugLine="If arti < 0 Then"; + //BA.debugLineNum = 283;BA.debugLine="If arti < 0 Then"; if ((double)(Double.parseDouble(_arti))<0) { -RDebugUtils.currentLine=11862232; - //BA.debugLineNum = 11862232;BA.debugLine="arti = 0"; + //BA.debugLineNum = 284;BA.debugLine="arti = 0"; _arti = BA.NumberToString(0); }; -RDebugUtils.currentLine=11862234; - //BA.debugLineNum = 11862234;BA.debugLine="If arti1 < 0 Then"; + //BA.debugLineNum = 286;BA.debugLine="If arti1 < 0 Then"; if ((double)(Double.parseDouble(_arti1))<0) { -RDebugUtils.currentLine=11862235; - //BA.debugLineNum = 11862235;BA.debugLine="arti = 0"; + //BA.debugLineNum = 287;BA.debugLine="arti = 0"; _arti = BA.NumberToString(0); }; -RDebugUtils.currentLine=11862237; - //BA.debugLineNum = 11862237;BA.debugLine="If arti2 < 0 Then"; + //BA.debugLineNum = 289;BA.debugLine="If arti2 < 0 Then"; if ((double)(Double.parseDouble(_arti2))<0) { -RDebugUtils.currentLine=11862238; - //BA.debugLineNum = 11862238;BA.debugLine="arti = 0"; + //BA.debugLineNum = 290;BA.debugLine="arti = 0"; _arti = BA.NumberToString(0); }; -RDebugUtils.currentLine=11862240; - //BA.debugLineNum = 11862240;BA.debugLine="If arti3 < 0 Then"; + //BA.debugLineNum = 292;BA.debugLine="If arti3 < 0 Then"; if ((double)(Double.parseDouble(_arti3))<0) { -RDebugUtils.currentLine=11862241; - //BA.debugLineNum = 11862241;BA.debugLine="arti = 0"; + //BA.debugLineNum = 293;BA.debugLine="arti = 0"; _arti = BA.NumberToString(0); }; -RDebugUtils.currentLine=11862244; - //BA.debugLineNum = 11862244;BA.debugLine="Log(Cuenta&\",\"&Cuenta1&\",\"&Cuenta2&\",\"&Cuenta3)"; -__c.LogImpl("211862244",_cuenta+","+_cuenta1+","+_cuenta2+","+_cuenta3,0); -RDebugUtils.currentLine=11862245; - //BA.debugLineNum = 11862245;BA.debugLine="Log(arti&\",\"&arti1&\",\"&arti2&\",\"&arti3)"; -__c.LogImpl("211862245",_arti+","+_arti1+","+_arti2+","+_arti3,0); -RDebugUtils.currentLine=11862246; - //BA.debugLineNum = 11862246;BA.debugLine="If Cuenta + Cuenta1 + Cuenta2 + Cuenta3 < 0 Then"; + //BA.debugLineNum = 296;BA.debugLine="Log(Cuenta&\",\"&Cuenta1&\",\"&Cuenta2&\",\"&Cuenta3)"; +__c.LogImpl("012124388",_cuenta+","+_cuenta1+","+_cuenta2+","+_cuenta3,0); + //BA.debugLineNum = 297;BA.debugLine="Log(arti&\",\"&arti1&\",\"&arti2&\",\"&arti3)"; +__c.LogImpl("012124389",_arti+","+_arti1+","+_arti2+","+_arti3,0); + //BA.debugLineNum = 298;BA.debugLine="If Cuenta + Cuenta1 + Cuenta2 + Cuenta3 < 0 Then"; if ((double)(Double.parseDouble(_cuenta))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))<0) { -RDebugUtils.currentLine=11862247; - //BA.debugLineNum = 11862247;BA.debugLine="L_TOTAL.Text = 0"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 299;BA.debugLine="L_TOTAL.Text = 0"; +_l_total.setText(BA.ObjectToCharSequence(0)); }else { -RDebugUtils.currentLine=11862249; - //BA.debugLineNum = 11862249;BA.debugLine="L_TOTAL.Text = NumberFormat2((Cuenta + Cuenta1 +"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_cuenta))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))),(int) (0),(int) (2),(int) (2),__c.True))); + //BA.debugLineNum = 301;BA.debugLine="L_TOTAL.Text = NumberFormat2((Cuenta + Cuenta1 +"; +_l_total.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_cuenta))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))),(int) (0),(int) (2),(int) (2),__c.True))); }; -RDebugUtils.currentLine=11862251; - //BA.debugLineNum = 11862251;BA.debugLine="If arti + arti1 +arti2 + arti3 < 0 Then"; + //BA.debugLineNum = 303;BA.debugLine="If arti + arti1 +arti2 + arti3 < 0 Then"; if ((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))<0) { -RDebugUtils.currentLine=11862252; - //BA.debugLineNum = 11862252;BA.debugLine="L_CANT.Text = 0"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 304;BA.debugLine="L_CANT.Text = 0"; +_l_cant.setText(BA.ObjectToCharSequence(0)); }else { -RDebugUtils.currentLine=11862254; - //BA.debugLineNum = 11862254;BA.debugLine="L_CANT.Text = NumberFormat2((arti + arti1 +arti2"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))),(int) (0),(int) (0),(int) (0),__c.True))); + //BA.debugLineNum = 306;BA.debugLine="L_CANT.Text = NumberFormat2((arti + arti1 +arti2"; +_l_cant.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))),(int) (0),(int) (0),(int) (0),__c.True))); }; -RDebugUtils.currentLine=11862258; - //BA.debugLineNum = 11862258;BA.debugLine="End Sub"; + //BA.debugLineNum = 310;BA.debugLine="End Sub"; return ""; } -public String _b_prodmasc_click(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "b_prodmasc_click", false)) - {return ((String) Debug.delegate(ba, "b_prodmasc_click", null));} -int _index = 0; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; -anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null; -anywheresoftware.b4a.objects.collections.List _estetag = null; -String _maxprods = ""; -RDebugUtils.currentLine=12779520; - //BA.debugLineNum = 12779520;BA.debugLine="Private Sub b_prodMasC_Click"; -RDebugUtils.currentLine=12779521; - //BA.debugLineNum = 12779521;BA.debugLine="etCantHasFocus = False"; -__ref._etcanthasfocus /*boolean*/ = __c.False; -RDebugUtils.currentLine=12779523; - //BA.debugLineNum = 12779523;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)"; -__c.LogImpl("212779523","b_prodMas_Click",__c.Colors.Magenta); -RDebugUtils.currentLine=12779524; - //BA.debugLineNum = 12779524;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; -_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=12779525; - //BA.debugLineNum = 12779525;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; -_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index); -RDebugUtils.currentLine=12779526; - //BA.debugLineNum = 12779526;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; -_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl = _pnl0.GetView((int) (0)); -RDebugUtils.currentLine=12779527; - //BA.debugLineNum = 12779527;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3"; -_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_lacantc = _pnl.GetView((int) (3)).GetView((int) (3)); -RDebugUtils.currentLine=12779531; - //BA.debugLineNum = 12779531;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T"; -_estetag = new anywheresoftware.b4a.objects.collections.List(); -_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag()))); -RDebugUtils.currentLine=12779532; - //BA.debugLineNum = 12779532;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta"; -__c.LogImpl("212779532","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=12779533; - //BA.debugLineNum = 12779533;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; -if ((_lacantc.getText()).equals("")) { -_lacantc.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12779535; - //BA.debugLineNum = 12779535;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es"; -_maxprods = BA.NumberToString(((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4)))))); -RDebugUtils.currentLine=12779536; - //BA.debugLineNum = 12779536;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)"; -__c.LogImpl("212779536",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red); -RDebugUtils.currentLine=12779537; - //BA.debugLineNum = 12779537;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)"; -__c.LogImpl("212779537",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red); -RDebugUtils.currentLine=12779538; - //BA.debugLineNum = 12779538;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag"; -__c.LogImpl("212779538",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green); -RDebugUtils.currentLine=12779540; - //BA.debugLineNum = 12779540;BA.debugLine="Log(maxProds)"; -__c.LogImpl("212779540",_maxprods,0); -RDebugUtils.currentLine=12779543; - //BA.debugLineNum = 12779543;BA.debugLine="If esteTag.Get(7) <> \"1\" Then"; -if ((_estetag.Get((int) (7))).equals((Object)("1")) == false) { -RDebugUtils.currentLine=12779546; - //BA.debugLineNum = 12779546;BA.debugLine="If laCantc.Text + 1 <= maxProds Then"; -if ((double)(Double.parseDouble(_lacantc.getText()))+1<=(double)(Double.parseDouble(_maxprods))) { -RDebugUtils.currentLine=12779547; - //BA.debugLineNum = 12779547;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)"; -__c.LogImpl("212779547",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0); -RDebugUtils.currentLine=12779548; - //BA.debugLineNum = 12779548;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$"; -_lacantc.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""))); -RDebugUtils.currentLine=12779550; - //BA.debugLineNum = 12779550;BA.debugLine="Log(laCantc.Text)"; -__c.LogImpl("212779550",_lacantc.getText(),0); -RDebugUtils.currentLine=12779551; - //BA.debugLineNum = 12779551;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) -(1 * "+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+") WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); -RDebugUtils.currentLine=12779559; - //BA.debugLineNum = 12779559;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }; - }; -RDebugUtils.currentLine=12779562; - //BA.debugLineNum = 12779562;BA.debugLine="End Sub"; -return ""; -} -public String _b_prodmenos_click(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "b_prodmenos_click", false)) - {return ((String) Debug.delegate(ba, "b_prodmenos_click", null));} -int _index = 0; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; -anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null; -anywheresoftware.b4a.objects.collections.List _estetag = null; -String _minimoadesc = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; -float _preciou = 0f; -RDebugUtils.currentLine=12386304; - //BA.debugLineNum = 12386304;BA.debugLine="Sub b_prodMenos_Click"; -RDebugUtils.currentLine=12386305; - //BA.debugLineNum = 12386305;BA.debugLine="etCantHasFocus = False"; -__ref._etcanthasfocus /*boolean*/ = __c.False; -RDebugUtils.currentLine=12386306; - //BA.debugLineNum = 12386306;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)"; -__c.LogImpl("212386306","etCantHasFocus="+BA.ObjectToString(__ref._etcanthasfocus /*boolean*/ ),0); -RDebugUtils.currentLine=12386307; - //BA.debugLineNum = 12386307;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)"; -__c.LogImpl("212386307","b_prodMenos_Click",__c.Colors.Magenta); -RDebugUtils.currentLine=12386308; - //BA.debugLineNum = 12386308;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; -_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=12386309; - //BA.debugLineNum = 12386309;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; -_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index); -RDebugUtils.currentLine=12386310; - //BA.debugLineNum = 12386310;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; -_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl = _pnl0.GetView((int) (0)); -RDebugUtils.currentLine=12386311; - //BA.debugLineNum = 12386311;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; -_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_lacant = _pnl.GetView((int) (2)).GetView((int) (3)); -RDebugUtils.currentLine=12386313; - //BA.debugLineNum = 12386313;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; -_estetag = new anywheresoftware.b4a.objects.collections.List(); -_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))); -RDebugUtils.currentLine=12386314; - //BA.debugLineNum = 12386314;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get("; -__c.LogImpl("212386314","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=12386315; - //BA.debugLineNum = 12386315;BA.debugLine="Private minimoadesc As String"; -_minimoadesc = ""; -RDebugUtils.currentLine=12386316; - //BA.debugLineNum = 12386316;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\""; -_minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=12386317; - //BA.debugLineNum = 12386317;BA.debugLine="If minimos.RowCount > 0 Then"; -if (_minimos.getRowCount()>0) { -RDebugUtils.currentLine=12386318; - //BA.debugLineNum = 12386318;BA.debugLine="minimos.Position = 0"; -_minimos.setPosition((int) (0)); -RDebugUtils.currentLine=12386319; - //BA.debugLineNum = 12386319;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN"; -_minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA"); - }else { -RDebugUtils.currentLine=12386321; - //BA.debugLineNum = 12386321;BA.debugLine="minimoadesc = \"1\""; -_minimoadesc = "1"; - }; -RDebugUtils.currentLine=12386323; - //BA.debugLineNum = 12386323;BA.debugLine="minimos.Close"; -_minimos.Close(); -RDebugUtils.currentLine=12386325; - //BA.debugLineNum = 12386325;BA.debugLine="minimoadesc = \"1\""; -_minimoadesc = "1"; -RDebugUtils.currentLine=12386326; - //BA.debugLineNum = 12386326;BA.debugLine="If esteTag.Get(7) = \"1\" Then"; -if ((_estetag.Get((int) (7))).equals((Object)("1"))) { -RDebugUtils.currentLine=12386327; - //BA.debugLineNum = 12386327;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; -if ((_lacant.getText()).equals("")) { -_lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12386328; - //BA.debugLineNum = 12386328;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$"; -_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+""))); -RDebugUtils.currentLine=12386329; - //BA.debugLineNum = 12386329;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; -if ((double)(Double.parseDouble(_lacant.getText()))<0) { -_lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12386330; - //BA.debugLineNum = 12386330;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\""; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))}))); -RDebugUtils.currentLine=12386331; - //BA.debugLineNum = 12386331;BA.debugLine="If c3.RowCount > 0 Then"; -if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=12386332; - //BA.debugLineNum = 12386332;BA.debugLine="c3.Position = 0"; -_c3.setPosition((int) (0)); -RDebugUtils.currentLine=12386333; - //BA.debugLineNum = 12386333;BA.debugLine="If c3.GetString(\"PE_CANT\") > minimoadesc Then"; -if ((double)(Double.parseDouble(_c3.GetString("PE_CANT")))>(double)(Double.parseDouble(_minimoadesc))) { -RDebugUtils.currentLine=12386334; - //BA.debugLineNum = 12386334;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; -_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=12386335; - //BA.debugLineNum = 12386335;BA.debugLine="If c2.RowCount > 0 Then"; -if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=12386336; - //BA.debugLineNum = 12386336;BA.debugLine="c2.Position = 0"; -_c2.setPosition((int) (0)); -RDebugUtils.currentLine=12386338; - //BA.debugLineNum = 12386338;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) and CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); - }; - }else -{RDebugUtils.currentLine=12386340; - //BA.debugLineNum = 12386340;BA.debugLine="Else If c3.GetString(\"PE_CANT\") = minimoadesc T"; -if ((_c3.GetString("PE_CANT")).equals(_minimoadesc)) { -RDebugUtils.currentLine=12386341; - //BA.debugLineNum = 12386341;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; -_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=12386342; - //BA.debugLineNum = 12386342;BA.debugLine="If c2.RowCount > 0 Then"; -if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=12386343; - //BA.debugLineNum = 12386343;BA.debugLine="c2.Position = 0"; -_c2.setPosition((int) (0)); -RDebugUtils.currentLine=12386346; - //BA.debugLineNum = 12386346;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); - }; - }} -; - }; -RDebugUtils.currentLine=12386353; - //BA.debugLineNum = 12386353;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }else { -RDebugUtils.currentLine=12386356; - //BA.debugLineNum = 12386356;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then"; -if ((_estetag.Get((int) (5))).equals(_estetag.Get((int) (6)))) { -RDebugUtils.currentLine=12386357; - //BA.debugLineNum = 12386357;BA.debugLine="If laCant.Text > 0 Then"; -if ((double)(Double.parseDouble(_lacant.getText()))>0) { -RDebugUtils.currentLine=12386358; - //BA.debugLineNum = 12386358;BA.debugLine="If esteTag.Get(3) <> Subs.traeAlmacen Then 'Si"; -if ((_estetag.Get((int) (3))).equals((Object)(_subs._traealmacen /*String*/ (ba))) == false) { -RDebugUtils.currentLine=12386359; - //BA.debugLineNum = 12386359;BA.debugLine="Private c2 As Cursor =Starter.skmt.ExecQuery("; -_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_RECHAZO FROM HIST_VENTAS WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' AND HVD_CLIENTE IN (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")))); -RDebugUtils.currentLine=12386360; - //BA.debugLineNum = 12386360;BA.debugLine="c2.Position = 0"; -_c2.setPosition((int) (0)); -RDebugUtils.currentLine=12386361; - //BA.debugLineNum = 12386361;BA.debugLine="If c2.GetString(\"HVD_RECHAZO\") = \"0\" Then"; -if ((_c2.GetString("HVD_RECHAZO")).equals("0")) { -RDebugUtils.currentLine=12386364; - //BA.debugLineNum = 12386364;BA.debugLine="Log(\"ES PROMO\")"; -__c.LogImpl("212386364","ES PROMO",0); -RDebugUtils.currentLine=12386365; - //BA.debugLineNum = 12386365;BA.debugLine="Log(esteTag.Get(3))"; -__c.LogImpl("212386365",BA.ObjectToString(_estetag.Get((int) (3))),0); -RDebugUtils.currentLine=12386366; - //BA.debugLineNum = 12386366;BA.debugLine="result = Msgbox2(\"Si se modifica una promoc"; -__ref._result /*String*/ = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Si se modifica una promoción, la promoción se rompe y solo quedarÔn los productos sueltos, ¿seguro que desea continuar?"),BA.ObjectToCharSequence("Modificar Promoción"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); -RDebugUtils.currentLine=12386367; - //BA.debugLineNum = 12386367;BA.debugLine="If result = DialogResponse.POSITIVE Then 'Qu"; -if ((__ref._result /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { -RDebugUtils.currentLine=12386368; - //BA.debugLineNum = 12386368;BA.debugLine="prodsMap.Remove(esteTag.Get(3))"; -__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Remove(_estetag.Get((int) (3))); -RDebugUtils.currentLine=12386372; - //BA.debugLineNum = 12386372;BA.debugLine="LogColor(esteTag.Get(3),Colors.Blue)"; -__c.LogImpl("212386372",BA.ObjectToString(_estetag.Get((int) (3))),__c.Colors.Blue); -RDebugUtils.currentLine=12386375; - //BA.debugLineNum = 12386375;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VEN"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT WHERE HVD_CODPROMO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_CLIENTE in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=12386376; - //BA.debugLineNum = 12386376;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VEN"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_CANT WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_CODPROMO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_CLIENTE in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=12386379; - //BA.debugLineNum = 12386379;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=12386380; - //BA.debugLineNum = 12386380;BA.debugLine="LogColor(prodsMap, Colors.red)"; -__c.LogImpl("212386380",BA.ObjectToString(__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ ),__c.Colors.Red); -RDebugUtils.currentLine=12386381; - //BA.debugLineNum = 12386381;BA.debugLine="reconstruirPedido = True"; -__ref._reconstruirpedido /*boolean*/ = __c.True; -RDebugUtils.currentLine=12386382; - //BA.debugLineNum = 12386382;BA.debugLine="promoABorrar = esteTag.Get(3)"; -__ref._promoaborrar /*String*/ = BA.ObjectToString(_estetag.Get((int) (3))); -RDebugUtils.currentLine=12386383; - //BA.debugLineNum = 12386383;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }; - }else { -RDebugUtils.currentLine=12386386; - //BA.debugLineNum = 12386386;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; -if ((_lacant.getText()).equals("")) { -_lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12386387; - //BA.debugLineNum = 12386387;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$"; -_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+""))); -RDebugUtils.currentLine=12386388; - //BA.debugLineNum = 12386388;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; -if ((double)(Double.parseDouble(_lacant.getText()))<0) { -_lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12386389; - //BA.debugLineNum = 12386389;BA.debugLine="Log(\"NO ES promo\")"; -__c.LogImpl("212386389","NO ES promo",0); -RDebugUtils.currentLine=12386390; - //BA.debugLineNum = 12386390;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENT"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"') WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); -RDebugUtils.currentLine=12386391; - //BA.debugLineNum = 12386391;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunap"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))})); -RDebugUtils.currentLine=12386392; - //BA.debugLineNum = 12386392;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }; - }else { -RDebugUtils.currentLine=12386395; - //BA.debugLineNum = 12386395;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; -if ((_lacant.getText()).equals("")) { -_lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12386396; - //BA.debugLineNum = 12386396;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$"; -_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+""))); -RDebugUtils.currentLine=12386397; - //BA.debugLineNum = 12386397;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; -if ((double)(Double.parseDouble(_lacant.getText()))<0) { -_lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12386398; - //BA.debugLineNum = 12386398;BA.debugLine="Log(\"NO ES promo\")"; -__c.LogImpl("212386398","NO ES promo",0); -RDebugUtils.currentLine=12386399; - //BA.debugLineNum = 12386399;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTA"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = IFNULL(HVD_RECHAZOCANT,0) + (1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), BCAJAS = 0, CANTC = 0 WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); -RDebugUtils.currentLine=12386400; - //BA.debugLineNum = 12386400;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapr"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))})); -RDebugUtils.currentLine=12386401; - //BA.debugLineNum = 12386401;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }; - }; - }else { -RDebugUtils.currentLine=12386406; - //BA.debugLineNum = 12386406;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; -if ((_lacant.getText()).equals("")) { -_lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12386407; - //BA.debugLineNum = 12386407;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$"; -_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+""))); -RDebugUtils.currentLine=12386408; - //BA.debugLineNum = 12386408;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; -if ((double)(Double.parseDouble(_lacant.getText()))<0) { -_lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12386409; - //BA.debugLineNum = 12386409;BA.debugLine="Log(\"NO ES promo\")"; -__c.LogImpl("212386409","NO ES promo",0); -RDebugUtils.currentLine=12386414; - //BA.debugLineNum = 12386414;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2("; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))}))); -RDebugUtils.currentLine=12386415; - //BA.debugLineNum = 12386415;BA.debugLine="If c3.RowCount > 0 Then"; -if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=12386416; - //BA.debugLineNum = 12386416;BA.debugLine="c3.Position = 0"; -_c3.setPosition((int) (0)); -RDebugUtils.currentLine=12386417; - //BA.debugLineNum = 12386417;BA.debugLine="If c3.GetString(\"PE_CANT\") > 1 Then"; -if ((double)(Double.parseDouble(_c3.GetString("PE_CANT")))>1) { -RDebugUtils.currentLine=12386418; - //BA.debugLineNum = 12386418;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery"; -_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=12386419; - //BA.debugLineNum = 12386419;BA.debugLine="If c2.RowCount > 0 Then"; -if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=12386420; - //BA.debugLineNum = 12386420;BA.debugLine="c2.Position = 0"; -_c2.setPosition((int) (0)); -RDebugUtils.currentLine=12386421; - //BA.debugLineNum = 12386421;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); - }; - }else -{RDebugUtils.currentLine=12386423; - //BA.debugLineNum = 12386423;BA.debugLine="Else If c3.GetString(\"PE_CANT\") = 1 Then"; -if ((_c3.GetString("PE_CANT")).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=12386424; - //BA.debugLineNum = 12386424;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery"; -_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=12386425; - //BA.debugLineNum = 12386425;BA.debugLine="If c2.RowCount > 0 Then"; -if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=12386426; - //BA.debugLineNum = 12386426;BA.debugLine="c2.Position = 0"; -_c2.setPosition((int) (0)); -RDebugUtils.currentLine=12386427; - //BA.debugLineNum = 12386427;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDI"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); - }; - }} -; - }; -RDebugUtils.currentLine=12386431; - //BA.debugLineNum = 12386431;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }; - }; -RDebugUtils.currentLine=12386434; - //BA.debugLineNum = 12386434;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get"; -_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))); -RDebugUtils.currentLine=12386435; - //BA.debugLineNum = 12386435;BA.debugLine="Log(\"PU: \" & preciou)"; -__c.LogImpl("212386435","PU: "+BA.NumberToString(_preciou),0); -RDebugUtils.currentLine=12386446; - //BA.debugLineNum = 12386446;BA.debugLine="End Sub"; -return ""; -} -public String _b_prodmenosc_click(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "b_prodmenosc_click", false)) - {return ((String) Debug.delegate(ba, "b_prodmenosc_click", null));} -int _index = 0; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; -anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null; -anywheresoftware.b4a.objects.collections.List _estetag = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; -float _preciou = 0f; -RDebugUtils.currentLine=12845056; - //BA.debugLineNum = 12845056;BA.debugLine="Private Sub b_prodMenosC_Click"; -RDebugUtils.currentLine=12845057; - //BA.debugLineNum = 12845057;BA.debugLine="etCantHasFocus = False"; -__ref._etcanthasfocus /*boolean*/ = __c.False; -RDebugUtils.currentLine=12845058; - //BA.debugLineNum = 12845058;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)"; -__c.LogImpl("212845058","etCantHasFocus="+BA.ObjectToString(__ref._etcanthasfocus /*boolean*/ ),0); -RDebugUtils.currentLine=12845059; - //BA.debugLineNum = 12845059;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)"; -__c.LogImpl("212845059","b_prodMenos_Click",__c.Colors.Magenta); -RDebugUtils.currentLine=12845060; - //BA.debugLineNum = 12845060;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; -_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=12845061; - //BA.debugLineNum = 12845061;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; -_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index); -RDebugUtils.currentLine=12845062; - //BA.debugLineNum = 12845062;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; -_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl = _pnl0.GetView((int) (0)); -RDebugUtils.currentLine=12845063; - //BA.debugLineNum = 12845063;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3"; -_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_lacantc = _pnl.GetView((int) (3)).GetView((int) (3)); -RDebugUtils.currentLine=12845065; - //BA.debugLineNum = 12845065;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T"; -_estetag = new anywheresoftware.b4a.objects.collections.List(); -_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag()))); -RDebugUtils.currentLine=12845066; - //BA.debugLineNum = 12845066;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get"; -__c.LogImpl("212845066","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=12845067; - //BA.debugLineNum = 12845067;BA.debugLine="Log(esteTag)"; -__c.LogImpl("212845067",BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=12845069; - //BA.debugLineNum = 12845069;BA.debugLine="If esteTag.Get(7) = \"1\" Then"; -if ((_estetag.Get((int) (7))).equals((Object)("1"))) { -RDebugUtils.currentLine=12845070; - //BA.debugLineNum = 12845070;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\""; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS, CONSECUTIVO FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))}))); -RDebugUtils.currentLine=12845071; - //BA.debugLineNum = 12845071;BA.debugLine="Log(c3.RowCount)"; -__c.LogImpl("212845071",BA.NumberToString(_c3.getRowCount()),0); -RDebugUtils.currentLine=12845072; - //BA.debugLineNum = 12845072;BA.debugLine="Log(esteTag.Get(8))"; -__c.LogImpl("212845072",BA.ObjectToString(_estetag.Get((int) (8))),0); -RDebugUtils.currentLine=12845073; - //BA.debugLineNum = 12845073;BA.debugLine="If c3.RowCount > 0 Then"; -if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=12845074; - //BA.debugLineNum = 12845074;BA.debugLine="Log(\"AQUI VEMOS SI ACTUALIZAMOS\")"; -__c.LogImpl("212845074","AQUI VEMOS SI ACTUALIZAMOS",0); -RDebugUtils.currentLine=12845075; - //BA.debugLineNum = 12845075;BA.debugLine="c3.Position = 0"; -_c3.setPosition((int) (0)); -RDebugUtils.currentLine=12845076; - //BA.debugLineNum = 12845076;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then"; -if ((double)(Double.parseDouble(_c3.GetString("PE_CAJAS")))>1) { -RDebugUtils.currentLine=12845077; - //BA.debugLineNum = 12845077;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"+__c.SmartStringFormatter("",(Object)(_subs._traeprecioc /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c3.GetString("CONSECUTIVO")))+"'")); - }else -{RDebugUtils.currentLine=12845078; - //BA.debugLineNum = 12845078;BA.debugLine="Else If c3.GetString(\"PE_CAJAS\") = 1 Then"; -if ((_c3.GetString("PE_CAJAS")).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=12845079; - //BA.debugLineNum = 12845079;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c3.GetString("CONSECUTIVO")))+"'")); - }} -; - }; -RDebugUtils.currentLine=12845082; - //BA.debugLineNum = 12845082;BA.debugLine="Log(\"entre al if o algo asi \")"; -__c.LogImpl("212845082","entre al if o algo asi ",0); -RDebugUtils.currentLine=12845083; - //BA.debugLineNum = 12845083;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; -if ((_lacantc.getText()).equals("")) { -_lacantc.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12845084; - //BA.debugLineNum = 12845084;BA.debugLine="laCantc.Text = laCantc.Text - 1"; -_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1)); -RDebugUtils.currentLine=12845085; - //BA.debugLineNum = 12845085;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0"; -if ((double)(Double.parseDouble(_lacantc.getText()))<0) { -_lacantc.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12845086; - //BA.debugLineNum = 12845086;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }else { -RDebugUtils.currentLine=12845091; - //BA.debugLineNum = 12845091;BA.debugLine="If esteTag.Get(5) = esteTag.Get(6) Then"; -if ((_estetag.Get((int) (5))).equals(_estetag.Get((int) (6)))) { -RDebugUtils.currentLine=12845093; - //BA.debugLineNum = 12845093;BA.debugLine="If laCantc.Text > 0 Then"; -if ((double)(Double.parseDouble(_lacantc.getText()))>0) { -RDebugUtils.currentLine=12845094; - //BA.debugLineNum = 12845094;BA.debugLine="Log(\"entre al if o algo asi \")"; -__c.LogImpl("212845094","entre al if o algo asi ",0); -RDebugUtils.currentLine=12845095; - //BA.debugLineNum = 12845095;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; -if ((_lacantc.getText()).equals("")) { -_lacantc.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12845096; - //BA.debugLineNum = 12845096;BA.debugLine="laCantc.Text = laCantc.Text - 1"; -_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1)); -RDebugUtils.currentLine=12845097; - //BA.debugLineNum = 12845097;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0"; -if ((double)(Double.parseDouble(_lacantc.getText()))<0) { -_lacantc.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12845098; - //BA.debugLineNum = 12845098;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1, HVD_RECHAZOCANT = (IFNULL(HVD_RECHAZOCANT,0) +(1 * "+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+")) WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and HVD_cliente in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); -RDebugUtils.currentLine=12845099; - //BA.debugLineNum = 12845099;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = (cat_gp_almacen + (1 * ?)) where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2)),(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2)))))})); -RDebugUtils.currentLine=12845100; - //BA.debugLineNum = 12845100;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }else -{RDebugUtils.currentLine=12845101; - //BA.debugLineNum = 12845101;BA.debugLine="Else If laCantc.Text = 0 Then"; -if ((_lacantc.getText()).equals(BA.NumberToString(0))) { - }} -; - }else { -RDebugUtils.currentLine=12845107; - //BA.debugLineNum = 12845107;BA.debugLine="If laCantc.Text > 0 Then"; -if ((double)(Double.parseDouble(_lacantc.getText()))>0) { -RDebugUtils.currentLine=12845110; - //BA.debugLineNum = 12845110;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2"; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) and CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (8)))}))); -RDebugUtils.currentLine=12845111; - //BA.debugLineNum = 12845111;BA.debugLine="If c3.RowCount > 0 Then"; -if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=12845112; - //BA.debugLineNum = 12845112;BA.debugLine="Log(\"AQUI VEMOS SI ACTUALIZAMOS\")"; -__c.LogImpl("212845112","AQUI VEMOS SI ACTUALIZAMOS",0); -RDebugUtils.currentLine=12845113; - //BA.debugLineNum = 12845113;BA.debugLine="c3.Position = 0"; -_c3.setPosition((int) (0)); -RDebugUtils.currentLine=12845114; - //BA.debugLineNum = 12845114;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then"; -if ((double)(Double.parseDouble(_c3.GetString("PE_CAJAS")))>1) { -RDebugUtils.currentLine=12845115; - //BA.debugLineNum = 12845115;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"+__c.SmartStringFormatter("",(Object)(_subs._traeprecioc /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); - }else -{RDebugUtils.currentLine=12845116; - //BA.debugLineNum = 12845116;BA.debugLine="Else If c3.GetString(\"PE_CAJAS\") = 1 Then"; -if ((_c3.GetString("PE_CAJAS")).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=12845117; - //BA.debugLineNum = 12845117;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDI"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (8)))+"'")); - }} -; - }; -RDebugUtils.currentLine=12845120; - //BA.debugLineNum = 12845120;BA.debugLine="Log(\"entre al if o algo asi \")"; -__c.LogImpl("212845120","entre al if o algo asi ",0); -RDebugUtils.currentLine=12845121; - //BA.debugLineNum = 12845121;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; -if ((_lacantc.getText()).equals("")) { -_lacantc.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12845122; - //BA.debugLineNum = 12845122;BA.debugLine="laCantc.Text = laCantc.Text - 1"; -_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1)); -RDebugUtils.currentLine=12845123; - //BA.debugLineNum = 12845123;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0"; -if ((double)(Double.parseDouble(_lacantc.getText()))<0) { -_lacantc.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=12845124; - //BA.debugLineNum = 12845124;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }else -{RDebugUtils.currentLine=12845126; - //BA.debugLineNum = 12845126;BA.debugLine="Else If laCantc.Text = 0 Then"; -if ((_lacantc.getText()).equals(BA.NumberToString(0))) { - }} -; - }; - }; -RDebugUtils.currentLine=12845132; - //BA.debugLineNum = 12845132;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get"; -_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))); -RDebugUtils.currentLine=12845133; - //BA.debugLineNum = 12845133;BA.debugLine="Log(\"PU: \" & preciou)"; -__c.LogImpl("212845133","PU: "+BA.NumberToString(_preciou),0); -RDebugUtils.currentLine=12845134; - //BA.debugLineNum = 12845134;BA.debugLine="End Sub"; -return ""; -} -public String _b_regresar_click(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "b_regresar_click", false)) - {return ((String) Debug.delegate(ba, "b_regresar_click", null));} -RDebugUtils.currentLine=11993088; - //BA.debugLineNum = 11993088;BA.debugLine="Sub b_regresar_Click"; -RDebugUtils.currentLine=11993089; - //BA.debugLineNum = 11993089;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; -_b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=11993090; - //BA.debugLineNum = 11993090;BA.debugLine="End Sub"; -return ""; -} -public String _b_revversar_click(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "b_revversar_click", false)) - {return ((String) Debug.delegate(ba, "b_revversar_click", null));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; -RDebugUtils.currentLine=12976128; - //BA.debugLineNum = 12976128;BA.debugLine="Private Sub b_revversar_Click"; -RDebugUtils.currentLine=12976129; - //BA.debugLineNum = 12976129;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery(\"SE"; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM PEDIDO WHERE PE_CLIENTEOR IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=12976130; - //BA.debugLineNum = 12976130;BA.debugLine="If c3.RowCount = 0 Then"; -if (_c3.getRowCount()==0) { -RDebugUtils.currentLine=12976131; - //BA.debugLineNum = 12976131;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS s"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0, BCAJAS = BCAJAS_OR, CANTC = CANTC_OR WHERE HVD_cliente in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=12976132; - //BA.debugLineNum = 12976132;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }else { -RDebugUtils.currentLine=12976134; - //BA.debugLineNum = 12976134;BA.debugLine="MsgboxAsync(\"Hay productos que ya se vendieron,"; -__c.MsgboxAsync(BA.ObjectToCharSequence("Hay productos que ya se vendieron, no se puede regresar la venta"),BA.ObjectToCharSequence("Atención"),ba); - }; -RDebugUtils.currentLine=12976138; - //BA.debugLineNum = 12976138;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(reparto_izca.keymon.lat.c_detalleventa __ref,String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,String _clienterecha,String _bandera,int _consecutivo) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "createlistitem", false)) - {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_text,_preciou,_inv,_inv2,_width,_height,_img,_prodid,_bc,_tc,_promo,_cliente_original,_clienterecha,_bandera,_consecutivo}));} -anywheresoftware.b4a.objects.B4XViewWrapper _p = null; -anywheresoftware.b4a.objects.CSBuilder _cs = null; -RDebugUtils.currentLine=12255232; - //BA.debugLineNum = 12255232;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri"; -RDebugUtils.currentLine=12255233; - //BA.debugLineNum = 12255233;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; -_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=12255234; - //BA.debugLineNum = 12255234;BA.debugLine="Private cs As CSBuilder"; -_cs = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=12255235; - //BA.debugLineNum = 12255235;BA.debugLine="cs.Initialize"; -_cs.Initialize(); -RDebugUtils.currentLine=12255236; - //BA.debugLineNum = 12255236;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; -_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=12255237; - //BA.debugLineNum = 12255237;BA.debugLine="p.LoadLayout(\"prodItem2\")"; -_p.LoadLayout("prodItem2",ba); -RDebugUtils.currentLine=12255238; - //BA.debugLineNum = 12255238;BA.debugLine="p_prods.Color = bc"; -__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(_bc); -RDebugUtils.currentLine=12255239; - //BA.debugLineNum = 12255239;BA.debugLine="l_prodX.TextColor = tc"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(_tc); -RDebugUtils.currentLine=12255240; - //BA.debugLineNum = 12255240;BA.debugLine="precioU = $\"$1.2{precioU}\"$"; -_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""); -RDebugUtils.currentLine=12255241; - //BA.debugLineNum = 12255241;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\""; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)); -RDebugUtils.currentLine=12255242; - //BA.debugLineNum = 12255242;BA.debugLine="If promo <> \"1\" And precioU = 0 Then"; -if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=12255243; - //BA.debugLineNum = 12255243;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject())); - }; -RDebugUtils.currentLine=12255245; - //BA.debugLineNum = 12255245;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs"))); -RDebugUtils.currentLine=12255248; - //BA.debugLineNum = 12255248;BA.debugLine="l_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&\""; -__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo))); -RDebugUtils.currentLine=12255249; - //BA.debugLineNum = 12255249;BA.debugLine="et_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&"; -__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo))); -RDebugUtils.currentLine=12255250; - //BA.debugLineNum = 12255250;BA.debugLine="p_prods.Tag = l_pCant.tag"; -__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTag(__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .getTag()); -RDebugUtils.currentLine=12255252; - //BA.debugLineNum = 12255252;BA.debugLine="l_pCant.Text = inv"; -__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_inv)); -RDebugUtils.currentLine=12255256; - //BA.debugLineNum = 12255256;BA.debugLine="l_pCant.BringToFront"; -__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .BringToFront(); -RDebugUtils.currentLine=12255257; - //BA.debugLineNum = 12255257;BA.debugLine="et_pCant.SendToBack"; -__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .SendToBack(); -RDebugUtils.currentLine=12255258; - //BA.debugLineNum = 12255258;BA.debugLine="p_botMasMenC.Visible = False"; -__ref._p_botmasmenc /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=12255259; - //BA.debugLineNum = 12255259;BA.debugLine="l_cajas.Visible = False"; -__ref._l_cajas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=12255261; - //BA.debugLineNum = 12255261;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())); -RDebugUtils.currentLine=12255262; - //BA.debugLineNum = 12255262;BA.debugLine="End Sub"; -return null; -} -public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(reparto_izca.keymon.lat.c_detalleventa __ref,String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,String _clienterecha,String _bandera,int _consecutivo) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "createlistitem2", false)) - {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem2", new Object[] {_text,_preciou,_inv,_inv2,_width,_height,_img,_prodid,_bc,_tc,_promo,_cliente_original,_clienterecha,_bandera,_consecutivo}));} -anywheresoftware.b4a.objects.B4XViewWrapper _p = null; -anywheresoftware.b4a.objects.CSBuilder _cs = null; -RDebugUtils.currentLine=12320768; - //BA.debugLineNum = 12320768;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str"; -RDebugUtils.currentLine=12320769; - //BA.debugLineNum = 12320769;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; -_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=12320770; - //BA.debugLineNum = 12320770;BA.debugLine="Private cs As CSBuilder"; -_cs = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=12320771; - //BA.debugLineNum = 12320771;BA.debugLine="cs.Initialize"; -_cs.Initialize(); -RDebugUtils.currentLine=12320772; - //BA.debugLineNum = 12320772;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; -_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=12320773; - //BA.debugLineNum = 12320773;BA.debugLine="p.LoadLayout(\"prodItem2\")"; -_p.LoadLayout("prodItem2",ba); -RDebugUtils.currentLine=12320774; - //BA.debugLineNum = 12320774;BA.debugLine="p_prods.Color = bc"; -__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(_bc); -RDebugUtils.currentLine=12320775; - //BA.debugLineNum = 12320775;BA.debugLine="l_prodX.TextColor = tc"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(_tc); -RDebugUtils.currentLine=12320776; - //BA.debugLineNum = 12320776;BA.debugLine="precioU = $\"$1.2{precioU}\"$"; -_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""); -RDebugUtils.currentLine=12320777; - //BA.debugLineNum = 12320777;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\""; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)); -RDebugUtils.currentLine=12320779; - //BA.debugLineNum = 12320779;BA.debugLine="If promo <> \"1\" And precioU = 0 Then"; -if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=12320780; - //BA.debugLineNum = 12320780;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject())); - }; -RDebugUtils.currentLine=12320782; - //BA.debugLineNum = 12320782;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs"))); -RDebugUtils.currentLine=12320784; - //BA.debugLineNum = 12320784;BA.debugLine="l_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)&"; -__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo))); -RDebugUtils.currentLine=12320785; - //BA.debugLineNum = 12320785;BA.debugLine="et_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)"; -__ref._et_pcantc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo))); -RDebugUtils.currentLine=12320786; - //BA.debugLineNum = 12320786;BA.debugLine="p_prods.Tag = l_pCantC.tag"; -__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTag(__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getTag()); -RDebugUtils.currentLine=12320788; - //BA.debugLineNum = 12320788;BA.debugLine="l_pCantC.Text = NumberFormat2(inv/Subs.traeConver"; -__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_inv/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_prodid))),(int) (0),(int) (0),(int) (0),__c.False))); -RDebugUtils.currentLine=12320792; - //BA.debugLineNum = 12320792;BA.debugLine="l_pCantC.BringToFront"; -__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .BringToFront(); -RDebugUtils.currentLine=12320793; - //BA.debugLineNum = 12320793;BA.debugLine="et_pCantC.SendToBack"; -__ref._et_pcantc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .SendToBack(); -RDebugUtils.currentLine=12320794; - //BA.debugLineNum = 12320794;BA.debugLine="p_botMasMen.Visible = False"; -__ref._p_botmasmen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=12320795; - //BA.debugLineNum = 12320795;BA.debugLine="l_piezas.Visible = False"; -__ref._l_piezas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=12320797; - //BA.debugLineNum = 12320797;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())); -RDebugUtils.currentLine=12320798; - //BA.debugLineNum = 12320798;BA.debugLine="End Sub"; -return null; -} -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));} -ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref); +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{ +ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { -public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_detalleventa parent,reparto_izca.keymon.lat.c_detalleventa __ref) { +public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_detalleventa parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_detalleventa __ref; reparto_izca.keymon.lat.c_detalleventa parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_detalleventa"; while (true) { switch (state) { @@ -1725,270 +1105,282 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = -1; -RDebugUtils.currentLine=12058627; - //BA.debugLineNum = 12058627;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; + //BA.debugLineNum = 324;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; parent._b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=12058629; - //BA.debugLineNum = 12058629;BA.debugLine="Return False"; + //BA.debugLineNum = 326;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; -RDebugUtils.currentLine=12058630; - //BA.debugLineNum = 12058630;BA.debugLine="End Sub"; + //BA.debugLineNum = 327;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b4xpage_created(reparto_izca.keymon.lat.c_detalleventa __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=11796480; - //BA.debugLineNum = 11796480;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=11796481; - //BA.debugLineNum = 11796481;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=11796482; - //BA.debugLineNum = 11796482;BA.debugLine="B4XPages.SetTitle(Me, \"Detalle de venta\")"; +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 56;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 57;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 58;BA.debugLine="B4XPages.SetTitle(Me, \"Detalle de venta\")"; _b4xpages._settitle /*String*/ (ba,this,(Object)("Detalle de venta")); -RDebugUtils.currentLine=11796484; - //BA.debugLineNum = 11796484;BA.debugLine="g.Initialize(\"GPS\")"; -__ref._g /*anywheresoftware.b4a.gps.GPS*/ .Initialize("GPS"); -RDebugUtils.currentLine=11796485; - //BA.debugLineNum = 11796485;BA.debugLine="Root.LoadLayout(\"detalleVenta\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("detalleVenta",ba); -RDebugUtils.currentLine=11796486; - //BA.debugLineNum = 11796486;BA.debugLine="b_borra.Visible = False"; -__ref._b_borra /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=11796487; - //BA.debugLineNum = 11796487;BA.debugLine="Titulo.Text = \"Pedido\""; -__ref._titulo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Pedido")); -RDebugUtils.currentLine=11796488; - //BA.debugLineNum = 11796488;BA.debugLine="End Sub"; + //BA.debugLineNum = 60;BA.debugLine="g.Initialize(\"GPS\")"; +_g.Initialize("GPS"); + //BA.debugLineNum = 61;BA.debugLine="Root.LoadLayout(\"detalleVenta\")"; +_root.LoadLayout("detalleVenta",ba); + //BA.debugLineNum = 62;BA.debugLine="b_borra.Visible = False"; +_b_borra.setVisible(__c.False); + //BA.debugLineNum = 63;BA.debugLine="Titulo.Text = \"Pedido\""; +_titulo.setText(BA.ObjectToCharSequence("Pedido")); + //BA.debugLineNum = 64;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -RDebugUtils.currentLine=11665408; - //BA.debugLineNum = 11665408;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=11665409; - //BA.debugLineNum = 11665409;BA.debugLine="Private Root As B4XView 'ignore"; +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(); -RDebugUtils.currentLine=11665410; - //BA.debugLineNum = 11665410;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=11665411; - //BA.debugLineNum = 11665411;BA.debugLine="Dim g As GPS"; + //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS"; _g = new anywheresoftware.b4a.gps.GPS(); -RDebugUtils.currentLine=11665412; - //BA.debugLineNum = 11665412;BA.debugLine="Dim clie_id As String"; + //BA.debugLineNum = 5;BA.debugLine="Dim clie_id As String"; _clie_id = ""; -RDebugUtils.currentLine=11665413; - //BA.debugLineNum = 11665413;BA.debugLine="Dim sDate,sTime As String"; + //BA.debugLineNum = 6;BA.debugLine="Dim sDate,sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=11665414; - //BA.debugLineNum = 11665414;BA.debugLine="Dim usuario As String"; + //BA.debugLineNum = 7;BA.debugLine="Dim usuario As String"; _usuario = ""; -RDebugUtils.currentLine=11665415; - //BA.debugLineNum = 11665415;BA.debugLine="Dim c As Cursor"; + //BA.debugLineNum = 8;BA.debugLine="Dim c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=11665417; - //BA.debugLineNum = 11665417;BA.debugLine="Dim b_regresar As Button"; + //BA.debugLineNum = 10;BA.debugLine="Dim b_regresar As Button"; _b_regresar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=11665418; - //BA.debugLineNum = 11665418;BA.debugLine="Dim ListView1 As ListView"; + //BA.debugLineNum = 11;BA.debugLine="Dim ListView1 As ListView"; _listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=11665419; - //BA.debugLineNum = 11665419;BA.debugLine="Dim L_CANT As Label"; + //BA.debugLineNum = 12;BA.debugLine="Dim L_CANT As Label"; _l_cant = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11665420; - //BA.debugLineNum = 11665420;BA.debugLine="Dim L_TOTAL As Label"; + //BA.debugLineNum = 13;BA.debugLine="Dim L_TOTAL As Label"; _l_total = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11665421; - //BA.debugLineNum = 11665421;BA.debugLine="Dim b_borra As Button"; + //BA.debugLineNum = 14;BA.debugLine="Dim b_borra As Button"; _b_borra = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=11665422; - //BA.debugLineNum = 11665422;BA.debugLine="Dim Existe As String"; + //BA.debugLineNum = 15;BA.debugLine="Dim Existe As String"; _existe = ""; -RDebugUtils.currentLine=11665423; - //BA.debugLineNum = 11665423;BA.debugLine="Dim result As String"; + //BA.debugLineNum = 16;BA.debugLine="Dim result As String"; _result = ""; -RDebugUtils.currentLine=11665425; - //BA.debugLineNum = 11665425;BA.debugLine="Dim cuantos As String"; + //BA.debugLineNum = 18;BA.debugLine="Dim cuantos As String"; _cuantos = ""; -RDebugUtils.currentLine=11665426; - //BA.debugLineNum = 11665426;BA.debugLine="Dim nombre_prod As String"; + //BA.debugLineNum = 19;BA.debugLine="Dim nombre_prod As String"; _nombre_prod = ""; -RDebugUtils.currentLine=11665427; - //BA.debugLineNum = 11665427;BA.debugLine="Dim cuantos_pedido As String"; + //BA.debugLineNum = 20;BA.debugLine="Dim cuantos_pedido As String"; _cuantos_pedido = ""; -RDebugUtils.currentLine=11665428; - //BA.debugLineNum = 11665428;BA.debugLine="Private Titulo As Label"; + //BA.debugLineNum = 21;BA.debugLine="Private Titulo As Label"; _titulo = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11665429; - //BA.debugLineNum = 11665429;BA.debugLine="Private P1 As Panel"; + //BA.debugLineNum = 22;BA.debugLine="Private P1 As Panel"; _p1 = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=11665430; - //BA.debugLineNum = 11665430;BA.debugLine="Private lv2 As ListView"; + //BA.debugLineNum = 23;BA.debugLine="Private lv2 As ListView"; _lv2 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=11665431; - //BA.debugLineNum = 11665431;BA.debugLine="Private p_principal As Panel"; + //BA.debugLineNum = 24;BA.debugLine="Private p_principal As Panel"; _p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=11665432; - //BA.debugLineNum = 11665432;BA.debugLine="Dim clv_pedido As CustomListView"; + //BA.debugLineNum = 25;BA.debugLine="Dim clv_pedido As CustomListView"; _clv_pedido = new b4a.example3.customlistview(); -RDebugUtils.currentLine=11665433; - //BA.debugLineNum = 11665433;BA.debugLine="Private p_prods As Panel"; + //BA.debugLineNum = 26;BA.debugLine="Private p_prods As Panel"; _p_prods = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=11665434; - //BA.debugLineNum = 11665434;BA.debugLine="Private l_prodX As Label"; + //BA.debugLineNum = 27;BA.debugLine="Private l_prodX As Label"; _l_prodx = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11665435; - //BA.debugLineNum = 11665435;BA.debugLine="Private l_pCant As Label"; + //BA.debugLineNum = 28;BA.debugLine="Private l_pCant As Label"; _l_pcant = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11665436; - //BA.debugLineNum = 11665436;BA.debugLine="Private et_pCant As EditText"; + //BA.debugLineNum = 29;BA.debugLine="Private et_pCant As EditText"; _et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=11665437; - //BA.debugLineNum = 11665437;BA.debugLine="Dim bmp As Bitmap"; + //BA.debugLineNum = 30;BA.debugLine="Dim bmp As Bitmap"; _bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); -RDebugUtils.currentLine=11665438; - //BA.debugLineNum = 11665438;BA.debugLine="Dim etCantHasFocus As Boolean = False"; + //BA.debugLineNum = 31;BA.debugLine="Dim etCantHasFocus As Boolean = False"; _etcanthasfocus = __c.False; -RDebugUtils.currentLine=11665439; - //BA.debugLineNum = 11665439;BA.debugLine="Dim totalProds As Int = 0"; + //BA.debugLineNum = 32;BA.debugLine="Dim totalProds As Int = 0"; _totalprods = (int) (0); -RDebugUtils.currentLine=11665440; - //BA.debugLineNum = 11665440;BA.debugLine="Dim totalCompra As Int = 0"; + //BA.debugLineNum = 33;BA.debugLine="Dim totalCompra As Int = 0"; _totalcompra = (int) (0); -RDebugUtils.currentLine=11665441; - //BA.debugLineNum = 11665441;BA.debugLine="Dim prodsMap As Map"; + //BA.debugLineNum = 34;BA.debugLine="Dim prodsMap As Map"; _prodsmap = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=11665442; - //BA.debugLineNum = 11665442;BA.debugLine="Dim reconstruirPedido As Boolean = False"; + //BA.debugLineNum = 35;BA.debugLine="Dim reconstruirPedido As Boolean = False"; _reconstruirpedido = __c.False; -RDebugUtils.currentLine=11665443; - //BA.debugLineNum = 11665443;BA.debugLine="Dim promoABorrar As String"; + //BA.debugLineNum = 36;BA.debugLine="Dim promoABorrar As String"; _promoaborrar = ""; -RDebugUtils.currentLine=11665444; - //BA.debugLineNum = 11665444;BA.debugLine="Private b_guardar As Button"; + //BA.debugLineNum = 37;BA.debugLine="Private b_guardar As Button"; _b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=11665445; - //BA.debugLineNum = 11665445;BA.debugLine="Private b_prodMas As Button"; + //BA.debugLineNum = 38;BA.debugLine="Private b_prodMas As Button"; _b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=11665446; - //BA.debugLineNum = 11665446;BA.debugLine="Private b_prodMenos As Button"; + //BA.debugLineNum = 39;BA.debugLine="Private b_prodMenos As Button"; _b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=11665447; - //BA.debugLineNum = 11665447;BA.debugLine="Private b_prodMenosC As Button"; + //BA.debugLineNum = 40;BA.debugLine="Private b_prodMenosC As Button"; _b_prodmenosc = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=11665448; - //BA.debugLineNum = 11665448;BA.debugLine="Private l_pCantC As Label"; + //BA.debugLineNum = 41;BA.debugLine="Private l_pCantC As Label"; _l_pcantc = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11665449; - //BA.debugLineNum = 11665449;BA.debugLine="Private et_pCantC As EditText"; + //BA.debugLineNum = 42;BA.debugLine="Private et_pCantC As EditText"; _et_pcantc = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=11665450; - //BA.debugLineNum = 11665450;BA.debugLine="Private b_prodMasC As Button"; + //BA.debugLineNum = 43;BA.debugLine="Private b_prodMasC As Button"; _b_prodmasc = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=11665451; - //BA.debugLineNum = 11665451;BA.debugLine="Private p_botMasMenC As Panel"; + //BA.debugLineNum = 44;BA.debugLine="Private p_botMasMenC As Panel"; _p_botmasmenc = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=11665452; - //BA.debugLineNum = 11665452;BA.debugLine="Private p_botMasMen As Panel"; + //BA.debugLineNum = 45;BA.debugLine="Private p_botMasMen As Panel"; _p_botmasmen = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=11665453; - //BA.debugLineNum = 11665453;BA.debugLine="Private l_cajas As Label"; + //BA.debugLineNum = 46;BA.debugLine="Private l_cajas As Label"; _l_cajas = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11665454; - //BA.debugLineNum = 11665454;BA.debugLine="Private l_piezas As Label"; + //BA.debugLineNum = 47;BA.debugLine="Private l_piezas As Label"; _l_piezas = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=11665455; - //BA.debugLineNum = 11665455;BA.debugLine="End Sub"; + //BA.debugLineNum = 48;BA.debugLine="End Sub"; return ""; } -public String _cuentaprods(reparto_izca.keymon.lat.c_detalleventa __ref,String _accion) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "cuentaprods", false)) - {return ((String) Debug.delegate(ba, "cuentaprods", new Object[] {_accion}));} -RDebugUtils.currentLine=12517376; - //BA.debugLineNum = 12517376;BA.debugLine="Sub cuentaProds(accion As String)"; -RDebugUtils.currentLine=12517538; - //BA.debugLineNum = 12517538;BA.debugLine="End Sub"; +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,String _clienterecha,String _bandera,int _consecutivo) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; + //BA.debugLineNum = 442;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri"; + //BA.debugLineNum = 443;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 444;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 445;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 446;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; +_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); + //BA.debugLineNum = 447;BA.debugLine="p.LoadLayout(\"prodItem2\")"; +_p.LoadLayout("prodItem2",ba); + //BA.debugLineNum = 448;BA.debugLine="p_prods.Color = bc"; +_p_prods.setColor(_bc); + //BA.debugLineNum = 449;BA.debugLine="l_prodX.TextColor = tc"; +_l_prodx.setTextColor(_tc); + //BA.debugLineNum = 450;BA.debugLine="precioU = $\"$1.2{precioU}\"$"; +_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""); + //BA.debugLineNum = 451;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\""; +_l_prodx.setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)); + //BA.debugLineNum = 452;BA.debugLine="If promo <> \"1\" And precioU = 0 Then"; +if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 453;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app"; +_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject())); + }; + //BA.debugLineNum = 455;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF"; +_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs"))); + //BA.debugLineNum = 458;BA.debugLine="l_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&\""; +_l_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo))); + //BA.debugLineNum = 459;BA.debugLine="et_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&"; +_et_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo))); + //BA.debugLineNum = 460;BA.debugLine="p_prods.Tag = l_pCant.tag"; +_p_prods.setTag(_l_pcant.getTag()); + //BA.debugLineNum = 462;BA.debugLine="l_pCant.Text = inv"; +_l_pcant.setText(BA.ObjectToCharSequence(_inv)); + //BA.debugLineNum = 466;BA.debugLine="l_pCant.BringToFront"; +_l_pcant.BringToFront(); + //BA.debugLineNum = 467;BA.debugLine="et_pCant.SendToBack"; +_et_pcant.SendToBack(); + //BA.debugLineNum = 468;BA.debugLine="p_botMasMenC.Visible = False"; +_p_botmasmenc.setVisible(__c.False); + //BA.debugLineNum = 469;BA.debugLine="l_cajas.Visible = False"; +_l_cajas.setVisible(__c.False); + //BA.debugLineNum = 471;BA.debugLine="Return p"; +if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject())); + //BA.debugLineNum = 472;BA.debugLine="End Sub"; +return null; +} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,String _clienterecha,String _bandera,int _consecutivo) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; + //BA.debugLineNum = 474;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str"; + //BA.debugLineNum = 475;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 476;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 477;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 478;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; +_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); + //BA.debugLineNum = 479;BA.debugLine="p.LoadLayout(\"prodItem2\")"; +_p.LoadLayout("prodItem2",ba); + //BA.debugLineNum = 480;BA.debugLine="p_prods.Color = bc"; +_p_prods.setColor(_bc); + //BA.debugLineNum = 481;BA.debugLine="l_prodX.TextColor = tc"; +_l_prodx.setTextColor(_tc); + //BA.debugLineNum = 482;BA.debugLine="precioU = $\"$1.2{precioU}\"$"; +_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""); + //BA.debugLineNum = 483;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\""; +_l_prodx.setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)); + //BA.debugLineNum = 485;BA.debugLine="If promo <> \"1\" And precioU = 0 Then"; +if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 486;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app"; +_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject())); + }; + //BA.debugLineNum = 488;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF"; +_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs"))); + //BA.debugLineNum = 490;BA.debugLine="l_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)&"; +_l_pcantc.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo))); + //BA.debugLineNum = 491;BA.debugLine="et_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)"; +_et_pcantc.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+_clienterecha+"|"+_bandera+"|"+BA.NumberToString(_consecutivo))); + //BA.debugLineNum = 492;BA.debugLine="p_prods.Tag = l_pCantC.tag"; +_p_prods.setTag(_l_pcantc.getTag()); + //BA.debugLineNum = 494;BA.debugLine="l_pCantC.Text = NumberFormat2(inv/Subs.traeConver"; +_l_pcantc.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_inv/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_prodid))),(int) (0),(int) (0),(int) (0),__c.False))); + //BA.debugLineNum = 498;BA.debugLine="l_pCantC.BringToFront"; +_l_pcantc.BringToFront(); + //BA.debugLineNum = 499;BA.debugLine="et_pCantC.SendToBack"; +_et_pcantc.SendToBack(); + //BA.debugLineNum = 500;BA.debugLine="p_botMasMen.Visible = False"; +_p_botmasmen.setVisible(__c.False); + //BA.debugLineNum = 501;BA.debugLine="l_piezas.Visible = False"; +_l_piezas.setVisible(__c.False); + //BA.debugLineNum = 503;BA.debugLine="Return p"; +if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject())); + //BA.debugLineNum = 504;BA.debugLine="End Sub"; +return null; +} +public String _cuentaprods(String _accion) throws Exception{ + //BA.debugLineNum = 751;BA.debugLine="Sub cuentaProds(accion As String)"; + //BA.debugLineNum = 913;BA.debugLine="End Sub"; return ""; } -public String _gps_locationchanged(reparto_izca.keymon.lat.c_detalleventa __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "gps_locationchanged", false)) - {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));} -RDebugUtils.currentLine=11927552; - //BA.debugLineNum = 11927552;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; -RDebugUtils.currentLine=11927555; - //BA.debugLineNum = 11927555;BA.debugLine="End Sub"; +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 312;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 315;BA.debugLine="End Sub"; return ""; } -public String _l_pcant_click(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "l_pcant_click", false)) - {return ((String) Debug.delegate(ba, "l_pcant_click", null));} -RDebugUtils.currentLine=12648448; - //BA.debugLineNum = 12648448;BA.debugLine="Private Sub l_pCant_Click"; -RDebugUtils.currentLine=12648450; - //BA.debugLineNum = 12648450;BA.debugLine="End Sub"; +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 51;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 52;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 53;BA.debugLine="End Sub"; +return null; +} +public String _l_pcant_click() throws Exception{ + //BA.debugLineNum = 920;BA.debugLine="Private Sub l_pCant_Click"; + //BA.debugLineNum = 922;BA.debugLine="End Sub"; return ""; } -public String _l_pcantc_click(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "l_pcantc_click", false)) - {return ((String) Debug.delegate(ba, "l_pcantc_click", null));} -RDebugUtils.currentLine=12910592; - //BA.debugLineNum = 12910592;BA.debugLine="Private Sub l_pCantC_Click"; -RDebugUtils.currentLine=12910594; - //BA.debugLineNum = 12910594;BA.debugLine="End Sub"; +public String _l_pcantc_click() throws Exception{ + //BA.debugLineNum = 1052;BA.debugLine="Private Sub l_pCantC_Click"; + //BA.debugLineNum = 1054;BA.debugLine="End Sub"; return ""; } -public String _listview1_itemlongclick(reparto_izca.keymon.lat.c_detalleventa __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "listview1_itemlongclick", false)) - {return ((String) Debug.delegate(ba, "listview1_itemlongclick", new Object[] {_position,_value}));} -RDebugUtils.currentLine=12124160; - //BA.debugLineNum = 12124160;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; -RDebugUtils.currentLine=12124204; - //BA.debugLineNum = 12124204;BA.debugLine="End Sub"; +public String _listview1_itemlongclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 329;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; + //BA.debugLineNum = 373;BA.debugLine="End Sub"; return ""; } -public String _lv2_itemclick(reparto_izca.keymon.lat.c_detalleventa __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "lv2_itemclick", false)) - {return ((String) Debug.delegate(ba, "lv2_itemclick", new Object[] {_position,_value}));} -RDebugUtils.currentLine=12189696; - //BA.debugLineNum = 12189696;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec"; -RDebugUtils.currentLine=12189757; - //BA.debugLineNum = 12189757;BA.debugLine="End Sub"; +public String _lv2_itemclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 375;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec"; + //BA.debugLineNum = 436;BA.debugLine="End Sub"; return ""; } -public String _p_prods_click(reparto_izca.keymon.lat.c_detalleventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_detalleventa"; -if (Debug.shouldDelegate(ba, "p_prods_click", false)) - {return ((String) Debug.delegate(ba, "p_prods_click", null));} -RDebugUtils.currentLine=12713984; - //BA.debugLineNum = 12713984;BA.debugLine="Sub p_prods_Click"; -RDebugUtils.currentLine=12713985; - //BA.debugLineNum = 12713985;BA.debugLine="Log(Sender.As(Panel).tag)"; -__c.LogImpl("212713985",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0); -RDebugUtils.currentLine=12713986; - //BA.debugLineNum = 12713986;BA.debugLine="End Sub"; +public String _p_prods_click() throws Exception{ + //BA.debugLineNum = 924;BA.debugLine="Sub p_prods_Click"; + //BA.debugLineNum = 925;BA.debugLine="Log(Sender.As(Panel).tag)"; +__c.LogImpl("012976129",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0); + //BA.debugLineNum = 926;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED")) + return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_foto.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_foto.java index 8e3278b..261740f 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_foto.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_foto.java @@ -10,7 +10,7 @@ public class c_foto extends B4AClass.ImplB4AClass implements BA.SubDelegator{ private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_foto"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_foto"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_foto extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4a.objects.B4XViewWrapper _root = null; public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; public boolean _frontcamera = false; @@ -57,66 +50,31 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _activity_pause(reparto_izca.keymon.lat.c_foto __ref,boolean _userclosed) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -RDebugUtils.currentLine=13369344; - //BA.debugLineNum = 13369344;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; -RDebugUtils.currentLine=13369346; - //BA.debugLineNum = 13369346;BA.debugLine="End Sub"; +public String _activity_pause(boolean _userclosed) throws Exception{ + //BA.debugLineNum = 43;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 45;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_foto __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} -RDebugUtils.currentLine=13238272; - //BA.debugLineNum = 13238272;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=13238273; - //BA.debugLineNum = 13238273;BA.debugLine="InitializeCamera"; -__ref._initializecamera /*String*/ (null); -RDebugUtils.currentLine=13238274; - //BA.debugLineNum = 13238274;BA.debugLine="End Sub"; +public String _b4xpage_appear() throws Exception{ + //BA.debugLineNum = 34;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 35;BA.debugLine="InitializeCamera"; +_initializecamera(); + //BA.debugLineNum = 36;BA.debugLine="End Sub"; return ""; } -public String _initializecamera(reparto_izca.keymon.lat.c_foto __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "initializecamera", false)) - {return ((String) Debug.delegate(ba, "initializecamera", null));} -RDebugUtils.currentLine=13303808; - //BA.debugLineNum = 13303808;BA.debugLine="Private Sub InitializeCamera"; -RDebugUtils.currentLine=13303809; - //BA.debugLineNum = 13303809;BA.debugLine="camEx.Initialize(p_camara, frontCamera, Me, \"Came"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._initialize /*String*/ (null,ba,__ref._p_camara /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._frontcamera /*boolean*/ ,this,"Camera1"); -RDebugUtils.currentLine=13303810; - //BA.debugLineNum = 13303810;BA.debugLine="frontCamera = camEx.Front"; -__ref._frontcamera /*boolean*/ = __ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._front /*boolean*/ ; -RDebugUtils.currentLine=13303811; - //BA.debugLineNum = 13303811;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest(reparto_izca.keymon.lat.c_foto __ref) throws Exception{ -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));} -ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref); +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{ +ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { -public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_foto parent,reparto_izca.keymon.lat.c_foto __ref) { +public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_foto parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_foto __ref; reparto_izca.keymon.lat.c_foto parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_foto"; while (true) { switch (state) { @@ -126,447 +84,304 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = -1; -RDebugUtils.currentLine=14024707; - //BA.debugLineNum = 14024707;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; + //BA.debugLineNum = 157;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; parent._b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=14024709; - //BA.debugLineNum = 14024709;BA.debugLine="Return False"; + //BA.debugLineNum = 159;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; -RDebugUtils.currentLine=14024710; - //BA.debugLineNum = 14024710;BA.debugLine="End Sub"; + //BA.debugLineNum = 160;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b4xpage_created(reparto_izca.keymon.lat.c_foto __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=13172736; - //BA.debugLineNum = 13172736;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=13172737; - //BA.debugLineNum = 13172737;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=13172739; - //BA.debugLineNum = 13172739;BA.debugLine="g.Initialize(\"GPS\")"; -__ref._g /*anywheresoftware.b4a.gps.GPS*/ .Initialize("GPS"); -RDebugUtils.currentLine=13172740; - //BA.debugLineNum = 13172740;BA.debugLine="Root.LoadLayout(\"foto\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("foto",ba); -RDebugUtils.currentLine=13172741; - //BA.debugLineNum = 13172741;BA.debugLine="c=Starter.skmt.ExecQuery(\"select cuenta from cuen"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select cuenta from cuentaa"))); -RDebugUtils.currentLine=13172742; - //BA.debugLineNum = 13172742;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=13172743; - //BA.debugLineNum = 13172743;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; -__ref._cuenta /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"); -RDebugUtils.currentLine=13172744; - //BA.debugLineNum = 13172744;BA.debugLine="End Sub"; +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 22;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 23;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 25;BA.debugLine="g.Initialize(\"GPS\")"; +_g.Initialize("GPS"); + //BA.debugLineNum = 26;BA.debugLine="Root.LoadLayout(\"foto\")"; +_root.LoadLayout("foto",ba); + //BA.debugLineNum = 27;BA.debugLine="c=Starter.skmt.ExecQuery(\"select cuenta from cuen"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select cuenta from cuentaa"))); + //BA.debugLineNum = 28;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 29;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; +_cuenta = _c.GetString("CUENTA"); + //BA.debugLineNum = 30;BA.debugLine="End Sub"; return ""; } -public String _btneffect_click(reparto_izca.keymon.lat.c_foto __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "btneffect_click", false)) - {return ((String) Debug.delegate(ba, "btneffect_click", null));} +public String _btneffect_click() throws Exception{ anywheresoftware.b4a.objects.collections.List _effects = null; String _effect = ""; -RDebugUtils.currentLine=13828096; - //BA.debugLineNum = 13828096;BA.debugLine="Sub btnEffect_Click"; -RDebugUtils.currentLine=13828097; - //BA.debugLineNum = 13828097;BA.debugLine="Dim effects As List = camEx.GetSupportedColorEffe"; + //BA.debugLineNum = 116;BA.debugLine="Sub btnEffect_Click"; + //BA.debugLineNum = 117;BA.debugLine="Dim effects As List = camEx.GetSupportedColorEffe"; _effects = new anywheresoftware.b4a.objects.collections.List(); -_effects = __ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._getsupportedcoloreffects /*anywheresoftware.b4a.objects.collections.List*/ (null); -RDebugUtils.currentLine=13828098; - //BA.debugLineNum = 13828098;BA.debugLine="If effects.IsInitialized = False Then"; +_effects = _camex._getsupportedcoloreffects /*anywheresoftware.b4a.objects.collections.List*/ (); + //BA.debugLineNum = 118;BA.debugLine="If effects.IsInitialized = False Then"; if (_effects.IsInitialized()==__c.False) { -RDebugUtils.currentLine=13828099; - //BA.debugLineNum = 13828099;BA.debugLine="ToastMessageShow(\"Effects not supported.\", False"; + //BA.debugLineNum = 119;BA.debugLine="ToastMessageShow(\"Effects not supported.\", False"; __c.ToastMessageShow(BA.ObjectToCharSequence("Effects not supported."),__c.False); -RDebugUtils.currentLine=13828100; - //BA.debugLineNum = 13828100;BA.debugLine="Return"; + //BA.debugLineNum = 120;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=13828102; - //BA.debugLineNum = 13828102;BA.debugLine="Dim effect As String = effects.Get((effects.Index"; -_effect = BA.ObjectToString(_effects.Get((int) ((_effects.IndexOf((Object)(__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._getcoloreffect /*String*/ (null)))+1)%_effects.getSize()))); -RDebugUtils.currentLine=13828103; - //BA.debugLineNum = 13828103;BA.debugLine="camEx.SetColorEffect(effect)"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._setcoloreffect /*String*/ (null,_effect); -RDebugUtils.currentLine=13828104; - //BA.debugLineNum = 13828104;BA.debugLine="ToastMessageShow(effect, False)"; + //BA.debugLineNum = 122;BA.debugLine="Dim effect As String = effects.Get((effects.Index"; +_effect = BA.ObjectToString(_effects.Get((int) ((_effects.IndexOf((Object)(_camex._getcoloreffect /*String*/ ()))+1)%_effects.getSize()))); + //BA.debugLineNum = 123;BA.debugLine="camEx.SetColorEffect(effect)"; +_camex._setcoloreffect /*String*/ (_effect); + //BA.debugLineNum = 124;BA.debugLine="ToastMessageShow(effect, False)"; __c.ToastMessageShow(BA.ObjectToCharSequence(_effect),__c.False); -RDebugUtils.currentLine=13828105; - //BA.debugLineNum = 13828105;BA.debugLine="camEx.CommitParameters"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._commitparameters /*String*/ (null); -RDebugUtils.currentLine=13828106; - //BA.debugLineNum = 13828106;BA.debugLine="End Sub"; + //BA.debugLineNum = 125;BA.debugLine="camEx.CommitParameters"; +_camex._commitparameters /*String*/ (); + //BA.debugLineNum = 126;BA.debugLine="End Sub"; return ""; } -public String _btnflash_click(reparto_izca.keymon.lat.c_foto __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "btnflash_click", false)) - {return ((String) Debug.delegate(ba, "btnflash_click", null));} +public String _btnflash_click() throws Exception{ float[] _f = null; anywheresoftware.b4a.objects.collections.List _flashmodes = null; String _flash = ""; -RDebugUtils.currentLine=13893632; - //BA.debugLineNum = 13893632;BA.debugLine="Sub btnFlash_Click"; -RDebugUtils.currentLine=13893633; - //BA.debugLineNum = 13893633;BA.debugLine="Dim f() As Float = camEx.GetFocusDistances"; -_f = __ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._getfocusdistances /*float[]*/ (null); -RDebugUtils.currentLine=13893634; - //BA.debugLineNum = 13893634;BA.debugLine="Log(f(0) & \", \" & f(1) & \", \" & f(2))"; -__c.LogImpl("213893634",BA.NumberToString(_f[(int) (0)])+", "+BA.NumberToString(_f[(int) (1)])+", "+BA.NumberToString(_f[(int) (2)]),0); -RDebugUtils.currentLine=13893635; - //BA.debugLineNum = 13893635;BA.debugLine="Dim flashModes As List = camEx.GetSupportedFlashM"; + //BA.debugLineNum = 128;BA.debugLine="Sub btnFlash_Click"; + //BA.debugLineNum = 129;BA.debugLine="Dim f() As Float = camEx.GetFocusDistances"; +_f = _camex._getfocusdistances /*float[]*/ (); + //BA.debugLineNum = 130;BA.debugLine="Log(f(0) & \", \" & f(1) & \", \" & f(2))"; +__c.LogImpl("014155778",BA.NumberToString(_f[(int) (0)])+", "+BA.NumberToString(_f[(int) (1)])+", "+BA.NumberToString(_f[(int) (2)]),0); + //BA.debugLineNum = 131;BA.debugLine="Dim flashModes As List = camEx.GetSupportedFlashM"; _flashmodes = new anywheresoftware.b4a.objects.collections.List(); -_flashmodes = __ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._getsupportedflashmodes /*anywheresoftware.b4a.objects.collections.List*/ (null); -RDebugUtils.currentLine=13893636; - //BA.debugLineNum = 13893636;BA.debugLine="If flashModes.IsInitialized = False Then"; +_flashmodes = _camex._getsupportedflashmodes /*anywheresoftware.b4a.objects.collections.List*/ (); + //BA.debugLineNum = 132;BA.debugLine="If flashModes.IsInitialized = False Then"; if (_flashmodes.IsInitialized()==__c.False) { -RDebugUtils.currentLine=13893637; - //BA.debugLineNum = 13893637;BA.debugLine="ToastMessageShow(\"Flash not supported.\", False)"; + //BA.debugLineNum = 133;BA.debugLine="ToastMessageShow(\"Flash not supported.\", False)"; __c.ToastMessageShow(BA.ObjectToCharSequence("Flash not supported."),__c.False); -RDebugUtils.currentLine=13893638; - //BA.debugLineNum = 13893638;BA.debugLine="Return"; + //BA.debugLineNum = 134;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=13893640; - //BA.debugLineNum = 13893640;BA.debugLine="Dim flash As String = flashModes.Get((flashModes."; -_flash = BA.ObjectToString(_flashmodes.Get((int) ((_flashmodes.IndexOf((Object)(__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._getflashmode /*String*/ (null)))+1)%_flashmodes.getSize()))); -RDebugUtils.currentLine=13893641; - //BA.debugLineNum = 13893641;BA.debugLine="camEx.SetFlashMode(flash)"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._setflashmode /*String*/ (null,_flash); -RDebugUtils.currentLine=13893642; - //BA.debugLineNum = 13893642;BA.debugLine="ToastMessageShow(flash, False)"; + //BA.debugLineNum = 136;BA.debugLine="Dim flash As String = flashModes.Get((flashModes."; +_flash = BA.ObjectToString(_flashmodes.Get((int) ((_flashmodes.IndexOf((Object)(_camex._getflashmode /*String*/ ()))+1)%_flashmodes.getSize()))); + //BA.debugLineNum = 137;BA.debugLine="camEx.SetFlashMode(flash)"; +_camex._setflashmode /*String*/ (_flash); + //BA.debugLineNum = 138;BA.debugLine="ToastMessageShow(flash, False)"; __c.ToastMessageShow(BA.ObjectToCharSequence(_flash),__c.False); -RDebugUtils.currentLine=13893643; - //BA.debugLineNum = 13893643;BA.debugLine="camEx.CommitParameters"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._commitparameters /*String*/ (null); -RDebugUtils.currentLine=13893644; - //BA.debugLineNum = 13893644;BA.debugLine="End Sub"; + //BA.debugLineNum = 139;BA.debugLine="camEx.CommitParameters"; +_camex._commitparameters /*String*/ (); + //BA.debugLineNum = 140;BA.debugLine="End Sub"; return ""; } -public String _btnfocus_click(reparto_izca.keymon.lat.c_foto __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "btnfocus_click", false)) - {return ((String) Debug.delegate(ba, "btnfocus_click", null));} -RDebugUtils.currentLine=13631488; - //BA.debugLineNum = 13631488;BA.debugLine="Sub btnFocus_Click"; -RDebugUtils.currentLine=13631489; - //BA.debugLineNum = 13631489;BA.debugLine="camEx.FocusAndTakePicture"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._focusandtakepicture /*String*/ (null); -RDebugUtils.currentLine=13631490; - //BA.debugLineNum = 13631490;BA.debugLine="End Sub"; +public String _btnfocus_click() throws Exception{ + //BA.debugLineNum = 72;BA.debugLine="Sub btnFocus_Click"; + //BA.debugLineNum = 73;BA.debugLine="camEx.FocusAndTakePicture"; +_camex._focusandtakepicture /*String*/ (); + //BA.debugLineNum = 74;BA.debugLine="End Sub"; return ""; } -public String _btnpicturesize_click(reparto_izca.keymon.lat.c_foto __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "btnpicturesize_click", false)) - {return ((String) Debug.delegate(ba, "btnpicturesize_click", null));} +public String _btnpicturesize_click() throws Exception{ reparto_izca.keymon.lat.cameraexclass._camerasize[] _picturesizes = null; reparto_izca.keymon.lat.cameraexclass._camerasize _current = null; int _i = 0; reparto_izca.keymon.lat.cameraexclass._camerasize _ps = null; -RDebugUtils.currentLine=13959168; - //BA.debugLineNum = 13959168;BA.debugLine="Sub btnPictureSize_Click"; -RDebugUtils.currentLine=13959169; - //BA.debugLineNum = 13959169;BA.debugLine="Dim pictureSizes() As CameraSize = camEx.GetSuppo"; -_picturesizes = __ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._getsupportedpicturessizes /*reparto_izca.keymon.lat.cameraexclass._camerasize[]*/ (null); -RDebugUtils.currentLine=13959170; - //BA.debugLineNum = 13959170;BA.debugLine="Dim current As CameraSize = camEx.GetPictureSize"; -_current = __ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._getpicturesize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ (null); -RDebugUtils.currentLine=13959171; - //BA.debugLineNum = 13959171;BA.debugLine="For i = 0 To pictureSizes.Length - 1"; + //BA.debugLineNum = 142;BA.debugLine="Sub btnPictureSize_Click"; + //BA.debugLineNum = 143;BA.debugLine="Dim pictureSizes() As CameraSize = camEx.GetSuppo"; +_picturesizes = _camex._getsupportedpicturessizes /*reparto_izca.keymon.lat.cameraexclass._camerasize[]*/ (); + //BA.debugLineNum = 144;BA.debugLine="Dim current As CameraSize = camEx.GetPictureSize"; +_current = _camex._getpicturesize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ (); + //BA.debugLineNum = 145;BA.debugLine="For i = 0 To pictureSizes.Length - 1"; { final int step3 = 1; final int limit3 = (int) (_picturesizes.length /*int*/ -1); _i = (int) (0) ; for (;_i <= limit3 ;_i = _i + step3 ) { -RDebugUtils.currentLine=13959172; - //BA.debugLineNum = 13959172;BA.debugLine="If pictureSizes(i).Width = current.Width And pic"; + //BA.debugLineNum = 146;BA.debugLine="If pictureSizes(i).Width = current.Width And pic"; if (_picturesizes[_i].Width /*int*/ ==_current.Width /*int*/ && _picturesizes[_i].Height /*int*/ ==_current.Height /*int*/ ) { if (true) break;}; } }; -RDebugUtils.currentLine=13959174; - //BA.debugLineNum = 13959174;BA.debugLine="Dim ps As CameraSize = pictureSizes((i + 1) Mod p"; + //BA.debugLineNum = 148;BA.debugLine="Dim ps As CameraSize = pictureSizes((i + 1) Mod p"; _ps = _picturesizes[(int) ((_i+1)%_picturesizes.length /*int*/ )]; -RDebugUtils.currentLine=13959175; - //BA.debugLineNum = 13959175;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._setpicturesize /*String*/ (null,_ps.Width /*int*/ ,_ps.Height /*int*/ ); -RDebugUtils.currentLine=13959176; - //BA.debugLineNum = 13959176;BA.debugLine="ToastMessageShow(ps.Width & \"x\" & ps.Height & i,"; + //BA.debugLineNum = 149;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)"; +_camex._setpicturesize /*String*/ (_ps.Width /*int*/ ,_ps.Height /*int*/ ); + //BA.debugLineNum = 150;BA.debugLine="ToastMessageShow(ps.Width & \"x\" & ps.Height & i,"; __c.ToastMessageShow(BA.ObjectToCharSequence(BA.NumberToString(_ps.Width /*int*/ )+"x"+BA.NumberToString(_ps.Height /*int*/ )+BA.NumberToString(_i)),__c.False); -RDebugUtils.currentLine=13959177; - //BA.debugLineNum = 13959177;BA.debugLine="camEx.CommitParameters"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._commitparameters /*String*/ (null); -RDebugUtils.currentLine=13959178; - //BA.debugLineNum = 13959178;BA.debugLine="End Sub"; + //BA.debugLineNum = 151;BA.debugLine="camEx.CommitParameters"; +_camex._commitparameters /*String*/ (); + //BA.debugLineNum = 152;BA.debugLine="End Sub"; return ""; } -public String _btntakepicture_click(reparto_izca.keymon.lat.c_foto __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "btntakepicture_click", false)) - {return ((String) Debug.delegate(ba, "btntakepicture_click", null));} +public String _btntakepicture_click() throws Exception{ reparto_izca.keymon.lat.cameraexclass._camerasize _ps = null; -RDebugUtils.currentLine=13565952; - //BA.debugLineNum = 13565952;BA.debugLine="Sub btnTakePicture_Click"; -RDebugUtils.currentLine=13565953; - //BA.debugLineNum = 13565953;BA.debugLine="Dim ps As CameraSize"; + //BA.debugLineNum = 62;BA.debugLine="Sub btnTakePicture_Click"; + //BA.debugLineNum = 63;BA.debugLine="Dim ps As CameraSize"; _ps = new reparto_izca.keymon.lat.cameraexclass._camerasize(); -RDebugUtils.currentLine=13565954; - //BA.debugLineNum = 13565954;BA.debugLine="ps.Width =640"; + //BA.debugLineNum = 64;BA.debugLine="ps.Width =640"; _ps.Width /*int*/ = (int) (640); -RDebugUtils.currentLine=13565955; - //BA.debugLineNum = 13565955;BA.debugLine="ps.Height =480"; + //BA.debugLineNum = 65;BA.debugLine="ps.Height =480"; _ps.Height /*int*/ = (int) (480); -RDebugUtils.currentLine=13565956; - //BA.debugLineNum = 13565956;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._setpicturesize /*String*/ (null,_ps.Width /*int*/ ,_ps.Height /*int*/ ); -RDebugUtils.currentLine=13565958; - //BA.debugLineNum = 13565958;BA.debugLine="camEx.CommitParameters"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._commitparameters /*String*/ (null); -RDebugUtils.currentLine=13565959; - //BA.debugLineNum = 13565959;BA.debugLine="camEx.TakePicture"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._takepicture /*String*/ (null); -RDebugUtils.currentLine=13565960; - //BA.debugLineNum = 13565960;BA.debugLine="End Sub"; + //BA.debugLineNum = 66;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)"; +_camex._setpicturesize /*String*/ (_ps.Width /*int*/ ,_ps.Height /*int*/ ); + //BA.debugLineNum = 68;BA.debugLine="camEx.CommitParameters"; +_camex._commitparameters /*String*/ (); + //BA.debugLineNum = 69;BA.debugLine="camEx.TakePicture"; +_camex._takepicture /*String*/ (); + //BA.debugLineNum = 70;BA.debugLine="End Sub"; return ""; } -public String _camera1_picturetaken(reparto_izca.keymon.lat.c_foto __ref,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "camera1_picturetaken", false)) - {return ((String) Debug.delegate(ba, "camera1_picturetaken", new Object[] {_data}));} +public String _camera1_picturetaken(byte[] _data) throws Exception{ String _filename = ""; String _dir = ""; String _sdate = ""; String _stime = ""; int _i = 0; -RDebugUtils.currentLine=13697024; - //BA.debugLineNum = 13697024;BA.debugLine="Sub Camera1_PictureTaken (Data() As Byte)"; -RDebugUtils.currentLine=13697025; - //BA.debugLineNum = 13697025;BA.debugLine="Dim filename As String = \"1.jpg\""; + //BA.debugLineNum = 76;BA.debugLine="Sub Camera1_PictureTaken (Data() As Byte)"; + //BA.debugLineNum = 77;BA.debugLine="Dim filename As String = \"1.jpg\""; _filename = "1.jpg"; -RDebugUtils.currentLine=13697026; - //BA.debugLineNum = 13697026;BA.debugLine="Dim dir As String = File.DirInternal"; + //BA.debugLineNum = 78;BA.debugLine="Dim dir As String = File.DirInternal"; _dir = __c.File.getDirInternal(); -RDebugUtils.currentLine=13697028; - //BA.debugLineNum = 13697028;BA.debugLine="camEx.SavePictureToFile(Data, dir, filename)"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._savepicturetofile /*String*/ (null,_data,_dir,_filename); -RDebugUtils.currentLine=13697029; - //BA.debugLineNum = 13697029;BA.debugLine="camEx.StartPreview 'restart preview"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._startpreview /*String*/ (null); -RDebugUtils.currentLine=13697031; - //BA.debugLineNum = 13697031;BA.debugLine="Dim sDate,sTime As String"; + //BA.debugLineNum = 80;BA.debugLine="camEx.SavePictureToFile(Data, dir, filename)"; +_camex._savepicturetofile /*String*/ (_data,_dir,_filename); + //BA.debugLineNum = 81;BA.debugLine="camEx.StartPreview 'restart preview"; +_camex._startpreview /*String*/ (); + //BA.debugLineNum = 83;BA.debugLine="Dim sDate,sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=13697032; - //BA.debugLineNum = 13697032;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; + //BA.debugLineNum = 84;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; __c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=13697033; - //BA.debugLineNum = 13697033;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; + //BA.debugLineNum = 85;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; _sdate = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=13697034; - //BA.debugLineNum = 13697034;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; + //BA.debugLineNum = 86;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; _stime = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=13697035; - //BA.debugLineNum = 13697035;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); -RDebugUtils.currentLine=13697036; - //BA.debugLineNum = 13697036;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=13697037; - //BA.debugLineNum = 13697037;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; -__ref._cuenta /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"); -RDebugUtils.currentLine=13697038; - //BA.debugLineNum = 13697038;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=13697039; - //BA.debugLineNum = 13697039;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=13697040; - //BA.debugLineNum = 13697040;BA.debugLine="USUARIO = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=13697041; - //BA.debugLineNum = 13697041;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=13697042; - //BA.debugLineNum = 13697042;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM NOVENTA WH"; + //BA.debugLineNum = 87;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); + //BA.debugLineNum = 88;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 89;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; +_cuenta = _c.GetString("CUENTA"); + //BA.debugLineNum = 90;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 91;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 92;BA.debugLine="USUARIO = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 93;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 94;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM NOVENTA WH"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)"); -RDebugUtils.currentLine=13697043; - //BA.debugLineNum = 13697043;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_CLIENTE,HVD_"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=13697044; - //BA.debugLineNum = 13697044;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=13697045; - //BA.debugLineNum = 13697045;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 95;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_CLIENTE,HVD_"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 96;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 97;BA.debugLine="For i=0 To c.RowCount -1"; { final int step19 = 1; -final int limit19 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit19 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit19 ;_i = _i + step19 ) { -RDebugUtils.currentLine=13697046; - //BA.debugLineNum = 13697046;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=13697047; - //BA.debugLineNum = 13697047;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")})); -RDebugUtils.currentLine=13697048; - //BA.debugLineNum = 13697048;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"))})); + //BA.debugLineNum = 98;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 99;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_c.GetString("HVD_PRONOMBRE")})); + //BA.debugLineNum = 100;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_c.GetString("HVD_CANT")),(Object)(_c.GetString("HVD_PRONOMBRE"))})); } }; }; -RDebugUtils.currentLine=13697052; - //BA.debugLineNum = 13697052;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._cuenta /*String*/ ),(Object)(_sdate+_stime),(Object)(__ref._usuario /*String*/ ),(Object)("CERRADO"),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._noventa /*reparto_izca.keymon.lat.c_noventa*/ ._comentario /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_data)})); -RDebugUtils.currentLine=13697053; - //BA.debugLineNum = 13697053;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set g"; + //BA.debugLineNum = 104;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cuenta),(Object)(_sdate+_stime),(Object)(_usuario),(Object)("CERRADO"),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._noventa /*reparto_izca.keymon.lat.c_noventa*/ ._comentario /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_data)})); + //BA.debugLineNum = 105;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set g"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+__c.SmartStringFormatter("",(Object)(_sdate+" "+_stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa)")); -RDebugUtils.currentLine=13697054; - //BA.debugLineNum = 13697054;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SET"; + //BA.debugLineNum = 106;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SET"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); -RDebugUtils.currentLine=13697055; - //BA.debugLineNum = 13697055;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; + //BA.debugLineNum = 107;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; _b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=13697056; - //BA.debugLineNum = 13697056;BA.debugLine="End Sub"; + //BA.debugLineNum = 108;BA.debugLine="End Sub"; return ""; } -public String _camera1_ready(reparto_izca.keymon.lat.c_foto __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "camera1_ready", false)) - {return ((String) Debug.delegate(ba, "camera1_ready", new Object[] {_success}));} -RDebugUtils.currentLine=13500416; - //BA.debugLineNum = 13500416;BA.debugLine="Sub Camera1_Ready (Success As Boolean)"; -RDebugUtils.currentLine=13500417; - //BA.debugLineNum = 13500417;BA.debugLine="If Success Then"; +public String _camera1_ready(boolean _success) throws Exception{ + //BA.debugLineNum = 51;BA.debugLine="Sub Camera1_Ready (Success As Boolean)"; + //BA.debugLineNum = 52;BA.debugLine="If Success Then"; if (_success) { -RDebugUtils.currentLine=13500418; - //BA.debugLineNum = 13500418;BA.debugLine="camEx.SetJpegQuality(90)"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._setjpegquality /*String*/ (null,(int) (90)); -RDebugUtils.currentLine=13500419; - //BA.debugLineNum = 13500419;BA.debugLine="camEx.CommitParameters"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._commitparameters /*String*/ (null); -RDebugUtils.currentLine=13500420; - //BA.debugLineNum = 13500420;BA.debugLine="camEx.StartPreview"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._startpreview /*String*/ (null); -RDebugUtils.currentLine=13500421; - //BA.debugLineNum = 13500421;BA.debugLine="Log(camEx.GetPreviewSize)"; -__c.LogImpl("213500421",BA.ObjectToString(__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._getpreviewsize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ (null)),0); + //BA.debugLineNum = 53;BA.debugLine="camEx.SetJpegQuality(90)"; +_camex._setjpegquality /*String*/ ((int) (90)); + //BA.debugLineNum = 54;BA.debugLine="camEx.CommitParameters"; +_camex._commitparameters /*String*/ (); + //BA.debugLineNum = 55;BA.debugLine="camEx.StartPreview"; +_camex._startpreview /*String*/ (); + //BA.debugLineNum = 56;BA.debugLine="Log(camEx.GetPreviewSize)"; +__c.LogImpl("013762565",BA.ObjectToString(_camex._getpreviewsize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ ()),0); }else { -RDebugUtils.currentLine=13500423; - //BA.debugLineNum = 13500423;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)"; + //BA.debugLineNum = 58;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)"; __c.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),__c.True); }; -RDebugUtils.currentLine=13500425; - //BA.debugLineNum = 13500425;BA.debugLine="End Sub"; + //BA.debugLineNum = 60;BA.debugLine="End Sub"; return ""; } -public String _changecamera_click(reparto_izca.keymon.lat.c_foto __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "changecamera_click", false)) - {return ((String) Debug.delegate(ba, "changecamera_click", null));} -RDebugUtils.currentLine=13762560; - //BA.debugLineNum = 13762560;BA.debugLine="Sub ChangeCamera_Click"; -RDebugUtils.currentLine=13762561; - //BA.debugLineNum = 13762561;BA.debugLine="camEx.Release"; -__ref._camex /*reparto_izca.keymon.lat.cameraexclass*/ ._release /*String*/ (null); -RDebugUtils.currentLine=13762562; - //BA.debugLineNum = 13762562;BA.debugLine="frontCamera = Not(frontCamera)"; -__ref._frontcamera /*boolean*/ = __c.Not(__ref._frontcamera /*boolean*/ ); -RDebugUtils.currentLine=13762563; - //BA.debugLineNum = 13762563;BA.debugLine="InitializeCamera"; -__ref._initializecamera /*String*/ (null); -RDebugUtils.currentLine=13762564; - //BA.debugLineNum = 13762564;BA.debugLine="End Sub"; +public String _changecamera_click() throws Exception{ + //BA.debugLineNum = 110;BA.debugLine="Sub ChangeCamera_Click"; + //BA.debugLineNum = 111;BA.debugLine="camEx.Release"; +_camex._release /*String*/ (); + //BA.debugLineNum = 112;BA.debugLine="frontCamera = Not(frontCamera)"; +_frontcamera = __c.Not(_frontcamera); + //BA.debugLineNum = 113;BA.debugLine="InitializeCamera"; +_initializecamera(); + //BA.debugLineNum = 114;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.c_foto __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -RDebugUtils.currentLine=13041664; - //BA.debugLineNum = 13041664;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=13041665; - //BA.debugLineNum = 13041665;BA.debugLine="Private Root As B4XView 'ignore"; +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(); -RDebugUtils.currentLine=13041666; - //BA.debugLineNum = 13041666;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=13041667; - //BA.debugLineNum = 13041667;BA.debugLine="Private frontCamera As Boolean = False"; + //BA.debugLineNum = 4;BA.debugLine="Private frontCamera As Boolean = False"; _frontcamera = __c.False; -RDebugUtils.currentLine=13041668; - //BA.debugLineNum = 13041668;BA.debugLine="Dim g As GPS"; + //BA.debugLineNum = 5;BA.debugLine="Dim g As GPS"; _g = new anywheresoftware.b4a.gps.GPS(); -RDebugUtils.currentLine=13041669; - //BA.debugLineNum = 13041669;BA.debugLine="Private p_camara As Panel"; + //BA.debugLineNum = 6;BA.debugLine="Private p_camara As Panel"; _p_camara = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=13041670; - //BA.debugLineNum = 13041670;BA.debugLine="Private camEx As CameraExClass"; + //BA.debugLineNum = 7;BA.debugLine="Private camEx As CameraExClass"; _camex = new reparto_izca.keymon.lat.cameraexclass(); -RDebugUtils.currentLine=13041671; - //BA.debugLineNum = 13041671;BA.debugLine="Dim btnTakePicture As Button"; + //BA.debugLineNum = 8;BA.debugLine="Dim btnTakePicture As Button"; _btntakepicture = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=13041672; - //BA.debugLineNum = 13041672;BA.debugLine="Dim c As Cursor"; + //BA.debugLineNum = 9;BA.debugLine="Dim c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=13041673; - //BA.debugLineNum = 13041673;BA.debugLine="Dim cuenta As String"; + //BA.debugLineNum = 10;BA.debugLine="Dim cuenta As String"; _cuenta = ""; -RDebugUtils.currentLine=13041674; - //BA.debugLineNum = 13041674;BA.debugLine="Dim lat_gps As String"; + //BA.debugLineNum = 11;BA.debugLine="Dim lat_gps As String"; _lat_gps = ""; -RDebugUtils.currentLine=13041675; - //BA.debugLineNum = 13041675;BA.debugLine="Dim USUARIO As String"; + //BA.debugLineNum = 12;BA.debugLine="Dim USUARIO As String"; _usuario = ""; -RDebugUtils.currentLine=13041676; - //BA.debugLineNum = 13041676;BA.debugLine="Dim MOTIVO As String"; + //BA.debugLineNum = 13;BA.debugLine="Dim MOTIVO As String"; _motivo = ""; -RDebugUtils.currentLine=13041677; - //BA.debugLineNum = 13041677;BA.debugLine="End Sub"; + //BA.debugLineNum = 14;BA.debugLine="End Sub"; return ""; } -public String _gps_locationchanged(reparto_izca.keymon.lat.c_foto __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "gps_locationchanged", false)) - {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));} -RDebugUtils.currentLine=13434880; - //BA.debugLineNum = 13434880;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; -RDebugUtils.currentLine=13434882; - //BA.debugLineNum = 13434882;BA.debugLine="End Sub"; +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 47;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 49;BA.debugLine="End Sub"; return ""; } -public Object _initialize(reparto_izca.keymon.lat.c_foto __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="c_foto"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=13107200; - //BA.debugLineNum = 13107200;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=13107201; - //BA.debugLineNum = 13107201;BA.debugLine="Return Me"; + //BA.debugLineNum = 17;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 18;BA.debugLine="Return Me"; if (true) return this; -RDebugUtils.currentLine=13107202; - //BA.debugLineNum = 13107202;BA.debugLine="End Sub"; + //BA.debugLineNum = 19;BA.debugLine="End Sub"; return null; } -} \ No newline at end of file +public String _initializecamera() throws Exception{ + //BA.debugLineNum = 38;BA.debugLine="Private Sub InitializeCamera"; + //BA.debugLineNum = 39;BA.debugLine="camEx.Initialize(p_camara, frontCamera, Me, \"Came"; +_camex._initialize /*String*/ (ba,_p_camara,_frontcamera,this,"Camera1"); + //BA.debugLineNum = 40;BA.debugLine="frontCamera = camEx.Front"; +_frontcamera = _camex._front /*boolean*/ ; + //BA.debugLineNum = 41;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED")) + return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_historico.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_historico.java index cd0a87d..cc2c549 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_historico.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_historico.java @@ -10,7 +10,7 @@ public class c_historico extends B4AClass.ImplB4AClass implements BA.SubDelegato private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_historico"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_historico"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_historico extends B4AClass.ImplB4AClass implements BA.SubDelegato ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -82,22 +75,12 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _b_guardar_click(reparto_izca.keymon.lat.c_historico __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "b_guardar_click", false)) - {return ((String) Debug.delegate(ba, "b_guardar_click", null));} -RDebugUtils.currentLine=19595264; - //BA.debugLineNum = 19595264;BA.debugLine="Private Sub b_guardar_Click"; -RDebugUtils.currentLine=19595266; - //BA.debugLineNum = 19595266;BA.debugLine="End Sub"; +public String _b_guardar_click() throws Exception{ + //BA.debugLineNum = 592;BA.debugLine="Private Sub b_guardar_Click"; + //BA.debugLineNum = 594;BA.debugLine="End Sub"; return ""; } -public String _b_prodmas_click(reparto_izca.keymon.lat.c_historico __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "b_prodmas_click", false)) - {return ((String) Debug.delegate(ba, "b_prodmas_click", null));} +public String _b_prodmas_click() throws Exception{ int _index = 0; anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; @@ -105,81 +88,56 @@ anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null; anywheresoftware.b4a.objects.collections.List _estetag = null; String _maxprods = ""; anywheresoftware.b4a.objects.collections.Map _cym = null; -RDebugUtils.currentLine=19464192; - //BA.debugLineNum = 19464192;BA.debugLine="Sub b_prodMas_Click"; -RDebugUtils.currentLine=19464193; - //BA.debugLineNum = 19464193;BA.debugLine="etCantHasFocus = False"; -__ref._etcanthasfocus /*boolean*/ = __c.False; -RDebugUtils.currentLine=19464195; - //BA.debugLineNum = 19464195;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)"; -__c.LogImpl("219464195","b_prodMas_Click",__c.Colors.Magenta); -RDebugUtils.currentLine=19464196; - //BA.debugLineNum = 19464196;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; -_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=19464197; - //BA.debugLineNum = 19464197;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; + //BA.debugLineNum = 383;BA.debugLine="Sub b_prodMas_Click"; + //BA.debugLineNum = 384;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 386;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)"; +__c.LogImpl("018350083","b_prodMas_Click",__c.Colors.Magenta); + //BA.debugLineNum = 387;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; +_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 388;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; _pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index); -RDebugUtils.currentLine=19464198; - //BA.debugLineNum = 19464198;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl0 = _clv_pedido._getpanel(_index); + //BA.debugLineNum = 389;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; _pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); _pnl = _pnl0.GetView((int) (0)); -RDebugUtils.currentLine=19464199; - //BA.debugLineNum = 19464199;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; + //BA.debugLineNum = 390;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; _lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); _lacant = _pnl.GetView((int) (2)).GetView((int) (3)); -RDebugUtils.currentLine=19464203; - //BA.debugLineNum = 19464203;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; + //BA.debugLineNum = 394;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; _estetag = new anywheresoftware.b4a.objects.collections.List(); _estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))); -RDebugUtils.currentLine=19464204; - //BA.debugLineNum = 19464204;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&"; -__c.LogImpl("219464204","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=19464205; - //BA.debugLineNum = 19464205;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; + //BA.debugLineNum = 395;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&"; +__c.LogImpl("018350092","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 396;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; if ((_lacant.getText()).equals("")) { _lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=19464207; - //BA.debugLineNum = 19464207;BA.debugLine="Private maxProds as string = esteTag.Get(1) + est"; + //BA.debugLineNum = 398;BA.debugLine="Private maxProds as string = esteTag.Get(1) + est"; _maxprods = BA.NumberToString((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4))))); -RDebugUtils.currentLine=19464209; - //BA.debugLineNum = 19464209;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag"; -__c.LogImpl("219464209",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green); -RDebugUtils.currentLine=19464211; - //BA.debugLineNum = 19464211;BA.debugLine="If laCant.Text + 1 <= maxProds Then"; + //BA.debugLineNum = 400;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag"; +__c.LogImpl("018350097",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green); + //BA.debugLineNum = 402;BA.debugLine="If laCant.Text + 1 <= maxProds Then"; if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) { -RDebugUtils.currentLine=19464212; - //BA.debugLineNum = 19464212;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)"; -__c.LogImpl("219464212",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0); -RDebugUtils.currentLine=19464213; - //BA.debugLineNum = 19464213;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$"; + //BA.debugLineNum = 403;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)"; +__c.LogImpl("018350100",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0); + //BA.debugLineNum = 404;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$"; _lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""))); -RDebugUtils.currentLine=19464214; - //BA.debugLineNum = 19464214;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod"; + //BA.debugLineNum = 405;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))})); -RDebugUtils.currentLine=19464215; - //BA.debugLineNum = 19464215;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))"; + //BA.debugLineNum = 406;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))"; _subs._prodventa /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2)))); -RDebugUtils.currentLine=19464216; - //BA.debugLineNum = 19464216;BA.debugLine="Private cym As Map = Subs.traemosCantYMonto(clv_"; + //BA.debugLineNum = 407;BA.debugLine="Private cym As Map = Subs.traemosCantYMonto(clv_"; _cym = new anywheresoftware.b4a.objects.collections.Map(); -_cym = _subs._traemoscantymonto /*anywheresoftware.b4a.objects.collections.Map*/ (ba,__ref._clv_pedido /*b4a.example3.customlistview*/ ); -RDebugUtils.currentLine=19464217; - //BA.debugLineNum = 19464217;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad")))); -RDebugUtils.currentLine=19464218; - //BA.debugLineNum = 19464218;BA.debugLine="L_TOTAL.Text = Round2(cym.Get(\"monto\"), 2)"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2)))); +_cym = _subs._traemoscantymonto /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_clv_pedido); + //BA.debugLineNum = 408;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")"; +_l_cant.setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad")))); + //BA.debugLineNum = 409;BA.debugLine="L_TOTAL.Text = Round2(cym.Get(\"monto\"), 2)"; +_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2)))); }; -RDebugUtils.currentLine=19464235; - //BA.debugLineNum = 19464235;BA.debugLine="End Sub"; + //BA.debugLineNum = 426;BA.debugLine="End Sub"; return ""; } -public String _b_prodmenos_click(reparto_izca.keymon.lat.c_historico __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "b_prodmenos_click", false)) - {return ((String) Debug.delegate(ba, "b_prodmenos_click", null));} +public String _b_prodmenos_click() throws Exception{ int _index = 0; anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; @@ -187,117 +145,88 @@ anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null; anywheresoftware.b4a.objects.collections.List _estetag = null; float _preciou = 0f; anywheresoftware.b4a.objects.collections.Map _cym = null; -RDebugUtils.currentLine=19398656; - //BA.debugLineNum = 19398656;BA.debugLine="Sub b_prodMenos_Click"; -RDebugUtils.currentLine=19398657; - //BA.debugLineNum = 19398657;BA.debugLine="etCantHasFocus = False"; -__ref._etcanthasfocus /*boolean*/ = __c.False; -RDebugUtils.currentLine=19398658; - //BA.debugLineNum = 19398658;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)"; -__c.LogImpl("219398658","etCantHasFocus="+BA.ObjectToString(__ref._etcanthasfocus /*boolean*/ ),0); -RDebugUtils.currentLine=19398659; - //BA.debugLineNum = 19398659;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)"; -__c.LogImpl("219398659","b_prodMenos_Click",__c.Colors.Magenta); -RDebugUtils.currentLine=19398660; - //BA.debugLineNum = 19398660;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; -_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=19398661; - //BA.debugLineNum = 19398661;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; + //BA.debugLineNum = 340;BA.debugLine="Sub b_prodMenos_Click"; + //BA.debugLineNum = 341;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 342;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)"; +__c.LogImpl("018284546","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0); + //BA.debugLineNum = 343;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)"; +__c.LogImpl("018284547","b_prodMenos_Click",__c.Colors.Magenta); + //BA.debugLineNum = 344;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; +_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 345;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; _pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index); -RDebugUtils.currentLine=19398662; - //BA.debugLineNum = 19398662;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl0 = _clv_pedido._getpanel(_index); + //BA.debugLineNum = 346;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; _pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); _pnl = _pnl0.GetView((int) (0)); -RDebugUtils.currentLine=19398663; - //BA.debugLineNum = 19398663;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; + //BA.debugLineNum = 347;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; _lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); _lacant = _pnl.GetView((int) (2)).GetView((int) (3)); -RDebugUtils.currentLine=19398665; - //BA.debugLineNum = 19398665;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; + //BA.debugLineNum = 349;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; _estetag = new anywheresoftware.b4a.objects.collections.List(); _estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))); -RDebugUtils.currentLine=19398666; - //BA.debugLineNum = 19398666;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get("; -__c.LogImpl("219398666","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=19398667; - //BA.debugLineNum = 19398667;BA.debugLine="If esteTag.Get(3) <> \"1\" Then 'Si es PROMO entonc"; + //BA.debugLineNum = 350;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get("; +__c.LogImpl("018284554","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 351;BA.debugLine="If esteTag.Get(3) <> \"1\" Then 'Si es PROMO entonc"; if ((_estetag.Get((int) (3))).equals((Object)("1")) == false) { -RDebugUtils.currentLine=19398668; - //BA.debugLineNum = 19398668;BA.debugLine="Log(\"ES PROMO\")"; -__c.LogImpl("219398668","ES PROMO",0); -RDebugUtils.currentLine=19398669; - //BA.debugLineNum = 19398669;BA.debugLine="result = Msgbox2(\"Si se modifica una promoción,"; -__ref._result /*String*/ = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Si se modifica una promoción, la promoción se rompe y solo quedarĆ”n los productos sueltos, Āæseguro que desea continuar?"),BA.ObjectToCharSequence("Modificar Promoción"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); -RDebugUtils.currentLine=19398670; - //BA.debugLineNum = 19398670;BA.debugLine="If result = DialogResponse.POSITIVE Then 'Quitam"; -if ((__ref._result /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { -RDebugUtils.currentLine=19398671; - //BA.debugLineNum = 19398671;BA.debugLine="prodsMap.Remove(esteTag.Get(3))"; -__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Remove(_estetag.Get((int) (3))); -RDebugUtils.currentLine=19398672; - //BA.debugLineNum = 19398672;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; + //BA.debugLineNum = 352;BA.debugLine="Log(\"ES PROMO\")"; +__c.LogImpl("018284556","ES PROMO",0); + //BA.debugLineNum = 353;BA.debugLine="result = Msgbox2(\"Si se modifica una promoción,"; +_result = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Si se modifica una promoción, la promoción se rompe y solo quedarĆ”n los productos sueltos, Āæseguro que desea continuar?"),BA.ObjectToCharSequence("Modificar Promoción"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 354;BA.debugLine="If result = DialogResponse.POSITIVE Then 'Quitam"; +if ((_result).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 355;BA.debugLine="prodsMap.Remove(esteTag.Get(3))"; +_prodsmap.Remove(_estetag.Get((int) (3))); + //BA.debugLineNum = 356;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 1 WHERE HVD_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"' and HVD_cliente in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=19398673; - //BA.debugLineNum = 19398673;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; + //BA.debugLineNum = 357;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_CODPROMO = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' WHERE HVD_cliente in (Select CUENTA from cuentaa) AND HVD_CODPROMO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (3)))+"'")); -RDebugUtils.currentLine=19398674; - //BA.debugLineNum = 19398674;BA.debugLine="LogColor(prodsMap, Colors.red)"; -__c.LogImpl("219398674",BA.ObjectToString(__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ ),__c.Colors.Red); -RDebugUtils.currentLine=19398675; - //BA.debugLineNum = 19398675;BA.debugLine="reconstruirPedido = True"; -__ref._reconstruirpedido /*boolean*/ = __c.True; -RDebugUtils.currentLine=19398676; - //BA.debugLineNum = 19398676;BA.debugLine="promoABorrar = esteTag.Get(3)"; -__ref._promoaborrar /*String*/ = BA.ObjectToString(_estetag.Get((int) (3))); -RDebugUtils.currentLine=19398677; - //BA.debugLineNum = 19398677;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); + //BA.debugLineNum = 358;BA.debugLine="LogColor(prodsMap, Colors.red)"; +__c.LogImpl("018284562",BA.ObjectToString(_prodsmap),__c.Colors.Red); + //BA.debugLineNum = 359;BA.debugLine="reconstruirPedido = True"; +_reconstruirpedido = __c.True; + //BA.debugLineNum = 360;BA.debugLine="promoABorrar = esteTag.Get(3)"; +_promoaborrar = BA.ObjectToString(_estetag.Get((int) (3))); + //BA.debugLineNum = 361;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); }; }else { -RDebugUtils.currentLine=19398680; - //BA.debugLineNum = 19398680;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; + //BA.debugLineNum = 364;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; if ((_lacant.getText()).equals("")) { _lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=19398681; - //BA.debugLineNum = 19398681;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$"; + //BA.debugLineNum = 365;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-1}\"$"; _lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-1))+""))); -RDebugUtils.currentLine=19398682; - //BA.debugLineNum = 19398682;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; + //BA.debugLineNum = 366;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; if ((double)(Double.parseDouble(_lacant.getText()))<0) { _lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=19398683; - //BA.debugLineNum = 19398683;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod"; + //BA.debugLineNum = 367;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{_estetag.Get((int) (2))})); }; -RDebugUtils.currentLine=19398685; - //BA.debugLineNum = 19398685;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get"; + //BA.debugLineNum = 369;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get"; _preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))); -RDebugUtils.currentLine=19398686; - //BA.debugLineNum = 19398686;BA.debugLine="Log(\"PU: \" & preciou)"; -__c.LogImpl("219398686","PU: "+BA.NumberToString(_preciou),0); -RDebugUtils.currentLine=19398692; - //BA.debugLineNum = 19398692;BA.debugLine="Subs.prodRechazo(esteTag.Get(5), esteTag.Get(2))"; + //BA.debugLineNum = 370;BA.debugLine="Log(\"PU: \" & preciou)"; +__c.LogImpl("018284574","PU: "+BA.NumberToString(_preciou),0); + //BA.debugLineNum = 376;BA.debugLine="Subs.prodRechazo(esteTag.Get(5), esteTag.Get(2))"; _subs._prodrechazo /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2)))); -RDebugUtils.currentLine=19398693; - //BA.debugLineNum = 19398693;BA.debugLine="Private cym As Map = Subs.traemosCantYMonto(clv_p"; + //BA.debugLineNum = 377;BA.debugLine="Private cym As Map = Subs.traemosCantYMonto(clv_p"; _cym = new anywheresoftware.b4a.objects.collections.Map(); -_cym = _subs._traemoscantymonto /*anywheresoftware.b4a.objects.collections.Map*/ (ba,__ref._clv_pedido /*b4a.example3.customlistview*/ ); -RDebugUtils.currentLine=19398694; - //BA.debugLineNum = 19398694;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad")))); -RDebugUtils.currentLine=19398695; - //BA.debugLineNum = 19398695;BA.debugLine="L_TOTAL.Text = Round2(cym.Get(\"monto\"), 2)"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2)))); -RDebugUtils.currentLine=19398697; - //BA.debugLineNum = 19398697;BA.debugLine="End Sub"; +_cym = _subs._traemoscantymonto /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_clv_pedido); + //BA.debugLineNum = 378;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")"; +_l_cant.setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad")))); + //BA.debugLineNum = 379;BA.debugLine="L_TOTAL.Text = Round2(cym.Get(\"monto\"), 2)"; +_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2)))); + //BA.debugLineNum = 381;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_historico __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} +public String _b_regresar_click() throws Exception{ + //BA.debugLineNum = 185;BA.debugLine="Sub b_regresar_Click"; + //BA.debugLineNum = 186;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 187;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_appear() throws Exception{ int _i = 0; anywheresoftware.b4a.sql.SQL.CursorWrapper _oc = null; int _cant2 = 0; @@ -309,349 +238,185 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null; int _cantco = 0; anywheresoftware.b4a.sql.SQL.CursorWrapper _cco = null; anywheresoftware.b4a.objects.collections.Map _cym = null; -RDebugUtils.currentLine=18939904; - //BA.debugLineNum = 18939904;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=18939905; - //BA.debugLineNum = 18939905;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; -_subs._centrapanel /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=18939909; - //BA.debugLineNum = 18939909;BA.debugLine="L_CANT.Text =\"\""; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=18939910; - //BA.debugLineNum = 18939910;BA.debugLine="L_TOTAL.Text=\"\""; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=18939911; - //BA.debugLineNum = 18939911;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 "))); -RDebugUtils.currentLine=18939912; - //BA.debugLineNum = 18939912;BA.debugLine="C.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=18939913; - //BA.debugLineNum = 18939913;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; -__ref._existe /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE"); -RDebugUtils.currentLine=18939914; - //BA.debugLineNum = 18939914;BA.debugLine="C.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=18939916; - //BA.debugLineNum = 18939916;BA.debugLine="c=Starter.skmt.ExecQuery(\"select hvd_num_registro"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select hvd_num_registro, HVD_CLIENTE, HVD_PRONOMBRE, HVD_PROID, HVD_CANT, HVD_COSTO_TOT, HVD_CODPROMO from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 and hvd_cant > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=18939917; - //BA.debugLineNum = 18939917;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=18939918; - //BA.debugLineNum = 18939918;BA.debugLine="clv_pedido.Clear"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=18939919; - //BA.debugLineNum = 18939919;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; -_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2)); -RDebugUtils.currentLine=18939920; - //BA.debugLineNum = 18939920;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().SetLayoutAnimated((int) (100),__c.DipToCurrent((int) (0)),__c.DipToCurrent((int) (60)),(int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-50),(int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.62)); -RDebugUtils.currentLine=18939921; - //BA.debugLineNum = 18939921;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._base_resize(__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().getWidth(),__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().getHeight()); -RDebugUtils.currentLine=18939923; - //BA.debugLineNum = 18939923;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=18939925; - //BA.debugLineNum = 18939925;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 59;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 60;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth()); + //BA.debugLineNum = 64;BA.debugLine="L_CANT.Text =\"\""; +_l_cant.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 65;BA.debugLine="L_TOTAL.Text=\"\""; +_l_total.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 66;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 "))); + //BA.debugLineNum = 67;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 68;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; +_existe = _c.GetString("EXISTE"); + //BA.debugLineNum = 69;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 71;BA.debugLine="c=Starter.skmt.ExecQuery(\"select hvd_num_registro"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select hvd_num_registro, HVD_CLIENTE, HVD_PRONOMBRE, HVD_PROID, HVD_CANT, HVD_COSTO_TOT, HVD_CODPROMO from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 and hvd_cant > 0 order by HVD_CODPROMO desc, HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 72;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 73;BA.debugLine="clv_pedido.Clear"; +_clv_pedido._clear(); + //BA.debugLineNum = 74;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2)); + //BA.debugLineNum = 75;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6"; +_clv_pedido._getbase().SetLayoutAnimated((int) (100),__c.DipToCurrent((int) (0)),__c.DipToCurrent((int) (60)),(int) (_root.getWidth()-50),(int) (_root.getHeight()*0.62)); + //BA.debugLineNum = 76;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,"; +_clv_pedido._base_resize(_clv_pedido._getbase().getWidth(),_clv_pedido._getbase().getHeight()); + //BA.debugLineNum = 78;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 80;BA.debugLine="For i=0 To c.RowCount -1"; { final int step15 = 1; -final int limit15 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit15 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit15 ;_i = _i + step15 ) { -RDebugUtils.currentLine=18939926; - //BA.debugLineNum = 18939926;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=18939928; - //BA.debugLineNum = 18939928;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 81;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 83;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery($"; _oc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO")))+"'")))); -RDebugUtils.currentLine=18939929; - //BA.debugLineNum = 18939929;BA.debugLine="Private cant2 As Int = 0"; +_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS2 WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+"'")))); + //BA.debugLineNum = 84;BA.debugLine="Private cant2 As Int = 0"; _cant2 = (int) (0); -RDebugUtils.currentLine=18939930; - //BA.debugLineNum = 18939930;BA.debugLine="If oc.RowCount > 0 Then"; + //BA.debugLineNum = 85;BA.debugLine="If oc.RowCount > 0 Then"; if (_oc.getRowCount()>0) { -RDebugUtils.currentLine=18939931; - //BA.debugLineNum = 18939931;BA.debugLine="oc.Position = 0"; + //BA.debugLineNum = 86;BA.debugLine="oc.Position = 0"; _oc.setPosition((int) (0)); -RDebugUtils.currentLine=18939932; - //BA.debugLineNum = 18939932;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")"; + //BA.debugLineNum = 87;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")"; _cant2 = (int)(Double.parseDouble(_oc.GetString("HVD_CANT"))); }; -RDebugUtils.currentLine=18939934; - //BA.debugLineNum = 18939934;BA.debugLine="oc.Close"; + //BA.debugLineNum = 89;BA.debugLine="oc.Close"; _oc.Close(); -RDebugUtils.currentLine=18939935; - //BA.debugLineNum = 18939935;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 90;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=18939936; - //BA.debugLineNum = 18939936;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=18939937; - //BA.debugLineNum = 18939937;BA.debugLine="label1.TextSize = 12"; + //BA.debugLineNum = 91;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 92;BA.debugLine="label1.TextSize = 12"; _label1.setTextSize((float) (12)); -RDebugUtils.currentLine=18939938; - //BA.debugLineNum = 18939938;BA.debugLine="label1.TextColor = Colors.black"; + //BA.debugLineNum = 93;BA.debugLine="label1.TextColor = Colors.black"; _label1.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=18939939; - //BA.debugLineNum = 18939939;BA.debugLine="Dim label2 As Label"; + //BA.debugLineNum = 94;BA.debugLine="Dim label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=18939940; - //BA.debugLineNum = 18939940;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=18939941; - //BA.debugLineNum = 18939941;BA.debugLine="label2.TextSize = 12"; + //BA.debugLineNum = 95;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 96;BA.debugLine="label2.TextSize = 12"; _label2.setTextSize((float) (12)); -RDebugUtils.currentLine=18939942; - //BA.debugLineNum = 18939942;BA.debugLine="label2.TextColor = Colors.black"; + //BA.debugLineNum = 97;BA.debugLine="label2.TextColor = Colors.black"; _label2.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=18939943; - //BA.debugLineNum = 18939943;BA.debugLine="Private bgColor, textColor As Int"; + //BA.debugLineNum = 98;BA.debugLine="Private bgColor, textColor As Int"; _bgcolor = 0; _textcolor = 0; -RDebugUtils.currentLine=18939944; - //BA.debugLineNum = 18939944;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; + //BA.debugLineNum = 99;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; _bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249)); -RDebugUtils.currentLine=18939945; - //BA.debugLineNum = 18939945;BA.debugLine="textColor = Colors.black"; + //BA.debugLineNum = 100;BA.debugLine="textColor = Colors.black"; _textcolor = __c.Colors.Black; -RDebugUtils.currentLine=18939946; - //BA.debugLineNum = 18939946;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> \"1\" Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals("1") == false) { -RDebugUtils.currentLine=18939948; - //BA.debugLineNum = 18939948;BA.debugLine="bgColor = Colors.White"; + //BA.debugLineNum = 101;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> \"1\" Then"; +if ((_c.GetString("HVD_CODPROMO")).equals("1") == false) { + //BA.debugLineNum = 103;BA.debugLine="bgColor = Colors.White"; _bgcolor = __c.Colors.White; }; -RDebugUtils.currentLine=18939952; - //BA.debugLineNum = 18939952;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HVD_"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_subs._traeprecio /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT"))),(int) (0),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (50)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),_subs._traecliente /*String*/ (ba)).getObject())),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"))); + //BA.debugLineNum = 107;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\"HVD_"; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_subs._traeprecio /*String*/ (ba,_c.GetString("HVD_PROID"),_c.GetString("HVD_CODPROMO")),(int)(Double.parseDouble(_c.GetString("HVD_CANT"))),(int) (0),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (50)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_subs._traecliente /*String*/ (ba)).getObject())),(Object)(_c.GetString("HVD_PRONOMBRE"))); } }; }; -RDebugUtils.currentLine=18939957; - //BA.debugLineNum = 18939957;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery(\"se"; + //BA.debugLineNum = 112;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery(\"se"; _vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE"))); -RDebugUtils.currentLine=18939958; - //BA.debugLineNum = 18939958;BA.debugLine="Log($\"VENTA: ${vc.RowCount}\"$)"; -__c.LogImpl("218939958",("VENTA: "+__c.SmartStringFormatter("",(Object)(_vc.getRowCount()))+""),0); -RDebugUtils.currentLine=18939959; - //BA.debugLineNum = 18939959;BA.debugLine="If vc.RowCount > 0 Then"; + //BA.debugLineNum = 113;BA.debugLine="Log($\"VENTA: ${vc.RowCount}\"$)"; +__c.LogImpl("017825846",("VENTA: "+__c.SmartStringFormatter("",(Object)(_vc.getRowCount()))+""),0); + //BA.debugLineNum = 114;BA.debugLine="If vc.RowCount > 0 Then"; if (_vc.getRowCount()>0) { -RDebugUtils.currentLine=18939962; - //BA.debugLineNum = 18939962;BA.debugLine="textColor = Colors.RGB(0,87,142)"; + //BA.debugLineNum = 117;BA.debugLine="textColor = Colors.RGB(0,87,142)"; _textcolor = __c.Colors.RGB((int) (0),(int) (87),(int) (142)); -RDebugUtils.currentLine=18939963; - //BA.debugLineNum = 18939963;BA.debugLine="For i=0 To vc.RowCount -1"; + //BA.debugLineNum = 118;BA.debugLine="For i=0 To vc.RowCount -1"; { final int step45 = 1; final int limit45 = (int) (_vc.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit45 ;_i = _i + step45 ) { -RDebugUtils.currentLine=18939964; - //BA.debugLineNum = 18939964;BA.debugLine="vc.Position = i"; + //BA.debugLineNum = 119;BA.debugLine="vc.Position = i"; _vc.setPosition(_i); -RDebugUtils.currentLine=18939965; - //BA.debugLineNum = 18939965;BA.debugLine="Private cantCO As Int = 0"; + //BA.debugLineNum = 120;BA.debugLine="Private cantCO As Int = 0"; _cantco = (int) (0); -RDebugUtils.currentLine=18939967; - //BA.debugLineNum = 18939967;BA.debugLine="Private cco As Cursor = Starter.skmt.ExecQuery("; + //BA.debugLineNum = 122;BA.debugLine="Private cco As Cursor = Starter.skmt.ExecQuery("; _cco = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _cco = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_CLI_ORIG")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_CLI_ORIG")))+"' and REP_PRODID='"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_PRODID")))+"' and REP_RECHAZO = '1' and REP_CANT > 0")))); -RDebugUtils.currentLine=18939969; - //BA.debugLineNum = 18939969;BA.debugLine="If cco.RowCount > 0 Then"; + //BA.debugLineNum = 124;BA.debugLine="If cco.RowCount > 0 Then"; if (_cco.getRowCount()>0) { -RDebugUtils.currentLine=18939970; - //BA.debugLineNum = 18939970;BA.debugLine="cco.Position = 0"; + //BA.debugLineNum = 125;BA.debugLine="cco.Position = 0"; _cco.setPosition((int) (0)); -RDebugUtils.currentLine=18939971; - //BA.debugLineNum = 18939971;BA.debugLine="cantCO = cco.GetString(\"REP_CANT\") + vc.GetStr"; + //BA.debugLineNum = 126;BA.debugLine="cantCO = cco.GetString(\"REP_CANT\") + vc.GetStr"; _cantco = (int) ((double)(Double.parseDouble(_cco.GetString("REP_CANT")))+(double)(Double.parseDouble(_vc.GetString("REP_CANT")))); }; -RDebugUtils.currentLine=18939973; - //BA.debugLineNum = 18939973;BA.debugLine="cantCO = Subs.traeCantidadRechazada(vc.GetStrin"; + //BA.debugLineNum = 128;BA.debugLine="cantCO = Subs.traeCantidadRechazada(vc.GetStrin"; _cantco = _subs._traecantidadrechazada /*int*/ (ba,_vc.GetString("REP_CLI_ORIG"),_vc.GetString("REP_PRODID")); -RDebugUtils.currentLine=18939976; - //BA.debugLineNum = 18939976;BA.debugLine="clv_pedido.Add(CreateListItem(vc.GetString(\"REP"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,_vc.GetString("REP_PRONOMBRE"),_subs._traeprecio /*String*/ (ba,_vc.GetString("REP_PRODID"),_subs._traealmacen /*String*/ (ba)),(int)(Double.parseDouble(_vc.GetString("REP_CANT"))),_cantco,__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (50)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,_vc.GetString("REP_PRODID"),_bgcolor,_textcolor,BA.NumberToString(1),_vc.GetString("REP_CLI_ORIG")).getObject())),(Object)(_vc.GetString("REP_PRONOMBRE"))); + //BA.debugLineNum = 131;BA.debugLine="clv_pedido.Add(CreateListItem(vc.GetString(\"REP"; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_vc.GetString("REP_PRONOMBRE"),_subs._traeprecio /*String*/ (ba,_vc.GetString("REP_PRODID"),_subs._traealmacen /*String*/ (ba)),(int)(Double.parseDouble(_vc.GetString("REP_CANT"))),_cantco,_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (50)),_bmp,_vc.GetString("REP_PRODID"),_bgcolor,_textcolor,BA.NumberToString(1),_vc.GetString("REP_CLI_ORIG")).getObject())),(Object)(_vc.GetString("REP_PRONOMBRE"))); } }; -RDebugUtils.currentLine=18939978; - //BA.debugLineNum = 18939978;BA.debugLine="cco.Close"; + //BA.debugLineNum = 133;BA.debugLine="cco.Close"; _cco.Close(); -RDebugUtils.currentLine=18939979; - //BA.debugLineNum = 18939979;BA.debugLine="vc.Close"; + //BA.debugLineNum = 134;BA.debugLine="vc.Close"; _vc.Close(); }; -RDebugUtils.currentLine=18939982; - //BA.debugLineNum = 18939982;BA.debugLine="If Existe <> 0 Then"; -if ((__ref._existe /*String*/ ).equals(BA.NumberToString(0)) == false) { -RDebugUtils.currentLine=18939983; - //BA.debugLineNum = 18939983;BA.debugLine="c = Starter.skmt.ExecQuery(\"select SUM(HVD_CANT)"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(HVD_CANT) AS PC_NOART, SUM(HVD_COSTO_TOT) AS PC_MONTO from HIST_VENTAS where HVD_CLIENTE in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 "))); -RDebugUtils.currentLine=18939984; - //BA.debugLineNum = 18939984;BA.debugLine="C.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=18939985; - //BA.debugLineNum = 18939985;BA.debugLine="L_CANT.Text = c.GetString(\"PC_NOART\")"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOART"))); -RDebugUtils.currentLine=18939986; - //BA.debugLineNum = 18939986;BA.debugLine="L_TOTAL.Text = Round2(c.GetString(\"PC_MONTO\"), 2"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_MONTO"))),(int) (2)))); + //BA.debugLineNum = 137;BA.debugLine="If Existe <> 0 Then"; +if ((_existe).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 138;BA.debugLine="c = Starter.skmt.ExecQuery(\"select SUM(HVD_CANT)"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(HVD_CANT) AS PC_NOART, SUM(HVD_COSTO_TOT) AS PC_MONTO from HIST_VENTAS where HVD_CLIENTE in (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 "))); + //BA.debugLineNum = 139;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 140;BA.debugLine="L_CANT.Text = c.GetString(\"PC_NOART\")"; +_l_cant.setText(BA.ObjectToCharSequence(_c.GetString("PC_NOART"))); + //BA.debugLineNum = 141;BA.debugLine="L_TOTAL.Text = Round2(c.GetString(\"PC_MONTO\"), 2"; +_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_c.GetString("PC_MONTO"))),(int) (2)))); }; -RDebugUtils.currentLine=18939988; - //BA.debugLineNum = 18939988;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); -RDebugUtils.currentLine=18939989; - //BA.debugLineNum = 18939989;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=18939990; - //BA.debugLineNum = 18939990;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; -__ref._existe /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE"); -RDebugUtils.currentLine=18939991; - //BA.debugLineNum = 18939991;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=18939994; - //BA.debugLineNum = 18939994;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; -_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2)); -RDebugUtils.currentLine=18940012; - //BA.debugLineNum = 18940012;BA.debugLine="If Existe <> 0 Then"; -if ((__ref._existe /*String*/ ).equals(BA.NumberToString(0)) == false) { -RDebugUtils.currentLine=18940013; - //BA.debugLineNum = 18940013;BA.debugLine="c=Starter.skmt.ExecQuery(\"select SUM(PE_CANT) AS"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(PE_CANT) AS PE_CANT, SUM(PE_COSTO_TOT) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); -RDebugUtils.currentLine=18940014; - //BA.debugLineNum = 18940014;BA.debugLine="C.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=18940015; - //BA.debugLineNum = 18940015;BA.debugLine="L_CANT.Text = L_CANT.Text + c.GetString(\"PE_CANT"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence((double)(Double.parseDouble(__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT"))))); -RDebugUtils.currentLine=18940016; - //BA.debugLineNum = 18940016;BA.debugLine="L_TOTAL.Text = Round2(L_TOTAL.Text + c.GetStrin"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT"))),(int) (2)))); + //BA.debugLineNum = 143;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 144;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 145;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; +_existe = _c.GetString("EXISTE"); + //BA.debugLineNum = 146;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 149;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2)); + //BA.debugLineNum = 167;BA.debugLine="If Existe <> 0 Then"; +if ((_existe).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 168;BA.debugLine="c=Starter.skmt.ExecQuery(\"select SUM(PE_CANT) AS"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select SUM(PE_CANT) AS PE_CANT, SUM(PE_COSTO_TOT) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 169;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 170;BA.debugLine="L_CANT.Text = L_CANT.Text + c.GetString(\"PE_CANT"; +_l_cant.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_l_cant.getText()))+(double)(Double.parseDouble(_c.GetString("PE_CANT"))))); + //BA.debugLineNum = 171;BA.debugLine="L_TOTAL.Text = Round2(L_TOTAL.Text + c.GetStrin"; +_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_l_total.getText()))+(double)(Double.parseDouble(_c.GetString("PE_COSTO_TOT"))),(int) (2)))); }; -RDebugUtils.currentLine=18940020; - //BA.debugLineNum = 18940020;BA.debugLine="Private cym As Map = Subs.traemosCantYMonto(clv_p"; + //BA.debugLineNum = 175;BA.debugLine="Private cym As Map = Subs.traemosCantYMonto(clv_p"; _cym = new anywheresoftware.b4a.objects.collections.Map(); -_cym = _subs._traemoscantymonto /*anywheresoftware.b4a.objects.collections.Map*/ (ba,__ref._clv_pedido /*b4a.example3.customlistview*/ ); -RDebugUtils.currentLine=18940021; - //BA.debugLineNum = 18940021;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad")))); -RDebugUtils.currentLine=18940022; - //BA.debugLineNum = 18940022;BA.debugLine="L_TOTAL.Text = Round2(cym.Get(\"monto\"), 2)"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2)))); -RDebugUtils.currentLine=18940023; - //BA.debugLineNum = 18940023;BA.debugLine="End Sub"; +_cym = _subs._traemoscantymonto /*anywheresoftware.b4a.objects.collections.Map*/ (ba,_clv_pedido); + //BA.debugLineNum = 176;BA.debugLine="L_CANT.Text = cym.Get(\"cantidad\")"; +_l_cant.setText(BA.ObjectToCharSequence(_cym.Get((Object)("cantidad")))); + //BA.debugLineNum = 177;BA.debugLine="L_TOTAL.Text = Round2(cym.Get(\"monto\"), 2)"; +_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(BA.ObjectToNumber(_cym.Get((Object)("monto")))),(int) (2)))); + //BA.debugLineNum = 178;BA.debugLine="End Sub"; return ""; } -public String _b_regresar_click(reparto_izca.keymon.lat.c_historico __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "b_regresar_click", false)) - {return ((String) Debug.delegate(ba, "b_regresar_click", null));} -RDebugUtils.currentLine=19070976; - //BA.debugLineNum = 19070976;BA.debugLine="Sub b_regresar_Click"; -RDebugUtils.currentLine=19070977; - //BA.debugLineNum = 19070977;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; -_b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=19070978; - //BA.debugLineNum = 19070978;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(reparto_izca.keymon.lat.c_historico __ref,String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "createlistitem", false)) - {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_text,_preciou,_inv,_inv2,_width,_height,_img,_prodid,_bc,_tc,_promo,_cliente_original}));} -anywheresoftware.b4a.objects.B4XViewWrapper _p = null; -anywheresoftware.b4a.objects.CSBuilder _cs = null; -RDebugUtils.currentLine=19333120; - //BA.debugLineNum = 19333120;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri"; -RDebugUtils.currentLine=19333121; - //BA.debugLineNum = 19333121;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; -_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=19333122; - //BA.debugLineNum = 19333122;BA.debugLine="Private cs As CSBuilder"; -_cs = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=19333123; - //BA.debugLineNum = 19333123;BA.debugLine="cs.Initialize"; -_cs.Initialize(); -RDebugUtils.currentLine=19333124; - //BA.debugLineNum = 19333124;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; -_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=19333125; - //BA.debugLineNum = 19333125;BA.debugLine="p.LoadLayout(\"prodItem\")"; -_p.LoadLayout("prodItem",ba); -RDebugUtils.currentLine=19333126; - //BA.debugLineNum = 19333126;BA.debugLine="p_prods.Color = bc"; -__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(_bc); -RDebugUtils.currentLine=19333127; - //BA.debugLineNum = 19333127;BA.debugLine="l_prodX.TextColor = tc"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(_tc); -RDebugUtils.currentLine=19333128; - //BA.debugLineNum = 19333128;BA.debugLine="precioU = $\"$1.2{precioU}\"$"; -_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""); -RDebugUtils.currentLine=19333129; - //BA.debugLineNum = 19333129;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\""; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)); -RDebugUtils.currentLine=19333130; - //BA.debugLineNum = 19333130;BA.debugLine="If promo <> \"1\" And precioU = 0 Then"; -if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=19333131; - //BA.debugLineNum = 19333131;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject())); - }; -RDebugUtils.currentLine=19333133; - //BA.debugLineNum = 19333133;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs"))); -RDebugUtils.currentLine=19333135; - //BA.debugLineNum = 19333135;BA.debugLine="l_pCant.Tag = Round2(precioU,2)&\"|\"&inv&\"|\"&prodI"; -__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou)),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original)); -RDebugUtils.currentLine=19333136; - //BA.debugLineNum = 19333136;BA.debugLine="et_pCant.Tag = Round2(precioU,2)&\"|\"&inv&\"|\"&prod"; -__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou)),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original)); -RDebugUtils.currentLine=19333137; - //BA.debugLineNum = 19333137;BA.debugLine="p_prods.Tag = l_pCant.tag"; -__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTag(__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .getTag()); -RDebugUtils.currentLine=19333139; - //BA.debugLineNum = 19333139;BA.debugLine="l_pCant.Text = inv"; -__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_inv)); -RDebugUtils.currentLine=19333143; - //BA.debugLineNum = 19333143;BA.debugLine="l_pCant.BringToFront"; -__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .BringToFront(); -RDebugUtils.currentLine=19333144; - //BA.debugLineNum = 19333144;BA.debugLine="et_pCant.SendToBack"; -__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .SendToBack(); -RDebugUtils.currentLine=19333147; - //BA.debugLineNum = 19333147;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())); -RDebugUtils.currentLine=19333148; - //BA.debugLineNum = 19333148;BA.debugLine="End Sub"; -return null; -} -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest(reparto_izca.keymon.lat.c_historico __ref) throws Exception{ -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));} -ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref); +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{ +ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { -public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_historico parent,reparto_izca.keymon.lat.c_historico __ref) { +public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_historico parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_historico __ref; reparto_izca.keymon.lat.c_historico parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_historico"; while (true) { switch (state) { @@ -661,170 +426,159 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = -1; -RDebugUtils.currentLine=19136515; - //BA.debugLineNum = 19136515;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; + //BA.debugLineNum = 192;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; parent._b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=19136517; - //BA.debugLineNum = 19136517;BA.debugLine="Return False"; + //BA.debugLineNum = 194;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; -RDebugUtils.currentLine=19136518; - //BA.debugLineNum = 19136518;BA.debugLine="End Sub"; + //BA.debugLineNum = 195;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b4xpage_created(reparto_izca.keymon.lat.c_historico __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=18874368; - //BA.debugLineNum = 18874368;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=18874369; - //BA.debugLineNum = 18874369;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=18874371; - //BA.debugLineNum = 18874371;BA.debugLine="g.Initialize(\"GPS\")"; -__ref._g /*anywheresoftware.b4a.gps.GPS*/ .Initialize("GPS"); -RDebugUtils.currentLine=18874372; - //BA.debugLineNum = 18874372;BA.debugLine="Root.LoadLayout(\"historico\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("historico",ba); -RDebugUtils.currentLine=18874373; - //BA.debugLineNum = 18874373;BA.debugLine="b_borra.Visible = False"; -__ref._b_borra /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=18874374; - //BA.debugLineNum = 18874374;BA.debugLine="Titulo.Text = \"Pedido\""; -__ref._titulo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Pedido")); -RDebugUtils.currentLine=18874375; - //BA.debugLineNum = 18874375;BA.debugLine="End Sub"; +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 48;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 49;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 51;BA.debugLine="g.Initialize(\"GPS\")"; +_g.Initialize("GPS"); + //BA.debugLineNum = 52;BA.debugLine="Root.LoadLayout(\"historico\")"; +_root.LoadLayout("historico",ba); + //BA.debugLineNum = 53;BA.debugLine="b_borra.Visible = False"; +_b_borra.setVisible(__c.False); + //BA.debugLineNum = 54;BA.debugLine="Titulo.Text = \"Pedido\""; +_titulo.setText(BA.ObjectToCharSequence("Pedido")); + //BA.debugLineNum = 55;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.c_historico __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -RDebugUtils.currentLine=18743296; - //BA.debugLineNum = 18743296;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=18743297; - //BA.debugLineNum = 18743297;BA.debugLine="Private Root As B4XView 'ignore"; +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(); -RDebugUtils.currentLine=18743298; - //BA.debugLineNum = 18743298;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=18743299; - //BA.debugLineNum = 18743299;BA.debugLine="Dim g As GPS"; + //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS"; _g = new anywheresoftware.b4a.gps.GPS(); -RDebugUtils.currentLine=18743300; - //BA.debugLineNum = 18743300;BA.debugLine="Dim clie_id As String"; + //BA.debugLineNum = 5;BA.debugLine="Dim clie_id As String"; _clie_id = ""; -RDebugUtils.currentLine=18743301; - //BA.debugLineNum = 18743301;BA.debugLine="Dim sDate,sTime As String"; + //BA.debugLineNum = 6;BA.debugLine="Dim sDate,sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=18743302; - //BA.debugLineNum = 18743302;BA.debugLine="Dim usuario As String"; + //BA.debugLineNum = 7;BA.debugLine="Dim usuario As String"; _usuario = ""; -RDebugUtils.currentLine=18743303; - //BA.debugLineNum = 18743303;BA.debugLine="Dim c As Cursor"; + //BA.debugLineNum = 8;BA.debugLine="Dim c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=18743305; - //BA.debugLineNum = 18743305;BA.debugLine="Dim b_regresar As Button"; + //BA.debugLineNum = 10;BA.debugLine="Dim b_regresar As Button"; _b_regresar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=18743306; - //BA.debugLineNum = 18743306;BA.debugLine="Dim ListView1 As ListView"; + //BA.debugLineNum = 11;BA.debugLine="Dim ListView1 As ListView"; _listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=18743307; - //BA.debugLineNum = 18743307;BA.debugLine="Dim L_CANT As Label"; + //BA.debugLineNum = 12;BA.debugLine="Dim L_CANT As Label"; _l_cant = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=18743308; - //BA.debugLineNum = 18743308;BA.debugLine="Dim L_TOTAL As Label"; + //BA.debugLineNum = 13;BA.debugLine="Dim L_TOTAL As Label"; _l_total = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=18743309; - //BA.debugLineNum = 18743309;BA.debugLine="Dim b_borra As Button"; + //BA.debugLineNum = 14;BA.debugLine="Dim b_borra As Button"; _b_borra = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=18743310; - //BA.debugLineNum = 18743310;BA.debugLine="Dim Existe As String"; + //BA.debugLineNum = 15;BA.debugLine="Dim Existe As String"; _existe = ""; -RDebugUtils.currentLine=18743311; - //BA.debugLineNum = 18743311;BA.debugLine="Dim result As String"; + //BA.debugLineNum = 16;BA.debugLine="Dim result As String"; _result = ""; -RDebugUtils.currentLine=18743313; - //BA.debugLineNum = 18743313;BA.debugLine="Dim cuantos As String"; + //BA.debugLineNum = 18;BA.debugLine="Dim cuantos As String"; _cuantos = ""; -RDebugUtils.currentLine=18743314; - //BA.debugLineNum = 18743314;BA.debugLine="Dim nombre_prod As String"; + //BA.debugLineNum = 19;BA.debugLine="Dim nombre_prod As String"; _nombre_prod = ""; -RDebugUtils.currentLine=18743315; - //BA.debugLineNum = 18743315;BA.debugLine="Dim cuantos_pedido As String"; + //BA.debugLineNum = 20;BA.debugLine="Dim cuantos_pedido As String"; _cuantos_pedido = ""; -RDebugUtils.currentLine=18743316; - //BA.debugLineNum = 18743316;BA.debugLine="Private Titulo As Label"; + //BA.debugLineNum = 21;BA.debugLine="Private Titulo As Label"; _titulo = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=18743317; - //BA.debugLineNum = 18743317;BA.debugLine="Private P1 As Panel"; + //BA.debugLineNum = 22;BA.debugLine="Private P1 As Panel"; _p1 = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=18743318; - //BA.debugLineNum = 18743318;BA.debugLine="Private lv2 As ListView"; + //BA.debugLineNum = 23;BA.debugLine="Private lv2 As ListView"; _lv2 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=18743319; - //BA.debugLineNum = 18743319;BA.debugLine="Private p_principal As Panel"; + //BA.debugLineNum = 24;BA.debugLine="Private p_principal As Panel"; _p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=18743320; - //BA.debugLineNum = 18743320;BA.debugLine="Dim clv_pedido As CustomListView"; + //BA.debugLineNum = 25;BA.debugLine="Dim clv_pedido As CustomListView"; _clv_pedido = new b4a.example3.customlistview(); -RDebugUtils.currentLine=18743321; - //BA.debugLineNum = 18743321;BA.debugLine="Private p_prods As Panel"; + //BA.debugLineNum = 26;BA.debugLine="Private p_prods As Panel"; _p_prods = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=18743322; - //BA.debugLineNum = 18743322;BA.debugLine="Private l_prodX As Label"; + //BA.debugLineNum = 27;BA.debugLine="Private l_prodX As Label"; _l_prodx = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=18743323; - //BA.debugLineNum = 18743323;BA.debugLine="Private l_pCant As Label"; + //BA.debugLineNum = 28;BA.debugLine="Private l_pCant As Label"; _l_pcant = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=18743324; - //BA.debugLineNum = 18743324;BA.debugLine="Private et_pCant As EditText"; + //BA.debugLineNum = 29;BA.debugLine="Private et_pCant As EditText"; _et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=18743325; - //BA.debugLineNum = 18743325;BA.debugLine="Dim bmp As Bitmap"; + //BA.debugLineNum = 30;BA.debugLine="Dim bmp As Bitmap"; _bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); -RDebugUtils.currentLine=18743326; - //BA.debugLineNum = 18743326;BA.debugLine="Dim etCantHasFocus As Boolean = False"; + //BA.debugLineNum = 31;BA.debugLine="Dim etCantHasFocus As Boolean = False"; _etcanthasfocus = __c.False; -RDebugUtils.currentLine=18743327; - //BA.debugLineNum = 18743327;BA.debugLine="Dim totalProds As Int = 0"; + //BA.debugLineNum = 32;BA.debugLine="Dim totalProds As Int = 0"; _totalprods = (int) (0); -RDebugUtils.currentLine=18743328; - //BA.debugLineNum = 18743328;BA.debugLine="Dim totalCompra As Int = 0"; + //BA.debugLineNum = 33;BA.debugLine="Dim totalCompra As Int = 0"; _totalcompra = (int) (0); -RDebugUtils.currentLine=18743329; - //BA.debugLineNum = 18743329;BA.debugLine="Dim prodsMap As Map"; + //BA.debugLineNum = 34;BA.debugLine="Dim prodsMap As Map"; _prodsmap = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=18743330; - //BA.debugLineNum = 18743330;BA.debugLine="Dim reconstruirPedido As Boolean = False"; + //BA.debugLineNum = 35;BA.debugLine="Dim reconstruirPedido As Boolean = False"; _reconstruirpedido = __c.False; -RDebugUtils.currentLine=18743331; - //BA.debugLineNum = 18743331;BA.debugLine="Dim promoABorrar As String"; + //BA.debugLineNum = 36;BA.debugLine="Dim promoABorrar As String"; _promoaborrar = ""; -RDebugUtils.currentLine=18743332; - //BA.debugLineNum = 18743332;BA.debugLine="Private b_guardar As Button"; + //BA.debugLineNum = 37;BA.debugLine="Private b_guardar As Button"; _b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=18743333; - //BA.debugLineNum = 18743333;BA.debugLine="Private b_prodMas As Button"; + //BA.debugLineNum = 38;BA.debugLine="Private b_prodMas As Button"; _b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=18743334; - //BA.debugLineNum = 18743334;BA.debugLine="Private b_prodMenos As Button"; + //BA.debugLineNum = 39;BA.debugLine="Private b_prodMenos As Button"; _b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=18743335; - //BA.debugLineNum = 18743335;BA.debugLine="End Sub"; + //BA.debugLineNum = 40;BA.debugLine="End Sub"; return ""; } -public String _cuentaprods(reparto_izca.keymon.lat.c_historico __ref,String _accion) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "cuentaprods", false)) - {return ((String) Debug.delegate(ba, "cuentaprods", new Object[] {_accion}));} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; + //BA.debugLineNum = 310;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri"; + //BA.debugLineNum = 311;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 312;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 313;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 314;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; +_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); + //BA.debugLineNum = 315;BA.debugLine="p.LoadLayout(\"prodItem\")"; +_p.LoadLayout("prodItem",ba); + //BA.debugLineNum = 316;BA.debugLine="p_prods.Color = bc"; +_p_prods.setColor(_bc); + //BA.debugLineNum = 317;BA.debugLine="l_prodX.TextColor = tc"; +_l_prodx.setTextColor(_tc); + //BA.debugLineNum = 318;BA.debugLine="precioU = $\"$1.2{precioU}\"$"; +_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""); + //BA.debugLineNum = 319;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\""; +_l_prodx.setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)); + //BA.debugLineNum = 320;BA.debugLine="If promo <> \"1\" And precioU = 0 Then"; +if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 321;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app"; +_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject())); + }; + //BA.debugLineNum = 323;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF"; +_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs"))); + //BA.debugLineNum = 325;BA.debugLine="l_pCant.Tag = Round2(precioU,2)&\"|\"&inv&\"|\"&prodI"; +_l_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou)),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original)); + //BA.debugLineNum = 326;BA.debugLine="et_pCant.Tag = Round2(precioU,2)&\"|\"&inv&\"|\"&prod"; +_et_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou)),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original)); + //BA.debugLineNum = 327;BA.debugLine="p_prods.Tag = l_pCant.tag"; +_p_prods.setTag(_l_pcant.getTag()); + //BA.debugLineNum = 329;BA.debugLine="l_pCant.Text = inv"; +_l_pcant.setText(BA.ObjectToCharSequence(_inv)); + //BA.debugLineNum = 333;BA.debugLine="l_pCant.BringToFront"; +_l_pcant.BringToFront(); + //BA.debugLineNum = 334;BA.debugLine="et_pCant.SendToBack"; +_et_pcant.SendToBack(); + //BA.debugLineNum = 337;BA.debugLine="Return p"; +if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_p.getObject())); + //BA.debugLineNum = 338;BA.debugLine="End Sub"; +return null; +} +public String _cuentaprods(String _accion) throws Exception{ int _cantrechazada = 0; int _i = 0; anywheresoftware.b4a.objects.B4XViewWrapper _p0 = null; @@ -856,446 +610,307 @@ String _preciou = ""; String _costototalhist = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _z = null; String _cantidad2 = ""; -RDebugUtils.currentLine=19529728; - //BA.debugLineNum = 19529728;BA.debugLine="Sub cuentaProds(accion As String)"; -RDebugUtils.currentLine=19529730; - //BA.debugLineNum = 19529730;BA.debugLine="Log(\"*********************************************"; -__c.LogImpl("219529730","*******************************************************",0); -RDebugUtils.currentLine=19529731; - //BA.debugLineNum = 19529731;BA.debugLine="Private cantRechazada As Int = 0"; + //BA.debugLineNum = 428;BA.debugLine="Sub cuentaProds(accion As String)"; + //BA.debugLineNum = 430;BA.debugLine="Log(\"*********************************************"; +__c.LogImpl("018415618","*******************************************************",0); + //BA.debugLineNum = 431;BA.debugLine="Private cantRechazada As Int = 0"; _cantrechazada = (int) (0); -RDebugUtils.currentLine=19529732; - //BA.debugLineNum = 19529732;BA.debugLine="If Not(reconstruirPedido) Then"; -if (__c.Not(__ref._reconstruirpedido /*boolean*/ )) { -RDebugUtils.currentLine=19529733; - //BA.debugLineNum = 19529733;BA.debugLine="Log(\"*********** CUENTAPRODS - NO RECONSTRUIR\")"; -__c.LogImpl("219529733","*********** CUENTAPRODS - NO RECONSTRUIR",0); -RDebugUtils.currentLine=19529734; - //BA.debugLineNum = 19529734;BA.debugLine="prodsMap.Initialize"; -__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); -RDebugUtils.currentLine=19529735; - //BA.debugLineNum = 19529735;BA.debugLine="For i = 0 To clv_pedido.GetSize - 1"; + //BA.debugLineNum = 432;BA.debugLine="If Not(reconstruirPedido) Then"; +if (__c.Not(_reconstruirpedido)) { + //BA.debugLineNum = 433;BA.debugLine="Log(\"*********** CUENTAPRODS - NO RECONSTRUIR\")"; +__c.LogImpl("018415621","*********** CUENTAPRODS - NO RECONSTRUIR",0); + //BA.debugLineNum = 434;BA.debugLine="prodsMap.Initialize"; +_prodsmap.Initialize(); + //BA.debugLineNum = 435;BA.debugLine="For i = 0 To clv_pedido.GetSize - 1"; { final int step6 = 1; -final int limit6 = (int) (__ref._clv_pedido /*b4a.example3.customlistview*/ ._getsize()-1); +final int limit6 = (int) (_clv_pedido._getsize()-1); _i = (int) (0) ; for (;_i <= limit6 ;_i = _i + step6 ) { -RDebugUtils.currentLine=19529736; - //BA.debugLineNum = 19529736;BA.debugLine="Private p0 As B4XView = clv_pedido.GetPanel(i)"; + //BA.debugLineNum = 436;BA.debugLine="Private p0 As B4XView = clv_pedido.GetPanel(i)"; _p0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_i); -RDebugUtils.currentLine=19529737; - //BA.debugLineNum = 19529737;BA.debugLine="Private p As B4XView = p0.GetView(0)"; +_p0 = _clv_pedido._getpanel(_i); + //BA.debugLineNum = 437;BA.debugLine="Private p As B4XView = p0.GetView(0)"; _p = new anywheresoftware.b4a.objects.B4XViewWrapper(); _p = _p0.GetView((int) (0)); -RDebugUtils.currentLine=19529738; - //BA.debugLineNum = 19529738;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView"; + //BA.debugLineNum = 438;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView"; _cant1 = new anywheresoftware.b4a.objects.B4XViewWrapper(); _cant1 = _p.GetView((int) (2)).GetView((int) (3)); -RDebugUtils.currentLine=19529739; - //BA.debugLineNum = 19529739;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0"; + //BA.debugLineNum = 439;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0"; if ((_cant1.getText()).equals("")) { _cant1.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=19529741; - //BA.debugLineNum = 19529741;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can"; + //BA.debugLineNum = 441;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can"; _estetag = new anywheresoftware.b4a.objects.collections.List(); _estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_cant1.getTag()))); -RDebugUtils.currentLine=19529742; - //BA.debugLineNum = 19529742;BA.debugLine="Log(\"-------------------------------------\")"; -__c.LogImpl("219529742","-------------------------------------",0); -RDebugUtils.currentLine=19529743; - //BA.debugLineNum = 19529743;BA.debugLine="Log($\"ET: ${esteTag}\"$)"; -__c.LogImpl("219529743",("ET: "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),0); -RDebugUtils.currentLine=19529744; - //BA.debugLineNum = 19529744;BA.debugLine="Private esteProd As String = esteTag.Get(2)"; + //BA.debugLineNum = 442;BA.debugLine="Log(\"-------------------------------------\")"; +__c.LogImpl("018415630","-------------------------------------",0); + //BA.debugLineNum = 443;BA.debugLine="Log($\"ET: ${esteTag}\"$)"; +__c.LogImpl("018415631",("ET: "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),0); + //BA.debugLineNum = 444;BA.debugLine="Private esteProd As String = esteTag.Get(2)"; _esteprod = BA.ObjectToString(_estetag.Get((int) (2))); -RDebugUtils.currentLine=19529745; - //BA.debugLineNum = 19529745;BA.debugLine="Private estaCant As Int = cant1.Text"; + //BA.debugLineNum = 445;BA.debugLine="Private estaCant As Int = cant1.Text"; _estacant = (int)(Double.parseDouble(_cant1.getText())); -RDebugUtils.currentLine=19529746; - //BA.debugLineNum = 19529746;BA.debugLine="Private estaCantOriginal As Int = esteTag.Get(1"; + //BA.debugLineNum = 446;BA.debugLine="Private estaCantOriginal As Int = esteTag.Get(1"; _estacantoriginal = (int)(BA.ObjectToNumber(_estetag.Get((int) (1)))); -RDebugUtils.currentLine=19529747; - //BA.debugLineNum = 19529747;BA.debugLine="Private esteCliente = Subs.traeCliente"; + //BA.debugLineNum = 447;BA.debugLine="Private esteCliente = Subs.traeCliente"; _estecliente = _subs._traecliente /*String*/ (ba); -RDebugUtils.currentLine=19529748; - //BA.debugLineNum = 19529748;BA.debugLine="Private esteProdNombre = Subs.traeNombre(estePr"; + //BA.debugLineNum = 448;BA.debugLine="Private esteProdNombre = Subs.traeNombre(estePr"; _esteprodnombre = _subs._traenombre /*String*/ (ba,_esteprod); -RDebugUtils.currentLine=19529749; - //BA.debugLineNum = 19529749;BA.debugLine="Private esteClienteOriginal As Int = esteTag.Ge"; + //BA.debugLineNum = 449;BA.debugLine="Private esteClienteOriginal As Int = esteTag.Ge"; _esteclienteoriginal = (int)(BA.ObjectToNumber(_estetag.Get((int) (5)))); -RDebugUtils.currentLine=19529750; - //BA.debugLineNum = 19529750;BA.debugLine="Private fechaReparto As String = Subs.traeFecha"; + //BA.debugLineNum = 450;BA.debugLine="Private fechaReparto As String = Subs.traeFecha"; _fechareparto = _subs._traefechareparto /*String*/ (ba); -RDebugUtils.currentLine=19529751; - //BA.debugLineNum = 19529751;BA.debugLine="Private maxProds = Subs.traeMaxCantidad(esteTag"; + //BA.debugLineNum = 451;BA.debugLine="Private maxProds = Subs.traeMaxCantidad(esteTag"; _maxprods = BA.NumberToString(_subs._traemaxcantidad /*int*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2))))); -RDebugUtils.currentLine=19529753; - //BA.debugLineNum = 19529753;BA.debugLine="If cant1.Text > maxProds Then cant1.Text = maxP"; + //BA.debugLineNum = 453;BA.debugLine="If cant1.Text > maxProds Then cant1.Text = maxP"; if ((double)(Double.parseDouble(_cant1.getText()))>(double)(Double.parseDouble(_maxprods))) { _cant1.setText(BA.ObjectToCharSequence(_maxprods));}; -RDebugUtils.currentLine=19529755; - //BA.debugLineNum = 19529755;BA.debugLine="cantRechazada = esteTag.Get(4) - cant1.Text"; + //BA.debugLineNum = 455;BA.debugLine="cantRechazada = esteTag.Get(4) - cant1.Text"; _cantrechazada = (int) ((double)(BA.ObjectToNumber(_estetag.Get((int) (4))))-(double)(Double.parseDouble(_cant1.getText()))); -RDebugUtils.currentLine=19529758; - //BA.debugLineNum = 19529758;BA.debugLine="Log($\"${Subs.traeCantidadRechazada(esteClienteO"; -__c.LogImpl("219529758",(""+__c.SmartStringFormatter("",(Object)(_subs._traecantidadrechazada /*int*/ (ba,BA.NumberToString(_esteclienteoriginal),_esteprod)))+", "+__c.SmartStringFormatter("",(Object)(_subs._traecantidadvendida /*int*/ (ba,BA.NumberToString(_esteclienteoriginal),_esteprod)))+""),0); -RDebugUtils.currentLine=19529761; - //BA.debugLineNum = 19529761;BA.debugLine="LogColor($\"cantRechazada = ${cantRechazada}\"$,"; -__c.LogImpl("219529761",("cantRechazada = "+__c.SmartStringFormatter("",(Object)(_cantrechazada))+""),__c.Colors.Magenta); -RDebugUtils.currentLine=19529762; - //BA.debugLineNum = 19529762;BA.debugLine="Private estePrecio As String = 0"; + //BA.debugLineNum = 458;BA.debugLine="Log($\"${Subs.traeCantidadRechazada(esteClienteO"; +__c.LogImpl("018415646",(""+__c.SmartStringFormatter("",(Object)(_subs._traecantidadrechazada /*int*/ (ba,BA.NumberToString(_esteclienteoriginal),_esteprod)))+", "+__c.SmartStringFormatter("",(Object)(_subs._traecantidadvendida /*int*/ (ba,BA.NumberToString(_esteclienteoriginal),_esteprod)))+""),0); + //BA.debugLineNum = 461;BA.debugLine="LogColor($\"cantRechazada = ${cantRechazada}\"$,"; +__c.LogImpl("018415649",("cantRechazada = "+__c.SmartStringFormatter("",(Object)(_cantrechazada))+""),__c.Colors.Magenta); + //BA.debugLineNum = 462;BA.debugLine="Private estePrecio As String = 0"; _esteprecio = BA.NumberToString(0); -RDebugUtils.currentLine=19529763; - //BA.debugLineNum = 19529763;BA.debugLine="If Subs.traePrecio(esteProd, 1) <> Null Then es"; + //BA.debugLineNum = 463;BA.debugLine="If Subs.traePrecio(esteProd, 1) <> Null Then es"; if (_subs._traeprecio /*String*/ (ba,_esteprod,BA.NumberToString(1))!= null) { _esteprecio = BA.NumberToString((double)(Double.parseDouble(_subs._traeprecio /*String*/ (ba,_esteprod,_subs._traealmacen /*String*/ (ba))))*_cantrechazada);}; -RDebugUtils.currentLine=19529768; - //BA.debugLineNum = 19529768;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update HIST_VENTAS"; + //BA.debugLineNum = 468;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update HIST_VENTAS"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = ? WHERE HVD_PROID = ? and HVD_CLIENTE in (Select CUENTA from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_cant1.getText(),_esteprod})); -RDebugUtils.currentLine=19529769; - //BA.debugLineNum = 19529769;BA.debugLine="Private rr As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 469;BA.debugLine="Private rr As Cursor = Starter.skmt.ExecQuery($"; _rr = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _rr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select count(REP_CLIENTE) as hayRechazo from REPARTO where rep_prodid = '"+__c.SmartStringFormatter("",(Object)(_esteprod))+"' and REP_CLIENTE in (Select CUENTA from cuentaa)")))); -RDebugUtils.currentLine=19529770; - //BA.debugLineNum = 19529770;BA.debugLine="rr.Position = 0"; + //BA.debugLineNum = 470;BA.debugLine="rr.Position = 0"; _rr.setPosition((int) (0)); -RDebugUtils.currentLine=19529772; - //BA.debugLineNum = 19529772;BA.debugLine="If rr.GetString(\"hayRechazo\") = 0 Then"; + //BA.debugLineNum = 472;BA.debugLine="If rr.GetString(\"hayRechazo\") = 0 Then"; if ((_rr.GetString("hayRechazo")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=19529773; - //BA.debugLineNum = 19529773;BA.debugLine="Log(\"INSERTAMOS EN REPARTO\")"; -__c.LogImpl("219529773","INSERTAMOS EN REPARTO",0); -RDebugUtils.currentLine=19529774; - //BA.debugLineNum = 19529774;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart"; + //BA.debugLineNum = 473;BA.debugLine="Log(\"INSERTAMOS EN REPARTO\")"; +__c.LogImpl("018415661","INSERTAMOS EN REPARTO",0); + //BA.debugLineNum = 474;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_estecliente,_esteprodnombre,BA.NumberToString(0),_esteprecio,_fechareparto,_esteprod,_esteprecio,_estecliente})); -RDebugUtils.currentLine=19529775; - //BA.debugLineNum = 19529775;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart"; + //BA.debugLineNum = 475;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_estecliente,_esteprodnombre,BA.NumberToString(_cantrechazada),BA.NumberToString(0),_fechareparto,_esteprod,_esteprecio,_estecliente})); - }else -{RDebugUtils.currentLine=19529776; - //BA.debugLineNum = 19529776;BA.debugLine="Else if esteClienteOriginal = \"0\" Then 'Actuali"; -if (_esteclienteoriginal==(double)(Double.parseDouble("0"))) { + }else if(_esteclienteoriginal==(double)(Double.parseDouble("0"))) { }else { -RDebugUtils.currentLine=19529780; - //BA.debugLineNum = 19529780;BA.debugLine="Log($\"Actualizamos REP_CANT RECHAZO = ${cantRe"; -__c.LogImpl("219529780",("Actualizamos REP_CANT RECHAZO = "+__c.SmartStringFormatter("",(Object)(_cantrechazada))+""),0); - }} -; -RDebugUtils.currentLine=19529785; - //BA.debugLineNum = 19529785;BA.debugLine="If cant1.Text > 0 Then"; -if ((double)(Double.parseDouble(_cant1.getText()))>0) { -RDebugUtils.currentLine=19529788; - //BA.debugLineNum = 19529788;BA.debugLine="Private m As Map"; -_m = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=19529789; - //BA.debugLineNum = 19529789;BA.debugLine="m=CreateMap(\"cant\":cant1.Text, \"cant2\":esteTag"; -_m = __c.createMap(new Object[] {(Object)("cant"),(Object)(_cant1.getText()),(Object)("cant2"),_estetag.Get((int) (4)),(Object)("precio"),_estetag.Get((int) (0)),(Object)("promo"),_estetag.Get((int) (3)),(Object)("nombre"),(Object)(_subs._traenombre /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))),(Object)("cli_orig"),_estetag.Get((int) (5))}); -RDebugUtils.currentLine=19529791; - //BA.debugLineNum = 19529791;BA.debugLine="prodsMap.Put(esteTag.Get(2), m)"; -__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Put(_estetag.Get((int) (2)),(Object)(_m.getObject())); + //BA.debugLineNum = 480;BA.debugLine="Log($\"Actualizamos REP_CANT RECHAZO = ${cantRe"; +__c.LogImpl("018415668",("Actualizamos REP_CANT RECHAZO = "+__c.SmartStringFormatter("",(Object)(_cantrechazada))+""),0); }; -RDebugUtils.currentLine=19529793; - //BA.debugLineNum = 19529793;BA.debugLine="Log(\"-------------------------------------\")"; -__c.LogImpl("219529793","-------------------------------------",0); + //BA.debugLineNum = 485;BA.debugLine="If cant1.Text > 0 Then"; +if ((double)(Double.parseDouble(_cant1.getText()))>0) { + //BA.debugLineNum = 488;BA.debugLine="Private m As Map"; +_m = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 489;BA.debugLine="m=CreateMap(\"cant\":cant1.Text, \"cant2\":esteTag"; +_m = __c.createMap(new Object[] {(Object)("cant"),(Object)(_cant1.getText()),(Object)("cant2"),_estetag.Get((int) (4)),(Object)("precio"),_estetag.Get((int) (0)),(Object)("promo"),_estetag.Get((int) (3)),(Object)("nombre"),(Object)(_subs._traenombre /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))),(Object)("cli_orig"),_estetag.Get((int) (5))}); + //BA.debugLineNum = 491;BA.debugLine="prodsMap.Put(esteTag.Get(2), m)"; +_prodsmap.Put(_estetag.Get((int) (2)),(Object)(_m.getObject())); + }; + //BA.debugLineNum = 493;BA.debugLine="Log(\"-------------------------------------\")"; +__c.LogImpl("018415681","-------------------------------------",0); } }; }; -RDebugUtils.currentLine=19529796; - //BA.debugLineNum = 19529796;BA.debugLine="Private bgColor, textColor As Int"; + //BA.debugLineNum = 496;BA.debugLine="Private bgColor, textColor As Int"; _bgcolor = 0; _textcolor = 0; -RDebugUtils.currentLine=19529798; - //BA.debugLineNum = 19529798;BA.debugLine="If reconstruirPedido Then"; -if (__ref._reconstruirpedido /*boolean*/ ) { -RDebugUtils.currentLine=19529799; - //BA.debugLineNum = 19529799;BA.debugLine="Log(\"*********** CUENTAPRODS - SI RECONSTRUIR\")"; -__c.LogImpl("219529799","*********** CUENTAPRODS - SI RECONSTRUIR",0); -RDebugUtils.currentLine=19529800; - //BA.debugLineNum = 19529800;BA.debugLine="Private newPromo, newPrecio As String"; + //BA.debugLineNum = 498;BA.debugLine="If reconstruirPedido Then"; +if (_reconstruirpedido) { + //BA.debugLineNum = 499;BA.debugLine="Log(\"*********** CUENTAPRODS - SI RECONSTRUIR\")"; +__c.LogImpl("018415687","*********** CUENTAPRODS - SI RECONSTRUIR",0); + //BA.debugLineNum = 500;BA.debugLine="Private newPromo, newPrecio As String"; _newpromo = ""; _newprecio = ""; -RDebugUtils.currentLine=19529801; - //BA.debugLineNum = 19529801;BA.debugLine="clv_pedido.Clear"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=19529802; - //BA.debugLineNum = 19529802;BA.debugLine="Log(\"Usamos PRODSMAP\")"; -__c.LogImpl("219529802","Usamos PRODSMAP",0); -RDebugUtils.currentLine=19529803; - //BA.debugLineNum = 19529803;BA.debugLine="For Each pr As String In prodsMap.Keys"; + //BA.debugLineNum = 501;BA.debugLine="clv_pedido.Clear"; +_clv_pedido._clear(); + //BA.debugLineNum = 502;BA.debugLine="Log(\"Usamos PRODSMAP\")"; +__c.LogImpl("018415690","Usamos PRODSMAP",0); + //BA.debugLineNum = 503;BA.debugLine="For Each pr As String In prodsMap.Keys"; { -final anywheresoftware.b4a.BA.IterableList group53 = __ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); +final anywheresoftware.b4a.BA.IterableList group53 = _prodsmap.Keys(); final int groupLen53 = group53.getSize() ;int index53 = 0; ; for (; index53 < groupLen53;index53++){ _pr = BA.ObjectToString(group53.Get(index53)); -RDebugUtils.currentLine=19529804; - //BA.debugLineNum = 19529804;BA.debugLine="Private pr1 As Map = prodsMap.Get(pr)"; + //BA.debugLineNum = 504;BA.debugLine="Private pr1 As Map = prodsMap.Get(pr)"; _pr1 = new anywheresoftware.b4a.objects.collections.Map(); -_pr1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_pr)))); -RDebugUtils.currentLine=19529805; - //BA.debugLineNum = 19529805;BA.debugLine="Log(\"PPP: \" & pr & \"|PromoABorrar=\" & promoABor"; -__c.LogImpl("219529805","PPP: "+_pr+"|PromoABorrar="+__ref._promoaborrar /*String*/ +"|"+BA.ObjectToString(_pr1),0); -RDebugUtils.currentLine=19529806; - //BA.debugLineNum = 19529806;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; +_pr1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodsmap.Get((Object)(_pr)))); + //BA.debugLineNum = 505;BA.debugLine="Log(\"PPP: \" & pr & \"|PromoABorrar=\" & promoABor"; +__c.LogImpl("018415693","PPP: "+_pr+"|PromoABorrar="+_promoaborrar+"|"+BA.ObjectToString(_pr1),0); + //BA.debugLineNum = 506;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; _bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249)); -RDebugUtils.currentLine=19529807; - //BA.debugLineNum = 19529807;BA.debugLine="textColor = Colors.black"; + //BA.debugLineNum = 507;BA.debugLine="textColor = Colors.black"; _textcolor = __c.Colors.Black; -RDebugUtils.currentLine=19529808; - //BA.debugLineNum = 19529808;BA.debugLine="newPromo = pr1.Get(\"promo\")"; + //BA.debugLineNum = 508;BA.debugLine="newPromo = pr1.Get(\"promo\")"; _newpromo = BA.ObjectToString(_pr1.Get((Object)("promo"))); -RDebugUtils.currentLine=19529809; - //BA.debugLineNum = 19529809;BA.debugLine="newPrecio = pr1.Get(\"precio\")"; + //BA.debugLineNum = 509;BA.debugLine="newPrecio = pr1.Get(\"precio\")"; _newprecio = BA.ObjectToString(_pr1.Get((Object)("precio"))); -RDebugUtils.currentLine=19529810; - //BA.debugLineNum = 19529810;BA.debugLine="Log(\"AAA: \" & newPromo & \"|\" & promoABorrar)"; -__c.LogImpl("219529810","AAA: "+_newpromo+"|"+__ref._promoaborrar /*String*/ ,0); -RDebugUtils.currentLine=19529811; - //BA.debugLineNum = 19529811;BA.debugLine="If newPromo = promoABorrar Then"; -if ((_newpromo).equals(__ref._promoaborrar /*String*/ )) { -RDebugUtils.currentLine=19529812; - //BA.debugLineNum = 19529812;BA.debugLine="newPromo = 1"; + //BA.debugLineNum = 510;BA.debugLine="Log(\"AAA: \" & newPromo & \"|\" & promoABorrar)"; +__c.LogImpl("018415698","AAA: "+_newpromo+"|"+_promoaborrar,0); + //BA.debugLineNum = 511;BA.debugLine="If newPromo = promoABorrar Then"; +if ((_newpromo).equals(_promoaborrar)) { + //BA.debugLineNum = 512;BA.debugLine="newPromo = 1"; _newpromo = BA.NumberToString(1); -RDebugUtils.currentLine=19529813; - //BA.debugLineNum = 19529813;BA.debugLine="newPrecio = Subs.traePrecio(pr, False) * pr1.G"; + //BA.debugLineNum = 513;BA.debugLine="newPrecio = Subs.traePrecio(pr, False) * pr1.G"; _newprecio = BA.NumberToString((double)(Double.parseDouble(_subs._traeprecio /*String*/ (ba,_pr,BA.ObjectToString(__c.False))))*(double)(BA.ObjectToNumber(_pr1.Get((Object)("cant"))))); -RDebugUtils.currentLine=19529815; - //BA.debugLineNum = 19529815;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; + //BA.debugLineNum = 515;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_COSTO_TOT = "+__c.SmartStringFormatter("",(Object)(_newprecio))+", HVD_CODPROMO = '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' WHERE HVD_PRONOMBRE = '"+__c.SmartStringFormatter("",_pr1.Get((Object)("nombre")))+"' and HVD_cliente in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=19529816; - //BA.debugLineNum = 19529816;BA.debugLine="LogColor(\"CAMBIAMOS PROMO: \" & newPromo, Color"; -__c.LogImpl("219529816","CAMBIAMOS PROMO: "+_newpromo,__c.Colors.Magenta); + //BA.debugLineNum = 516;BA.debugLine="LogColor(\"CAMBIAMOS PROMO: \" & newPromo, Color"; +__c.LogImpl("018415704","CAMBIAMOS PROMO: "+_newpromo,__c.Colors.Magenta); }; -RDebugUtils.currentLine=19529818; - //BA.debugLineNum = 19529818;BA.debugLine="If newPromo <> \"1\" Then"; + //BA.debugLineNum = 518;BA.debugLine="If newPromo <> \"1\" Then"; if ((_newpromo).equals("1") == false) { -RDebugUtils.currentLine=19529820; - //BA.debugLineNum = 19529820;BA.debugLine="bgColor = Colors.White"; + //BA.debugLineNum = 520;BA.debugLine="bgColor = Colors.White"; _bgcolor = __c.Colors.White; }; -RDebugUtils.currentLine=19529822; - //BA.debugLineNum = 19529822;BA.debugLine="Log($\"CLI: ${pr1.Get(\"nombre\")}, ${newPrecio},"; -__c.LogImpl("219529822",("CLI: "+__c.SmartStringFormatter("",_pr1.Get((Object)("nombre")))+", "+__c.SmartStringFormatter("",(Object)(_newprecio))+", "+__c.SmartStringFormatter("",_pr1.Get((Object)("cant")))+", "+__c.SmartStringFormatter("",_pr1.Get((Object)("cant2")))+""),0); -RDebugUtils.currentLine=19529823; - //BA.debugLineNum = 19529823;BA.debugLine="clv_pedido.Add(CreateListItem(pr1.Get(\"nombre\")"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,BA.ObjectToString(_pr1.Get((Object)("nombre"))),_newprecio,(int)(BA.ObjectToNumber(_pr1.Get((Object)("cant")))),(int)(BA.ObjectToNumber(_pr1.Get((Object)("cant2")))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (50)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,_pr,_bgcolor,_textcolor,_newpromo,BA.ObjectToString(_pr1.Get((Object)("cli_orig")))).getObject())),_pr1.Get((Object)("nombre"))); -RDebugUtils.currentLine=19529824; - //BA.debugLineNum = 19529824;BA.debugLine="reconstruirPedido = False"; -__ref._reconstruirpedido /*boolean*/ = __c.False; + //BA.debugLineNum = 522;BA.debugLine="Log($\"CLI: ${pr1.Get(\"nombre\")}, ${newPrecio},"; +__c.LogImpl("018415710",("CLI: "+__c.SmartStringFormatter("",_pr1.Get((Object)("nombre")))+", "+__c.SmartStringFormatter("",(Object)(_newprecio))+", "+__c.SmartStringFormatter("",_pr1.Get((Object)("cant")))+", "+__c.SmartStringFormatter("",_pr1.Get((Object)("cant2")))+""),0); + //BA.debugLineNum = 523;BA.debugLine="clv_pedido.Add(CreateListItem(pr1.Get(\"nombre\")"; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(BA.ObjectToString(_pr1.Get((Object)("nombre"))),_newprecio,(int)(BA.ObjectToNumber(_pr1.Get((Object)("cant")))),(int)(BA.ObjectToNumber(_pr1.Get((Object)("cant2")))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (50)),_bmp,_pr,_bgcolor,_textcolor,_newpromo,BA.ObjectToString(_pr1.Get((Object)("cli_orig")))).getObject())),_pr1.Get((Object)("nombre"))); + //BA.debugLineNum = 524;BA.debugLine="reconstruirPedido = False"; +_reconstruirpedido = __c.False; } }; -RDebugUtils.currentLine=19529826; - //BA.debugLineNum = 19529826;BA.debugLine="promoABorrar = \"\""; -__ref._promoaborrar /*String*/ = ""; + //BA.debugLineNum = 526;BA.debugLine="promoABorrar = \"\""; +_promoaborrar = ""; }; -RDebugUtils.currentLine=19529828; - //BA.debugLineNum = 19529828;BA.debugLine="Log($\"Total Prods: ${totalProds}, Total Compra: $"; -__c.LogImpl("219529828",("Total Prods: "+__c.SmartStringFormatter("",(Object)(__ref._totalprods /*int*/ ))+", Total Compra: $"+__c.SmartStringFormatter("1.2",(Object)(__ref._totalcompra /*int*/ ))+""),0); -RDebugUtils.currentLine=19529829; - //BA.debugLineNum = 19529829;BA.debugLine="LogColor(\"prodsMap=\" & prodsMap, Colors.Green)"; -__c.LogImpl("219529829","prodsMap="+BA.ObjectToString(__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ ),__c.Colors.Green); -RDebugUtils.currentLine=19529832; - //BA.debugLineNum = 19529832;BA.debugLine="LogColor(prodsMap, Colors.Blue)"; -__c.LogImpl("219529832",BA.ObjectToString(__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ ),__c.Colors.Blue); -RDebugUtils.currentLine=19529833; - //BA.debugLineNum = 19529833;BA.debugLine="c = Starter.skmt.ExecQuery($\"SELECT sum(HVD_CANT)"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT sum(HVD_CANT) as CANTIDAD FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")))); -RDebugUtils.currentLine=19529834; - //BA.debugLineNum = 19529834;BA.debugLine="Dim cantidad1 As String = 0"; + //BA.debugLineNum = 528;BA.debugLine="Log($\"Total Prods: ${totalProds}, Total Compra: $"; +__c.LogImpl("018415716",("Total Prods: "+__c.SmartStringFormatter("",(Object)(_totalprods))+", Total Compra: $"+__c.SmartStringFormatter("1.2",(Object)(_totalcompra))+""),0); + //BA.debugLineNum = 529;BA.debugLine="LogColor(\"prodsMap=\" & prodsMap, Colors.Green)"; +__c.LogImpl("018415717","prodsMap="+BA.ObjectToString(_prodsmap),__c.Colors.Green); + //BA.debugLineNum = 532;BA.debugLine="LogColor(prodsMap, Colors.Blue)"; +__c.LogImpl("018415720",BA.ObjectToString(_prodsmap),__c.Colors.Blue); + //BA.debugLineNum = 533;BA.debugLine="c = Starter.skmt.ExecQuery($\"SELECT sum(HVD_CANT)"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT sum(HVD_CANT) as CANTIDAD FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")))); + //BA.debugLineNum = 534;BA.debugLine="Dim cantidad1 As String = 0"; _cantidad1 = BA.NumberToString(0); -RDebugUtils.currentLine=19529835; - //BA.debugLineNum = 19529835;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=19529836; - //BA.debugLineNum = 19529836;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=19529837; - //BA.debugLineNum = 19529837;BA.debugLine="cantidad1 = c.GetString(\"CANTIDAD\")"; -_cantidad1 = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANTIDAD"); -RDebugUtils.currentLine=19529838; - //BA.debugLineNum = 19529838;BA.debugLine="L_CANT.Text = Round(cantidad1)"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round((double)(Double.parseDouble(_cantidad1))))); + //BA.debugLineNum = 535;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 536;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 537;BA.debugLine="cantidad1 = c.GetString(\"CANTIDAD\")"; +_cantidad1 = _c.GetString("CANTIDAD"); + //BA.debugLineNum = 538;BA.debugLine="L_CANT.Text = Round(cantidad1)"; +_l_cant.setText(BA.ObjectToCharSequence(__c.Round((double)(Double.parseDouble(_cantidad1))))); }; -RDebugUtils.currentLine=19529840; - //BA.debugLineNum = 19529840;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=19529842; - //BA.debugLineNum = 19529842;BA.debugLine="Dim totalfinal As String = 0"; + //BA.debugLineNum = 540;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 542;BA.debugLine="Dim totalfinal As String = 0"; _totalfinal = BA.NumberToString(0); -RDebugUtils.currentLine=19529843; - //BA.debugLineNum = 19529843;BA.debugLine="For Each pr As String In prodsMap.Keys"; + //BA.debugLineNum = 543;BA.debugLine="For Each pr As String In prodsMap.Keys"; { -final anywheresoftware.b4a.BA.IterableList group88 = __ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); +final anywheresoftware.b4a.BA.IterableList group88 = _prodsmap.Keys(); final int groupLen88 = group88.getSize() ;int index88 = 0; ; for (; index88 < groupLen88;index88++){ _pr = BA.ObjectToString(group88.Get(index88)); -RDebugUtils.currentLine=19529844; - //BA.debugLineNum = 19529844;BA.debugLine="Private pr1 As Map = prodsMap.Get(pr)"; + //BA.debugLineNum = 544;BA.debugLine="Private pr1 As Map = prodsMap.Get(pr)"; _pr1 = new anywheresoftware.b4a.objects.collections.Map(); -_pr1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(__ref._prodsmap /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_pr)))); -RDebugUtils.currentLine=19529846; - //BA.debugLineNum = 19529846;BA.debugLine="Dim x As Cursor = Starter.skmt.ExecQuery($\"SELEC"; +_pr1 = (anywheresoftware.b4a.objects.collections.Map) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.Map(), (java.util.Map)(_prodsmap.Get((Object)(_pr)))); + //BA.debugLineNum = 546;BA.debugLine="Dim x As Cursor = Starter.skmt.ExecQuery($\"SELEC"; _x = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _x = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_GP_PRECIO FROM CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_pr))+"'")))); -RDebugUtils.currentLine=19529847; - //BA.debugLineNum = 19529847;BA.debugLine="c = Starter.skmt.ExecQuery($\"SELECT HVD_CANT FRO"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT HVD_CANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PROID ='"+__c.SmartStringFormatter("",(Object)(_pr))+"' ")))); -RDebugUtils.currentLine=19529848; - //BA.debugLineNum = 19529848;BA.debugLine="Dim cantidady As String = 0"; + //BA.debugLineNum = 547;BA.debugLine="c = Starter.skmt.ExecQuery($\"SELECT HVD_CANT FRO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT HVD_CANT FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND HVD_PROID ='"+__c.SmartStringFormatter("",(Object)(_pr))+"' ")))); + //BA.debugLineNum = 548;BA.debugLine="Dim cantidady As String = 0"; _cantidady = BA.NumberToString(0); -RDebugUtils.currentLine=19529849; - //BA.debugLineNum = 19529849;BA.debugLine="If c.RowCount >0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=19529850; - //BA.debugLineNum = 19529850;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=19529851; - //BA.debugLineNum = 19529851;BA.debugLine="cantidady = c.GetString(\"HVD_CANT\")"; -_cantidady = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT"); + //BA.debugLineNum = 549;BA.debugLine="If c.RowCount >0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 550;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 551;BA.debugLine="cantidady = c.GetString(\"HVD_CANT\")"; +_cantidady = _c.GetString("HVD_CANT"); }; -RDebugUtils.currentLine=19529854; - //BA.debugLineNum = 19529854;BA.debugLine="If x.RowCount > 0 Then"; + //BA.debugLineNum = 554;BA.debugLine="If x.RowCount > 0 Then"; if (_x.getRowCount()>0) { -RDebugUtils.currentLine=19529855; - //BA.debugLineNum = 19529855;BA.debugLine="x.Position = 0"; + //BA.debugLineNum = 555;BA.debugLine="x.Position = 0"; _x.setPosition((int) (0)); -RDebugUtils.currentLine=19529857; - //BA.debugLineNum = 19529857;BA.debugLine="Dim preciou As String = x.GetString(\"CAT_GP_PRE"; + //BA.debugLineNum = 557;BA.debugLine="Dim preciou As String = x.GetString(\"CAT_GP_PRE"; _preciou = _x.GetString("CAT_GP_PRECIO"); -RDebugUtils.currentLine=19529858; - //BA.debugLineNum = 19529858;BA.debugLine="Dim costototalhist As String = preciou * canti"; + //BA.debugLineNum = 558;BA.debugLine="Dim costototalhist As String = preciou * canti"; _costototalhist = BA.NumberToString((double)(Double.parseDouble(_preciou))*(double)(Double.parseDouble(_cantidady))); }; -RDebugUtils.currentLine=19529861; - //BA.debugLineNum = 19529861;BA.debugLine="totalfinal = totalfinal + costototalhist"; + //BA.debugLineNum = 561;BA.debugLine="totalfinal = totalfinal + costototalhist"; _totalfinal = BA.NumberToString((double)(Double.parseDouble(_totalfinal))+(double)(Double.parseDouble(_costototalhist))); -RDebugUtils.currentLine=19529862; - //BA.debugLineNum = 19529862;BA.debugLine="x.Close"; + //BA.debugLineNum = 562;BA.debugLine="x.Close"; _x.Close(); } }; -RDebugUtils.currentLine=19529864; - //BA.debugLineNum = 19529864;BA.debugLine="L_TOTAL.Text = Round2(totalfinal, 2)"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_totalfinal)),(int) (2)))); -RDebugUtils.currentLine=19529865; - //BA.debugLineNum = 19529865;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=19529867; - //BA.debugLineNum = 19529867;BA.debugLine="c = Starter.skmt.ExecQuery(\"select COUNT(*) AS CU"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CUANTOS from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE"))); -RDebugUtils.currentLine=19529868; - //BA.debugLineNum = 19529868;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=19529869; - //BA.debugLineNum = 19529869;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=19529870; - //BA.debugLineNum = 19529870;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; -if ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")))>0) { -RDebugUtils.currentLine=19529872; - //BA.debugLineNum = 19529872;BA.debugLine="Dim z As Cursor = Starter.skmt.ExecQuery($\"sele"; + //BA.debugLineNum = 564;BA.debugLine="L_TOTAL.Text = Round2(totalfinal, 2)"; +_l_total.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_totalfinal)),(int) (2)))); + //BA.debugLineNum = 565;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 567;BA.debugLine="c = Starter.skmt.ExecQuery(\"select COUNT(*) AS CU"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(*) AS CUANTOS from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE"))); + //BA.debugLineNum = 568;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 569;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 570;BA.debugLine="If c.GetString(\"CUANTOS\") > 0 Then"; +if ((double)(Double.parseDouble(_c.GetString("CUANTOS")))>0) { + //BA.debugLineNum = 572;BA.debugLine="Dim z As Cursor = Starter.skmt.ExecQuery($\"sele"; _z = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _z = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select SUM(REP_CANT) AS CANTIDAD , SUM(REP_PRECIO) AS PRECIO from REPARTO where REP_CLIENTE in (select cuenta from cuentaa) and REP_RECHAZO = '0' and REP_CANT > 0 order by REP_PRONOMBRE")))); -RDebugUtils.currentLine=19529873; - //BA.debugLineNum = 19529873;BA.debugLine="Dim cantidad2 As String = 0"; + //BA.debugLineNum = 573;BA.debugLine="Dim cantidad2 As String = 0"; _cantidad2 = BA.NumberToString(0); -RDebugUtils.currentLine=19529875; - //BA.debugLineNum = 19529875;BA.debugLine="If z.RowCount > 0 Then"; + //BA.debugLineNum = 575;BA.debugLine="If z.RowCount > 0 Then"; if (_z.getRowCount()>0) { -RDebugUtils.currentLine=19529876; - //BA.debugLineNum = 19529876;BA.debugLine="z.Position = 0"; + //BA.debugLineNum = 576;BA.debugLine="z.Position = 0"; _z.setPosition((int) (0)); -RDebugUtils.currentLine=19529877; - //BA.debugLineNum = 19529877;BA.debugLine="cantidad2= z.GetString(\"CANTIDAD\")"; + //BA.debugLineNum = 577;BA.debugLine="cantidad2= z.GetString(\"CANTIDAD\")"; _cantidad2 = _z.GetString("CANTIDAD"); -RDebugUtils.currentLine=19529880; - //BA.debugLineNum = 19529880;BA.debugLine="L_CANT.Text = Round((cantidad1 + cantidad2))"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round(((double)(Double.parseDouble(_cantidad1))+(double)(Double.parseDouble(_cantidad2)))))); + //BA.debugLineNum = 580;BA.debugLine="L_CANT.Text = Round((cantidad1 + cantidad2))"; +_l_cant.setText(BA.ObjectToCharSequence(__c.Round(((double)(Double.parseDouble(_cantidad1))+(double)(Double.parseDouble(_cantidad2)))))); }; -RDebugUtils.currentLine=19529882; - //BA.debugLineNum = 19529882;BA.debugLine="z.Close"; + //BA.debugLineNum = 582;BA.debugLine="z.Close"; _z.Close(); }; }; -RDebugUtils.currentLine=19529890; - //BA.debugLineNum = 19529890;BA.debugLine="End Sub"; + //BA.debugLineNum = 590;BA.debugLine="End Sub"; return ""; } -public String _gps_locationchanged(reparto_izca.keymon.lat.c_historico __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "gps_locationchanged", false)) - {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));} -RDebugUtils.currentLine=19005440; - //BA.debugLineNum = 19005440;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; -RDebugUtils.currentLine=19005443; - //BA.debugLineNum = 19005443;BA.debugLine="End Sub"; +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 180;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 183;BA.debugLine="End Sub"; return ""; } -public Object _initialize(reparto_izca.keymon.lat.c_historico __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=18808832; - //BA.debugLineNum = 18808832;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=18808833; - //BA.debugLineNum = 18808833;BA.debugLine="Return Me"; + //BA.debugLineNum = 43;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 44;BA.debugLine="Return Me"; if (true) return this; -RDebugUtils.currentLine=18808834; - //BA.debugLineNum = 18808834;BA.debugLine="End Sub"; + //BA.debugLineNum = 45;BA.debugLine="End Sub"; return null; } -public String _l_pcant_click(reparto_izca.keymon.lat.c_historico __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "l_pcant_click", false)) - {return ((String) Debug.delegate(ba, "l_pcant_click", null));} -RDebugUtils.currentLine=19660800; - //BA.debugLineNum = 19660800;BA.debugLine="Private Sub l_pCant_Click"; -RDebugUtils.currentLine=19660802; - //BA.debugLineNum = 19660802;BA.debugLine="End Sub"; +public String _l_pcant_click() throws Exception{ + //BA.debugLineNum = 597;BA.debugLine="Private Sub l_pCant_Click"; + //BA.debugLineNum = 599;BA.debugLine="End Sub"; return ""; } -public String _listview1_itemlongclick(reparto_izca.keymon.lat.c_historico __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "listview1_itemlongclick", false)) - {return ((String) Debug.delegate(ba, "listview1_itemlongclick", new Object[] {_position,_value}));} -RDebugUtils.currentLine=19202048; - //BA.debugLineNum = 19202048;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; -RDebugUtils.currentLine=19202092; - //BA.debugLineNum = 19202092;BA.debugLine="End Sub"; +public String _listview1_itemlongclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 197;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; + //BA.debugLineNum = 241;BA.debugLine="End Sub"; return ""; } -public String _lv2_itemclick(reparto_izca.keymon.lat.c_historico __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "lv2_itemclick", false)) - {return ((String) Debug.delegate(ba, "lv2_itemclick", new Object[] {_position,_value}));} -RDebugUtils.currentLine=19267584; - //BA.debugLineNum = 19267584;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec"; -RDebugUtils.currentLine=19267645; - //BA.debugLineNum = 19267645;BA.debugLine="End Sub"; +public String _lv2_itemclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 243;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec"; + //BA.debugLineNum = 304;BA.debugLine="End Sub"; return ""; } -public String _p_prods_click(reparto_izca.keymon.lat.c_historico __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_historico"; -if (Debug.shouldDelegate(ba, "p_prods_click", false)) - {return ((String) Debug.delegate(ba, "p_prods_click", null));} -RDebugUtils.currentLine=19726336; - //BA.debugLineNum = 19726336;BA.debugLine="Sub p_prods_Click"; -RDebugUtils.currentLine=19726337; - //BA.debugLineNum = 19726337;BA.debugLine="Log(Sender.As(Panel).tag)"; -__c.LogImpl("219726337",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0); -RDebugUtils.currentLine=19726338; - //BA.debugLineNum = 19726338;BA.debugLine="End Sub"; +public String _p_prods_click() throws Exception{ + //BA.debugLineNum = 601;BA.debugLine="Sub p_prods_Click"; + //BA.debugLineNum = 602;BA.debugLine="Log(Sender.As(Panel).tag)"; +__c.LogImpl("018612225",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0); + //BA.debugLineNum = 603;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED")) + return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_mapas.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_mapas.java index 85f6555..bfcb8a0 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_mapas.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_mapas.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_mapas"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_mapas"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_mapas extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -47,48 +40,34 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_mapas __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +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); -RDebugUtils.currentModule="c_mapas"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=19857408; - //BA.debugLineNum = 19857408;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=19857409; - //BA.debugLineNum = 19857409;BA.debugLine="Return Me"; + //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 8;BA.debugLine="Return Me"; if (true) return this; -RDebugUtils.currentLine=19857410; - //BA.debugLineNum = 19857410;BA.debugLine="End Sub"; + //BA.debugLineNum = 9;BA.debugLine="End Sub"; return null; } -public String _b4xpage_created(reparto_izca.keymon.lat.c_mapas __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_mapas"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=19922944; - //BA.debugLineNum = 19922944;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=19922945; - //BA.debugLineNum = 19922945;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=19922948; - //BA.debugLineNum = 19922948;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; } -public String _class_globals(reparto_izca.keymon.lat.c_mapas __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_mapas"; -RDebugUtils.currentLine=19791872; - //BA.debugLineNum = 19791872;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=19791873; - //BA.debugLineNum = 19791873;BA.debugLine="Private Root As B4XView 'ignore"; -_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=19791874; - //BA.debugLineNum = 19791874;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=19791875; - //BA.debugLineNum = 19791875;BA.debugLine="End Sub"; -return ""; } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_noventa.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_noventa.java index d965e24..f295815 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_noventa.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_noventa.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_noventa"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_noventa"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_noventa extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -74,35 +67,14 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_noventa __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=20054016; - //BA.debugLineNum = 20054016;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=20054017; - //BA.debugLineNum = 20054017;BA.debugLine="Return Me"; -if (true) return this; -RDebugUtils.currentLine=20054018; - //BA.debugLineNum = 20054018;BA.debugLine="End Sub"; -return null; -} -public void _b_imp_click(reparto_izca.keymon.lat.c_noventa __ref) throws Exception{ -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "b_imp_click", false)) - {Debug.delegate(ba, "b_imp_click", null); return;} -ResumableSub_B_IMP_Click rsub = new ResumableSub_B_IMP_Click(this,__ref); +public void _b_imp_click() throws Exception{ +ResumableSub_B_IMP_Click rsub = new ResumableSub_B_IMP_Click(this); rsub.resume(ba, null); } public static class ResumableSub_B_IMP_Click extends BA.ResumableSub { -public ResumableSub_B_IMP_Click(reparto_izca.keymon.lat.c_noventa parent,reparto_izca.keymon.lat.c_noventa __ref) { +public ResumableSub_B_IMP_Click(reparto_izca.keymon.lat.c_noventa parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_noventa __ref; reparto_izca.keymon.lat.c_noventa parent; int _cont = 0; anywheresoftware.b4a.sql.SQL.CursorWrapper _clientecur = null; @@ -110,7 +82,6 @@ int _resultado = 0; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_noventa"; while (true) { switch (state) { @@ -120,44 +91,33 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=20643841; - //BA.debugLineNum = 20643841;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); -RDebugUtils.currentLine=20643842; - //BA.debugLineNum = 20643842;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=20643843; - //BA.debugLineNum = 20643843;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=20643845; - //BA.debugLineNum = 20643845;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; + //BA.debugLineNum = 144;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 145;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 146;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 148;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; parent.__c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=20643846; - //BA.debugLineNum = 20643846;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\""; + //BA.debugLineNum = 149;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\""; parent.__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=20643847; - //BA.debugLineNum = 20643847;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=20643848; - //BA.debugLineNum = 20643848;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=20643849; - //BA.debugLineNum = 20643849;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=20643855; - //BA.debugLineNum = 20643855;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; + //BA.debugLineNum = 150;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +parent._sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 151;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +parent._stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 152;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 158;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); -RDebugUtils.currentLine=20643856; - //BA.debugLineNum = 20643856;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=20643857; - //BA.debugLineNum = 20643857;BA.debugLine="If Not(Printer1.IsConnected) Then"; + //BA.debugLineNum = 159;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 160;BA.debugLine="If Not(Printer1.IsConnected) Then"; if (true) break; case 1: //if this.state = 38; -if (parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { +if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { this.state = 3; }else { this.state = 21; @@ -166,20 +126,17 @@ this.state = 21; case 3: //C this.state = 4; -RDebugUtils.currentLine=20643859; - //BA.debugLineNum = 20643859;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=20643860; - //BA.debugLineNum = 20643860;BA.debugLine="Private cont As Int = 0"; + //BA.debugLineNum = 162;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 163;BA.debugLine="Private cont As Int = 0"; _cont = (int) (0); -RDebugUtils.currentLine=20643861; - //BA.debugLineNum = 20643861;BA.debugLine="Do While Not(impresoraConectada)"; + //BA.debugLineNum = 164;BA.debugLine="Do While Not(impresoraConectada)"; if (true) break; case 4: //do while this.state = 19; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ )) { +while (parent.__c.Not(parent._impresoraconectada)) { this.state = 6; if (true) break; } @@ -188,20 +145,17 @@ if (true) break; case 6: //C this.state = 7; -RDebugUtils.currentLine=20643862; - //BA.debugLineNum = 20643862;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_noventa", "b_imp_click"),(int) (1000)); + //BA.debugLineNum = 165;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 55; return; case 55: //C this.state = 7; ; -RDebugUtils.currentLine=20643864; - //BA.debugLineNum = 20643864;BA.debugLine="cont = cont + 1"; + //BA.debugLineNum = 167;BA.debugLine="cont = cont + 1"; _cont = (int) (_cont+1); -RDebugUtils.currentLine=20643865; - //BA.debugLineNum = 20643865;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de"; + //BA.debugLineNum = 168;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de"; if (true) break; case 7: @@ -214,15 +168,14 @@ this.state = 9; case 9: //C this.state = 12; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); +parent._printer1._connect /*boolean*/ (); if (true) break; case 12: //C this.state = 13; ; -RDebugUtils.currentLine=20643866; - //BA.debugLineNum = 20643866;BA.debugLine="If cont > 3 Then impresoraConectada = True"; + //BA.debugLineNum = 169;BA.debugLine="If cont > 3 Then impresoraConectada = True"; if (true) break; case 13: @@ -235,7 +188,7 @@ this.state = 15; case 15: //C this.state = 18; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; +parent._impresoraconectada = parent.__c.True; if (true) break; case 18: @@ -248,37 +201,32 @@ case 19: //C this.state = 38; ; -RDebugUtils.currentLine=20643868; - //BA.debugLineNum = 20643868;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_noventa", "b_imp_click"),(int) (500)); + //BA.debugLineNum = 171;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); this.state = 56; return; case 56: //C this.state = 38; ; -RDebugUtils.currentLine=20643869; - //BA.debugLineNum = 20643869;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 172;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; if (true) break; case 21: //C this.state = 22; -RDebugUtils.currentLine=20643872; - //BA.debugLineNum = 20643872;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=20643873; - //BA.debugLineNum = 20643873;BA.debugLine="Private cont As Int = 0"; + //BA.debugLineNum = 175;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 176;BA.debugLine="Private cont As Int = 0"; _cont = (int) (0); -RDebugUtils.currentLine=20643874; - //BA.debugLineNum = 20643874;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; + //BA.debugLineNum = 177;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; if (true) break; case 22: //do while this.state = 37; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ ) || parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { +while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { this.state = 24; if (true) break; } @@ -287,20 +235,17 @@ if (true) break; case 24: //C this.state = 25; -RDebugUtils.currentLine=20643875; - //BA.debugLineNum = 20643875;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_noventa", "b_imp_click"),(int) (1000)); + //BA.debugLineNum = 178;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 57; return; case 57: //C this.state = 25; ; -RDebugUtils.currentLine=20643877; - //BA.debugLineNum = 20643877;BA.debugLine="cont = cont + 1"; + //BA.debugLineNum = 180;BA.debugLine="cont = cont + 1"; _cont = (int) (_cont+1); -RDebugUtils.currentLine=20643878; - //BA.debugLineNum = 20643878;BA.debugLine="If cont = 2 Then Printer1.Connect"; + //BA.debugLineNum = 181;BA.debugLine="If cont = 2 Then Printer1.Connect"; if (true) break; case 25: @@ -313,15 +258,14 @@ this.state = 27; case 27: //C this.state = 30; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); +parent._printer1._connect /*boolean*/ (); if (true) break; case 30: //C this.state = 31; ; -RDebugUtils.currentLine=20643879; - //BA.debugLineNum = 20643879;BA.debugLine="If cont > 3 Then impresoraConectada = True"; + //BA.debugLineNum = 182;BA.debugLine="If cont > 3 Then impresoraConectada = True"; if (true) break; case 31: @@ -334,7 +278,7 @@ this.state = 33; case 33: //C this.state = 36; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; +parent._impresoraconectada = parent.__c.True; if (true) break; case 36: @@ -347,157 +291,123 @@ case 37: //C this.state = 38; ; -RDebugUtils.currentLine=20643881; - //BA.debugLineNum = 20643881;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_noventa", "b_imp_click"),(int) (500)); + //BA.debugLineNum = 184;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); this.state = 58; return; case 58: //C this.state = 38; ; -RDebugUtils.currentLine=20643882; - //BA.debugLineNum = 20643882;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 185;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; if (true) break; case 38: //C this.state = 39; ; -RDebugUtils.currentLine=20643886; - //BA.debugLineNum = 20643886;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF); -RDebugUtils.currentLine=20643888; - //BA.debugLineNum = 20643888;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Vendedor:"+__ref._usuario /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=20643891; - //BA.debugLineNum = 20643891;BA.debugLine="Dim clientecur As Cursor = Starter.skmt.ExecQuery"; + //BA.debugLineNum = 189;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; +parent._printer1._writestring /*String*/ ("Izca Distribuciones"+parent.__c.CRLF); + //BA.debugLineNum = 191;BA.debugLine="Printer1.WriteString(\"Vendedor:\" & usuario & CRL"; +parent._printer1._writestring /*String*/ ("Vendedor:"+parent._usuario+parent.__c.CRLF); + //BA.debugLineNum = 194;BA.debugLine="Dim clientecur As Cursor = Starter.skmt.ExecQuery"; _clientecur = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _clientecur = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_NOMBRE FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=20643892; - //BA.debugLineNum = 20643892;BA.debugLine="clientecur.Position = 0"; + //BA.debugLineNum = 195;BA.debugLine="clientecur.Position = 0"; _clientecur.setPosition((int) (0)); -RDebugUtils.currentLine=20643894; - //BA.debugLineNum = 20643894;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & Subs.traeC"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"ID.Cliente: "+parent._subs._traecliente /*String*/ (ba)+parent.__c.CRLF); -RDebugUtils.currentLine=20643896; - //BA.debugLineNum = 20643896;BA.debugLine="Printer1.WriteString(\"Tienda: \" & clientecur.GetS"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Tienda: "+_clientecur.GetString("CAT_CL_NOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=20643898; - //BA.debugLineNum = 20643898;BA.debugLine="Printer1.WriteString(sDate &\" \"& sTime & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._sdate /*String*/ +" "+__ref._stime /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=20643899; - //BA.debugLineNum = 20643899;BA.debugLine="If r_1.Checked Then"; + //BA.debugLineNum = 197;BA.debugLine="Printer1.WriteString(\"ID.Cliente: \" & Subs.traeC"; +parent._printer1._writestring /*String*/ ("ID.Cliente: "+parent._subs._traecliente /*String*/ (ba)+parent.__c.CRLF); + //BA.debugLineNum = 199;BA.debugLine="Printer1.WriteString(\"Tienda: \" & clientecur.GetS"; +parent._printer1._writestring /*String*/ ("Tienda: "+_clientecur.GetString("CAT_CL_NOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 201;BA.debugLine="Printer1.WriteString(sDate &\" \"& sTime & CRLF)"; +parent._printer1._writestring /*String*/ (parent._sdate+" "+parent._stime+parent.__c.CRLF); + //BA.debugLineNum = 202;BA.debugLine="If r_1.Checked Then"; if (true) break; case 39: //if this.state = 48; -if (__ref._r_1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { +if (parent._r_1.getChecked()) { this.state = 41; -}else -{RDebugUtils.currentLine=20643901; - //BA.debugLineNum = 20643901;BA.debugLine="Else If r_2.Checked Then"; -if (__ref._r_2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { +}else if(parent._r_2.getChecked()) { this.state = 43; -}else -{RDebugUtils.currentLine=20643903; - //BA.debugLineNum = 20643903;BA.debugLine="Else If r_3.Checked Then"; -if (__ref._r_3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { +}else if(parent._r_3.getChecked()) { this.state = 45; }else { this.state = 47; -}}} -if (true) break; +}if (true) break; case 41: //C this.state = 48; -RDebugUtils.currentLine=20643900; - //BA.debugLineNum = 20643900;BA.debugLine="motivo = \"CERRADO\""; -__ref._motivo /*String*/ = "CERRADO"; + //BA.debugLineNum = 203;BA.debugLine="motivo = \"CERRADO\""; +parent._motivo = "CERRADO"; if (true) break; case 43: //C this.state = 48; -RDebugUtils.currentLine=20643902; - //BA.debugLineNum = 20643902;BA.debugLine="motivo = \"NO PIDIO\""; -__ref._motivo /*String*/ = "NO PIDIO"; + //BA.debugLineNum = 205;BA.debugLine="motivo = \"NO PIDIO\""; +parent._motivo = "NO PIDIO"; if (true) break; case 45: //C this.state = 48; -RDebugUtils.currentLine=20643904; - //BA.debugLineNum = 20643904;BA.debugLine="motivo = \"CANCELA\""; -__ref._motivo /*String*/ = "CANCELA"; + //BA.debugLineNum = 207;BA.debugLine="motivo = \"CANCELA\""; +parent._motivo = "CANCELA"; if (true) break; case 47: //C this.state = 48; -RDebugUtils.currentLine=20643906; - //BA.debugLineNum = 20643906;BA.debugLine="motivo = \"NO ESTA EL ENCARGADO\""; -__ref._motivo /*String*/ = "NO ESTA EL ENCARGADO"; + //BA.debugLineNum = 209;BA.debugLine="motivo = \"NO ESTA EL ENCARGADO\""; +parent._motivo = "NO ESTA EL ENCARGADO"; if (true) break; case 48: //C this.state = 49; ; -RDebugUtils.currentLine=20643908; - //BA.debugLineNum = 20643908;BA.debugLine="Printer1.WriteString(motivo & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._motivo /*String*/ +parent.__c.CRLF); -RDebugUtils.currentLine=20643912; - //BA.debugLineNum = 20643912;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=20643913; - //BA.debugLineNum = 20643913;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------INFORMATIVO-----------"+parent.__c.CRLF); -RDebugUtils.currentLine=20643914; - //BA.debugLineNum = 20643914;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=20643915; - //BA.debugLineNum = 20643915;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=20643916; - //BA.debugLineNum = 20643916;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=20643917; - //BA.debugLineNum = 20643917;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=20643918; - //BA.debugLineNum = 20643918;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_noventa", "b_imp_click"),(int) (1000)); + //BA.debugLineNum = 211;BA.debugLine="Printer1.WriteString(motivo & CRLF)"; +parent._printer1._writestring /*String*/ (parent._motivo+parent.__c.CRLF); + //BA.debugLineNum = 215;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 216;BA.debugLine="Printer1.WriteString(\"--------INFORMATIVO--------"; +parent._printer1._writestring /*String*/ ("--------INFORMATIVO-----------"+parent.__c.CRLF); + //BA.debugLineNum = 217;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 218;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 219;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 220;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 221;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 59; return; case 59: //C this.state = 49; ; -RDebugUtils.currentLine=20643919; - //BA.debugLineNum = 20643919;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=20643921; - //BA.debugLineNum = 20643921;BA.debugLine="ProgressDialogHide"; + //BA.debugLineNum = 222;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 224;BA.debugLine="ProgressDialogHide"; parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=20643923; - //BA.debugLineNum = 20643923;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket?"; + //BA.debugLineNum = 226;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket?"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=20643924; - //BA.debugLineNum = 20643924;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_noventa", "b_imp_click"), null); + //BA.debugLineNum = 227;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 60; return; case 60: //C this.state = 49; -_resultado = (Integer) result[1]; +_resultado = (Integer) result[0]; ; -RDebugUtils.currentLine=20643925; - //BA.debugLineNum = 20643925;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; + //BA.debugLineNum = 228;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; if (true) break; case 49: @@ -512,36 +422,177 @@ this.state = 53; case 51: //C this.state = 54; -RDebugUtils.currentLine=20643926; - //BA.debugLineNum = 20643926;BA.debugLine="B_IMP_Click"; -__ref._b_imp_click /*void*/ (null); + //BA.debugLineNum = 229;BA.debugLine="B_IMP_Click"; +parent._b_imp_click(); if (true) break; case 53: //C this.state = 54; -RDebugUtils.currentLine=20643928; - //BA.debugLineNum = 20643928;BA.debugLine="Guardado"; -__ref._guardado /*String*/ (null); + //BA.debugLineNum = 231;BA.debugLine="Guardado"; +parent._guardado(); if (true) break; case 54: //C this.state = -1; ; -RDebugUtils.currentLine=20643930; - //BA.debugLineNum = 20643930;BA.debugLine="End Sub"; + //BA.debugLineNum = 233;BA.debugLine="End Sub"; if (true) break; } } } } -public String _guardado(reparto_izca.keymon.lat.c_noventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "guardado", false)) - {return ((String) Debug.delegate(ba, "guardado", null));} +public void _msgbox_result(int _resultado) throws Exception{ +} +public String _b4xpage_appear() throws Exception{ + //BA.debugLineNum = 47;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 48;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")"; +_printer1._initialize /*String*/ (ba,this,"Printer1"); + //BA.debugLineNum = 50;BA.debugLine="If Printer1.IsConnected = False Then"; +if (_printer1._isconnected /*boolean*/ ()==__c.False) { + }else { + //BA.debugLineNum = 54;BA.debugLine="Printer1.DisConnect"; +_printer1._disconnect /*String*/ (); + //BA.debugLineNum = 55;BA.debugLine="Printer1.Connect"; +_printer1._connect /*boolean*/ (); + //BA.debugLineNum = 56;BA.debugLine="Log(\"2\")"; +__c.LogImpl("019070985","2",0); + }; + //BA.debugLineNum = 58;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")"; +_btadmin.Initialize(ba,"BlueTeeth"); + //BA.debugLineNum = 59;BA.debugLine="cmp20.Initialize(\"Printer\")"; +_cmp20.Initialize("Printer"); + //BA.debugLineNum = 61;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 62;BA.debugLine="e_comm.Text=\"\""; +_e_comm.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 63;BA.debugLine="r_1.Checked = False"; +_r_1.setChecked(__c.False); + //BA.debugLineNum = 64;BA.debugLine="r_2.Checked = False"; +_r_2.setChecked(__c.False); + //BA.debugLineNum = 65;BA.debugLine="r_3.Checked = False"; +_r_3.setChecked(__c.False); + //BA.debugLineNum = 66;BA.debugLine="r_4.Checked = False"; +_r_4.setChecked(__c.False); + //BA.debugLineNum = 67;BA.debugLine="cb_reprogramar.Checked = False"; +_cb_reprogramar.setChecked(__c.False); + //BA.debugLineNum = 68;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 38;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 39;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 41;BA.debugLine="Root.LoadLayout(\"no_venta\")"; +_root.LoadLayout("no_venta",ba); + //BA.debugLineNum = 42;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 43;BA.debugLine="End Sub"; +return ""; +} +public String _cancela_click() throws Exception{ + //BA.debugLineNum = 75;BA.debugLine="Sub CANCELA_Click"; + //BA.debugLineNum = 76;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 77;BA.debugLine="End Sub"; +return ""; +} +public String _cb_reprogramar_checkedchange(boolean _checked) throws Exception{ + //BA.debugLineNum = 134;BA.debugLine="Private Sub cb_reprogramar_CheckedChange(Checked A"; + //BA.debugLineNum = 135;BA.debugLine="If Checked Then"; +if (_checked) { + //BA.debugLineNum = 136;BA.debugLine="reprogramar = 1"; +_reprogramar = (int) (1); + }else { + //BA.debugLineNum = 138;BA.debugLine="reprogramar = 0"; +_reprogramar = (int) (0); + }; + //BA.debugLineNum = 140;BA.debugLine="End Sub"; +return ""; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore"; +_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 5;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 6;BA.debugLine="Dim COMENTARIO As String"; +_comentario = ""; + //BA.debugLineNum = 7;BA.debugLine="Dim CANCELA As Button"; +_cancela = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 8;BA.debugLine="Dim GUARDA As Button"; +_guarda = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 9;BA.debugLine="Dim r_1 As RadioButton"; +_r_1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 10;BA.debugLine="Dim r_2 As RadioButton"; +_r_2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Dim r_3 As RadioButton"; +_r_3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 12;BA.debugLine="Dim e_comm As EditText"; +_e_comm = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 13;BA.debugLine="Dim motivo As String"; +_motivo = ""; + //BA.debugLineNum = 14;BA.debugLine="Dim cuenta As String"; +_cuenta = ""; + //BA.debugLineNum = 15;BA.debugLine="Dim usuario As String"; +_usuario = ""; + //BA.debugLineNum = 16;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 17;BA.debugLine="Dim r_4 As RadioButton"; +_r_4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); + //BA.debugLineNum = 18;BA.debugLine="Private p_principal As Panel"; +_p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Dim d As Cursor"; +_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 20;BA.debugLine="Dim reqManager As DBRequestManager"; +_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager(); + //BA.debugLineNum = 21;BA.debugLine="Private cb_reprogramar As CheckBox"; +_cb_reprogramar = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); + //BA.debugLineNum = 22;BA.debugLine="Dim reprogramar As Int = 0"; +_reprogramar = (int) (0); + //BA.debugLineNum = 23;BA.debugLine="Dim PASA_IMP As String"; +_pasa_imp = ""; + //BA.debugLineNum = 24;BA.debugLine="Dim Printer1 As EscPosPrinter"; +_printer1 = new reparto_izca.keymon.lat.escposprinter(); + //BA.debugLineNum = 25;BA.debugLine="Dim impresoraConectada As Boolean = False"; +_impresoraconectada = __c.False; + //BA.debugLineNum = 26;BA.debugLine="Dim errorImpresora As Int = 0"; +_errorimpresora = (int) (0); + //BA.debugLineNum = 27;BA.debugLine="Dim cmp20 As Serial"; +_cmp20 = new anywheresoftware.b4a.objects.Serial(); + //BA.debugLineNum = 28;BA.debugLine="Dim btAdmin As BluetoothAdmin"; +_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin(); + //BA.debugLineNum = 29;BA.debugLine="Dim printer As TextWriter"; +_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper(); + //BA.debugLineNum = 30;BA.debugLine="End Sub"; +return ""; +} +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 70;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 73;BA.debugLine="End Sub"; +return ""; +} +public String _guarda_click() throws Exception{ + //BA.debugLineNum = 79;BA.debugLine="Sub GUARDA_Click"; + //BA.debugLineNum = 80;BA.debugLine="If r_1.Checked = False And r_2.Checked = False An"; +if (_r_1.getChecked()==__c.False && _r_2.getChecked()==__c.False && _r_3.getChecked()==__c.False && _r_4.getChecked()==__c.False) { + //BA.debugLineNum = 81;BA.debugLine="MsgboxAsync(\"Selecciona un motivo de rechazo\",\"A"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Selecciona un motivo de rechazo"),BA.ObjectToCharSequence("Atención"),ba); + }else { + //BA.debugLineNum = 83;BA.debugLine="B_IMP_Click"; +_b_imp_click(); + }; + //BA.debugLineNum = 86;BA.debugLine="End Sub"; +return ""; +} +public String _guardado() throws Exception{ String _rutaactualizar = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _rut = null; String _estecliente = ""; @@ -551,507 +602,191 @@ int _i = 0; String _ruta = ""; String _rutapre = ""; String _fechaprev = ""; -RDebugUtils.currentLine=20709376; - //BA.debugLineNum = 20709376;BA.debugLine="Sub Guardado"; -RDebugUtils.currentLine=20709378; - //BA.debugLineNum = 20709378;BA.debugLine="If r_1.Checked Then"; -if (__ref._r_1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=20709379; - //BA.debugLineNum = 20709379;BA.debugLine="motivo = \"CERRADO\""; -__ref._motivo /*String*/ = "CERRADO"; - }else -{RDebugUtils.currentLine=20709380; - //BA.debugLineNum = 20709380;BA.debugLine="Else If r_2.Checked Then"; -if (__ref._r_2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=20709381; - //BA.debugLineNum = 20709381;BA.debugLine="motivo = \"NO PIDIO\""; -__ref._motivo /*String*/ = "NO PIDIO"; - }else -{RDebugUtils.currentLine=20709382; - //BA.debugLineNum = 20709382;BA.debugLine="Else If r_3.Checked Then"; -if (__ref._r_3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()) { -RDebugUtils.currentLine=20709383; - //BA.debugLineNum = 20709383;BA.debugLine="motivo = \"CANCELA\""; -__ref._motivo /*String*/ = "CANCELA"; + //BA.debugLineNum = 235;BA.debugLine="Sub Guardado"; + //BA.debugLineNum = 237;BA.debugLine="If r_1.Checked Then"; +if (_r_1.getChecked()) { + //BA.debugLineNum = 238;BA.debugLine="motivo = \"CERRADO\""; +_motivo = "CERRADO"; + }else if(_r_2.getChecked()) { + //BA.debugLineNum = 240;BA.debugLine="motivo = \"NO PIDIO\""; +_motivo = "NO PIDIO"; + }else if(_r_3.getChecked()) { + //BA.debugLineNum = 242;BA.debugLine="motivo = \"CANCELA\""; +_motivo = "CANCELA"; }else { -RDebugUtils.currentLine=20709385; - //BA.debugLineNum = 20709385;BA.debugLine="motivo = \"NO ESTA EL ENCARGADO\""; -__ref._motivo /*String*/ = "NO ESTA EL ENCARGADO"; - }}} -; -RDebugUtils.currentLine=20709388; - //BA.debugLineNum = 20709388;BA.debugLine="If motivo <> \"CERRADO\" Or motivo = \"CERRADO\" The"; -if ((__ref._motivo /*String*/ ).equals("CERRADO") == false || (__ref._motivo /*String*/ ).equals("CERRADO")) { -RDebugUtils.currentLine=20709389; - //BA.debugLineNum = 20709389;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; + //BA.debugLineNum = 244;BA.debugLine="motivo = \"NO ESTA EL ENCARGADO\""; +_motivo = "NO ESTA EL ENCARGADO"; + }; + //BA.debugLineNum = 247;BA.debugLine="If motivo <> \"CERRADO\" Or motivo = \"CERRADO\" The"; +if ((_motivo).equals("CERRADO") == false || (_motivo).equals("CERRADO")) { + //BA.debugLineNum = 248;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; __c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=20709390; - //BA.debugLineNum = 20709390;BA.debugLine="DateTime.TimeFormat=\"HHmmss\""; + //BA.debugLineNum = 249;BA.debugLine="DateTime.TimeFormat=\"HHmmss\""; __c.DateTime.setTimeFormat("HHmmss"); -RDebugUtils.currentLine=20709391; - //BA.debugLineNum = 20709391;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=20709392; - //BA.debugLineNum = 20709392;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=20709393; - //BA.debugLineNum = 20709393;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cue"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); -RDebugUtils.currentLine=20709394; - //BA.debugLineNum = 20709394;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=20709395; - //BA.debugLineNum = 20709395;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; -__ref._cuenta /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUENTA"); -RDebugUtils.currentLine=20709396; - //BA.debugLineNum = 20709396;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=20709397; - //BA.debugLineNum = 20709397;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=20709398; - //BA.debugLineNum = 20709398;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=20709399; - //BA.debugLineNum = 20709399;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=20709400; - //BA.debugLineNum = 20709400;BA.debugLine="Dim rutaactualizar As String"; + //BA.debugLineNum = 250;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 251;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 252;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cue"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); + //BA.debugLineNum = 253;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 254;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; +_cuenta = _c.GetString("CUENTA"); + //BA.debugLineNum = 255;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 256;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 257;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 258;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 259;BA.debugLine="Dim rutaactualizar As String"; _rutaactualizar = ""; -RDebugUtils.currentLine=20709401; - //BA.debugLineNum = 20709401;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SELE"; + //BA.debugLineNum = 260;BA.debugLine="Dim rut As Cursor = Starter.skmt.ExecQuery(\"SELE"; _rut = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _rut = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=20709402; - //BA.debugLineNum = 20709402;BA.debugLine="If rut.RowCount > 0 Then"; + //BA.debugLineNum = 261;BA.debugLine="If rut.RowCount > 0 Then"; if (_rut.getRowCount()>0) { -RDebugUtils.currentLine=20709403; - //BA.debugLineNum = 20709403;BA.debugLine="rut.Position = 0"; + //BA.debugLineNum = 262;BA.debugLine="rut.Position = 0"; _rut.setPosition((int) (0)); -RDebugUtils.currentLine=20709404; - //BA.debugLineNum = 20709404;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")"; + //BA.debugLineNum = 263;BA.debugLine="rutaactualizar = rut.GetString(\"CAT_CL_RUTA\")"; _rutaactualizar = _rut.GetString("CAT_CL_RUTA"); }; -RDebugUtils.currentLine=20709406; - //BA.debugLineNum = 20709406;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENTA"; + //BA.debugLineNum = 265;BA.debugLine="Starter.skmt.ExecNonQuery($\"DELETE FROM NOVENTA"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa) AND NV_RUTA ='"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"' ")); -RDebugUtils.currentLine=20709408; - //BA.debugLineNum = 20709408;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_NUM_REGISTR"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_NUM_REGISTRO, HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_PROID, CAT_GP_PRECIO from HIST_VENTAS2 join CAT_GUNAPROD on CAT_GP_ID = HVD_PROID WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=20709409; - //BA.debugLineNum = 20709409;BA.debugLine="If c.RowCount > 0 Then 'Si hay pedido en HIST_V"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=20709412; - //BA.debugLineNum = 20709412;BA.debugLine="Private esteCliente As String = Subs.traeClient"; + //BA.debugLineNum = 267;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_NUM_REGISTR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_NUM_REGISTRO, HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT, HVD_FECHA, HVD_PROID, CAT_GP_PRECIO from HIST_VENTAS2 join CAT_GUNAPROD on CAT_GP_ID = HVD_PROID WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 268;BA.debugLine="If c.RowCount > 0 Then 'Si hay pedido en HIST_V"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 271;BA.debugLine="Private esteCliente As String = Subs.traeClient"; _estecliente = _subs._traecliente /*String*/ (ba); -RDebugUtils.currentLine=20709413; - //BA.debugLineNum = 20709413;BA.debugLine="Private rv As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 272;BA.debugLine="Private rv As Cursor = Starter.skmt.ExecQuery($"; _rv = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _rv = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_estecliente))+"' and REP_CLI_ORIG <> '"+__c.SmartStringFormatter("",(Object)(_estecliente))+"' and REP_RECHAZO = 0")))); -RDebugUtils.currentLine=20709414; - //BA.debugLineNum = 20709414;BA.debugLine="If rv.RowCount > 0 Then 'Si tenemos venta en el"; + //BA.debugLineNum = 273;BA.debugLine="If rv.RowCount > 0 Then 'Si tenemos venta en el"; if (_rv.getRowCount()>0) { -RDebugUtils.currentLine=20709415; - //BA.debugLineNum = 20709415;BA.debugLine="For i2=0 To rv.RowCount - 1"; + //BA.debugLineNum = 274;BA.debugLine="For i2=0 To rv.RowCount - 1"; { final int step34 = 1; final int limit34 = (int) (_rv.getRowCount()-1); _i2 = (int) (0) ; for (;_i2 <= limit34 ;_i2 = _i2 + step34 ) { -RDebugUtils.currentLine=20709416; - //BA.debugLineNum = 20709416;BA.debugLine="rv.Position = i2"; + //BA.debugLineNum = 275;BA.debugLine="rv.Position = i2"; _rv.setPosition(_i2); -RDebugUtils.currentLine=20709417; - //BA.debugLineNum = 20709417;BA.debugLine="Log($\"Actualizamos REPARTO - cliente=${rv.Get"; -__c.LogImpl("220709417",("Actualizamos REPARTO - cliente="+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLIENTE")))+", cliente orignal="+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+", le agregamos "+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CANT")))+""),0); -RDebugUtils.currentLine=20709418; - //BA.debugLineNum = 20709418;BA.debugLine="Starter.skmt.ExecNonQuery($\"update REPARTO se"; + //BA.debugLineNum = 276;BA.debugLine="Log($\"Actualizamos REPARTO - cliente=${rv.Get"; +__c.LogImpl("019595305",("Actualizamos REPARTO - cliente="+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLIENTE")))+", cliente orignal="+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+", le agregamos "+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CANT")))+""),0); + //BA.debugLineNum = 277;BA.debugLine="Starter.skmt.ExecNonQuery($\"update REPARTO se"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update REPARTO set REP_CANT = REP_CANT + "+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CANT")))+" where REP_RECHAZO = '1' and REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_rv.GetString("REP_CLI_ORIG")))+"'")); } }; }; -RDebugUtils.currentLine=20709422; - //BA.debugLineNum = 20709422;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from reparto"; + //BA.debugLineNum = 281;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from reparto"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from reparto where REP_CLIENTE IN (Select CUENTA from cuentaa)"); -RDebugUtils.currentLine=20709423; - //BA.debugLineNum = 20709423;BA.debugLine="For i=0 To c.RowCount - 1 'Insertamos los produ"; + //BA.debugLineNum = 282;BA.debugLine="For i=0 To c.RowCount - 1 'Insertamos los produ"; { final int step41 = 1; -final int limit41 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit41 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit41 ;_i = _i + step41 ) { -RDebugUtils.currentLine=20709424; - //BA.debugLineNum = 20709424;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=20709425; - //BA.debugLineNum = 20709425;BA.debugLine="Log($\"REGISTRO= ${c.GetString(\"HVD_NUM_REGISTR"; -__c.LogImpl("220709425",("REGISTRO= "+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO")))+""),0); -RDebugUtils.currentLine=20709426; - //BA.debugLineNum = 20709426;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_PRECIO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")})); -RDebugUtils.currentLine=20709427; - //BA.debugLineNum = 20709427;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),BA.NumberToString(0),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_GP_PRECIO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")})); -RDebugUtils.currentLine=20709428; - //BA.debugLineNum = 20709428;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"))})); + //BA.debugLineNum = 283;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 284;BA.debugLine="Log($\"REGISTRO= ${c.GetString(\"HVD_NUM_REGISTR"; +__c.LogImpl("019595313",("REGISTRO= "+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+""),0); + //BA.debugLineNum = 285;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_c.GetString("HVD_CLIENTE"),_c.GetString("HVD_PRONOMBRE"),_c.GetString("HVD_CANT"),_c.GetString("HVD_COSTO_TOT"),_c.GetString("HVD_FECHA"),_c.GetString("HVD_PROID"),_c.GetString("CAT_GP_PRECIO"),_c.GetString("HVD_NUM_REGISTRO"),_c.GetString("HVD_CLIENTE")})); + //BA.debugLineNum = 286;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into repart"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_PRODREGISTRO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_c.GetString("HVD_CLIENTE"),_c.GetString("HVD_PRONOMBRE"),BA.NumberToString(0),_c.GetString("HVD_COSTO_TOT"),_c.GetString("HVD_FECHA"),_c.GetString("HVD_PROID"),_c.GetString("CAT_GP_PRECIO"),_c.GetString("HVD_NUM_REGISTRO"),_c.GetString("HVD_CLIENTE")})); + //BA.debugLineNum = 287;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunapro"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_c.GetString("HVD_CANT")),(Object)(_c.GetString("HVD_PRONOMBRE"))})); } }; }; -RDebugUtils.currentLine=20709432; - //BA.debugLineNum = 20709432;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._cuenta /*String*/ ),(Object)(__ref._sdate /*String*/ +__ref._stime /*String*/ ),(Object)(__ref._usuario /*String*/ ),(Object)(__ref._motivo /*String*/ ),(Object)(__ref._e_comm /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar),(Object)(__ref._reprogramar /*int*/ )})); -RDebugUtils.currentLine=20709433; - //BA.debugLineNum = 20709433;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+__c.SmartStringFormatter("",(Object)(__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'")); -RDebugUtils.currentLine=20709434; - //BA.debugLineNum = 20709434;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SE"; + //BA.debugLineNum = 291;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON,NV_FOTO,NV_REPROGRAMAR) VALUES(?,?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cuenta),(Object)(_sdate+_stime),(Object)(_usuario),(Object)(_motivo),(Object)(_e_comm.getText()),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ),(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ),(Object)(_rutaactualizar),(Object)(_reprogramar)})); + //BA.debugLineNum = 292;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+__c.SmartStringFormatter("",(Object)(_sdate+" "+_stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa) and CAT_CL_RUTA = '"+__c.SmartStringFormatter("",(Object)(_rutaactualizar))+"'")); + //BA.debugLineNum = 293;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SE"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1, HVD_RECHAZOCANT = HVD_CANT, HVD_RECHAZOCANTC = CANTC, BCAJAS = 0 , CANTC = 0 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); -RDebugUtils.currentLine=20709435; - //BA.debugLineNum = 20709435;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS s"; + //BA.debugLineNum = 294;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS s"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 2, HVD_RECHAZOCANT = HVD_RECHAZOCANT WHERE HVD_PROID = HVD_CODPROMO and HVD_CLIENTE in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=20709436; - //BA.debugLineNum = 20709436;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM PEDIDO WH"; + //BA.debugLineNum = 295;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM PEDIDO WH"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); -RDebugUtils.currentLine=20709437; - //BA.debugLineNum = 20709437;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RU"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); -RDebugUtils.currentLine=20709438; - //BA.debugLineNum = 20709438;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=20709439; - //BA.debugLineNum = 20709439;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")"; -_ruta = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"); -RDebugUtils.currentLine=20709440; - //BA.debugLineNum = 20709440;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=20709441; - //BA.debugLineNum = 20709441;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RUTA F"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=20709442; - //BA.debugLineNum = 20709442;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=20709443; - //BA.debugLineNum = 20709443;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_RUTA"; -_rutapre = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=20709444; - //BA.debugLineNum = 20709444;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=20709445; - //BA.debugLineNum = 20709445;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FRO"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=20709446; - //BA.debugLineNum = 20709446;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=20709447; - //BA.debugLineNum = 20709447;BA.debugLine="Dim fechaprev As String = d.GetString(\"HVD_FECHA"; -_fechaprev = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA"); -RDebugUtils.currentLine=20709448; - //BA.debugLineNum = 20709448;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=20709449; - //BA.debugLineNum = 20709449;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); -RDebugUtils.currentLine=20709450; - //BA.debugLineNum = 20709450;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=20709451; - //BA.debugLineNum = 20709451;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPARTO_"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{__ref._cuenta /*String*/ ,__ref._usuario /*String*/ ,__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,_fechaprev,__ref._motivo /*String*/ ,__ref._e_comm /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(),"NO ENTREGADO"})); -RDebugUtils.currentLine=20709458; - //BA.debugLineNum = 20709458;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 296;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RU"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); + //BA.debugLineNum = 297;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 298;BA.debugLine="Dim ruta As String = d.GetString(\"RUTAA\")"; +_ruta = _d.GetString("RUTAA"); + //BA.debugLineNum = 299;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 300;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CAT_CL_RUTA F"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 301;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 302;BA.debugLine="Dim rutapre As String = d.GetString(\"CAT_CL_RUTA"; +_rutapre = _d.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 303;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 304;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FRO"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 305;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 306;BA.debugLine="Dim fechaprev As String = d.GetString(\"HVD_FECHA"; +_fechaprev = _d.GetString("HVD_FECHA"); + //BA.debugLineNum = 307;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 308;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT CUENTA FROM C"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CUENTA FROM CUENTAA"))); + //BA.debugLineNum = 309;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 310;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO REPARTO_"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO REPARTO_GEO (CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO,ENVIO) VALUES(?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_cuenta,_usuario,_sdate+" "+_stime,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lat_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._lon_gps /*String*/ ,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ ,_ruta,_rutapre,_fechaprev,_motivo,_e_comm.getText(),"NO ENTREGADO"})); + //BA.debugLineNum = 317;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; _b4xpages._showpage /*String*/ (ba,"Principal"); }else { -RDebugUtils.currentLine=20709461; - //BA.debugLineNum = 20709461;BA.debugLine="COMENTARIO = e_comm.Text"; -__ref._comentario /*String*/ = __ref._e_comm /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(); + //BA.debugLineNum = 320;BA.debugLine="COMENTARIO = e_comm.Text"; +_comentario = _e_comm.getText(); }; -RDebugUtils.currentLine=20709466; - //BA.debugLineNum = 20709466;BA.debugLine="End Sub"; + //BA.debugLineNum = 325;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_noventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} -RDebugUtils.currentLine=20185088; - //BA.debugLineNum = 20185088;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=20185089; - //BA.debugLineNum = 20185089;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._initialize /*String*/ (null,ba,this,"Printer1"); -RDebugUtils.currentLine=20185091; - //BA.debugLineNum = 20185091;BA.debugLine="If Printer1.IsConnected = False Then"; -if (__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null)==__c.False) { - }else { -RDebugUtils.currentLine=20185095; - //BA.debugLineNum = 20185095;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=20185096; - //BA.debugLineNum = 20185096;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=20185097; - //BA.debugLineNum = 20185097;BA.debugLine="Log(\"2\")"; -__c.LogImpl("220185097","2",0); - }; -RDebugUtils.currentLine=20185099; - //BA.debugLineNum = 20185099;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")"; -__ref._btadmin /*anywheresoftware.b4a.objects.Serial.BluetoothAdmin*/ .Initialize(ba,"BlueTeeth"); -RDebugUtils.currentLine=20185100; - //BA.debugLineNum = 20185100;BA.debugLine="cmp20.Initialize(\"Printer\")"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Initialize("Printer"); -RDebugUtils.currentLine=20185102; - //BA.debugLineNum = 20185102;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=20185103; - //BA.debugLineNum = 20185103;BA.debugLine="e_comm.Text=\"\""; -__ref._e_comm /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=20185104; - //BA.debugLineNum = 20185104;BA.debugLine="r_1.Checked = False"; -__ref._r_1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=20185105; - //BA.debugLineNum = 20185105;BA.debugLine="r_2.Checked = False"; -__ref._r_2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=20185106; - //BA.debugLineNum = 20185106;BA.debugLine="r_3.Checked = False"; -__ref._r_3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=20185107; - //BA.debugLineNum = 20185107;BA.debugLine="r_4.Checked = False"; -__ref._r_4 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=20185108; - //BA.debugLineNum = 20185108;BA.debugLine="cb_reprogramar.Checked = False"; -__ref._cb_reprogramar /*anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper*/ .setChecked(__c.False); -RDebugUtils.currentLine=20185109; - //BA.debugLineNum = 20185109;BA.debugLine="End Sub"; -return ""; +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 33;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 34;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 35;BA.debugLine="End Sub"; +return null; } -public String _b4xpage_created(reparto_izca.keymon.lat.c_noventa __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=20119552; - //BA.debugLineNum = 20119552;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=20119553; - //BA.debugLineNum = 20119553;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=20119555; - //BA.debugLineNum = 20119555;BA.debugLine="Root.LoadLayout(\"no_venta\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("no_venta",ba); -RDebugUtils.currentLine=20119556; - //BA.debugLineNum = 20119556;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.SERVE"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=20119557; - //BA.debugLineNum = 20119557;BA.debugLine="End Sub"; -return ""; -} -public String _cancela_click(reparto_izca.keymon.lat.c_noventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "cancela_click", false)) - {return ((String) Debug.delegate(ba, "cancela_click", null));} -RDebugUtils.currentLine=20316160; - //BA.debugLineNum = 20316160;BA.debugLine="Sub CANCELA_Click"; -RDebugUtils.currentLine=20316161; - //BA.debugLineNum = 20316161;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; -_b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=20316162; - //BA.debugLineNum = 20316162;BA.debugLine="End Sub"; -return ""; -} -public String _cb_reprogramar_checkedchange(reparto_izca.keymon.lat.c_noventa __ref,boolean _checked) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "cb_reprogramar_checkedchange", false)) - {return ((String) Debug.delegate(ba, "cb_reprogramar_checkedchange", new Object[] {_checked}));} -RDebugUtils.currentLine=20578304; - //BA.debugLineNum = 20578304;BA.debugLine="Private Sub cb_reprogramar_CheckedChange(Checked A"; -RDebugUtils.currentLine=20578305; - //BA.debugLineNum = 20578305;BA.debugLine="If Checked Then"; -if (_checked) { -RDebugUtils.currentLine=20578306; - //BA.debugLineNum = 20578306;BA.debugLine="reprogramar = 1"; -__ref._reprogramar /*int*/ = (int) (1); - }else { -RDebugUtils.currentLine=20578308; - //BA.debugLineNum = 20578308;BA.debugLine="reprogramar = 0"; -__ref._reprogramar /*int*/ = (int) (0); - }; -RDebugUtils.currentLine=20578310; - //BA.debugLineNum = 20578310;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.c_noventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -RDebugUtils.currentLine=19988480; - //BA.debugLineNum = 19988480;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=19988481; - //BA.debugLineNum = 19988481;BA.debugLine="Private Root As B4XView 'ignore"; -_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=19988482; - //BA.debugLineNum = 19988482;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=19988483; - //BA.debugLineNum = 19988483;BA.debugLine="Dim g As GPS"; -_g = new anywheresoftware.b4a.gps.GPS(); -RDebugUtils.currentLine=19988484; - //BA.debugLineNum = 19988484;BA.debugLine="Dim c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=19988485; - //BA.debugLineNum = 19988485;BA.debugLine="Dim COMENTARIO As String"; -_comentario = ""; -RDebugUtils.currentLine=19988486; - //BA.debugLineNum = 19988486;BA.debugLine="Dim CANCELA As Button"; -_cancela = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=19988487; - //BA.debugLineNum = 19988487;BA.debugLine="Dim GUARDA As Button"; -_guarda = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=19988488; - //BA.debugLineNum = 19988488;BA.debugLine="Dim r_1 As RadioButton"; -_r_1 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=19988489; - //BA.debugLineNum = 19988489;BA.debugLine="Dim r_2 As RadioButton"; -_r_2 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=19988490; - //BA.debugLineNum = 19988490;BA.debugLine="Dim r_3 As RadioButton"; -_r_3 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=19988491; - //BA.debugLineNum = 19988491;BA.debugLine="Dim e_comm As EditText"; -_e_comm = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=19988492; - //BA.debugLineNum = 19988492;BA.debugLine="Dim motivo As String"; -_motivo = ""; -RDebugUtils.currentLine=19988493; - //BA.debugLineNum = 19988493;BA.debugLine="Dim cuenta As String"; -_cuenta = ""; -RDebugUtils.currentLine=19988494; - //BA.debugLineNum = 19988494;BA.debugLine="Dim usuario As String"; -_usuario = ""; -RDebugUtils.currentLine=19988495; - //BA.debugLineNum = 19988495;BA.debugLine="Dim sDate,sTime As String"; -_sdate = ""; -_stime = ""; -RDebugUtils.currentLine=19988496; - //BA.debugLineNum = 19988496;BA.debugLine="Dim r_4 As RadioButton"; -_r_4 = new anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper(); -RDebugUtils.currentLine=19988497; - //BA.debugLineNum = 19988497;BA.debugLine="Private p_principal As Panel"; -_p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=19988498; - //BA.debugLineNum = 19988498;BA.debugLine="Dim d As Cursor"; -_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=19988499; - //BA.debugLineNum = 19988499;BA.debugLine="Dim reqManager As DBRequestManager"; -_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager(); -RDebugUtils.currentLine=19988500; - //BA.debugLineNum = 19988500;BA.debugLine="Private cb_reprogramar As CheckBox"; -_cb_reprogramar = new anywheresoftware.b4a.objects.CompoundButtonWrapper.CheckBoxWrapper(); -RDebugUtils.currentLine=19988501; - //BA.debugLineNum = 19988501;BA.debugLine="Dim reprogramar As Int = 0"; -_reprogramar = (int) (0); -RDebugUtils.currentLine=19988502; - //BA.debugLineNum = 19988502;BA.debugLine="Dim PASA_IMP As String"; -_pasa_imp = ""; -RDebugUtils.currentLine=19988503; - //BA.debugLineNum = 19988503;BA.debugLine="Dim Printer1 As EscPosPrinter"; -_printer1 = new reparto_izca.keymon.lat.escposprinter(); -RDebugUtils.currentLine=19988504; - //BA.debugLineNum = 19988504;BA.debugLine="Dim impresoraConectada As Boolean = False"; -_impresoraconectada = __c.False; -RDebugUtils.currentLine=19988505; - //BA.debugLineNum = 19988505;BA.debugLine="Dim errorImpresora As Int = 0"; -_errorimpresora = (int) (0); -RDebugUtils.currentLine=19988506; - //BA.debugLineNum = 19988506;BA.debugLine="Dim cmp20 As Serial"; -_cmp20 = new anywheresoftware.b4a.objects.Serial(); -RDebugUtils.currentLine=19988507; - //BA.debugLineNum = 19988507;BA.debugLine="Dim btAdmin As BluetoothAdmin"; -_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin(); -RDebugUtils.currentLine=19988508; - //BA.debugLineNum = 19988508;BA.debugLine="Dim printer As TextWriter"; -_printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper(); -RDebugUtils.currentLine=19988509; - //BA.debugLineNum = 19988509;BA.debugLine="End Sub"; -return ""; -} -public String _gps_locationchanged(reparto_izca.keymon.lat.c_noventa __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "gps_locationchanged", false)) - {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));} -RDebugUtils.currentLine=20250624; - //BA.debugLineNum = 20250624;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; -RDebugUtils.currentLine=20250627; - //BA.debugLineNum = 20250627;BA.debugLine="End Sub"; -return ""; -} -public String _guarda_click(reparto_izca.keymon.lat.c_noventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "guarda_click", false)) - {return ((String) Debug.delegate(ba, "guarda_click", null));} -RDebugUtils.currentLine=20381696; - //BA.debugLineNum = 20381696;BA.debugLine="Sub GUARDA_Click"; -RDebugUtils.currentLine=20381697; - //BA.debugLineNum = 20381697;BA.debugLine="If r_1.Checked = False And r_2.Checked = False An"; -if (__ref._r_1 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.False && __ref._r_2 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.False && __ref._r_3 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.False && __ref._r_4 /*anywheresoftware.b4a.objects.CompoundButtonWrapper.RadioButtonWrapper*/ .getChecked()==__c.False) { -RDebugUtils.currentLine=20381698; - //BA.debugLineNum = 20381698;BA.debugLine="MsgboxAsync(\"Selecciona un motivo de rechazo\",\"A"; -__c.MsgboxAsync(BA.ObjectToCharSequence("Selecciona un motivo de rechazo"),BA.ObjectToCharSequence("Atención"),ba); - }else { -RDebugUtils.currentLine=20381700; - //BA.debugLineNum = 20381700;BA.debugLine="B_IMP_Click"; -__ref._b_imp_click /*void*/ (null); - }; -RDebugUtils.currentLine=20381703; - //BA.debugLineNum = 20381703;BA.debugLine="End Sub"; -return ""; -} -public String _jobdone(reparto_izca.keymon.lat.c_noventa __ref,reparto_izca.keymon.lat.httpjob _job) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "jobdone", false)) - {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));} +public String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{ reparto_izca.keymon.lat.dbrequestmanager._dbresult _resultado = null; String _cliente = ""; Object[] _records = null; String _k = ""; -RDebugUtils.currentLine=20512768; - //BA.debugLineNum = 20512768;BA.debugLine="Sub JobDone(Job As HttpJob)"; -RDebugUtils.currentLine=20512769; - //BA.debugLineNum = 20512769;BA.debugLine="Log(Job.Success)"; -__c.LogImpl("220512769",BA.ObjectToString(_job._success /*boolean*/ ),0); -RDebugUtils.currentLine=20512770; - //BA.debugLineNum = 20512770;BA.debugLine="If Job.Success = False Then"; + //BA.debugLineNum = 109;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 110;BA.debugLine="Log(Job.Success)"; +__c.LogImpl("019398657",BA.ObjectToString(_job._success /*boolean*/ ),0); + //BA.debugLineNum = 111;BA.debugLine="If Job.Success = False Then"; if (_job._success /*boolean*/ ==__c.False) { }else { -RDebugUtils.currentLine=20512773; - //BA.debugLineNum = 20512773;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job"; -__c.LogImpl("220512773","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); -RDebugUtils.currentLine=20512774; - //BA.debugLineNum = 20512774;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 114;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job"; +__c.LogImpl("019398661","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); + //BA.debugLineNum = 115;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=20512775; - //BA.debugLineNum = 20512775;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo"; -_resultado = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=20512776; - //BA.debugLineNum = 20512776;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_REPART"; + //BA.debugLineNum = 116;BA.debugLine="Dim resultado As DBResult = reqManager.HandleJo"; +_resultado = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 117;BA.debugLine="If resultado.Tag.As(String).IndexOf(\"ins_REPART"; if ((BA.ObjectToString(_resultado.Tag /*Object*/ )).indexOf("ins_REPARTOPendientes_head_")>-1) { -RDebugUtils.currentLine=20512777; - //BA.debugLineNum = 20512777;BA.debugLine="Private cliente As String= resultado.Tag"; + //BA.debugLineNum = 118;BA.debugLine="Private cliente As String= resultado.Tag"; _cliente = BA.ObjectToString(_resultado.Tag /*Object*/ ); -RDebugUtils.currentLine=20512778; - //BA.debugLineNum = 20512778;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_"; + //BA.debugLineNum = 119;BA.debugLine="cliente = cliente.SubString(cliente.IndexOf(\"_"; _cliente = _cliente.substring((int) (_cliente.indexOf("_")+24)); -RDebugUtils.currentLine=20512779; - //BA.debugLineNum = 20512779;BA.debugLine="Log($\"Cliente1:${cliente}\"$)"; -__c.LogImpl("220512779",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0); -RDebugUtils.currentLine=20512780; - //BA.debugLineNum = 20512780;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update REPARTO_GEO"; + //BA.debugLineNum = 120;BA.debugLine="Log($\"Cliente1:${cliente}\"$)"; +__c.LogImpl("019398667",("Cliente1:"+__c.SmartStringFormatter("",(Object)(_cliente))+""),0); + //BA.debugLineNum = 121;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update REPARTO_GEO"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update REPARTO_GEO SET ENVIO = ? WHERE CLIENTE = ? AND ENVIO <> ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"1",_cliente,"1"})); -RDebugUtils.currentLine=20512781; - //BA.debugLineNum = 20512781;BA.debugLine="For Each records() As Object In resultado.Rows"; + //BA.debugLineNum = 122;BA.debugLine="For Each records() As Object In resultado.Rows"; { final anywheresoftware.b4a.BA.IterableList group12 = _resultado.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen12 = group12.getSize() @@ -1059,8 +794,7 @@ final int groupLen12 = group12.getSize() ; for (; index12 < groupLen12;index12++){ _records = (Object[])(group12.Get(index12)); -RDebugUtils.currentLine=20512782; - //BA.debugLineNum = 20512782;BA.debugLine="For Each k As String In resultado.Columns.Key"; + //BA.debugLineNum = 123;BA.debugLine="For Each k As String In resultado.Columns.Key"; { final anywheresoftware.b4a.BA.IterableList group13 = _resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); final int groupLen13 = group13.getSize() @@ -1068,220 +802,157 @@ final int groupLen13 = group13.getSize() ; for (; index13 < groupLen13;index13++){ _k = BA.ObjectToString(group13.Get(index13)); -RDebugUtils.currentLine=20512783; - //BA.debugLineNum = 20512783;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record"; -__c.LogImpl("220512783",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); + //BA.debugLineNum = 124;BA.debugLine="Log(resultado.Tag & \": \" & k & \": \" & record"; +__c.LogImpl("019398671",BA.ObjectToString(_resultado.Tag /*Object*/ )+": "+_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_resultado.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); } }; } }; }; }; -RDebugUtils.currentLine=20512788; - //BA.debugLineNum = 20512788;BA.debugLine="Job.Release"; -_job._release /*String*/ (null); + //BA.debugLineNum = 129;BA.debugLine="Job.Release"; +_job._release /*String*/ (); }; -RDebugUtils.currentLine=20512791; - //BA.debugLineNum = 20512791;BA.debugLine="End Sub"; + //BA.debugLineNum = 132;BA.debugLine="End Sub"; return ""; } -public String _mandapendientesreparto(reparto_izca.keymon.lat.c_noventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "mandapendientesreparto", false)) - {return ((String) Debug.delegate(ba, "mandapendientesreparto", null));} -RDebugUtils.currentLine=20447232; - //BA.debugLineNum = 20447232;BA.debugLine="Sub mandaPendientesreparto"; -RDebugUtils.currentLine=20447248; - //BA.debugLineNum = 20447248;BA.debugLine="End Sub"; +public String _mandapendientesreparto() throws Exception{ + //BA.debugLineNum = 89;BA.debugLine="Sub mandaPendientesreparto"; + //BA.debugLineNum = 105;BA.debugLine="End Sub"; return ""; } -public String _printer_connected(reparto_izca.keymon.lat.c_noventa __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "printer_connected", false)) - {return ((String) Debug.delegate(ba, "printer_connected", new Object[] {_success}));} -RDebugUtils.currentLine=20905984; - //BA.debugLineNum = 20905984;BA.debugLine="Sub Printer_Connected (Success As Boolean)"; -RDebugUtils.currentLine=20905985; - //BA.debugLineNum = 20905985;BA.debugLine="If Success Then"; +public String _printer_connected(boolean _success) throws Exception{ + //BA.debugLineNum = 352;BA.debugLine="Sub Printer_Connected (Success As Boolean)"; + //BA.debugLineNum = 353;BA.debugLine="If Success Then"; if (_success) { -RDebugUtils.currentLine=20905987; - //BA.debugLineNum = 20905987;BA.debugLine="PASA_IMP = \"1\""; -__ref._pasa_imp /*String*/ = "1"; + //BA.debugLineNum = 355;BA.debugLine="PASA_IMP = \"1\""; +_pasa_imp = "1"; }else { -RDebugUtils.currentLine=20905990; - //BA.debugLineNum = 20905990;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel"; + //BA.debugLineNum = 358;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel"; if (__c.Msgbox2(BA.ObjectToCharSequence(""),BA.ObjectToCharSequence("Printer Error"),"Reprint","Cancel","",(android.graphics.Bitmap)(__c.Null),ba)==__c.DialogResponse.POSITIVE) { -RDebugUtils.currentLine=20905991; - //BA.debugLineNum = 20905991;BA.debugLine="StartPrinter"; -__ref._startprinter /*String*/ (null); + //BA.debugLineNum = 359;BA.debugLine="StartPrinter"; +_startprinter(); }; }; -RDebugUtils.currentLine=20905994; - //BA.debugLineNum = 20905994;BA.debugLine="End Sub"; + //BA.debugLineNum = 362;BA.debugLine="End Sub"; return ""; } -public String _startprinter(reparto_izca.keymon.lat.c_noventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "startprinter", false)) - {return ((String) Debug.delegate(ba, "startprinter", null));} +public String _printer1_connected(boolean _success) throws Exception{ + //BA.debugLineNum = 327;BA.debugLine="Sub Printer1_Connected (Success As Boolean)"; + //BA.debugLineNum = 329;BA.debugLine="If Success Then"; +if (_success) { + //BA.debugLineNum = 330;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False); + //BA.debugLineNum = 331;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_VARI"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("MACIMP")})); + //BA.debugLineNum = 332;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_VARI"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("MACIMP"),(Object)(_starter._mac_impresora /*String*/ )})); + //BA.debugLineNum = 335;BA.debugLine="impresoraConectada = True"; +_impresoraconectada = __c.True; + }else { + //BA.debugLineNum = 339;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors"; +__c.LogImpl("019660812","Error conectando la impresora",__c.Colors.Red); + //BA.debugLineNum = 340;BA.debugLine="errorImpresora = errorImpresora + 1"; +_errorimpresora = (int) (_errorimpresora+1); + //BA.debugLineNum = 341;BA.debugLine="If errorImpresora > 1 Then"; +if (_errorimpresora>1) { + //BA.debugLineNum = 342;BA.debugLine="Starter.MAC_IMPRESORA = \"0\""; +_starter._mac_impresora /*String*/ = "0"; + //BA.debugLineNum = 343;BA.debugLine="errorImpresora = 0"; +_errorimpresora = (int) (0); + }; + }; + //BA.debugLineNum = 346;BA.debugLine="End Sub"; +return ""; +} +public String _printer1_error() throws Exception{ + //BA.debugLineNum = 348;BA.debugLine="Sub Printer1_Error"; + //BA.debugLineNum = 349;BA.debugLine="Log(\"error printer\")"; +__c.LogImpl("019726337","error printer",0); + //BA.debugLineNum = 350;BA.debugLine="End Sub"; +return ""; +} +public String _startprinter() throws Exception{ anywheresoftware.b4a.objects.collections.Map _paireddevices = null; anywheresoftware.b4a.objects.collections.List _l1 = null; int _resimp = 0; int _i = 0; -RDebugUtils.currentLine=20971520; - //BA.debugLineNum = 20971520;BA.debugLine="Sub StartPrinter"; -RDebugUtils.currentLine=20971521; - //BA.debugLineNum = 20971521;BA.debugLine="Dim PairedDevices As Map"; + //BA.debugLineNum = 364;BA.debugLine="Sub StartPrinter"; + //BA.debugLineNum = 365;BA.debugLine="Dim PairedDevices As Map"; _paireddevices = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=20971522; - //BA.debugLineNum = 20971522;BA.debugLine="Dim L1 As List"; + //BA.debugLineNum = 366;BA.debugLine="Dim L1 As List"; _l1 = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=20971523; - //BA.debugLineNum = 20971523;BA.debugLine="Dim resimp As Int"; + //BA.debugLineNum = 367;BA.debugLine="Dim resimp As Int"; _resimp = 0; -RDebugUtils.currentLine=20971524; - //BA.debugLineNum = 20971524;BA.debugLine="ToastMessageShow(\"Printing.....\",True)"; + //BA.debugLineNum = 368;BA.debugLine="ToastMessageShow(\"Printing.....\",True)"; __c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True); -RDebugUtils.currentLine=20971525; - //BA.debugLineNum = 20971525;BA.debugLine="PairedDevices.Initialize"; + //BA.debugLineNum = 369;BA.debugLine="PairedDevices.Initialize"; _paireddevices.Initialize(); -RDebugUtils.currentLine=20971526; - //BA.debugLineNum = 20971526;BA.debugLine="Try"; -try {RDebugUtils.currentLine=20971527; - //BA.debugLineNum = 20971527;BA.debugLine="PairedDevices = cmp20.GetPairedDevices"; -_paireddevices = __ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .GetPairedDevices(); + //BA.debugLineNum = 370;BA.debugLine="Try"; +try { //BA.debugLineNum = 371;BA.debugLine="PairedDevices = cmp20.GetPairedDevices"; +_paireddevices = _cmp20.GetPairedDevices(); } catch (Exception e9) { - ba.setLastException(e9);RDebugUtils.currentLine=20971529; - //BA.debugLineNum = 20971529;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")"; + ba.setLastException(e9); //BA.debugLineNum = 373;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")"; __c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba); -RDebugUtils.currentLine=20971530; - //BA.debugLineNum = 20971530;BA.debugLine="printer.Close"; -__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close(); -RDebugUtils.currentLine=20971531; - //BA.debugLineNum = 20971531;BA.debugLine="cmp20.Disconnect"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect(); + //BA.debugLineNum = 374;BA.debugLine="printer.Close"; +_printer.Close(); + //BA.debugLineNum = 375;BA.debugLine="cmp20.Disconnect"; +_cmp20.Disconnect(); }; -RDebugUtils.currentLine=20971534; - //BA.debugLineNum = 20971534;BA.debugLine="If PairedDevices.Size = 0 Then"; + //BA.debugLineNum = 378;BA.debugLine="If PairedDevices.Size = 0 Then"; if (_paireddevices.getSize()==0) { -RDebugUtils.currentLine=20971535; - //BA.debugLineNum = 20971535;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No"; + //BA.debugLineNum = 379;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No"; __c.Msgbox(BA.ObjectToCharSequence("Error Connecting to Printer - Printer Not Found"),BA.ObjectToCharSequence(""),ba); -RDebugUtils.currentLine=20971536; - //BA.debugLineNum = 20971536;BA.debugLine="Return"; + //BA.debugLineNum = 380;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=20971539; - //BA.debugLineNum = 20971539;BA.debugLine="If PairedDevices.Size = 1 Then"; + //BA.debugLineNum = 383;BA.debugLine="If PairedDevices.Size = 1 Then"; if (_paireddevices.getSize()==1) { -RDebugUtils.currentLine=20971540; - //BA.debugLineNum = 20971540;BA.debugLine="Try"; -try {RDebugUtils.currentLine=20971541; - //BA.debugLineNum = 20971541;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(_paireddevices.Get(_paireddevices.GetKeyAt((int) (0))))); + //BA.debugLineNum = 384;BA.debugLine="Try"; +try { //BA.debugLineNum = 385;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G"; +_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_paireddevices.GetKeyAt((int) (0))))); } catch (Exception e21) { - ba.setLastException(e21);RDebugUtils.currentLine=20971543; - //BA.debugLineNum = 20971543;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore"; + ba.setLastException(e21); //BA.debugLineNum = 387;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore"; __c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba); -RDebugUtils.currentLine=20971544; - //BA.debugLineNum = 20971544;BA.debugLine="printer.Close"; -__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close(); -RDebugUtils.currentLine=20971545; - //BA.debugLineNum = 20971545;BA.debugLine="cmp20.Disconnect"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect(); + //BA.debugLineNum = 388;BA.debugLine="printer.Close"; +_printer.Close(); + //BA.debugLineNum = 389;BA.debugLine="cmp20.Disconnect"; +_cmp20.Disconnect(); }; }else { -RDebugUtils.currentLine=20971548; - //BA.debugLineNum = 20971548;BA.debugLine="L1.Initialize"; + //BA.debugLineNum = 392;BA.debugLine="L1.Initialize"; _l1.Initialize(); -RDebugUtils.currentLine=20971549; - //BA.debugLineNum = 20971549;BA.debugLine="For i = 0 To PairedDevices.Size - 1"; + //BA.debugLineNum = 393;BA.debugLine="For i = 0 To PairedDevices.Size - 1"; { final int step27 = 1; final int limit27 = (int) (_paireddevices.getSize()-1); _i = (int) (0) ; for (;_i <= limit27 ;_i = _i + step27 ) { -RDebugUtils.currentLine=20971550; - //BA.debugLineNum = 20971550;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))"; + //BA.debugLineNum = 394;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))"; _l1.Add(_paireddevices.GetKeyAt(_i)); } }; -RDebugUtils.currentLine=20971552; - //BA.debugLineNum = 20971552;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign"; + //BA.debugLineNum = 396;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign"; _resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba); -RDebugUtils.currentLine=20971553; - //BA.debugLineNum = 20971553;BA.debugLine="If resimp <> DialogResponse.CANCEL Then"; + //BA.debugLineNum = 397;BA.debugLine="If resimp <> DialogResponse.CANCEL Then"; if (_resimp!=__c.DialogResponse.CANCEL) { -RDebugUtils.currentLine=20971554; - //BA.debugLineNum = 20971554;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp)))); + //BA.debugLineNum = 398;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))"; +_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp)))); }; }; -RDebugUtils.currentLine=20971557; - //BA.debugLineNum = 20971557;BA.debugLine="End Sub"; + //BA.debugLineNum = 401;BA.debugLine="End Sub"; return ""; } -public String _printer1_connected(reparto_izca.keymon.lat.c_noventa __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "printer1_connected", false)) - {return ((String) Debug.delegate(ba, "printer1_connected", new Object[] {_success}));} -RDebugUtils.currentLine=20774912; - //BA.debugLineNum = 20774912;BA.debugLine="Sub Printer1_Connected (Success As Boolean)"; -RDebugUtils.currentLine=20774914; - //BA.debugLineNum = 20774914;BA.debugLine="If Success Then"; -if (_success) { -RDebugUtils.currentLine=20774915; - //BA.debugLineNum = 20774915;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)"; -__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False); -RDebugUtils.currentLine=20774916; - //BA.debugLineNum = 20774916;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")})); -RDebugUtils.currentLine=20774917; - //BA.debugLineNum = 20774917;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*/ )})); -RDebugUtils.currentLine=20774920; - //BA.debugLineNum = 20774920;BA.debugLine="impresoraConectada = True"; -__ref._impresoraconectada /*boolean*/ = __c.True; - }else { -RDebugUtils.currentLine=20774924; - //BA.debugLineNum = 20774924;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors"; -__c.LogImpl("220774924","Error conectando la impresora",__c.Colors.Red); -RDebugUtils.currentLine=20774925; - //BA.debugLineNum = 20774925;BA.debugLine="errorImpresora = errorImpresora + 1"; -__ref._errorimpresora /*int*/ = (int) (__ref._errorimpresora /*int*/ +1); -RDebugUtils.currentLine=20774926; - //BA.debugLineNum = 20774926;BA.debugLine="If errorImpresora > 1 Then"; -if (__ref._errorimpresora /*int*/ >1) { -RDebugUtils.currentLine=20774927; - //BA.debugLineNum = 20774927;BA.debugLine="Starter.MAC_IMPRESORA = \"0\""; -_starter._mac_impresora /*String*/ = "0"; -RDebugUtils.currentLine=20774928; - //BA.debugLineNum = 20774928;BA.debugLine="errorImpresora = 0"; -__ref._errorimpresora /*int*/ = (int) (0); - }; - }; -RDebugUtils.currentLine=20774931; - //BA.debugLineNum = 20774931;BA.debugLine="End Sub"; -return ""; +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED")) + return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]); +if (BA.fastSubCompare(sub, "JOBDONE")) + return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]); +return BA.SubDelegator.SubNotFound; } -public String _printer1_error(reparto_izca.keymon.lat.c_noventa __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_noventa"; -if (Debug.shouldDelegate(ba, "printer1_error", false)) - {return ((String) Debug.delegate(ba, "printer1_error", null));} -RDebugUtils.currentLine=20840448; - //BA.debugLineNum = 20840448;BA.debugLine="Sub Printer1_Error"; -RDebugUtils.currentLine=20840449; - //BA.debugLineNum = 20840449;BA.debugLine="Log(\"error printer\")"; -__c.LogImpl("220840449","error printer",0); -RDebugUtils.currentLine=20840450; - //BA.debugLineNum = 20840450;BA.debugLine="End Sub"; -return ""; } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_nuevocliente.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_nuevocliente.java index 0aef71a..04664aa 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_nuevocliente.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_nuevocliente.java @@ -10,7 +10,7 @@ public class c_nuevocliente extends B4AClass.ImplB4AClass implements BA.SubDeleg private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_nuevocliente"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_nuevocliente"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_nuevocliente extends B4AClass.ImplB4AClass implements BA.SubDeleg ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -47,48 +40,34 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_nuevocliente __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +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); -RDebugUtils.currentModule="c_nuevocliente"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=21102592; - //BA.debugLineNum = 21102592;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=21102593; - //BA.debugLineNum = 21102593;BA.debugLine="Return Me"; + //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 8;BA.debugLine="Return Me"; if (true) return this; -RDebugUtils.currentLine=21102594; - //BA.debugLineNum = 21102594;BA.debugLine="End Sub"; + //BA.debugLineNum = 9;BA.debugLine="End Sub"; return null; } -public String _b4xpage_created(reparto_izca.keymon.lat.c_nuevocliente __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_nuevocliente"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=21168128; - //BA.debugLineNum = 21168128;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=21168129; - //BA.debugLineNum = 21168129;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=21168132; - //BA.debugLineNum = 21168132;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; } -public String _class_globals(reparto_izca.keymon.lat.c_nuevocliente __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_nuevocliente"; -RDebugUtils.currentLine=21037056; - //BA.debugLineNum = 21037056;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=21037057; - //BA.debugLineNum = 21037057;BA.debugLine="Private Root As B4XView 'ignore"; -_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=21037058; - //BA.debugLineNum = 21037058;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=21037059; - //BA.debugLineNum = 21037059;BA.debugLine="End Sub"; -return ""; } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_pedidos.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_pedidos.java index c870a41..1bc82a1 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_pedidos.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_pedidos.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_pedidos"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_pedidos"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_pedidos extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -47,48 +40,34 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_pedidos __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +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); -RDebugUtils.currentModule="c_pedidos"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=21299200; - //BA.debugLineNum = 21299200;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=21299201; - //BA.debugLineNum = 21299201;BA.debugLine="Return Me"; + //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 8;BA.debugLine="Return Me"; if (true) return this; -RDebugUtils.currentLine=21299202; - //BA.debugLineNum = 21299202;BA.debugLine="End Sub"; + //BA.debugLineNum = 9;BA.debugLine="End Sub"; return null; } -public String _b4xpage_created(reparto_izca.keymon.lat.c_pedidos __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_pedidos"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=21364736; - //BA.debugLineNum = 21364736;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=21364737; - //BA.debugLineNum = 21364737;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=21364740; - //BA.debugLineNum = 21364740;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; } -public String _class_globals(reparto_izca.keymon.lat.c_pedidos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_pedidos"; -RDebugUtils.currentLine=21233664; - //BA.debugLineNum = 21233664;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=21233665; - //BA.debugLineNum = 21233665;BA.debugLine="Private Root As B4XView 'ignore"; -_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=21233666; - //BA.debugLineNum = 21233666;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=21233667; - //BA.debugLineNum = 21233667;BA.debugLine="End Sub"; -return ""; } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_principal.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_principal.java index 71800db..566322c 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_principal.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_principal.java @@ -10,7 +10,7 @@ public class c_principal extends B4AClass.ImplB4AClass implements BA.SubDelegato private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_principal"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_principal"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_principal extends B4AClass.ImplB4AClass implements BA.SubDelegato ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4a.objects.B4XViewWrapper _root = null; public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; public reparto_izca.keymon.lat.dbrequestmanager _reqmanager = null; @@ -176,219 +169,1990 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_principal __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=15532032; - //BA.debugLineNum = 15532032;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=15532033; - //BA.debugLineNum = 15532033;BA.debugLine="Return Me"; -if (true) return this; -RDebugUtils.currentLine=15532034; - //BA.debugLineNum = 15532034;BA.debugLine="End Sub"; -return null; -} -public String _checachek(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "checachek", false)) - {return ((String) Debug.delegate(ba, "checachek", null));} -RDebugUtils.currentLine=15728640; - //BA.debugLineNum = 15728640;BA.debugLine="Sub checachek"; -RDebugUtils.currentLine=15728641; - //BA.debugLineNum = 15728641;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT CHECADO FROM"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CHECADO FROM CHECADO_CHECK"))); -RDebugUtils.currentLine=15728642; - //BA.debugLineNum = 15728642;BA.debugLine="If b.RowCount > 0 Then"; -if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=15728643; - //BA.debugLineNum = 15728643;BA.debugLine="b.Position = 0"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15728644; - //BA.debugLineNum = 15728644;BA.debugLine="If b.GetString(\"CHECADO\") = 0 Then"; -if ((__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CHECADO")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=15728645; - //BA.debugLineNum = 15728645;BA.debugLine="b_check.Visible = True"; -__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); - }else -{RDebugUtils.currentLine=15728646; - //BA.debugLineNum = 15728646;BA.debugLine="Else If b.GetString(\"CHECADO\") = 1 Then"; -if ((__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CHECADO")).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=15728647; - //BA.debugLineNum = 15728647;BA.debugLine="b_check.Visible =False"; -__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); - }} -; -RDebugUtils.currentLine=15728649; - //BA.debugLineNum = 15728649;BA.debugLine="b.Close"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }; -RDebugUtils.currentLine=15728651; - //BA.debugLineNum = 15728651;BA.debugLine="End Sub"; -return ""; -} -public String _b_aceptar_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_aceptar_click", false)) - {return ((String) Debug.delegate(ba, "b_aceptar_click", null));} -RDebugUtils.currentLine=18546688; - //BA.debugLineNum = 18546688;BA.debugLine="Private Sub b_aceptar_Click"; -RDebugUtils.currentLine=18546689; - //BA.debugLineNum = 18546689;BA.debugLine="If et_codigo.Text <> \"\" Then"; -if ((__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { -RDebugUtils.currentLine=18546691; - //BA.debugLineNum = 18546691;BA.debugLine="Dim cmd As DBCommand"; +public String _b_aceptar_click() throws Exception{ + //BA.debugLineNum = 3885;BA.debugLine="Private Sub b_aceptar_Click"; + //BA.debugLineNum = 3886;BA.debugLine="If et_codigo.Text <> \"\" Then"; +if ((_et_codigo.getText()).equals("") == false) { + //BA.debugLineNum = 3888;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=18546692; - //BA.debugLineNum = 18546692;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=18546693; - //BA.debugLineNum = 18546693;BA.debugLine="cmd.Name = \"select_PASS_IZCA_REPG\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_PASS_IZCA_REPG"; -RDebugUtils.currentLine=18546694; - //BA.debugLineNum = 18546694;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=18546695; - //BA.debugLineNum = 18546695;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"contra\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("contra")); + //BA.debugLineNum = 3889;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 3890;BA.debugLine="cmd.Name = \"select_PASS_IZCA_REPG\""; +_cmd.Name /*String*/ = "select_PASS_IZCA_REPG"; + //BA.debugLineNum = 3891;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 3892;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"contra\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("contra")); }; -RDebugUtils.currentLine=18546698; - //BA.debugLineNum = 18546698;BA.debugLine="End Sub"; + //BA.debugLineNum = 3895;BA.debugLine="End Sub"; return ""; } -public String _b_cancelarcodigo_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_cancelarcodigo_click", false)) - {return ((String) Debug.delegate(ba, "b_cancelarcodigo_click", null));} -RDebugUtils.currentLine=18612224; - //BA.debugLineNum = 18612224;BA.debugLine="Private Sub b_cancelarcodigo_Click"; -RDebugUtils.currentLine=18612225; - //BA.debugLineNum = 18612225;BA.debugLine="p_validacion.Visible = False"; -__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=18612226; - //BA.debugLineNum = 18612226;BA.debugLine="et_codigo.Text = \"\""; -__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=18612227; - //BA.debugLineNum = 18612227;BA.debugLine="End Sub"; +public String _b_cancelarcodigo_click() throws Exception{ + //BA.debugLineNum = 3897;BA.debugLine="Private Sub b_cancelarcodigo_Click"; + //BA.debugLineNum = 3898;BA.debugLine="p_validacion.Visible = False"; +_p_validacion.setVisible(__c.False); + //BA.debugLineNum = 3899;BA.debugLine="et_codigo.Text = \"\""; +_et_codigo.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 3900;BA.debugLine="End Sub"; return ""; } -public String _b_carga_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_carga_click", false)) - {return ((String) Debug.delegate(ba, "b_carga_click", null));} +public String _b_carga_click() throws Exception{ anywheresoftware.b4a.sql.SQL.CursorWrapper _checagestion = null; -RDebugUtils.currentLine=17629184; - //BA.debugLineNum = 17629184;BA.debugLine="Private Sub B_carga_Click"; -RDebugUtils.currentLine=17629185; - //BA.debugLineNum = 17629185;BA.debugLine="If L_carga.Text = \"LISTO\" And l_carga2.Text = \"LI"; -if ((__ref._l_carga /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO") && (__ref._l_carga2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("LISTO")) { -RDebugUtils.currentLine=17629186; - //BA.debugLineNum = 17629186;BA.debugLine="P_carga.Visible = False"; -__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 3089;BA.debugLine="Private Sub B_carga_Click"; + //BA.debugLineNum = 3090;BA.debugLine="If L_carga.Text = \"LISTO\" And l_carga2.Text = \"LI"; +if ((_l_carga.getText()).equals("LISTO") && (_l_carga2.getText()).equals("LISTO")) { + //BA.debugLineNum = 3091;BA.debugLine="P_carga.Visible = False"; +_p_carga.setVisible(__c.False); }else { -RDebugUtils.currentLine=17629188; - //BA.debugLineNum = 17629188;BA.debugLine="Dim checagestion As Cursor = Starter.skmt.ExecQu"; + //BA.debugLineNum = 3093;BA.debugLine="Dim checagestion As Cursor = Starter.skmt.ExecQu"; _checagestion = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _checagestion = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM NOVENTA"))); -RDebugUtils.currentLine=17629189; - //BA.debugLineNum = 17629189;BA.debugLine="If checagestion.RowCount = 0 Then"; + //BA.debugLineNum = 3094;BA.debugLine="If checagestion.RowCount = 0 Then"; if (_checagestion.getRowCount()==0) { -RDebugUtils.currentLine=17629190; - //BA.debugLineNum = 17629190;BA.debugLine="P_carga.Visible = False"; -__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=17629191; - //BA.debugLineNum = 17629191;BA.debugLine="e_ruta.Text = \"\""; -__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=17629192; - //BA.debugLineNum = 17629192;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE"; + //BA.debugLineNum = 3095;BA.debugLine="P_carga.Visible = False"; +_p_carga.setVisible(__c.False); + //BA.debugLineNum = 3096;BA.debugLine="e_ruta.Text = \"\""; +_e_ruta.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 3097;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PICK_CIEGO"); -RDebugUtils.currentLine=17629193; - //BA.debugLineNum = 17629193;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c"; + //BA.debugLineNum = 3098;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente"); -RDebugUtils.currentLine=17629194; - //BA.debugLineNum = 17629194;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\""; + //BA.debugLineNum = 3099;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PAGARES"); -RDebugUtils.currentLine=17629195; - //BA.debugLineNum = 17629195;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_"; + //BA.debugLineNum = 3100;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECADO_CHECK"); -RDebugUtils.currentLine=17629196; - //BA.debugLineNum = 17629196;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS"; + //BA.debugLineNum = 3101;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECKLIST2"); -RDebugUtils.currentLine=17629197; - //BA.debugLineNum = 17629197;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")"; + //BA.debugLineNum = 3102;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido"); -RDebugUtils.currentLine=17629198; - //BA.debugLineNum = 17629198;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\""; + //BA.debugLineNum = 3103;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa"); -RDebugUtils.currentLine=17629199; - //BA.debugLineNum = 17629199;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act"; + //BA.debugLineNum = 3104;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act"); -RDebugUtils.currentLine=17629200; - //BA.debugLineNum = 17629200;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info"; + //BA.debugLineNum = 3105;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info"); -RDebugUtils.currentLine=17629201; - //BA.debugLineNum = 17629201;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; + //BA.debugLineNum = 3106;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod"); -RDebugUtils.currentLine=17629202; - //BA.debugLineNum = 17629202;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; + //BA.debugLineNum = 3107;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3"); -RDebugUtils.currentLine=17629203; - //BA.debugLineNum = 17629203;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA"; + //BA.debugLineNum = 3108;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ"); -RDebugUtils.currentLine=17629204; - //BA.debugLineNum = 17629204;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; + //BA.debugLineNum = 3109;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS"); -RDebugUtils.currentLine=17629205; - //BA.debugLineNum = 17629205;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\""; + //BA.debugLineNum = 3110;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO"); -RDebugUtils.currentLine=17629206; - //BA.debugLineNum = 17629206;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO"; + //BA.debugLineNum = 3111;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS"); -RDebugUtils.currentLine=17629207; - //BA.debugLineNum = 17629207;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO"; + //BA.debugLineNum = 3112;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES"); -RDebugUtils.currentLine=17629208; - //BA.debugLineNum = 17629208;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")"; + //BA.debugLineNum = 3113;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA"); -RDebugUtils.currentLine=17629209; - //BA.debugLineNum = 17629209;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\""; + //BA.debugLineNum = 3114;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP"); -RDebugUtils.currentLine=17629210; - //BA.debugLineNum = 17629210;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")"; + //BA.debugLineNum = 3115;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOS"); -RDebugUtils.currentLine=17629211; - //BA.debugLineNum = 17629211;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV"; + //BA.debugLineNum = 3116;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BLOCKENVIO"); -RDebugUtils.currentLine=17629212; - //BA.debugLineNum = 17629212;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=17629213; - //BA.debugLineNum = 17629213;BA.debugLine="MsgboxAsync(\"No se cargo bien la informacion, f"; + //BA.debugLineNum = 3117;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 3118;BA.debugLine="MsgboxAsync(\"No se cargo bien la informacion, f"; __c.MsgboxAsync(BA.ObjectToCharSequence("No se cargo bien la informacion, favor de cargar dĆ­a nuevamente"),BA.ObjectToCharSequence("Atención"),ba); }else { -RDebugUtils.currentLine=17629215; - //BA.debugLineNum = 17629215;BA.debugLine="MsgboxAsync(\"No se cargo bien la informacion, f"; + //BA.debugLineNum = 3120;BA.debugLine="MsgboxAsync(\"No se cargo bien la informacion, f"; __c.MsgboxAsync(BA.ObjectToCharSequence("No se cargo bien la informacion, favor de cargar dĆ­a nuevamente"),BA.ObjectToCharSequence("Atención"),ba); -RDebugUtils.currentLine=17629216; - //BA.debugLineNum = 17629216;BA.debugLine="P_carga.Visible = False"; -__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 3121;BA.debugLine="P_carga.Visible = False"; +_p_carga.setVisible(__c.False); }; }; -RDebugUtils.currentLine=17629219; - //BA.debugLineNum = 17629219;BA.debugLine="End Sub"; + //BA.debugLineNum = 3124;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} +public String _b_check_click() throws Exception{ + //BA.debugLineNum = 2955;BA.debugLine="Private Sub b_check_Click"; + //BA.debugLineNum = 2957;BA.debugLine="B4XPages.ShowPage(\"checklist\")"; +_b4xpages._showpage /*String*/ (ba,"checklist"); + //BA.debugLineNum = 2959;BA.debugLine="End Sub"; +return ""; +} +public String _b_clieprod_click() throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _ch = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _ch1 = null; +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +anywheresoftware.b4a.objects.LabelWrapper _label2 = null; +int _i = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null; +String _cuenta0 = ""; +String _arti = ""; +int _hjf = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _vc2 = null; +String _cuenta1 = ""; +String _arti1 = ""; +int _h = 0; +float _preu = 0f; +anywheresoftware.b4a.sql.SQL.CursorWrapper _vc3 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _vc4 = null; +String _cuenta2 = ""; +String _arti2 = ""; +int _k = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null; +String _cuenta3 = ""; +String _arti3 = ""; +int _x = 0; +String _totalmonto = ""; +String _totalcantidad = ""; + //BA.debugLineNum = 2684;BA.debugLine="Sub B_CLIEPROD_Click"; + //BA.debugLineNum = 2685;BA.debugLine="If b_check.Visible = True Then"; +if (_b_check.getVisible()==__c.True) { + //BA.debugLineNum = 2686;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba); + }else { + //BA.debugLineNum = 2688;BA.debugLine="BUSCA.Visible = True"; +_busca.setVisible(__c.True); + //BA.debugLineNum = 2689;BA.debugLine="connecta.Visible = False"; +_connecta.setVisible(__c.False); + //BA.debugLineNum = 2690;BA.debugLine="trabajar.Visible = True"; +_trabajar.setVisible(__c.True); + //BA.debugLineNum = 2691;BA.debugLine="B_CLIEPROD.Visible = True"; +_b_clieprod.setVisible(__c.True); + //BA.debugLineNum = 2692;BA.debugLine="Panel1.Visible = True"; +_panel1.setVisible(__c.True); + //BA.debugLineNum = 2693;BA.debugLine="Panel1.BringToFront"; +_panel1.BringToFront(); + //BA.debugLineNum = 2694;BA.debugLine="Panel1.Width = Root.Width"; +_panel1.setWidth(_root.getWidth()); + //BA.debugLineNum = 2695;BA.debugLine="Panel1.Height = Root.Height"; +_panel1.setHeight(_root.getHeight()); + //BA.debugLineNum = 2696;BA.debugLine="B_REGRESA.Top = Panel1.Height - B_REGRESA.Height"; +_b_regresa.setTop((int) (_panel1.getHeight()-_b_regresa.getHeight())); + //BA.debugLineNum = 2697;BA.debugLine="Btn_Ubicar_Ru.Visible=True"; +_btn_ubicar_ru.setVisible(__c.True); + //BA.debugLineNum = 2699;BA.debugLine="Dim ch As Cursor = Starter.skmt.ExecQuery(\"selec"; +_ch = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_ch = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as visit from kmt_info WHERE gestion = 2"))); + //BA.debugLineNum = 2700;BA.debugLine="ch.Position = 0"; +_ch.setPosition((int) (0)); + //BA.debugLineNum = 2701;BA.debugLine="L_clientes_visit.Text = ch.GetInt(\"visit\")"; +_l_clientes_visit.setText(BA.ObjectToCharSequence(_ch.GetInt("visit"))); + //BA.debugLineNum = 2703;BA.debugLine="Dim ch1 As Cursor = Starter.skmt.ExecQuery(\"sele"; +_ch1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_ch1 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as rechazo from kmt_info WHERE gestion = 3"))); + //BA.debugLineNum = 2704;BA.debugLine="ch1.Position = 0"; +_ch1.setPosition((int) (0)); + //BA.debugLineNum = 2705;BA.debugLine="l_clientes_recha.Text = ch1.GetInt(\"rechazo\")"; +_l_clientes_recha.setText(BA.ObjectToCharSequence(_ch1.GetInt("rechazo"))); + //BA.debugLineNum = 2706;BA.debugLine="l_clientes_visitados.Text = ch1.GetInt(\"rechazo\""; +_l_clientes_visitados.setText(BA.ObjectToCharSequence(_ch1.GetInt("rechazo")+_ch.GetInt("visit"))); + //BA.debugLineNum = 2708;BA.debugLine="c=Starter.skmt.ExecQuery(\"select distinct(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 distinct(CAT_CL_CODIGO), GESTION, CAT_CL_NOMBRE from kmt_info WHERE gestion <> 0 order by HORAENT"))); + //BA.debugLineNum = 2709;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2)); + //BA.debugLineNum = 2710;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 2711;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 2712;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 2713;BA.debugLine="label1.TextSize = 16"; +_label1.setTextSize((float) (16)); + //BA.debugLineNum = 2714;BA.debugLine="label1.TextColor = Colors.Black"; +_label1.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 2715;BA.debugLine="Dim label2 As Label"; +_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 2716;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 2717;BA.debugLine="label2.TextSize = 16"; +_label2.setTextSize((float) (16)); + //BA.debugLineNum = 2718;BA.debugLine="label2.TextColor = Colors.Black"; +_label2.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 2720;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 2721;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step33 = 1; +final int limit33 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit33 ;_i = _i + step33 ) { + //BA.debugLineNum = 2722;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 2723;BA.debugLine="If c.GetString(\"gestion\") = \"2\" Then"; +if ((_c.GetString("gestion")).equals("2")) { + //BA.debugLineNum = 2724;BA.debugLine="ESTATUS = \"ENTREGADO\""; +_estatus = "ENTREGADO"; + //BA.debugLineNum = 2725;BA.debugLine="Log(\"entrega\")"; +__c.LogImpl("015728681","entrega",0); + }else if((_c.GetString("gestion")).equals("3")) { + //BA.debugLineNum = 2727;BA.debugLine="Log(\"no entrega\")"; +__c.LogImpl("015728683","no entrega",0); + //BA.debugLineNum = 2728;BA.debugLine="ESTATUS = \"RECHAZADO\""; +_estatus = "RECHAZADO"; + }else { + //BA.debugLineNum = 2730;BA.debugLine="ESTATUS = \"SIN ESTATUS\""; +_estatus = "SIN ESTATUS"; + }; + //BA.debugLineNum = 2735;BA.debugLine="If ESTATUS = \"ENTREGADO\" Then"; +if ((_estatus).equals("ENTREGADO")) { + //BA.debugLineNum = 2736;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery"; +_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"'")))); + //BA.debugLineNum = 2738;BA.debugLine="Private cuenta0 As String = 0"; +_cuenta0 = BA.NumberToString(0); + //BA.debugLineNum = 2739;BA.debugLine="Private arti As String = 0"; +_arti = BA.NumberToString(0); + //BA.debugLineNum = 2740;BA.debugLine="If vc.RowCount > 0 Then"; +if (_vc.getRowCount()>0) { + //BA.debugLineNum = 2741;BA.debugLine="For hjf = 0 To vc.RowCount - 1"; +{ +final int step49 = 1; +final int limit49 = (int) (_vc.getRowCount()-1); +_hjf = (int) (0) ; +for (;_hjf <= limit49 ;_hjf = _hjf + step49 ) { + //BA.debugLineNum = 2742;BA.debugLine="vc.Position = hjf"; +_vc.setPosition(_hjf); + //BA.debugLineNum = 2744;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - v"; +_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))); + //BA.debugLineNum = 2745;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_CAN"; +_cuenta0 = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc.GetString("HVD_CANT")))))); + } +}; + }; + //BA.debugLineNum = 2750;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuer"; +_vc2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_vc2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 1")))); + //BA.debugLineNum = 2751;BA.debugLine="Private Cuenta1 As String = 0"; +_cuenta1 = BA.NumberToString(0); + //BA.debugLineNum = 2752;BA.debugLine="Private arti1 As String = 0"; +_arti1 = BA.NumberToString(0); + //BA.debugLineNum = 2753;BA.debugLine="If vc2.RowCount > 0 Then"; +if (_vc2.getRowCount()>0) { + //BA.debugLineNum = 2754;BA.debugLine="For h = 0 To vc2.RowCount - 1"; +{ +final int step59 = 1; +final int limit59 = (int) (_vc2.getRowCount()-1); +_h = (int) (0) ; +for (;_h <= limit59 ;_h = _h + step59 ) { + //BA.debugLineNum = 2755;BA.debugLine="vc2.Position = h"; +_vc2.setPosition(_h); + //BA.debugLineNum = 2756;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetSt"; +_preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc2.GetString("CANTC"))),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 2757;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQu"; +_vc3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_vc3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc2.GetString("HVD_PROID")))+"'")))); + //BA.debugLineNum = 2758;BA.debugLine="If vc3.RowCount > 0 Then"; +if (_vc3.getRowCount()>0) { + //BA.debugLineNum = 2759;BA.debugLine="vc3.Position = 0"; +_vc3.setPosition((int) (0)); + //BA.debugLineNum = 2760;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC"; +_cuenta1 = BA.NumberToString((double)(Double.parseDouble(_cuenta1))+(((double)(Double.parseDouble(_vc2.GetString("CANTC")))-((double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))/(double)(double)(Double.parseDouble(_vc3.GetString("CONVERSION")))))*_preu)); + //BA.debugLineNum = 2761;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\")"; +_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+((double)(Double.parseDouble(_vc2.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT"))))); + }; + } +}; + }; + //BA.debugLineNum = 2767;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuer"; +_vc4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_vc4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"'")))); + //BA.debugLineNum = 2768;BA.debugLine="Private Cuenta2 As String = 0"; +_cuenta2 = BA.NumberToString(0); + //BA.debugLineNum = 2769;BA.debugLine="Private arti2 As String = 0"; +_arti2 = BA.NumberToString(0); + //BA.debugLineNum = 2770;BA.debugLine="If vc4.RowCount > 0 Then"; +if (_vc4.getRowCount()>0) { + //BA.debugLineNum = 2772;BA.debugLine="For k = 0 To vc4.RowCount - 1"; +{ +final int step74 = 1; +final int limit74 = (int) (_vc4.getRowCount()-1); +_k = (int) (0) ; +for (;_k <= limit74 ;_k = _k + step74 ) { + //BA.debugLineNum = 2773;BA.debugLine="vc4.Position = k"; +_vc4.setPosition(_k); + //BA.debugLineNum = 2774;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr"; +if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { + //BA.debugLineNum = 2775;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then"; +if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 2776;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_CO"; +_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT")))); + //BA.debugLineNum = 2777;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")"; +_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))); + }else { + //BA.debugLineNum = 2779;BA.debugLine="Private vc5 As Cursor = Starter.skmt.Exec"; +_vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc4.GetString("HVD_PROID")))+"'")))); + //BA.debugLineNum = 2780;BA.debugLine="If vc5.RowCount > 0 Then"; +if (_vc5.getRowCount()>0) { + //BA.debugLineNum = 2781;BA.debugLine="vc5.Position= 0"; +_vc5.setPosition((int) (0)); + //BA.debugLineNum = 2783;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_"; +_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_vc5.GetString("CAT_GP_PRECIO"))))); + //BA.debugLineNum = 2784;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\""; +_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))); + }; + }; + }; + } +}; + }; + //BA.debugLineNum = 2793;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery"; +_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"'")))); + //BA.debugLineNum = 2794;BA.debugLine="Private Cuenta3 As String = 0"; +_cuenta3 = BA.NumberToString(0); + //BA.debugLineNum = 2795;BA.debugLine="Private arti3 As String = 0"; +_arti3 = BA.NumberToString(0); + //BA.debugLineNum = 2796;BA.debugLine="If c4.RowCount > 0 Then"; +if (_c4.getRowCount()>0) { + //BA.debugLineNum = 2797;BA.debugLine="For x = 0 To c4.RowCount -1"; +{ +final int step95 = 1; +final int limit95 = (int) (_c4.getRowCount()-1); +_x = (int) (0) ; +for (;_x <= limit95 ;_x = _x + step95 ) { + //BA.debugLineNum = 2798;BA.debugLine="c4.Position = x"; +_c4.setPosition(_x); + //BA.debugLineNum = 2799;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")"; +_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT")))); + //BA.debugLineNum = 2800;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_"; +_cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT")))); + } +}; + }; + //BA.debugLineNum = 2805;BA.debugLine="Private TOTALMONTO As String = cuenta0 + Cuen"; +_totalmonto = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))); + //BA.debugLineNum = 2806;BA.debugLine="Private TOTALcantidad As String = arti + arti"; +_totalcantidad = BA.NumberToString((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))); + //BA.debugLineNum = 2808;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_COD"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO")+" - "+_c.GetString("CAT_CL_NOMBRE")),BA.ObjectToCharSequence("Articulos :"+_totalcantidad+" Monto :"+__c.NumberFormat2((double)(Double.parseDouble(_totalmonto)),(int) (0),(int) (2),(int) (2),__c.True)+" "+_estatus)); + //BA.debugLineNum = 2809;BA.debugLine="Log(\"si entre2\")"; +__c.LogImpl("015728765","si entre2",0); + }else if((_estatus).equals("RECHAZADO")) { + //BA.debugLineNum = 2813;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery"; +_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select SUM(HVD_COSTO_TOT) AS HVD_COSTO_TOT, SUM(HVD_CANT) AS HVD_CANT from HIST_VENTAS WHERE HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CAT_CL_CODIGO")))+"' AND HVD_CODPROMO ")))); + //BA.debugLineNum = 2815;BA.debugLine="Private cuenta0 As String = 0"; +_cuenta0 = BA.NumberToString(0); + //BA.debugLineNum = 2816;BA.debugLine="Private arti As String = 0"; +_arti = BA.NumberToString(0); + //BA.debugLineNum = 2817;BA.debugLine="If vc.RowCount > 0 Then"; +if (_vc.getRowCount()>0) { + //BA.debugLineNum = 2818;BA.debugLine="For hjf = 0 To vc.RowCount - 1"; +{ +final int step110 = 1; +final int limit110 = (int) (_vc.getRowCount()-1); +_hjf = (int) (0) ; +for (;_hjf <= limit110 ;_hjf = _hjf + step110 ) { + //BA.debugLineNum = 2819;BA.debugLine="vc.Position = hjf"; +_vc.setPosition(_hjf); + //BA.debugLineNum = 2822;BA.debugLine="arti = (vc.GetString(\"HVD_CANT\"))"; +_arti = (_vc.GetString("HVD_CANT")); + //BA.debugLineNum = 2823;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_COS"; +_cuenta0 = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(((_vc.GetString("HVD_COSTO_TOT")))))); + } +}; + }; + //BA.debugLineNum = 2826;BA.debugLine="Log(cuenta0)"; +__c.LogImpl("015728782",_cuenta0,0); + //BA.debugLineNum = 2883;BA.debugLine="Private TOTALMONTO As String = cuenta0"; +_totalmonto = _cuenta0; + //BA.debugLineNum = 2884;BA.debugLine="Private TOTALcantidad As String = arti"; +_totalcantidad = _arti; + //BA.debugLineNum = 2886;BA.debugLine="Log(\"si entre\")"; +__c.LogImpl("015728842","si entre",0); + //BA.debugLineNum = 2887;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_COD"; +_listview1.AddTwoLines(BA.ObjectToCharSequence(_c.GetString("CAT_CL_CODIGO")+" - "+_c.GetString("CAT_CL_NOMBRE")),BA.ObjectToCharSequence("Articulos :"+_totalcantidad+" Monto :"+__c.NumberFormat2((double)(Double.parseDouble(_totalmonto)),(int) (0),(int) (2),(int) (2),__c.True)+" "+_estatus)); + }; + } +}; + }; + }; + //BA.debugLineNum = 2924;BA.debugLine="End Sub"; +return ""; +} +public String _b_comodin_click() throws Exception{ + //BA.debugLineNum = 3879;BA.debugLine="Private Sub b_comodin_Click"; + //BA.debugLineNum = 3880;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); + //BA.debugLineNum = 3881;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("100000")})); + //BA.debugLineNum = 3882;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 3883;BA.debugLine="End Sub"; +return ""; +} +public void _b_imp_inventario_click() throws Exception{ +ResumableSub_b_imp_inventario_Click rsub = new ResumableSub_b_imp_inventario_Click(this); +rsub.resume(ba, null); +} +public static class ResumableSub_b_imp_inventario_Click extends BA.ResumableSub { +public ResumableSub_b_imp_inventario_Click(reparto_izca.keymon.lat.c_principal parent) { +this.parent = parent; +} +reparto_izca.keymon.lat.c_principal parent; +int _cont = 0; +anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null; +reparto_izca.keymon.lat.escposprinter._animage _myimage = null; +String _sdate = ""; +String _stime = ""; +int _i = 0; +String _firstchar = ""; +String _productoinven = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _sumainv = null; +int step56; +int limit56; +int step62; +int limit62; + +@Override +public void resume(BA ba, Object[] result) throws Exception{ + + while (true) { + switch (state) { + case -1: +return; + +case 0: +//C +this.state = 1; + //BA.debugLineNum = 3308;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; +parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); + //BA.debugLineNum = 3309;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 3310;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 = 3312;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 3313;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 3314;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 = 3315;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 57; +return; +case 57: +//C +this.state = 7; +; + //BA.debugLineNum = 3316;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 3317;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 = 3318;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 = 3320;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 58; +return; +case 58: +//C +this.state = 38; +; + //BA.debugLineNum = 3321;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 21: +//C +this.state = 22; + //BA.debugLineNum = 3324;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 3325;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 3326;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 = 3327;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 59; +return; +case 59: +//C +this.state = 25; +; + //BA.debugLineNum = 3328;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 3329;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 = 3330;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 = 3332;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 60; +return; +case 60: +//C +this.state = 38; +; + //BA.debugLineNum = 3333;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 38: +//C +this.state = 39; +; + //BA.debugLineNum = 3336;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3337;BA.debugLine="ESPACIO = 28"; +parent._espacio = (int) (28); + //BA.debugLineNum = 3338;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 3339;BA.debugLine="Dim bmp As Bitmap"; +_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); + //BA.debugLineNum = 3340;BA.debugLine="Printer1.Justify= 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 3341;BA.debugLine="bmp.InitializeResize(File.DirAssets, \"inventarios"; +_bmp.InitializeResize(parent.__c.File.getDirAssets(),"inventarios.jpg",(int) (92),(int) (92),parent.__c.True); + //BA.debugLineNum = 3342;BA.debugLine="Dim myimage As AnImage = Printer1.ImageToBWIMage("; +_myimage = parent._printer1._imagetobwimage /*reparto_izca.keymon.lat.escposprinter._animage*/ (_bmp); + //BA.debugLineNum = 3343;BA.debugLine="myimage = Printer1.DitherImage2D(myimage, 128)"; +_myimage = parent._printer1._ditherimage2d /*reparto_izca.keymon.lat.escposprinter._animage*/ (_myimage,(int) (128)); + //BA.debugLineNum = 3344;BA.debugLine="myimage= Printer1.PackImage(myimage)"; +_myimage = parent._printer1._packimage /*reparto_izca.keymon.lat.escposprinter._animage*/ (_myimage); + //BA.debugLineNum = 3345;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to"; +parent._printer1._writestring /*String*/ (parent.__c.CRLF); + //BA.debugLineNum = 3346;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to"; +parent._printer1._writestring /*String*/ (parent.__c.CRLF); + //BA.debugLineNum = 3347;BA.debugLine="Printer1.WriteString(Printer1.REVERSE)"; +parent._printer1._writestring /*String*/ (parent._printer1._reverse /*String*/ ); + //BA.debugLineNum = 3348;BA.debugLine="Printer1.PrintImage(myimage)"; +parent._printer1._printimage /*int*/ (_myimage); + //BA.debugLineNum = 3349;BA.debugLine="Printer1.WriteString(Printer1.UNREVERSE)"; +parent._printer1._writestring /*String*/ (parent._printer1._unreverse /*String*/ ); + //BA.debugLineNum = 3350;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3351;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel"; +parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, HVD_PROID from HIST_VENTAS WHERE HVD_PRONOMBRE <> 'Cobranza Pendiente' and HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 3352;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C"; +parent._lv_prod_prin.getSingleLineLayout().Label.setTextColor(parent.__c.Colors.White); + //BA.debugLineNum = 3353;BA.debugLine="lv_prod_Prin.Clear"; +parent._lv_prod_prin.Clear(); + //BA.debugLineNum = 3354;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 3355;BA.debugLine="Dim sDate, sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 3356;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 3357;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +parent.__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 3358;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; +_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 3359;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; +_stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 3360;BA.debugLine="Printer1.WriteString(\"Fecha: \" &sDate & CRLF)"; +parent._printer1._writestring /*String*/ ("Fecha: "+_sdate+parent.__c.CRLF); + //BA.debugLineNum = 3361;BA.debugLine="Printer1.WriteString(\"Hora: \" &sTime & CRLF)"; +parent._printer1._writestring /*String*/ ("Hora: "+_stime+parent.__c.CRLF); + //BA.debugLineNum = 3362;BA.debugLine="Printer1.WriteString(\"Ruta: \" & l_ruta.Text & CRL"; +parent._printer1._writestring /*String*/ ("Ruta: "+parent._l_ruta.getText()+parent.__c.CRLF); + //BA.debugLineNum = 3363;BA.debugLine="Printer1.WriteString(\"Usuario: \" & Subs.dameUsuar"; +parent._printer1._writestring /*String*/ ("Usuario: "+parent._subs._dameusuariodedb /*String*/ (ba)+parent.__c.CRLF); + //BA.debugLineNum = 3365;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 3366;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 39: +//if +this.state = 56; +if (parent._c.getRowCount()>0) { +this.state = 41; +}if (true) break; + +case 41: +//C +this.state = 42; + //BA.debugLineNum = 3367;BA.debugLine="For i = 0 To c.RowCount - 1"; +if (true) break; + +case 42: +//for +this.state = 55; +step56 = 1; +limit56 = (int) (parent._c.getRowCount()-1); +_i = (int) (0) ; +this.state = 61; +if (true) break; + +case 61: +//C +this.state = 55; +if ((step56 > 0 && _i <= limit56) || (step56 < 0 && _i >= limit56)) this.state = 44; +if (true) break; + +case 62: +//C +this.state = 61; +_i = ((int)(0 + _i + step56)) ; +if (true) break; + +case 44: +//C +this.state = 45; + //BA.debugLineNum = 3368;BA.debugLine="c.Position = i"; +parent._c.setPosition(_i); + //BA.debugLineNum = 3370;BA.debugLine="Printer1.WriteString(\"-----------INVENTARIO----"; +parent._printer1._writestring /*String*/ ("-----------INVENTARIO-----------"+parent.__c.CRLF); + //BA.debugLineNum = 3371;BA.debugLine="Printer1.WriteString(\"-------------------------"; +parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 3372;BA.debugLine="Printer1.WriteString(\"Cant. Producto\" & C"; +parent._printer1._writestring /*String*/ ("Cant. Producto"+parent.__c.CRLF); + //BA.debugLineNum = 3373;BA.debugLine="Printer1.WriteString(\"-------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 3374;BA.debugLine="For i=0 To c.RowCount -1"; +if (true) break; + +case 45: +//for +this.state = 54; +step62 = 1; +limit62 = (int) (parent._c.getRowCount()-1); +_i = (int) (0) ; +this.state = 63; +if (true) break; + +case 63: +//C +this.state = 54; +if ((step62 > 0 && _i <= limit62) || (step62 < 0 && _i >= limit62)) this.state = 47; +if (true) break; + +case 64: +//C +this.state = 63; +_i = ((int)(0 + _i + step62)) ; +if (true) break; + +case 47: +//C +this.state = 48; + //BA.debugLineNum = 3375;BA.debugLine="c.Position=i"; +parent._c.setPosition(_i); + //BA.debugLineNum = 3378;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 3379;BA.debugLine="Printer1.WriteString( (c.GetString(\"HVD_CANT\")"; +parent._printer1._writestring /*String*/ ((parent._c.GetString("HVD_CANT"))+"- "); + //BA.debugLineNum = 3380;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 3381;BA.debugLine="Dim firstChar As String = c.GetString(\"HVD_PRO"; +_firstchar = parent._c.GetString("HVD_PRONOMBRE").substring((int) (0),(int) (1)); + //BA.debugLineNum = 3382;BA.debugLine="Dim productoinven As String"; +_productoinven = ""; + //BA.debugLineNum = 3385;BA.debugLine="If Asc(firstChar) >= Asc(\"0\") And Asc(firstCha"; +if (true) break; + +case 48: +//if +this.state = 53; +if (parent.__c.Asc(BA.ObjectToChar(_firstchar))>=parent.__c.Asc(BA.ObjectToChar("0")) && parent.__c.Asc(BA.ObjectToChar(_firstchar))<=parent.__c.Asc(BA.ObjectToChar("9"))) { +this.state = 50; +}else { +this.state = 52; +}if (true) break; + +case 50: +//C +this.state = 53; + //BA.debugLineNum = 3387;BA.debugLine="productoinven = c.GetString(\"HVD_PRONOMBRE\")."; +_productoinven = parent._c.GetString("HVD_PRONOMBRE").substring((int) (4)); + if (true) break; + +case 52: +//C +this.state = 53; + //BA.debugLineNum = 3390;BA.debugLine="productoinven = c.GetString(\"HVD_PRONOMBRE\")"; +_productoinven = parent._c.GetString("HVD_PRONOMBRE"); + if (true) break; + +case 53: +//C +this.state = 64; +; + //BA.debugLineNum = 3394;BA.debugLine="Printer1.WriteString(productoinven)"; +parent._printer1._writestring /*String*/ (_productoinven); + //BA.debugLineNum = 3395;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3396;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + if (true) break; +if (true) break; + +case 54: +//C +this.state = 62; +; + if (true) break; +if (true) break; + +case 55: +//C +this.state = 56; +; + if (true) break; + +case 56: +//C +this.state = -1; +; + //BA.debugLineNum = 3403;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 3405;BA.debugLine="Dim sumainv As Cursor = Starter.skmt.ExecQuery(\"S"; +_sumainv = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_sumainv = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(HVD_CANT) AS CANTIDAD FROM HIST_VENTAS WHERE HVD_CODPROMO <> HVD_PROID"))); + //BA.debugLineNum = 3406;BA.debugLine="sumainv.Position = 0"; +_sumainv.setPosition((int) (0)); + //BA.debugLineNum = 3408;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 3409;BA.debugLine="Printer1.WriteString(\"Total piezas: \" & sumainv.G"; +parent._printer1._writestring /*String*/ ("Total piezas: "+_sumainv.GetString("CANTIDAD")+parent.__c.CRLF); + //BA.debugLineNum = 3410;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 3411;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 3412;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3413;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3414;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3415;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3416;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 65; +return; +case 65: +//C +this.state = -1; +; + //BA.debugLineNum = 3417;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 3418;BA.debugLine="ProgressDialogHide"; +parent.__c.ProgressDialogHide(); + //BA.debugLineNum = 3419;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public void _b_impresion_rec_click() throws Exception{ +ResumableSub_b_impresion_rec_Click rsub = new ResumableSub_b_impresion_rec_Click(this); +rsub.resume(ba, null); +} +public static class ResumableSub_b_impresion_rec_Click extends BA.ResumableSub { +public ResumableSub_b_impresion_rec_Click(reparto_izca.keymon.lat.c_principal parent) { +this.parent = parent; +} +reparto_izca.keymon.lat.c_principal parent; +int _totalentrega = 0; +int _totalrechazo = 0; +int _totalpiezas = 0; +String _sdate = ""; +String _stime = ""; +int _cont = 0; +int _i = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; +String _resta = ""; +int step46; +int limit46; + +@Override +public void resume(BA ba, Object[] result) throws Exception{ + + while (true) { + switch (state) { + case -1: +return; + +case 0: +//C +this.state = 1; + //BA.debugLineNum = 3423;BA.debugLine="Dim totalentrega As Int"; +_totalentrega = 0; + //BA.debugLineNum = 3424;BA.debugLine="Dim totalrechazo As Int"; +_totalrechazo = 0; + //BA.debugLineNum = 3425;BA.debugLine="Dim totalpiezas As Int"; +_totalpiezas = 0; + //BA.debugLineNum = 3426;BA.debugLine="Dim sDate, sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 3427;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 3428;BA.debugLine="c.Position=0"; +parent._c.setPosition((int) (0)); + //BA.debugLineNum = 3429;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +parent._usuario = parent._c.GetString("USUARIO"); + //BA.debugLineNum = 3431;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 3432;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\""; +parent.__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 3433;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 3434;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); + //BA.debugLineNum = 3435;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 3441;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; +parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); + //BA.debugLineNum = 3442;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 3443;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 = 3445;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 3446;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 3447;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 = 3448;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 53; +return; +case 53: +//C +this.state = 7; +; + //BA.debugLineNum = 3450;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 3451;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de"; +if (true) break; + +case 7: +//if +this.state = 12; +if (_cont==2) { +this.state = 9; +;}if (true) break; + +case 9: +//C +this.state = 12; +parent._printer1._connect /*boolean*/ (); +if (true) break; + +case 12: +//C +this.state = 13; +; + //BA.debugLineNum = 3452;BA.debugLine="If cont > 3 Then impresoraConectada = True"; +if (true) break; + +case 13: +//if +this.state = 18; +if (_cont>3) { +this.state = 15; +;}if (true) break; + +case 15: +//C +this.state = 18; +parent._impresoraconectada = parent.__c.True; +if (true) break; + +case 18: +//C +this.state = 4; +; + if (true) break; + +case 19: +//C +this.state = 38; +; + //BA.debugLineNum = 3454;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 54; +return; +case 54: +//C +this.state = 38; +; + //BA.debugLineNum = 3455;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 21: +//C +this.state = 22; + //BA.debugLineNum = 3458;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 3459;BA.debugLine="Private cont As Int = 0"; +_cont = (int) (0); + //BA.debugLineNum = 3460;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 = 3461;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 55; +return; +case 55: +//C +this.state = 25; +; + //BA.debugLineNum = 3463;BA.debugLine="cont = cont + 1"; +_cont = (int) (_cont+1); + //BA.debugLineNum = 3464;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 = 3465;BA.debugLine="If cont > 3 Then impresoraConectada = True"; +if (true) break; + +case 31: +//if +this.state = 36; +if (_cont>3) { +this.state = 33; +;}if (true) break; + +case 33: +//C +this.state = 36; +parent._impresoraconectada = parent.__c.True; +if (true) break; + +case 36: +//C +this.state = 22; +; + if (true) break; + +case 37: +//C +this.state = 38; +; + //BA.debugLineNum = 3467;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); +this.state = 56; +return; +case 56: +//C +this.state = 38; +; + //BA.debugLineNum = 3468;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; + if (true) break; + +case 38: +//C +this.state = 39; +; + //BA.debugLineNum = 3471;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 3472;BA.debugLine="ESPACIO = 28"; +parent._espacio = (int) (28); + //BA.debugLineNum = 3473;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 3475;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; +parent._printer1._writestring /*String*/ ("Izca Distribuciones"+parent.__c.CRLF); + //BA.debugLineNum = 3476;BA.debugLine="Printer1.WriteString(sDate & \" \" &sTime & CRLF)"; +parent._printer1._writestring /*String*/ (_sdate+" "+_stime+parent.__c.CRLF); + //BA.debugLineNum = 3478;BA.debugLine="Printer1.WriteString(\"------------ENTREGA--------"; +parent._printer1._writestring /*String*/ ("------------ENTREGA-----------"+parent.__c.CRLF); + //BA.debugLineNum = 3479;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel"; +parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, (IFNULL(SUM(HVD_CANT), 0) - IFNULL(SUM(HVD_RECHAZOCANT), 0)) as total, HVD_PROID from HIST_VENTAS where HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 3480;BA.debugLine="If c.RowCount > 0 Then"; +if (true) break; + +case 39: +//if +this.state = 52; +if (parent._c.getRowCount()>0) { +this.state = 41; +}if (true) break; + +case 41: +//C +this.state = 42; + //BA.debugLineNum = 3481;BA.debugLine="For i = 0 To c.RowCount - 1"; +if (true) break; + +case 42: +//for +this.state = 51; +step46 = 1; +limit46 = (int) (parent._c.getRowCount()-1); +_i = (int) (0) ; +this.state = 57; +if (true) break; + +case 57: +//C +this.state = 51; +if ((step46 > 0 && _i <= limit46) || (step46 < 0 && _i >= limit46)) this.state = 44; +if (true) break; + +case 58: +//C +this.state = 57; +_i = ((int)(0 + _i + step46)) ; +if (true) break; + +case 44: +//C +this.state = 45; + //BA.debugLineNum = 3482;BA.debugLine="c.Position = i"; +parent._c.setPosition(_i); + //BA.debugLineNum = 3485;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s"; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+parent.__c.SmartStringFormatter("",(Object)(parent._c.GetString("HVD_PROID")))+"'")))); + //BA.debugLineNum = 3486;BA.debugLine="Private resta As String = 0"; +_resta = BA.NumberToString(0); + //BA.debugLineNum = 3488;BA.debugLine="If c3.RowCount > 0 Then"; +if (true) break; + +case 45: +//if +this.state = 50; +if (_c3.getRowCount()>0) { +this.state = 47; +}else { +this.state = 49; +}if (true) break; + +case 47: +//C +this.state = 50; + //BA.debugLineNum = 3489;BA.debugLine="c3.Position = 0"; +_c3.setPosition((int) (0)); + //BA.debugLineNum = 3490;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; +_resta = _c3.GetString("PE_CANT"); + if (true) break; + +case 49: +//C +this.state = 50; + //BA.debugLineNum = 3492;BA.debugLine="resta = 0"; +_resta = BA.NumberToString(0); + if (true) break; + +case 50: +//C +this.state = 58; +; + //BA.debugLineNum = 3494;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 3495;BA.debugLine="Printer1.WriteString(c.GetString(\"HVD_PRONOMBRE"; +parent._printer1._writestring /*String*/ (parent._c.GetString("HVD_PRONOMBRE")+parent.__c.CRLF); + //BA.debugLineNum = 3496;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 3497;BA.debugLine="Printer1.WriteString(\"TP: \"& c.GetInt(\"HVD_CANT"; +parent._printer1._writestring /*String*/ ("TP: "+BA.NumberToString(parent._c.GetInt("HVD_CANT"))+" "); + //BA.debugLineNum = 3498;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 3499;BA.debugLine="Printer1.WriteString(\" TE: \" & (c.GetInt(\"tot"; +parent._printer1._writestring /*String*/ (" TE: "+BA.NumberToString((parent._c.GetInt("total")+(double)(Double.parseDouble(_resta))))+" "); + //BA.debugLineNum = 3500;BA.debugLine="Printer1.Justify = 2"; +parent._printer1._setjustify((int) (2)); + //BA.debugLineNum = 3501;BA.debugLine="Printer1.WriteString(\" TR: \" & (c.GetInt(\"HVD"; +parent._printer1._writestring /*String*/ (" TR: "+BA.NumberToString((parent._c.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))+" "); + //BA.debugLineNum = 3502;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 3503;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3505;BA.debugLine="totalentrega = totalentrega + c.GetInt(\"total\")"; +_totalentrega = (int) (_totalentrega+parent._c.GetInt("total")+(double)(Double.parseDouble(_resta))); + //BA.debugLineNum = 3506;BA.debugLine="totalrechazo = totalrechazo + c.GetInt(\"HVD_REC"; +_totalrechazo = (int) (_totalrechazo+parent._c.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))); + //BA.debugLineNum = 3507;BA.debugLine="totalpiezas = totalpiezas + c.GetInt(\"HVD_CANT\""; +_totalpiezas = (int) (_totalpiezas+parent._c.GetInt("HVD_CANT")); + if (true) break; +if (true) break; + +case 51: +//C +this.state = 52; +; + if (true) break; + +case 52: +//C +this.state = -1; +; + //BA.debugLineNum = 3512;BA.debugLine="c.Close"; +parent._c.Close(); + //BA.debugLineNum = 3513;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3514;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3515;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3517;BA.debugLine="Printer1.WriteString(\"Total Piezas: \"& totalpiez"; +parent._printer1._writestring /*String*/ ("Total Piezas: "+BA.NumberToString(_totalpiezas)+parent.__c.CRLF); + //BA.debugLineNum = 3518;BA.debugLine="Printer1.WriteString(\"Total Entrega: \"& totalent"; +parent._printer1._writestring /*String*/ ("Total Entrega: "+BA.NumberToString(_totalentrega)+parent.__c.CRLF); + //BA.debugLineNum = 3519;BA.debugLine="Printer1.WriteString(\"Total Rechazo: \"& totalrec"; +parent._printer1._writestring /*String*/ ("Total Rechazo: "+BA.NumberToString(_totalrechazo)+parent.__c.CRLF); + //BA.debugLineNum = 3522;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 3523;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 3524;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3525;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3526;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 3527;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); +this.state = 59; +return; +case 59: +//C +this.state = -1; +; + //BA.debugLineNum = 3528;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 3530;BA.debugLine="ProgressDialogHide"; +parent.__c.ProgressDialogHide(); + //BA.debugLineNum = 3531;BA.debugLine="End Sub"; +if (true) break; + + } + } + } +} +public String _b_mapa_click() throws Exception{ + //BA.debugLineNum = 2622;BA.debugLine="Sub b_mapa_Click"; + //BA.debugLineNum = 2624;BA.debugLine="B4XPages.ShowPage(\"mapas\")"; +_b4xpages._showpage /*String*/ (ba,"mapas"); + //BA.debugLineNum = 2625;BA.debugLine="End Sub"; +return ""; +} +public String _b_pc_env_click() throws Exception{ +String _sdate = ""; +String _stime = ""; +int _i = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null; +anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null; +anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null; +String _inputtext = ""; +anywheresoftware.b4a.objects.B4XViewWrapper _labelcant = null; +String _cantidadrestar = ""; +anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null; +String _idtext = ""; +String[] _idparts = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null; +String[] _fechatabulador = null; +String _fechatabulador3 = ""; +int _restado = 0; + //BA.debugLineNum = 3771;BA.debugLine="Private Sub B_PC_ENV_Click"; + //BA.debugLineNum = 3772;BA.debugLine="Dim sDate, sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 3773;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 3774;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 3775;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 3776;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 3779;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1"; +{ +final int step6 = 1; +final int limit6 = (int) (_clv_pick_ciego._getsize()-1); +_i = (int) (0) ; +for (;_i <= limit6 ;_i = _i + step6 ) { + //BA.debugLineNum = 3781;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan"; +_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_itempanel = _clv_pick_ciego._getpanel(_i); + //BA.debugLineNum = 3782;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)"; +_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_innerpanel = _itempanel.GetView((int) (0)); + //BA.debugLineNum = 3783;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)"; +_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_edittext = _innerpanel.GetView((int) (1)); + //BA.debugLineNum = 3784;BA.debugLine="Dim inputText As String = editText.As(EditText)."; +_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText(); + //BA.debugLineNum = 3785;BA.debugLine="Dim labelcant As B4XView = innerPanel.GetView(2)"; +_labelcant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_labelcant = _innerpanel.GetView((int) (2)); + //BA.debugLineNum = 3786;BA.debugLine="Dim cantidadrestar As String = labelcant.As(Labe"; +_cantidadrestar = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_labelcant.getObject()))).getText(); + //BA.debugLineNum = 3789;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe"; +if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { + //BA.debugLineNum = 3790;BA.debugLine="inputText = \"0\""; +_inputtext = "0"; + }; + //BA.debugLineNum = 3794;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)"; +_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_idlabel = _innerpanel.GetView((int) (0)); + //BA.debugLineNum = 3795;BA.debugLine="Dim idText As String = idLabel.As(Label).Text"; +_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText(); + //BA.debugLineNum = 3796;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe"; +_idparts = __c.Regex.Split(__c.CRLF,_idtext); + //BA.debugLineNum = 3798;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); + //BA.debugLineNum = 3799;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 3801;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; +_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 3802;BA.debugLine="If a.RowCount>0 Then"; +if (_a.getRowCount()>0) { + //BA.debugLineNum = 3803;BA.debugLine="a.Position=0"; +_a.setPosition((int) (0)); + }; + //BA.debugLineNum = 3805;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT"; +_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); + //BA.debugLineNum = 3806;BA.debugLine="k.Position = 0"; +_k.setPosition((int) (0)); + //BA.debugLineNum = 3807;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \""; +_fechatabulador = __c.Regex.Split(" ",_k.GetString("HVD_FECHA")); + //BA.debugLineNum = 3809;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(0"; +_fechatabulador3 = _fechatabulador[(int) (0)]; + //BA.debugLineNum = 3810;BA.debugLine="k.Close"; +_k.Close(); + //BA.debugLineNum = 3811;BA.debugLine="If inputText <> \"\" Then"; +if ((_inputtext).equals("") == false) { + //BA.debugLineNum = 3812;BA.debugLine="Log(idParts(0))"; +__c.LogImpl("017039401",_idparts[(int) (0)],0); + //BA.debugLineNum = 3813;BA.debugLine="Log(cantidadrestar)"; +__c.LogImpl("017039402",_cantidadrestar,0); + //BA.debugLineNum = 3814;BA.debugLine="Log(inputText)"; +__c.LogImpl("017039403",_inputtext,0); + //BA.debugLineNum = 3815;BA.debugLine="Dim restado As Int = cantidadrestar - inputText"; +_restado = (int) ((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))); + //BA.debugLineNum = 3816;BA.debugLine="Log(cantidadrestar - inputText)"; +__c.LogImpl("017039405",BA.NumberToString((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))),0); + //BA.debugLineNum = 3817;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]}))); + //BA.debugLineNum = 3818;BA.debugLine="If c.RowCount = 0 Then"; +if (_c.getRowCount()==0) { + //BA.debugLineNum = 3822;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA, RESTA) VALUES(?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,_a.GetString("ID_ALMACEN"),_f.GetString("RUTAA"),_fechatabulador3+" "+_stime,BA.NumberToString(_restado)})); + }else { + //BA.debugLineNum = 3827;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]})); + }; + }; + //BA.debugLineNum = 3831;BA.debugLine="f.Close"; +_f.Close(); + //BA.debugLineNum = 3832;BA.debugLine="a.Close"; +_a.Close(); + //BA.debugLineNum = 3833;BA.debugLine="Log(\"Processed item \" & i)"; +__c.LogImpl("017039422","Processed item "+BA.NumberToString(_i),0); + } +}; + //BA.debugLineNum = 3836;BA.debugLine="End Sub"; +return ""; +} +public String _b_rechazos_click() throws Exception{ +anywheresoftware.b4a.objects.LabelWrapper _label1 = null; +int _i = 0; +String _itemtext = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; +String _resta = ""; + //BA.debugLineNum = 2973;BA.debugLine="Private Sub b_rechazos_Click"; + //BA.debugLineNum = 2974;BA.debugLine="Dim label1 As Label"; +_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 2975;BA.debugLine="label1 = lv_prod_Prin.SingleLineLayout.Label"; +_label1 = _lv_prod_prin.getSingleLineLayout().Label; + //BA.debugLineNum = 2976;BA.debugLine="label1.TextSize = 14"; +_label1.setTextSize((float) (14)); + //BA.debugLineNum = 2977;BA.debugLine="p_prod.Width = Root.Width"; +_p_prod.setWidth(_root.getWidth()); + //BA.debugLineNum = 2978;BA.debugLine="p_prod.Height = Root.Height"; +_p_prod.setHeight(_root.getHeight()); + //BA.debugLineNum = 2981;BA.debugLine="b_regreso.Top = p_prod.Height - b_regreso.Height"; +_b_regreso.setTop((int) (_p_prod.getHeight()-_b_regreso.getHeight())); + //BA.debugLineNum = 2982;BA.debugLine="b_impresion_rec.Top = p_prod.Height - b_impresion"; +_b_impresion_rec.setTop((int) (_p_prod.getHeight()-_b_impresion_rec.getHeight())); + //BA.debugLineNum = 2984;BA.debugLine="p_prod.Visible = True"; +_p_prod.setVisible(__c.True); + //BA.debugLineNum = 2985;BA.debugLine="p_prod.BringToFront"; +_p_prod.BringToFront(); + //BA.debugLineNum = 2987;BA.debugLine="If l_ctast.Text = \"0\" Then"; +if ((_l_ctast.getText()).equals("0")) { + //BA.debugLineNum = 2988;BA.debugLine="b_impresion_rec.Enabled = True"; +_b_impresion_rec.setEnabled(__c.True); + }else if((_l_ctast.getText()).equals("0") == false) { + //BA.debugLineNum = 2990;BA.debugLine="b_impresion_rec.Enabled = False"; +_b_impresion_rec.setEnabled(__c.False); + }; + //BA.debugLineNum = 2994;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 2996;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C"; +_lv_prod_prin.getSingleLineLayout().Label.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 2997;BA.debugLine="lv_prod_Prin.Clear"; +_lv_prod_prin.Clear(); + //BA.debugLineNum = 2998;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 2999;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 = 3000;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 3001;BA.debugLine="Dim itemText As String"; +_itemtext = ""; + //BA.debugLineNum = 3003;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s"; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' ")))); + //BA.debugLineNum = 3004;BA.debugLine="Private resta As String = 0"; +_resta = BA.NumberToString(0); + //BA.debugLineNum = 3006;BA.debugLine="If c3.RowCount > 0 Then"; +if (_c3.getRowCount()>0) { + //BA.debugLineNum = 3007;BA.debugLine="c3.Position = 0"; +_c3.setPosition((int) (0)); + //BA.debugLineNum = 3008;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; +_resta = _c3.GetString("PE_CANT"); + }else { + //BA.debugLineNum = 3010;BA.debugLine="resta = 0"; +_resta = BA.NumberToString(0); + }; + //BA.debugLineNum = 3012;BA.debugLine="If ( c.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0"; +if ((_c.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { + }else { + //BA.debugLineNum = 3015;BA.debugLine="itemText = $\"${c.GetString(\"HVD_PRONOMBRE\")} $"; +_itemtext = (""+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PRONOMBRE")))+" "+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inventario: "+__c.SmartStringFormatter("",(Object)((_c.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))))+""); + //BA.debugLineNum = 3016;BA.debugLine="lv_prod_Prin.AddSingleLine(itemText)"; +_lv_prod_prin.AddSingleLine(BA.ObjectToCharSequence(_itemtext)); + }; + } +}; + }else { + //BA.debugLineNum = 3022;BA.debugLine="lv_prod_Prin.AddSingleLine(\"No hay datos disponi"; +_lv_prod_prin.AddSingleLine(BA.ObjectToCharSequence("No hay datos disponibles.")); + }; + //BA.debugLineNum = 3024;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 3027;BA.debugLine="End Sub"; +return ""; +} +public String _b_regresa_click() throws Exception{ + //BA.debugLineNum = 2926;BA.debugLine="Sub B_REGRESA_Click"; + //BA.debugLineNum = 2927;BA.debugLine="Log(\"B_REGRESA_Click\")"; +__c.LogImpl("015794177","B_REGRESA_Click",0); + //BA.debugLineNum = 2928;BA.debugLine="BUSCA.Visible = False"; +_busca.setVisible(__c.False); + //BA.debugLineNum = 2929;BA.debugLine="connecta.Visible = True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 2930;BA.debugLine="trabajar.Visible = True"; +_trabajar.setVisible(__c.True); + //BA.debugLineNum = 2931;BA.debugLine="B_CLIEPROD.Visible = True"; +_b_clieprod.setVisible(__c.True); + //BA.debugLineNum = 2932;BA.debugLine="Panel1.Visible = False"; +_panel1.setVisible(__c.False); + //BA.debugLineNum = 2933;BA.debugLine="Btn_Ubicar_Ru.Visible=True"; +_btn_ubicar_ru.setVisible(__c.True); + //BA.debugLineNum = 2934;BA.debugLine="End Sub"; +return ""; +} +public String _b_regreso_click() throws Exception{ + //BA.debugLineNum = 3029;BA.debugLine="Private Sub b_regreso_Click"; + //BA.debugLineNum = 3030;BA.debugLine="p_prod.Visible = False"; +_p_prod.setVisible(__c.False); + //BA.debugLineNum = 3031;BA.debugLine="End Sub"; +return ""; +} +public String _b_tabulador_click() throws Exception{ + //BA.debugLineNum = 2947;BA.debugLine="Private Sub b_tabulador_Click"; + //BA.debugLineNum = 2948;BA.debugLine="If b_check.Visible = True Then"; +if (_b_check.getVisible()==__c.True) { + //BA.debugLineNum = 2949;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten"; +__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba); + }else { + //BA.debugLineNum = 2951;BA.debugLine="B4XPages.ShowPage(\"tabulador\")"; +_b4xpages._showpage /*String*/ (ba,"tabulador"); + }; + //BA.debugLineNum = 2953;BA.debugLine="End Sub"; +return ""; +} +public String _b_terpc_click() throws Exception{ +String _sdate = ""; +String _stime = ""; +int _consecutivo = 0; +int _i = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null; +anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null; +anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null; +String _inputtext = ""; +anywheresoftware.b4a.objects.B4XViewWrapper _labelcant = null; +String _cantidadrestar = ""; +anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null; +String _idtext = ""; +String[] _idparts = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null; +String[] _fechatabulador = null; +String _fechatabulador3 = ""; +int _restado = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _preciocat = null; +String _preciofull = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _faltantes = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _restadoanterior = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _sobrantes = null; + //BA.debugLineNum = 3535;BA.debugLine="Private Sub b_terpc_Click"; + //BA.debugLineNum = 3537;BA.debugLine="Dim sDate, sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 3538;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 3539;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 3540;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 3541;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 3543;BA.debugLine="Dim consecutivo As Int = 1000"; +_consecutivo = (int) (1000); + //BA.debugLineNum = 3544;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1"; +{ +final int step7 = 1; +final int limit7 = (int) (_clv_pick_ciego._getsize()-1); +_i = (int) (0) ; +for (;_i <= limit7 ;_i = _i + step7 ) { + //BA.debugLineNum = 3546;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan"; +_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_itempanel = _clv_pick_ciego._getpanel(_i); + //BA.debugLineNum = 3547;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)"; +_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_innerpanel = _itempanel.GetView((int) (0)); + //BA.debugLineNum = 3548;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)"; +_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_edittext = _innerpanel.GetView((int) (1)); + //BA.debugLineNum = 3549;BA.debugLine="Dim inputText As String = editText.As(EditText)."; +_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText(); + //BA.debugLineNum = 3550;BA.debugLine="Dim labelcant As B4XView = innerPanel.GetView(2)"; +_labelcant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_labelcant = _innerpanel.GetView((int) (2)); + //BA.debugLineNum = 3551;BA.debugLine="Dim cantidadrestar As String = labelcant.As(Labe"; +_cantidadrestar = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_labelcant.getObject()))).getText(); + //BA.debugLineNum = 3554;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe"; +if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { + //BA.debugLineNum = 3555;BA.debugLine="inputText = \"0\""; +_inputtext = "0"; + }; + //BA.debugLineNum = 3559;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)"; +_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_idlabel = _innerpanel.GetView((int) (0)); + //BA.debugLineNum = 3560;BA.debugLine="Dim idText As String = idLabel.As(Label).Text"; +_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText(); + //BA.debugLineNum = 3561;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe"; +_idparts = __c.Regex.Split(__c.CRLF,_idtext); + //BA.debugLineNum = 3563;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); + //BA.debugLineNum = 3564;BA.debugLine="f.Position=0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 3566;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; +_a = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 3567;BA.debugLine="If a.RowCount>0 Then"; +if (_a.getRowCount()>0) { + //BA.debugLineNum = 3568;BA.debugLine="a.Position=0"; +_a.setPosition((int) (0)); + }; + //BA.debugLineNum = 3570;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT"; +_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); + //BA.debugLineNum = 3571;BA.debugLine="k.Position = 0"; +_k.setPosition((int) (0)); + //BA.debugLineNum = 3572;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \""; +_fechatabulador = __c.Regex.Split(" ",_k.GetString("HVD_FECHA")); + //BA.debugLineNum = 3574;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(0"; +_fechatabulador3 = _fechatabulador[(int) (0)]; + //BA.debugLineNum = 3575;BA.debugLine="k.Close"; +_k.Close(); + //BA.debugLineNum = 3576;BA.debugLine="If inputText <> \"\" And inputText <> 0 Then"; +if ((_inputtext).equals("") == false && (_inputtext).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 3577;BA.debugLine="Log(\"IMPUT DIFERENTE DE CERO\")"; +__c.LogImpl("016973866","IMPUT DIFERENTE DE CERO",0); + //BA.debugLineNum = 3578;BA.debugLine="Log(idParts(0))"; +__c.LogImpl("016973867",_idparts[(int) (0)],0); + //BA.debugLineNum = 3579;BA.debugLine="Log(cantidadrestar)"; +__c.LogImpl("016973868",_cantidadrestar,0); + //BA.debugLineNum = 3580;BA.debugLine="Log(inputText)"; +__c.LogImpl("016973869",_inputtext,0); + //BA.debugLineNum = 3581;BA.debugLine="Dim restado As Int = cantidadrestar - inputText"; +_restado = (int) ((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))); + //BA.debugLineNum = 3582;BA.debugLine="Log(cantidadrestar - inputText)"; +__c.LogImpl("016973871",BA.NumberToString((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))),0); + //BA.debugLineNum = 3583;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]}))); + //BA.debugLineNum = 3585;BA.debugLine="If c.RowCount = 0 Then"; +if (_c.getRowCount()==0) { + //BA.debugLineNum = 3590;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA, RESTA) VALUES(?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,_a.GetString("ID_ALMACEN"),_f.GetString("RUTAA"),_fechatabulador3+" "+_stime,BA.NumberToString(_restado)})); + //BA.debugLineNum = 3591;BA.debugLine="If restado > 0 And inputText <> 0 Then"; +if (_restado>0 && (_inputtext).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 3593;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu"; +_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); + //BA.debugLineNum = 3594;BA.debugLine="If preciocat.RowCount > 0 Then"; +if (_preciocat.getRowCount()>0) { + //BA.debugLineNum = 3595;BA.debugLine="preciocat.Position = 0"; +_preciocat.setPosition((int) (0)); + //BA.debugLineNum = 3596;BA.debugLine="Dim preciofull As String = preciocat.GetStri"; +_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); + }; + //BA.debugLineNum = 3598;BA.debugLine="preciocat.Close"; +_preciocat.Close(); + //BA.debugLineNum = 3599;BA.debugLine="Log(\"MAYOR A CERO\")"; +__c.LogImpl("016973888","MAYOR A CERO",0); + //BA.debugLineNum = 3600;BA.debugLine="consecutivo = consecutivo + 1"; +_consecutivo = (int) (_consecutivo+1); + //BA.debugLineNum = 3601;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu"; +_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'")))); + //BA.debugLineNum = 3602;BA.debugLine="If faltantes.RowCount > 0 Then"; +if (_faltantes.getRowCount()>0) { + //BA.debugLineNum = 3603;BA.debugLine="faltantes.Position = 0"; +_faltantes.setPosition((int) (0)); + //BA.debugLineNum = 3604;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); + }else { + //BA.debugLineNum = 3606;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString(_restado),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString(((double)(Double.parseDouble(_preciofull))*_restado)),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"FALTANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); + }; + }else if(_restado<0 && (_inputtext).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 3610;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu"; +_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); + //BA.debugLineNum = 3611;BA.debugLine="If preciocat.RowCount > 0 Then"; +if (_preciocat.getRowCount()>0) { + //BA.debugLineNum = 3612;BA.debugLine="preciocat.Position = 0"; +_preciocat.setPosition((int) (0)); + //BA.debugLineNum = 3613;BA.debugLine="Dim preciofull As String = preciocat.GetStri"; +_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); + }; + //BA.debugLineNum = 3615;BA.debugLine="preciocat.Close"; +_preciocat.Close(); + //BA.debugLineNum = 3616;BA.debugLine="Log(\"MENOR A CERO\")"; +__c.LogImpl("016973905","MENOR A CERO",0); + //BA.debugLineNum = 3617;BA.debugLine="consecutivo = consecutivo + 1"; +_consecutivo = (int) (_consecutivo+1); + //BA.debugLineNum = 3618;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu"; +_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'")))); + //BA.debugLineNum = 3619;BA.debugLine="If faltantes.RowCount > 0 Then"; +if (_faltantes.getRowCount()>0) { + //BA.debugLineNum = 3620;BA.debugLine="faltantes.Position = 0"; +_faltantes.setPosition((int) (0)); + //BA.debugLineNum = 3621;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"', PE_COSTO_TOT= "+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"*"+__c.SmartStringFormatter("",(Object)(_preciofull))+", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); + }else { + //BA.debugLineNum = 3623;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString((-1*_restado)),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString((-1*((double)(Double.parseDouble(_preciofull))*_restado))),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"SOBRANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); + }; + }; + }else { + //BA.debugLineNum = 3629;BA.debugLine="Dim restadoanterior As Cursor = Starter.skmt.E"; +_restadoanterior = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_restadoanterior = (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 RESTA from PICK_CIEGO WHERE PC_ID_PROD = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); + //BA.debugLineNum = 3630;BA.debugLine="restadoanterior.Position = 0"; +_restadoanterior.setPosition((int) (0)); + //BA.debugLineNum = 3633;BA.debugLine="If restadoanterior.GetInt(\"RESTA\") > 0 And res"; +if (_restadoanterior.GetInt("RESTA")>0 && _restadoanterior.GetInt("RESTA")!=_restado) { + //BA.debugLineNum = 3636;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu"; +_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'")))); + //BA.debugLineNum = 3638;BA.debugLine="If faltantes.RowCount > 0 Then"; +if (_faltantes.getRowCount()>0) { + //BA.debugLineNum = 3639;BA.debugLine="faltantes.Position = 0"; +_faltantes.setPosition((int) (0)); + //BA.debugLineNum = 3640;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; +_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); + //BA.debugLineNum = 3641;BA.debugLine="If preciocat.RowCount > 0 Then"; +if (_preciocat.getRowCount()>0) { + //BA.debugLineNum = 3642;BA.debugLine="preciocat.Position = 0"; +_preciocat.setPosition((int) (0)); + //BA.debugLineNum = 3643;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; +_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); + }; + //BA.debugLineNum = 3645;BA.debugLine="preciocat.Close"; +_preciocat.Close(); + //BA.debugLineNum = 3647;BA.debugLine="Log(\"MAYOR A CERO UPDATE\")"; +__c.LogImpl("016973936","MAYOR A CERO UPDATE",0); + //BA.debugLineNum = 3648;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]})); + //BA.debugLineNum = 3649;BA.debugLine="If restado > 0 Then"; +if (_restado>0) { + //BA.debugLineNum = 3650;BA.debugLine="Log(\"AQUI ES FALTANTE\")"; +__c.LogImpl("016973939","AQUI ES FALTANTE",0); + //BA.debugLineNum = 3652;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); + }else if(_restado<0) { + //BA.debugLineNum = 3654;BA.debugLine="Log(\"AQUI ES SOBRANTE\")"; +__c.LogImpl("016973943","AQUI ES SOBRANTE",0); + //BA.debugLineNum = 3656;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"', PE_COSTO_TOT= "+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"*"+__c.SmartStringFormatter("",(Object)(_preciofull))+", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); + }else if(_restado==0) { + //BA.debugLineNum = 3658;BA.debugLine="Log(\"AQUI ES SOBRANTE\")"; +__c.LogImpl("016973947","AQUI ES SOBRANTE",0); + //BA.debugLineNum = 3659;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PED"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); + }; + }; + }else if(_restadoanterior.GetInt("RESTA")<0 && _restadoanterior.GetInt("RESTA")!=_restado) { + //BA.debugLineNum = 3665;BA.debugLine="Log(\"es sobrante\")"; +__c.LogImpl("016973954","es sobrante",0); + //BA.debugLineNum = 3666;BA.debugLine="Dim sobrantes As Cursor = Starter.skmt.ExecQu"; +_sobrantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_sobrantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'SOBRANTE'")))); + //BA.debugLineNum = 3667;BA.debugLine="If sobrantes.RowCount > 0 Then"; +if (_sobrantes.getRowCount()>0) { + //BA.debugLineNum = 3668;BA.debugLine="sobrantes.Position = 0"; +_sobrantes.setPosition((int) (0)); + //BA.debugLineNum = 3670;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; +_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); + //BA.debugLineNum = 3671;BA.debugLine="If preciocat.RowCount > 0 Then"; +if (_preciocat.getRowCount()>0) { + //BA.debugLineNum = 3672;BA.debugLine="preciocat.Position = 0"; +_preciocat.setPosition((int) (0)); + //BA.debugLineNum = 3673;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; +_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); + }; + //BA.debugLineNum = 3675;BA.debugLine="preciocat.Close"; +_preciocat.Close(); + //BA.debugLineNum = 3677;BA.debugLine="Log(\"MENOR A CERO UPDATE\")"; +__c.LogImpl("016973966","MENOR A CERO UPDATE",0); + //BA.debugLineNum = 3678;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]})); + //BA.debugLineNum = 3679;BA.debugLine="If restado > 0 Then"; +if (_restado>0) { + //BA.debugLineNum = 3682;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'")); + }else if(_restado<0) { + //BA.debugLineNum = 3686;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(-1*_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(-1*_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'")); + }else if(_restado==0) { + //BA.debugLineNum = 3688;BA.debugLine="Log(\"a eliminar\")"; +__c.LogImpl("016973977","a eliminar",0); + //BA.debugLineNum = 3689;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PED"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'")); + }; + }; + }else if(_restadoanterior.GetInt("RESTA")==0 && _restadoanterior.GetInt("RESTA")!=_restado) { + //BA.debugLineNum = 3694;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]})); + //BA.debugLineNum = 3695;BA.debugLine="If restado > 0 And inputText <> 0 Then"; +if (_restado>0 && (_inputtext).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 3697;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; +_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); + //BA.debugLineNum = 3698;BA.debugLine="If preciocat.RowCount > 0 Then"; +if (_preciocat.getRowCount()>0) { + //BA.debugLineNum = 3699;BA.debugLine="preciocat.Position = 0"; +_preciocat.setPosition((int) (0)); + //BA.debugLineNum = 3700;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; +_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); + }; + //BA.debugLineNum = 3702;BA.debugLine="preciocat.Close"; +_preciocat.Close(); + //BA.debugLineNum = 3703;BA.debugLine="Log(\"MAYOR A CERO\")"; +__c.LogImpl("016973992","MAYOR A CERO",0); + //BA.debugLineNum = 3704;BA.debugLine="consecutivo = consecutivo + 1"; +_consecutivo = (int) (_consecutivo+1); + //BA.debugLineNum = 3705;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQ"; +_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'")))); + //BA.debugLineNum = 3706;BA.debugLine="If faltantes.RowCount > 0 Then"; +if (_faltantes.getRowCount()>0) { + //BA.debugLineNum = 3707;BA.debugLine="faltantes.Position = 0"; +_faltantes.setPosition((int) (0)); + //BA.debugLineNum = 3708;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); + }else { + //BA.debugLineNum = 3710;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString(_restado),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString(((double)(Double.parseDouble(_preciofull))*_restado)),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"FALTANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); + }; + }else if(_restado<0 && (_inputtext).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 3714;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; +_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); + //BA.debugLineNum = 3715;BA.debugLine="If preciocat.RowCount > 0 Then"; +if (_preciocat.getRowCount()>0) { + //BA.debugLineNum = 3716;BA.debugLine="preciocat.Position = 0"; +_preciocat.setPosition((int) (0)); + //BA.debugLineNum = 3717;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; +_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); + }; + //BA.debugLineNum = 3719;BA.debugLine="preciocat.Close"; +_preciocat.Close(); + //BA.debugLineNum = 3720;BA.debugLine="Log(\"MENOR A CERO\")"; +__c.LogImpl("016974009","MENOR A CERO",0); + //BA.debugLineNum = 3721;BA.debugLine="consecutivo = consecutivo + 1"; +_consecutivo = (int) (_consecutivo+1); + //BA.debugLineNum = 3722;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQ"; +_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'")))); + //BA.debugLineNum = 3723;BA.debugLine="If faltantes.RowCount > 0 Then"; +if (_faltantes.getRowCount()>0) { + //BA.debugLineNum = 3724;BA.debugLine="faltantes.Position = 0"; +_faltantes.setPosition((int) (0)); + //BA.debugLineNum = 3725;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"', PE_COSTO_TOT= "+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"*"+__c.SmartStringFormatter("",(Object)(_preciofull))+", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); + }else { + //BA.debugLineNum = 3727;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString((-1*_restado)),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString((-1*((double)(Double.parseDouble(_preciofull))*_restado))),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"SOBRANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); + }; + }; + }else if(_restadoanterior.GetInt("RESTA")==0 && _restado==0) { + //BA.debugLineNum = 3731;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND PE_TIPO NOT IN ('DANADO') ")); + }; + }; + }else if((_inputtext).equals("") || (_inputtext).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 3735;BA.debugLine="Log(\"IMPUT IGUAL DE CERO\")"; +__c.LogImpl("016974024","IMPUT IGUAL DE CERO",0); + //BA.debugLineNum = 3736;BA.debugLine="Log(idParts(0))"; +__c.LogImpl("016974025",_idparts[(int) (0)],0); + //BA.debugLineNum = 3737;BA.debugLine="Log(cantidadrestar)"; +__c.LogImpl("016974026",_cantidadrestar,0); + //BA.debugLineNum = 3738;BA.debugLine="Log(inputText)"; +__c.LogImpl("016974027",_inputtext,0); + //BA.debugLineNum = 3739;BA.debugLine="Dim restado As Int = cantidadrestar - inputText"; +_restado = (int) ((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))); + //BA.debugLineNum = 3740;BA.debugLine="Log(cantidadrestar - inputText)"; +__c.LogImpl("016974029",BA.NumberToString((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))),0); + //BA.debugLineNum = 3741;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQuer"; +_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]}))); + //BA.debugLineNum = 3742;BA.debugLine="If faltantes.RowCount > 0 Then"; +if (_faltantes.getRowCount()>0) { + //BA.debugLineNum = 3743;BA.debugLine="faltantes.Position = 0"; +_faltantes.setPosition((int) (0)); + //BA.debugLineNum = 3744;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PICK_C"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PICK_CIEGO where PC_ID_PROD = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")); + }; + //BA.debugLineNum = 3747;BA.debugLine="Dim sobrantes As Cursor = Starter.skmt.ExecQuer"; +_sobrantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_sobrantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403'")))); + //BA.debugLineNum = 3748;BA.debugLine="If sobrantes.RowCount > 0 Then"; +if (_sobrantes.getRowCount()>0) { + //BA.debugLineNum = 3749;BA.debugLine="sobrantes.Position = 0"; +_sobrantes.setPosition((int) (0)); + //BA.debugLineNum = 3750;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'")); + }; + //BA.debugLineNum = 3753;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 IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); + //BA.debugLineNum = 3754;BA.debugLine="If preciocat.RowCount > 0 Then"; +if (_preciocat.getRowCount()>0) { + //BA.debugLineNum = 3755;BA.debugLine="preciocat.Position = 0"; +_preciocat.setPosition((int) (0)); + //BA.debugLineNum = 3756;BA.debugLine="Dim preciofull As String = preciocat.GetString"; +_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); + }; + //BA.debugLineNum = 3758;BA.debugLine="preciocat.Close"; +_preciocat.Close(); + //BA.debugLineNum = 3759;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDIDO("; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString(_restado),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString(((double)(Double.parseDouble(_preciofull))*_restado)),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"FALTANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); + }; + //BA.debugLineNum = 3762;BA.debugLine="f.Close"; +_f.Close(); + //BA.debugLineNum = 3763;BA.debugLine="a.Close"; +_a.Close(); + //BA.debugLineNum = 3764;BA.debugLine="Log(\"Processed item \" & i)"; +__c.LogImpl("016974053","Processed item "+BA.NumberToString(_i),0); + } +}; + //BA.debugLineNum = 3767;BA.debugLine="P_CIEGO.Visible = False"; +_p_ciego.setVisible(__c.False); + //BA.debugLineNum = 3768;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 3769;BA.debugLine="End Sub"; +return ""; +} +public String _b_venta_emp_click() throws Exception{ + //BA.debugLineNum = 3037;BA.debugLine="Private Sub b_venta_emp_Click"; + //BA.debugLineNum = 3039;BA.debugLine="p_validacion.Visible = True"; +_p_validacion.setVisible(__c.True); + //BA.debugLineNum = 3040;BA.debugLine="p_validacion.Width = Root.Width"; +_p_validacion.setWidth(_root.getWidth()); + //BA.debugLineNum = 3041;BA.debugLine="p_validacion.Height = Root.Height"; +_p_validacion.setHeight(_root.getHeight()); + //BA.debugLineNum = 3043;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_appear() throws Exception{ int _i = 0; anywheresoftware.b4a.sql.SQL.CursorWrapper _numticks = null; String _monto_rec_dia = ""; @@ -435,3766 +2199,894 @@ anywheresoftware.b4a.sql.SQL.CursorWrapper _g12 = null; anywheresoftware.b4a.sql.SQL.CursorWrapper _g13 = null; anywheresoftware.b4a.sql.SQL.CursorWrapper _pagarescobrados = null; anywheresoftware.b4a.sql.SQL.CursorWrapper _pagaresnuevos = null; -RDebugUtils.currentLine=15663104; - //BA.debugLineNum = 15663104;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=15663106; - //BA.debugLineNum = 15663106;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL"; + //BA.debugLineNum = 213;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 215;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM NOVENTA WHERE NV_MOTIVO = 'ENTREGA' AND NV_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=15663107; - //BA.debugLineNum = 15663107;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=15663108; - //BA.debugLineNum = 15663108;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA w"; + //BA.debugLineNum = 216;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 217;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA w"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA where NV_MOTIVO <> 'ENTREGA' AND NV_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); }; -RDebugUtils.currentLine=15663111; - //BA.debugLineNum = 15663111;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL"; + //BA.debugLineNum = 220;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM NOVENTA"))); -RDebugUtils.currentLine=15663112; - //BA.debugLineNum = 15663112;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=15663113; - //BA.debugLineNum = 15663113;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g"; + //BA.debugLineNum = 221;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 222;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info set gestion = 2 WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO = 'ENTREGA')"); }; -RDebugUtils.currentLine=15663115; - //BA.debugLineNum = 15663115;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"SEL"; + //BA.debugLineNum = 224;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"))); -RDebugUtils.currentLine=15663116; - //BA.debugLineNum = 15663116;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=15663117; - //BA.debugLineNum = 15663117;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g"; + //BA.debugLineNum = 225;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 226;BA.debugLine="Starter.skmt.ExecNonQuery(\"Update kmt_info set g"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("Update kmt_info set gestion = 3 WHERE CAT_CL_CODIGO IN (SELECT NV_CLIENTE FROM NOVENTA WHERE NV_MOTIVO <> 'ENTREGA')"); }; -RDebugUtils.currentLine=15663120; - //BA.debugLineNum = 15663120;BA.debugLine="b_check.visible = False"; -__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=15663121; - //BA.debugLineNum = 15663121;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; -_subs._centrapanel /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=15663134; - //BA.debugLineNum = 15663134;BA.debugLine="If EJECUTANDO = 0 Then"; -if ((__ref._ejecutando /*String*/ ).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=15663135; - //BA.debugLineNum = 15663135;BA.debugLine="Listo1 = 0"; -__ref._listo1 /*String*/ = BA.NumberToString(0); -RDebugUtils.currentLine=15663136; - //BA.debugLineNum = 15663136;BA.debugLine="Listo2 = 0"; -__ref._listo2 /*String*/ = BA.NumberToString(0); -RDebugUtils.currentLine=15663137; - //BA.debugLineNum = 15663137;BA.debugLine="Listo3 = 0"; -__ref._listo3 /*String*/ = BA.NumberToString(0); -RDebugUtils.currentLine=15663138; - //BA.debugLineNum = 15663138;BA.debugLine="Listo4 = 0"; -__ref._listo4 /*String*/ = BA.NumberToString(0); -RDebugUtils.currentLine=15663139; - //BA.debugLineNum = 15663139;BA.debugLine="Listo5 = 0"; -__ref._listo5 /*String*/ = BA.NumberToString(0); -RDebugUtils.currentLine=15663140; - //BA.debugLineNum = 15663140;BA.debugLine="inve = 0"; -__ref._inve /*String*/ = BA.NumberToString(0); -RDebugUtils.currentLine=15663141; - //BA.debugLineNum = 15663141;BA.debugLine="img2.Visible =False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 229;BA.debugLine="b_check.visible = False"; +_b_check.setVisible(__c.False); + //BA.debugLineNum = 230;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth()); + //BA.debugLineNum = 243;BA.debugLine="If EJECUTANDO = 0 Then"; +if ((_ejecutando).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 244;BA.debugLine="Listo1 = 0"; +_listo1 = BA.NumberToString(0); + //BA.debugLineNum = 245;BA.debugLine="Listo2 = 0"; +_listo2 = BA.NumberToString(0); + //BA.debugLineNum = 246;BA.debugLine="Listo3 = 0"; +_listo3 = BA.NumberToString(0); + //BA.debugLineNum = 247;BA.debugLine="Listo4 = 0"; +_listo4 = BA.NumberToString(0); + //BA.debugLineNum = 248;BA.debugLine="Listo5 = 0"; +_listo5 = BA.NumberToString(0); + //BA.debugLineNum = 249;BA.debugLine="inve = 0"; +_inve = BA.NumberToString(0); + //BA.debugLineNum = 250;BA.debugLine="img2.Visible =False"; +_img2.setVisible(__c.False); }; -RDebugUtils.currentLine=15663143; - //BA.debugLineNum = 15663143;BA.debugLine="l_ruta.Text = 0"; -__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663144; - //BA.debugLineNum = 15663144;BA.debugLine="f=Starter.skmt.ExecQuery(\"select rutaa from rutaa"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select rutaa from rutaa"))); -RDebugUtils.currentLine=15663145; - //BA.debugLineNum = 15663145;BA.debugLine="If f.RowCount > 0 Then"; -if (__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=15663146; - //BA.debugLineNum = 15663146;BA.debugLine="f.Position = 0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663147; - //BA.debugLineNum = 15663147;BA.debugLine="l_ruta.Text = f.GetString(\"RUTAA\")"; -__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"))); + //BA.debugLineNum = 252;BA.debugLine="l_ruta.Text = 0"; +_l_ruta.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 253;BA.debugLine="f=Starter.skmt.ExecQuery(\"select rutaa from rutaa"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select rutaa from rutaa"))); + //BA.debugLineNum = 254;BA.debugLine="If f.RowCount > 0 Then"; +if (_f.getRowCount()>0) { + //BA.debugLineNum = 255;BA.debugLine="f.Position = 0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 256;BA.debugLine="l_ruta.Text = f.GetString(\"RUTAA\")"; +_l_ruta.setText(BA.ObjectToCharSequence(_f.GetString("RUTAA"))); }; -RDebugUtils.currentLine=15663149; - //BA.debugLineNum = 15663149;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15663150; - //BA.debugLineNum = 15663150;BA.debugLine="If l_ruta.Text = 0 Then"; -if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=15663151; - //BA.debugLineNum = 15663151;BA.debugLine="l_ruta.Text = 0"; -__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663152; - //BA.debugLineNum = 15663152;BA.debugLine="l_rutasP.Text = 0"; -__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663153; - //BA.debugLineNum = 15663153;BA.debugLine="l_numtickets.Text = 0"; -__ref._l_numtickets /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 258;BA.debugLine="f.Close"; +_f.Close(); + //BA.debugLineNum = 259;BA.debugLine="If l_ruta.Text = 0 Then"; +if ((_l_ruta.getText()).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 260;BA.debugLine="l_ruta.Text = 0"; +_l_ruta.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 261;BA.debugLine="l_rutasP.Text = 0"; +_l_rutasp.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 262;BA.debugLine="l_numtickets.Text = 0"; +_l_numtickets.setText(BA.ObjectToCharSequence(0)); }else { -RDebugUtils.currentLine=15663155; - //BA.debugLineNum = 15663155;BA.debugLine="f=Starter.skmt.ExecQuery(\"select distinct CAT_CL"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info WHERE CAT_CL_RUTA <> 1000 order by CAT_CL_RUTA"))); -RDebugUtils.currentLine=15663157; - //BA.debugLineNum = 15663157;BA.debugLine="l_rutasP.Text = \"\""; -__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=15663158; - //BA.debugLineNum = 15663158;BA.debugLine="For i = 0 To f.RowCount - 1"; + //BA.debugLineNum = 264;BA.debugLine="f=Starter.skmt.ExecQuery(\"select distinct CAT_CL"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct CAT_CL_RUTA from kmt_info WHERE CAT_CL_RUTA <> 1000 order by CAT_CL_RUTA"))); + //BA.debugLineNum = 266;BA.debugLine="l_rutasP.Text = \"\""; +_l_rutasp.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 267;BA.debugLine="For i = 0 To f.RowCount - 1"; { final int step38 = 1; -final int limit38 = (int) (__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit38 = (int) (_f.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit38 ;_i = _i + step38 ) { -RDebugUtils.currentLine=15663159; - //BA.debugLineNum = 15663159;BA.debugLine="f.Position = i"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=15663160; - //BA.debugLineNum = 15663160;BA.debugLine="If i = 0 Then"; + //BA.debugLineNum = 268;BA.debugLine="f.Position = i"; +_f.setPosition(_i); + //BA.debugLineNum = 269;BA.debugLine="If i = 0 Then"; if (_i==0) { -RDebugUtils.currentLine=15663161; - //BA.debugLineNum = 15663161;BA.debugLine="l_rutasP.Text = f.GetString(\"CAT_CL_RUTA\")"; -__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"))); + //BA.debugLineNum = 270;BA.debugLine="l_rutasP.Text = f.GetString(\"CAT_CL_RUTA\")"; +_l_rutasp.setText(BA.ObjectToCharSequence(_f.GetString("CAT_CL_RUTA"))); }else { -RDebugUtils.currentLine=15663163; - //BA.debugLineNum = 15663163;BA.debugLine="l_rutasP.Text = l_rutasP.Text & \", \" & f.GetSt"; -__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l_rutasp /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+", "+__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_RUTA"))); + //BA.debugLineNum = 272;BA.debugLine="l_rutasP.Text = l_rutasP.Text & \", \" & f.GetSt"; +_l_rutasp.setText(BA.ObjectToCharSequence(_l_rutasp.getText()+", "+_f.GetString("CAT_CL_RUTA"))); }; } }; -RDebugUtils.currentLine=15663166; - //BA.debugLineNum = 15663166;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15663168; - //BA.debugLineNum = 15663168;BA.debugLine="Dim numticks As Cursor = Starter.skmt.ExecQuery("; + //BA.debugLineNum = 275;BA.debugLine="f.Close"; +_f.Close(); + //BA.debugLineNum = 277;BA.debugLine="Dim numticks As Cursor = Starter.skmt.ExecQuery("; _numticks = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _numticks = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select COUNT(distinct HVD_NUM_TICKET) AS TICKET from HIST_VENTAS"))); -RDebugUtils.currentLine=15663169; - //BA.debugLineNum = 15663169;BA.debugLine="numticks.Position = 0"; + //BA.debugLineNum = 278;BA.debugLine="numticks.Position = 0"; _numticks.setPosition((int) (0)); -RDebugUtils.currentLine=15663170; - //BA.debugLineNum = 15663170;BA.debugLine="l_numtickets.Text = numticks.GetInt(\"TICKET\")"; -__ref._l_numtickets /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_numticks.GetInt("TICKET"))); + //BA.debugLineNum = 279;BA.debugLine="l_numtickets.Text = numticks.GetInt(\"TICKET\")"; +_l_numtickets.setText(BA.ObjectToCharSequence(_numticks.GetInt("TICKET"))); }; -RDebugUtils.currentLine=15663172; - //BA.debugLineNum = 15663172;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; + //BA.debugLineNum = 281;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; __c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=15663173; - //BA.debugLineNum = 15663173;BA.debugLine="fecha=DateTime.Date(DateTime.Now)"; -__ref._fecha /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=15663174; - //BA.debugLineNum = 15663174;BA.debugLine="b=Starter.skmt.ExecQuery(\"Select count(*) as CUAN"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from kmt_info"))); -RDebugUtils.currentLine=15663175; - //BA.debugLineNum = 15663175;BA.debugLine="b.Position=0"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663176; - //BA.debugLineNum = 15663176;BA.debugLine="If b.RowCount > 0 Then Cuantos = b.GetString(\"CUA"; -if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -__ref._cuantos /*String*/ = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS");}; -RDebugUtils.currentLine=15663177; - //BA.debugLineNum = 15663177;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(distinct(C"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(distinct(CAT_CL_CODIGO)) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000"))); -RDebugUtils.currentLine=15663178; - //BA.debugLineNum = 15663178;BA.debugLine="D.Position=0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663179; - //BA.debugLineNum = 15663179;BA.debugLine="b.Close"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15663180; - //BA.debugLineNum = 15663180;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(distinct(C"; -__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(distinct(CAT_CL_CODIGO)) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000"))); -RDebugUtils.currentLine=15663181; - //BA.debugLineNum = 15663181;BA.debugLine="e.Position=0"; -__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663192; - //BA.debugLineNum = 15663192;BA.debugLine="cargar.Visible = False"; -__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=15663193; - //BA.debugLineNum = 15663193;BA.debugLine="Subir.Visible = False"; -__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=15663194; - //BA.debugLineNum = 15663194;BA.debugLine="connecta.Visible = True"; -__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=15663196; - //BA.debugLineNum = 15663196;BA.debugLine="If Cuantos = 0 Then"; -if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=15663198; - //BA.debugLineNum = 15663198;BA.debugLine="l_cuantosc.Text = 0"; -__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663199; - //BA.debugLineNum = 15663199;BA.debugLine="l_cuantosn.Text = 0"; -__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663200; - //BA.debugLineNum = 15663200;BA.debugLine="drop = 0"; -__ref._drop /*double*/ = 0; -RDebugUtils.currentLine=15663201; - //BA.debugLineNum = 15663201;BA.debugLine="l_montoSalida.Text = 0"; -__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663202; - //BA.debugLineNum = 15663202;BA.debugLine="efectiva = 0"; -__ref._efectiva /*double*/ = 0; -RDebugUtils.currentLine=15663205; - //BA.debugLineNum = 15663205;BA.debugLine="L_MONTOE.Text = 0"; -__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663206; - //BA.debugLineNum = 15663206;BA.debugLine="l_ctast.Text = 0"; -__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663207; - //BA.debugLineNum = 15663207;BA.debugLine="If d.RowCount > 0 Then l_ctast.Text = d.GetStrin"; -if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));}; -RDebugUtils.currentLine=15663208; - //BA.debugLineNum = 15663208;BA.debugLine="l_porvisitar.Text = 0"; -__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663209; - //BA.debugLineNum = 15663209;BA.debugLine="If e.RowCount > 0 Then l_porvisitar.Text = e.Get"; -if (__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));}; -RDebugUtils.currentLine=15663210; - //BA.debugLineNum = 15663210;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15663211; - //BA.debugLineNum = 15663211;BA.debugLine="e.Close"; -__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 282;BA.debugLine="fecha=DateTime.Date(DateTime.Now)"; +_fecha = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 283;BA.debugLine="b=Starter.skmt.ExecQuery(\"Select count(*) as CUAN"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from kmt_info"))); + //BA.debugLineNum = 284;BA.debugLine="b.Position=0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 285;BA.debugLine="If b.RowCount > 0 Then Cuantos = b.GetString(\"CUA"; +if (_b.getRowCount()>0) { +_cuantos = _b.GetString("CUANTOS");}; + //BA.debugLineNum = 286;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(distinct(C"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(distinct(CAT_CL_CODIGO)) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000"))); + //BA.debugLineNum = 287;BA.debugLine="D.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 288;BA.debugLine="b.Close"; +_b.Close(); + //BA.debugLineNum = 289;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(distinct(C"; +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(distinct(CAT_CL_CODIGO)) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000"))); + //BA.debugLineNum = 290;BA.debugLine="e.Position=0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 301;BA.debugLine="cargar.Visible = False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 302;BA.debugLine="Subir.Visible = False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 303;BA.debugLine="connecta.Visible = True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 305;BA.debugLine="If Cuantos = 0 Then"; +if ((_cuantos).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 307;BA.debugLine="l_cuantosc.Text = 0"; +_l_cuantosc.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 308;BA.debugLine="l_cuantosn.Text = 0"; +_l_cuantosn.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 309;BA.debugLine="drop = 0"; +_drop = 0; + //BA.debugLineNum = 310;BA.debugLine="l_montoSalida.Text = 0"; +_l_montosalida.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 311;BA.debugLine="efectiva = 0"; +_efectiva = 0; + //BA.debugLineNum = 314;BA.debugLine="L_MONTOE.Text = 0"; +_l_montoe.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 315;BA.debugLine="l_ctast.Text = 0"; +_l_ctast.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 316;BA.debugLine="If d.RowCount > 0 Then l_ctast.Text = d.GetStrin"; +if (_d.getRowCount()>0) { +_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR")));}; + //BA.debugLineNum = 317;BA.debugLine="l_porvisitar.Text = 0"; +_l_porvisitar.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 318;BA.debugLine="If e.RowCount > 0 Then l_porvisitar.Text = e.Get"; +if (_e.getRowCount()>0) { +_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR")));}; + //BA.debugLineNum = 319;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 320;BA.debugLine="e.Close"; +_e.Close(); }else { -RDebugUtils.currentLine=15663213; - //BA.debugLineNum = 15663213;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(hvd_costo_t"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(hvd_costo_tot) as MONTO_DIA from hist_ventas where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_ESTATUS = 1 "))); -RDebugUtils.currentLine=15663214; - //BA.debugLineNum = 15663214;BA.debugLine="f1=Starter.skmt.ExecQuery(\"select sum(hvd_costo_"; -__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(hvd_costo_tot) as MONTO_TOTAL_DIA from hist_ventas2 where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_RECHAZO = 0"))); -RDebugUtils.currentLine=15663215; - //BA.debugLineNum = 15663215;BA.debugLine="f2=Starter.skmt.ExecQuery(\"select sum(REP_COSTO_"; -__ref._f2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(REP_COSTO_TOT) as MONTO_REC_DIA FROM REPARTO where REP_cliente in (Select cat_cl_codigo from kmt_info)"))); -RDebugUtils.currentLine=15663217; - //BA.debugLineNum = 15663217;BA.debugLine="b=Starter.skmt.ExecQuery(\"select count(DISTINCT"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(DISTINCT NV_CLIENTE) as CUANTOS from noventa where nv_motivo <> 'ENTREGA' and NV_CLIENTE NOT IN ('63403', '100000')"))); -RDebugUtils.currentLine=15663219; - //BA.debugLineNum = 15663219;BA.debugLine="L=Starter.skmt.ExecQuery(\"select count(DISTINCT"; -__ref._l /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(DISTINCT NV_CLIENTE) as CLIENTES_DIA from noventa where nv_motivo = 'ENTREGA' and NV_CLIENTE NOT IN ('63403', '100000')"))); -RDebugUtils.currentLine=15663220; - //BA.debugLineNum = 15663220;BA.debugLine="f2.Position=0"; -__ref._f2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663223; - //BA.debugLineNum = 15663223;BA.debugLine="Private MONTO_REC_DIA = 0"; + //BA.debugLineNum = 322;BA.debugLine="c=Starter.skmt.ExecQuery(\"select sum(hvd_costo_t"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(hvd_costo_tot) as MONTO_DIA from hist_ventas where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_ESTATUS = 1 "))); + //BA.debugLineNum = 323;BA.debugLine="f1=Starter.skmt.ExecQuery(\"select sum(hvd_costo_"; +_f1 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(hvd_costo_tot) as MONTO_TOTAL_DIA from hist_ventas2 where hvd_cliente in (select cat_cl_codigo from kmt_info ) AND HVD_RECHAZO = 0"))); + //BA.debugLineNum = 324;BA.debugLine="f2=Starter.skmt.ExecQuery(\"select sum(REP_COSTO_"; +_f2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select sum(REP_COSTO_TOT) as MONTO_REC_DIA FROM REPARTO where REP_cliente in (Select cat_cl_codigo from kmt_info)"))); + //BA.debugLineNum = 326;BA.debugLine="b=Starter.skmt.ExecQuery(\"select count(DISTINCT"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(DISTINCT NV_CLIENTE) as CUANTOS from noventa where nv_motivo <> 'ENTREGA' and NV_CLIENTE NOT IN ('63403', '100000')"))); + //BA.debugLineNum = 328;BA.debugLine="L=Starter.skmt.ExecQuery(\"select count(DISTINCT"; +_l = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(DISTINCT NV_CLIENTE) as CLIENTES_DIA from noventa where nv_motivo = 'ENTREGA' and NV_CLIENTE NOT IN ('63403', '100000')"))); + //BA.debugLineNum = 329;BA.debugLine="f2.Position=0"; +_f2.setPosition((int) (0)); + //BA.debugLineNum = 332;BA.debugLine="Private MONTO_REC_DIA = 0"; _monto_rec_dia = BA.NumberToString(0); -RDebugUtils.currentLine=15663224; - //BA.debugLineNum = 15663224;BA.debugLine="If f2.GetString(\"MONTO_REC_DIA\") <> Null Then MO"; -if (__ref._f2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_REC_DIA")!= null) { -_monto_rec_dia = __ref._f2 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_REC_DIA");}; -RDebugUtils.currentLine=15663235; - //BA.debugLineNum = 15663235;BA.debugLine="C.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663236; - //BA.debugLineNum = 15663236;BA.debugLine="b.Position = 0"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663237; - //BA.debugLineNum = 15663237;BA.debugLine="L.Position = 0"; -__ref._l /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663238; - //BA.debugLineNum = 15663238;BA.debugLine="f1.Position = 0"; -__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663241; - //BA.debugLineNum = 15663241;BA.debugLine="L_MONTOE.Text = 0"; -__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663243; - //BA.debugLineNum = 15663243;BA.debugLine="l_cuantosc.Text = 0"; -__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663244; - //BA.debugLineNum = 15663244;BA.debugLine="If L.RowCount > 0 Then l_cuantosc.Text = L.GetSt"; -if (__ref._l /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._l /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CLIENTES_DIA")));}; -RDebugUtils.currentLine=15663245; - //BA.debugLineNum = 15663245;BA.debugLine="l_cuantosn.Text = 0"; -__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663246; - //BA.debugLineNum = 15663246;BA.debugLine="If b.RowCount > 0 Then l_cuantosn.Text = b.GetSt"; -if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")));}; -RDebugUtils.currentLine=15663248; - //BA.debugLineNum = 15663248;BA.debugLine="If f1.GetString(\"MONTO_TOTAL_DIA\") <> Null Then"; -if (__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_TOTAL_DIA")!= null) { -__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(__ref._f1 /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MONTO_TOTAL_DIA"))),(int) (2))));}; -RDebugUtils.currentLine=15663250; - //BA.debugLineNum = 15663250;BA.debugLine="l_ctast.Text = 0"; -__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663251; - //BA.debugLineNum = 15663251;BA.debugLine="If d.RowCount > 0 Then l_ctast.Text = d.GetStrin"; -if (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR")));}; -RDebugUtils.currentLine=15663252; - //BA.debugLineNum = 15663252;BA.debugLine="l_porvisitar.Text = 0"; -__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15663253; - //BA.debugLineNum = 15663253;BA.debugLine="If e.RowCount > 0 Then l_porvisitar.Text = e.Get"; -if (__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR")));}; -RDebugUtils.currentLine=15663254; - //BA.debugLineNum = 15663254;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15663255; - //BA.debugLineNum = 15663255;BA.debugLine="b.Close"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15663266; - //BA.debugLineNum = 15663266;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 333;BA.debugLine="If f2.GetString(\"MONTO_REC_DIA\") <> Null Then MO"; +if (_f2.GetString("MONTO_REC_DIA")!= null) { +_monto_rec_dia = _f2.GetString("MONTO_REC_DIA");}; + //BA.debugLineNum = 344;BA.debugLine="C.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 345;BA.debugLine="b.Position = 0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 346;BA.debugLine="L.Position = 0"; +_l.setPosition((int) (0)); + //BA.debugLineNum = 347;BA.debugLine="f1.Position = 0"; +_f1.setPosition((int) (0)); + //BA.debugLineNum = 350;BA.debugLine="L_MONTOE.Text = 0"; +_l_montoe.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 352;BA.debugLine="l_cuantosc.Text = 0"; +_l_cuantosc.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 353;BA.debugLine="If L.RowCount > 0 Then l_cuantosc.Text = L.GetSt"; +if (_l.getRowCount()>0) { +_l_cuantosc.setText(BA.ObjectToCharSequence(_l.GetString("CLIENTES_DIA")));}; + //BA.debugLineNum = 354;BA.debugLine="l_cuantosn.Text = 0"; +_l_cuantosn.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 355;BA.debugLine="If b.RowCount > 0 Then l_cuantosn.Text = b.GetSt"; +if (_b.getRowCount()>0) { +_l_cuantosn.setText(BA.ObjectToCharSequence(_b.GetString("CUANTOS")));}; + //BA.debugLineNum = 357;BA.debugLine="If f1.GetString(\"MONTO_TOTAL_DIA\") <> Null Then"; +if (_f1.GetString("MONTO_TOTAL_DIA")!= null) { +_l_montosalida.setText(BA.ObjectToCharSequence(__c.Round2((double)(Double.parseDouble(_f1.GetString("MONTO_TOTAL_DIA"))),(int) (2))));}; + //BA.debugLineNum = 359;BA.debugLine="l_ctast.Text = 0"; +_l_ctast.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 360;BA.debugLine="If d.RowCount > 0 Then l_ctast.Text = d.GetStrin"; +if (_d.getRowCount()>0) { +_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR")));}; + //BA.debugLineNum = 361;BA.debugLine="l_porvisitar.Text = 0"; +_l_porvisitar.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 362;BA.debugLine="If e.RowCount > 0 Then l_porvisitar.Text = e.Get"; +if (_e.getRowCount()>0) { +_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR")));}; + //BA.debugLineNum = 363;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 364;BA.debugLine="b.Close"; +_b.Close(); + //BA.debugLineNum = 375;BA.debugLine="c.Close"; +_c.Close(); }; -RDebugUtils.currentLine=15663268; - //BA.debugLineNum = 15663268;BA.debugLine="c=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=15663269; - //BA.debugLineNum = 15663269;BA.debugLine="C.Position =0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663270; - //BA.debugLineNum = 15663270;BA.debugLine="ALMACEN = 0"; -__ref._almacen /*String*/ = BA.NumberToString(0); -RDebugUtils.currentLine=15663271; - //BA.debugLineNum = 15663271;BA.debugLine="If C.RowCount > 0 Then ALMACEN = C.GetString(\"ID_"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -__ref._almacen /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN");}; -RDebugUtils.currentLine=15663272; - //BA.debugLineNum = 15663272;BA.debugLine="B4XPages.MainPage.almacen = ALMACEN"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ = __ref._almacen /*String*/ ; -RDebugUtils.currentLine=15663273; - //BA.debugLineNum = 15663273;BA.debugLine="C.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15663274; - //BA.debugLineNum = 15663274;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HGDATE, HGLAT, H"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HGDATE, HGLAT, HGLON from HIST_GPS"))); -RDebugUtils.currentLine=15663276; - //BA.debugLineNum = 15663276;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=15663277; - //BA.debugLineNum = 15663277;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 377;BA.debugLine="c=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); + //BA.debugLineNum = 378;BA.debugLine="C.Position =0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 379;BA.debugLine="ALMACEN = 0"; +_almacen = BA.NumberToString(0); + //BA.debugLineNum = 380;BA.debugLine="If C.RowCount > 0 Then ALMACEN = C.GetString(\"ID_"; +if (_c.getRowCount()>0) { +_almacen = _c.GetString("ID_ALMACEN");}; + //BA.debugLineNum = 381;BA.debugLine="B4XPages.MainPage.almacen = ALMACEN"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._almacen /*String*/ = _almacen; + //BA.debugLineNum = 382;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 383;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HGDATE, HGLAT, H"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HGDATE, HGLAT, HGLON from HIST_GPS"))); + //BA.debugLineNum = 385;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 386;BA.debugLine="For i=0 To c.RowCount -1"; { final int step112 = 1; -final int limit112 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit112 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit112 ;_i = _i + step112 ) { -RDebugUtils.currentLine=15663278; - //BA.debugLineNum = 15663278;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=15663279; - //BA.debugLineNum = 15663279;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 387;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 388;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=15663280; - //BA.debugLineNum = 15663280;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=15663281; - //BA.debugLineNum = 15663281;BA.debugLine="cmd.Name = \"insert_gps_actual_REP\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_gps_actual_REP"; -RDebugUtils.currentLine=15663282; - //BA.debugLineNum = 15663282;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"h"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("hgdate")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("hglat")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("hglon")),(Object)(__ref._usuario /*String*/ )}; + //BA.debugLineNum = 389;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 390;BA.debugLine="cmd.Name = \"insert_gps_actual_REP\""; +_cmd.Name /*String*/ = "insert_gps_actual_REP"; + //BA.debugLineNum = 391;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"h"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("hgdate")),(Object)(_c.GetString("hglat")),(Object)(_c.GetString("hglon")),(Object)(_usuario)}; } }; }; -RDebugUtils.currentLine=15663286; - //BA.debugLineNum = 15663286;BA.debugLine="bu.Initialize"; -__ref._bu /*reparto_izca.keymon.lat.batteryutilities*/ ._initialize /*String*/ (null,ba); -RDebugUtils.currentLine=15663287; - //BA.debugLineNum = 15663287;BA.debugLine="batterystatus = bu.BatteryInformation"; -__ref._batterystatus /*int[]*/ = __ref._bu /*reparto_izca.keymon.lat.batteryutilities*/ ._getbatteryinformation /*int[]*/ (null); -RDebugUtils.currentLine=15663289; - //BA.debugLineNum = 15663289;BA.debugLine="B4XPages.MainPage.batt = batterystatus(0)"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._batt /*int*/ = __ref._batterystatus /*int[]*/ [(int) (0)]; -RDebugUtils.currentLine=15663290; - //BA.debugLineNum = 15663290;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=15663291; - //BA.debugLineNum = 15663291;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663292; - //BA.debugLineNum = 15663292;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=15663293; - //BA.debugLineNum = 15663293;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15663294; - //BA.debugLineNum = 15663294;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTAA"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); -RDebugUtils.currentLine=15663295; - //BA.debugLineNum = 15663295;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663296; - //BA.debugLineNum = 15663296;BA.debugLine="RUTA_T = 0"; -__ref._ruta_t /*String*/ = BA.NumberToString(0); -RDebugUtils.currentLine=15663297; - //BA.debugLineNum = 15663297;BA.debugLine="If c.RowCount > 0 Then RUTA_T = c.GetString(\"RUTA"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -__ref._ruta_t /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA");}; -RDebugUtils.currentLine=15663298; - //BA.debugLineNum = 15663298;BA.debugLine="B4XPages.MainPage.rutaPreventa = RUTA_T"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/ = __ref._ruta_t /*String*/ ; -RDebugUtils.currentLine=15663299; - //BA.debugLineNum = 15663299;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15663300; - //BA.debugLineNum = 15663300;BA.debugLine="reqs.Initialize"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=15663302; - //BA.debugLineNum = 15663302;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 395;BA.debugLine="bu.Initialize"; +_bu._initialize /*String*/ (ba); + //BA.debugLineNum = 396;BA.debugLine="batterystatus = bu.BatteryInformation"; +_batterystatus = _bu._getbatteryinformation /*int[]*/ (); + //BA.debugLineNum = 398;BA.debugLine="B4XPages.MainPage.batt = batterystatus(0)"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._batt /*int*/ = _batterystatus[(int) (0)]; + //BA.debugLineNum = 399;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from usu"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 400;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 401;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 402;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 403;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTAA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); + //BA.debugLineNum = 404;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 405;BA.debugLine="RUTA_T = 0"; +_ruta_t = BA.NumberToString(0); + //BA.debugLineNum = 406;BA.debugLine="If c.RowCount > 0 Then RUTA_T = c.GetString(\"RUTA"; +if (_c.getRowCount()>0) { +_ruta_t = _c.GetString("RUTAA");}; + //BA.debugLineNum = 407;BA.debugLine="B4XPages.MainPage.rutaPreventa = RUTA_T"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/ = _ruta_t; + //BA.debugLineNum = 408;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 409;BA.debugLine="reqs.Initialize"; +_reqs.Initialize(); + //BA.debugLineNum = 411;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s"; _rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from REPARTO where REP_RECHAZO = \"1\" and REP_CANT > 0")))); -RDebugUtils.currentLine=15663304; - //BA.debugLineNum = 15663304;BA.debugLine="If rc.RowCount > 0 Then"; + //BA.debugLineNum = 413;BA.debugLine="If rc.RowCount > 0 Then"; if (_rc.getRowCount()>0) { -RDebugUtils.currentLine=15663305; - //BA.debugLineNum = 15663305;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from RECHAZOS"; + //BA.debugLineNum = 414;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from RECHAZOS"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from RECHAZOS")); -RDebugUtils.currentLine=15663306; - //BA.debugLineNum = 15663306;BA.debugLine="For i3=0 To rc.RowCount -1 'Copiamos los rechazo"; + //BA.debugLineNum = 415;BA.debugLine="For i3=0 To rc.RowCount -1 'Copiamos los rechazo"; { final int step137 = 1; final int limit137 = (int) (_rc.getRowCount()-1); _i3 = (int) (0) ; for (;_i3 <= limit137 ;_i3 = _i3 + step137 ) { -RDebugUtils.currentLine=15663307; - //BA.debugLineNum = 15663307;BA.debugLine="rc.Position = i3"; + //BA.debugLineNum = 416;BA.debugLine="rc.Position = i3"; _rc.setPosition(_i3); -RDebugUtils.currentLine=15663310; - //BA.debugLineNum = 15663310;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into RECHAZO"; + //BA.debugLineNum = 419;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into RECHAZO"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into RECHAZOS(R_FECHA, R_CLIENTE, R_CLI_ORIG, R_PRODID, R_CANT, R_RECHAZO, R_PRECIO) select REP_FECHA, REP_CLIENTE, REP_CLI_ORIG, REP_PRODID, REP_CANT, REP_RECHAZO, REP_PRECIO from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_rc.GetString("REP_CLIENTE")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_rc.GetString("REP_CLI_ORIG")))+"' and REP_PRODID = '"+__c.SmartStringFormatter("",(Object)(_rc.GetString("REP_PRODID")))+"' and REP_RECHAZO = '1' and REP_CANT > 0")); } }; }; -RDebugUtils.currentLine=15663313; - //BA.debugLineNum = 15663313;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 422;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery($\"s"; _vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from REPARTO where REP_RECHAZO = \"0\" and REP_CANT > 0")))); -RDebugUtils.currentLine=15663315; - //BA.debugLineNum = 15663315;BA.debugLine="If vc.RowCount > 0 Then"; + //BA.debugLineNum = 424;BA.debugLine="If vc.RowCount > 0 Then"; if (_vc.getRowCount()>0) { -RDebugUtils.currentLine=15663316; - //BA.debugLineNum = 15663316;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from VENTAS\"$"; + //BA.debugLineNum = 425;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from VENTAS\"$"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from VENTAS")); -RDebugUtils.currentLine=15663317; - //BA.debugLineNum = 15663317;BA.debugLine="For i4=0 To vc.RowCount -1 'Copiamos las ventas"; + //BA.debugLineNum = 426;BA.debugLine="For i4=0 To vc.RowCount -1 'Copiamos las ventas"; { final int step145 = 1; final int limit145 = (int) (_vc.getRowCount()-1); _i4 = (int) (0) ; for (;_i4 <= limit145 ;_i4 = _i4 + step145 ) { -RDebugUtils.currentLine=15663318; - //BA.debugLineNum = 15663318;BA.debugLine="vc.Position = i4"; + //BA.debugLineNum = 427;BA.debugLine="vc.Position = i4"; _vc.setPosition(_i4); -RDebugUtils.currentLine=15663321; - //BA.debugLineNum = 15663321;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into VENTAS("; + //BA.debugLineNum = 430;BA.debugLine="Starter.skmt.ExecNonQuery($\"insert into VENTAS("; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("insert into VENTAS(V_FECHA, V_CLIENTE, V_CLI_ORIG, V_PRODID, V_CANT, V_RECHAZO, V_PRECIO) select REP_FECHA, REP_CLIENTE, REP_CLI_ORIG, REP_PRODID, REP_CANT, REP_RECHAZO, REP_PRECIO from REPARTO where REP_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_CLIENTE")))+"' and REP_CLI_ORIG = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_CLI_ORIG")))+"' and REP_PRODID = '"+__c.SmartStringFormatter("",(Object)(_vc.GetString("REP_PRODID")))+"' and REP_RECHAZO = '0' and REP_CANT > 0")); } }; }; -RDebugUtils.currentLine=15663324; - //BA.debugLineNum = 15663324;BA.debugLine="Starter.ENVIA_ULTIMA_GPS"; + //BA.debugLineNum = 433;BA.debugLine="Starter.ENVIA_ULTIMA_GPS"; _starter._envia_ultima_gps /*String*/ (); -RDebugUtils.currentLine=15663329; - //BA.debugLineNum = 15663329;BA.debugLine="Dim entMap As Map = Subs.traeEntregados"; + //BA.debugLineNum = 438;BA.debugLine="Dim entMap As Map = Subs.traeEntregados"; _entmap = new anywheresoftware.b4a.objects.collections.Map(); _entmap = _subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba); -RDebugUtils.currentLine=15663330; - //BA.debugLineNum = 15663330;BA.debugLine="Dim rechMap As Map = Subs.traeRechazados"; + //BA.debugLineNum = 439;BA.debugLine="Dim rechMap As Map = Subs.traeRechazados"; _rechmap = new anywheresoftware.b4a.objects.collections.Map(); _rechmap = _subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba); -RDebugUtils.currentLine=15663331; - //BA.debugLineNum = 15663331;BA.debugLine="Dim vendMap As Map = Subs.traeVendidos"; + //BA.debugLineNum = 440;BA.debugLine="Dim vendMap As Map = Subs.traeVendidos"; _vendmap = new anywheresoftware.b4a.objects.collections.Map(); _vendmap = _subs._traevendidos /*anywheresoftware.b4a.objects.collections.Map*/ (ba); -RDebugUtils.currentLine=15663334; - //BA.debugLineNum = 15663334;BA.debugLine="Dim cancelrecha As Cursor = Starter.skmt.ExecQuer"; + //BA.debugLineNum = 443;BA.debugLine="Dim cancelrecha As Cursor = Starter.skmt.ExecQuer"; _cancelrecha = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _cancelrecha = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ifnull(HVD_RECHAZOCANT,0), HVD_RECHAZO, CONSECUTIVO FROM HIST_VENTAS"))); -RDebugUtils.currentLine=15663335; - //BA.debugLineNum = 15663335;BA.debugLine="If cancelrecha.RowCount > 0 Then"; + //BA.debugLineNum = 444;BA.debugLine="If cancelrecha.RowCount > 0 Then"; if (_cancelrecha.getRowCount()>0) { -RDebugUtils.currentLine=15663336; - //BA.debugLineNum = 15663336;BA.debugLine="For h54 = 0 To cancelrecha.RowCount - 1"; + //BA.debugLineNum = 445;BA.debugLine="For h54 = 0 To cancelrecha.RowCount - 1"; { final int step156 = 1; final int limit156 = (int) (_cancelrecha.getRowCount()-1); _h54 = (int) (0) ; for (;_h54 <= limit156 ;_h54 = _h54 + step156 ) { -RDebugUtils.currentLine=15663337; - //BA.debugLineNum = 15663337;BA.debugLine="cancelrecha.Position = h54"; + //BA.debugLineNum = 446;BA.debugLine="cancelrecha.Position = h54"; _cancelrecha.setPosition(_h54); -RDebugUtils.currentLine=15663338; - //BA.debugLineNum = 15663338;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update HIST_VENTAS"; + //BA.debugLineNum = 447;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update HIST_VENTAS"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update HIST_VENTAS set HVD_RECHAZO = '0' WHERE CONSECUTIVO = ? and (HVD_RECHAZOCANT = 0 OR HVD_RECHAZOCANT IS NULL)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_cancelrecha.GetString("CONSECUTIVO")})); } }; }; -RDebugUtils.currentLine=15663341; - //BA.debugLineNum = 15663341;BA.debugLine="cancelrecha.Close"; + //BA.debugLineNum = 450;BA.debugLine="cancelrecha.Close"; _cancelrecha.Close(); -RDebugUtils.currentLine=15663345; - //BA.debugLineNum = 15663345;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 454;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; _r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' ORDER BY HVD_PROID ")))); -RDebugUtils.currentLine=15663347; - //BA.debugLineNum = 15663347;BA.debugLine="Private rescant As String = 0"; + //BA.debugLineNum = 456;BA.debugLine="Private rescant As String = 0"; _rescant = BA.NumberToString(0); -RDebugUtils.currentLine=15663348; - //BA.debugLineNum = 15663348;BA.debugLine="If r5.RowCount > 0 Then"; + //BA.debugLineNum = 457;BA.debugLine="If r5.RowCount > 0 Then"; if (_r5.getRowCount()>0) { -RDebugUtils.currentLine=15663349; - //BA.debugLineNum = 15663349;BA.debugLine="For j4 = 0 To r5.RowCount -1"; + //BA.debugLineNum = 458;BA.debugLine="For j4 = 0 To r5.RowCount -1"; { final int step165 = 1; final int limit165 = (int) (_r5.getRowCount()-1); _j4 = (int) (0) ; for (;_j4 <= limit165 ;_j4 = _j4 + step165 ) { -RDebugUtils.currentLine=15663350; - //BA.debugLineNum = 15663350;BA.debugLine="r5.Position = j4"; + //BA.debugLineNum = 459;BA.debugLine="r5.Position = j4"; _r5.setPosition(_j4); -RDebugUtils.currentLine=15663351; - //BA.debugLineNum = 15663351;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 460;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($"; _r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); -RDebugUtils.currentLine=15663352; - //BA.debugLineNum = 15663352;BA.debugLine="Dim totalcantped As String"; + //BA.debugLineNum = 461;BA.debugLine="Dim totalcantped As String"; _totalcantped = ""; -RDebugUtils.currentLine=15663353; - //BA.debugLineNum = 15663353;BA.debugLine="If r6.RowCount > 0 Then"; + //BA.debugLineNum = 462;BA.debugLine="If r6.RowCount > 0 Then"; if (_r6.getRowCount()>0) { -RDebugUtils.currentLine=15663354; - //BA.debugLineNum = 15663354;BA.debugLine="r6.Position = 0"; + //BA.debugLineNum = 463;BA.debugLine="r6.Position = 0"; _r6.setPosition((int) (0)); -RDebugUtils.currentLine=15663355; - //BA.debugLineNum = 15663355;BA.debugLine="totalcantped = r6.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 464;BA.debugLine="totalcantped = r6.GetString(\"PE_CANT\")"; _totalcantped = _r6.GetString("PE_CANT"); }else { -RDebugUtils.currentLine=15663358; - //BA.debugLineNum = 15663358;BA.debugLine="totalcantped = 0"; + //BA.debugLineNum = 467;BA.debugLine="totalcantped = 0"; _totalcantped = BA.NumberToString(0); }; -RDebugUtils.currentLine=15663361; - //BA.debugLineNum = 15663361;BA.debugLine="Log(r5.GetString(\"HVD_RECHAZOCANT\") &\" - \"& tot"; -__c.LogImpl("215663361",_r5.GetString("HVD_RECHAZOCANT")+" - "+_totalcantped,0); -RDebugUtils.currentLine=15663362; - //BA.debugLineNum = 15663362;BA.debugLine="rescant = rescant + ((r5.GetString(\"HVD_COSTO_T"; + //BA.debugLineNum = 470;BA.debugLine="Log(r5.GetString(\"HVD_RECHAZOCANT\") &\" - \"& tot"; +__c.LogImpl("014549249",_r5.GetString("HVD_RECHAZOCANT")+" - "+_totalcantped,0); + //BA.debugLineNum = 471;BA.debugLine="rescant = rescant + ((r5.GetString(\"HVD_COSTO_T"; _rescant = BA.NumberToString((double)(Double.parseDouble(_rescant))+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("HVD_CANT")))))*(((double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_totalcantped)))))); -RDebugUtils.currentLine=15663364; - //BA.debugLineNum = 15663364;BA.debugLine="r6.Close"; + //BA.debugLineNum = 473;BA.debugLine="r6.Close"; _r6.Close(); } }; }; -RDebugUtils.currentLine=15663367; - //BA.debugLineNum = 15663367;BA.debugLine="If rescant = \"NaN\" Then rescant = 0"; + //BA.debugLineNum = 476;BA.debugLine="If rescant = \"NaN\" Then rescant = 0"; if ((_rescant).equals("NaN")) { _rescant = BA.NumberToString(0);}; -RDebugUtils.currentLine=15663368; - //BA.debugLineNum = 15663368;BA.debugLine="LogColor(rescant,Colors.Red)"; -__c.LogImpl("215663368",_rescant,__c.Colors.Red); -RDebugUtils.currentLine=15663369; - //BA.debugLineNum = 15663369;BA.debugLine="r5.Close"; + //BA.debugLineNum = 477;BA.debugLine="LogColor(rescant,Colors.Red)"; +__c.LogImpl("014549256",_rescant,__c.Colors.Red); + //BA.debugLineNum = 478;BA.debugLine="r5.Close"; _r5.Close(); -RDebugUtils.currentLine=15663373; - //BA.debugLineNum = 15663373;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 482;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; _r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' ")))); -RDebugUtils.currentLine=15663377; - //BA.debugLineNum = 15663377;BA.debugLine="Private rescant2 As Double = 0"; + //BA.debugLineNum = 486;BA.debugLine="Private rescant2 As Double = 0"; _rescant2 = 0; -RDebugUtils.currentLine=15663378; - //BA.debugLineNum = 15663378;BA.debugLine="If r5.RowCount > 0 Then"; + //BA.debugLineNum = 487;BA.debugLine="If r5.RowCount > 0 Then"; if (_r5.getRowCount()>0) { -RDebugUtils.currentLine=15663379; - //BA.debugLineNum = 15663379;BA.debugLine="For j5 = 0 To r5.RowCount -1"; + //BA.debugLineNum = 488;BA.debugLine="For j5 = 0 To r5.RowCount -1"; { final int step186 = 1; final int limit186 = (int) (_r5.getRowCount()-1); _j5 = (int) (0) ; for (;_j5 <= limit186 ;_j5 = _j5 + step186 ) { -RDebugUtils.currentLine=15663380; - //BA.debugLineNum = 15663380;BA.debugLine="r5.Position = j5"; + //BA.debugLineNum = 489;BA.debugLine="r5.Position = j5"; _r5.setPosition(_j5); -RDebugUtils.currentLine=15663381; - //BA.debugLineNum = 15663381;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 490;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($"; _r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); -RDebugUtils.currentLine=15663382; - //BA.debugLineNum = 15663382;BA.debugLine="r6.Position = 0"; + //BA.debugLineNum = 491;BA.debugLine="r6.Position = 0"; _r6.setPosition((int) (0)); -RDebugUtils.currentLine=15663384; - //BA.debugLineNum = 15663384;BA.debugLine="rescant2 = rescant2 + ((r5.GetString(\"HVD_COSTO"; + //BA.debugLineNum = 493;BA.debugLine="rescant2 = rescant2 + ((r5.GetString(\"HVD_COSTO"; _rescant2 = _rescant2+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("CANTC")))))*(((double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_r6.GetString("PE_CANT"))))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_r5.GetString("HVD_PROID")))))); -RDebugUtils.currentLine=15663385; - //BA.debugLineNum = 15663385;BA.debugLine="rescant2 = NumberFormat2(rescant2, 0, 2, 2, Fal"; + //BA.debugLineNum = 494;BA.debugLine="rescant2 = NumberFormat2(rescant2, 0, 2, 2, Fal"; _rescant2 = (double)(Double.parseDouble(__c.NumberFormat2(_rescant2,(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=15663386; - //BA.debugLineNum = 15663386;BA.debugLine="r6.Close"; + //BA.debugLineNum = 495;BA.debugLine="r6.Close"; _r6.Close(); } }; }; -RDebugUtils.currentLine=15663389; - //BA.debugLineNum = 15663389;BA.debugLine="If rescant2 = \"NaN\" Then rescant2 = 0"; + //BA.debugLineNum = 498;BA.debugLine="If rescant2 = \"NaN\" Then rescant2 = 0"; if (_rescant2==(double)(Double.parseDouble("NaN"))) { _rescant2 = 0;}; -RDebugUtils.currentLine=15663390; - //BA.debugLineNum = 15663390;BA.debugLine="Log(rescant2)"; -__c.LogImpl("215663390",BA.NumberToString(_rescant2),0); -RDebugUtils.currentLine=15663391; - //BA.debugLineNum = 15663391;BA.debugLine="r5.Close"; + //BA.debugLineNum = 499;BA.debugLine="Log(rescant2)"; +__c.LogImpl("014549278",BA.NumberToString(_rescant2),0); + //BA.debugLineNum = 500;BA.debugLine="r5.Close"; _r5.Close(); -RDebugUtils.currentLine=15663396; - //BA.debugLineNum = 15663396;BA.debugLine="Private r5r As Cursor = Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 505;BA.debugLine="Private r5r As Cursor = Starter.skmt.ExecQuery($\""; _r5r = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r5r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' ")))); -RDebugUtils.currentLine=15663398; - //BA.debugLineNum = 15663398;BA.debugLine="Private rescantr As String = 0"; + //BA.debugLineNum = 507;BA.debugLine="Private rescantr As String = 0"; _rescantr = BA.NumberToString(0); -RDebugUtils.currentLine=15663399; - //BA.debugLineNum = 15663399;BA.debugLine="If r5r.RowCount > 0 Then"; + //BA.debugLineNum = 508;BA.debugLine="If r5r.RowCount > 0 Then"; if (_r5r.getRowCount()>0) { -RDebugUtils.currentLine=15663400; - //BA.debugLineNum = 15663400;BA.debugLine="For j4r = 0 To r5r.RowCount -1"; + //BA.debugLineNum = 509;BA.debugLine="For j4r = 0 To r5r.RowCount -1"; { final int step201 = 1; final int limit201 = (int) (_r5r.getRowCount()-1); _j4r = (int) (0) ; for (;_j4r <= limit201 ;_j4r = _j4r + step201 ) { -RDebugUtils.currentLine=15663401; - //BA.debugLineNum = 15663401;BA.debugLine="r5r.Position = j4r"; + //BA.debugLineNum = 510;BA.debugLine="r5r.Position = j4r"; _r5r.setPosition(_j4r); -RDebugUtils.currentLine=15663402; - //BA.debugLineNum = 15663402;BA.debugLine="Private r6r As Cursor = Starter.skmt.ExecQuery("; + //BA.debugLineNum = 511;BA.debugLine="Private r6r As Cursor = Starter.skmt.ExecQuery("; _r6r = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r6r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("CONSECUTIVO")))+"' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE') ")))); -RDebugUtils.currentLine=15663403; - //BA.debugLineNum = 15663403;BA.debugLine="r6r.Position = 0"; + //BA.debugLineNum = 512;BA.debugLine="r6r.Position = 0"; _r6r.setPosition((int) (0)); -RDebugUtils.currentLine=15663406; - //BA.debugLineNum = 15663406;BA.debugLine="rescantr = rescantr + ((r5r.GetString(\"HVD_COST"; + //BA.debugLineNum = 515;BA.debugLine="rescantr = rescantr + ((r5r.GetString(\"HVD_COST"; _rescantr = BA.NumberToString((double)(Double.parseDouble(_rescantr))+(((double)(Double.parseDouble(_r5r.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5r.GetString("HVD_CANT")))))*(double)(Double.parseDouble((_r5r.GetString("HVD_RECHAZOCANT")))))); -RDebugUtils.currentLine=15663407; - //BA.debugLineNum = 15663407;BA.debugLine="r6r.Close"; + //BA.debugLineNum = 516;BA.debugLine="r6r.Close"; _r6r.Close(); } }; }; -RDebugUtils.currentLine=15663410; - //BA.debugLineNum = 15663410;BA.debugLine="If rescantr = \"NaN\" Then rescantr = 0"; + //BA.debugLineNum = 519;BA.debugLine="If rescantr = \"NaN\" Then rescantr = 0"; if ((_rescantr).equals("NaN")) { _rescantr = BA.NumberToString(0);}; -RDebugUtils.currentLine=15663412; - //BA.debugLineNum = 15663412;BA.debugLine="r5r.Close"; + //BA.debugLineNum = 521;BA.debugLine="r5r.Close"; _r5r.Close(); -RDebugUtils.currentLine=15663414; - //BA.debugLineNum = 15663414;BA.debugLine="Log(rescantr)"; -__c.LogImpl("215663414",_rescantr,0); -RDebugUtils.currentLine=15663416; - //BA.debugLineNum = 15663416;BA.debugLine="Private r5r As Cursor = Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 523;BA.debugLine="Log(rescantr)"; +__c.LogImpl("014549302",_rescantr,0); + //BA.debugLineNum = 525;BA.debugLine="Private r5r As Cursor = Starter.skmt.ExecQuery($\""; _r5r = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r5r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' ")))); -RDebugUtils.currentLine=15663420; - //BA.debugLineNum = 15663420;BA.debugLine="Private rescant2r As String = 0"; + //BA.debugLineNum = 529;BA.debugLine="Private rescant2r As String = 0"; _rescant2r = BA.NumberToString(0); -RDebugUtils.currentLine=15663421; - //BA.debugLineNum = 15663421;BA.debugLine="If r5r.RowCount > 0 Then"; + //BA.debugLineNum = 530;BA.debugLine="If r5r.RowCount > 0 Then"; if (_r5r.getRowCount()>0) { -RDebugUtils.currentLine=15663422; - //BA.debugLineNum = 15663422;BA.debugLine="For j5r = 0 To r5r.RowCount -1"; + //BA.debugLineNum = 531;BA.debugLine="For j5r = 0 To r5r.RowCount -1"; { final int step215 = 1; final int limit215 = (int) (_r5r.getRowCount()-1); _j5r = (int) (0) ; for (;_j5r <= limit215 ;_j5r = _j5r + step215 ) { -RDebugUtils.currentLine=15663423; - //BA.debugLineNum = 15663423;BA.debugLine="r5r.Position = j5r"; + //BA.debugLineNum = 532;BA.debugLine="r5r.Position = j5r"; _r5r.setPosition(_j5r); -RDebugUtils.currentLine=15663424; - //BA.debugLineNum = 15663424;BA.debugLine="Private r6r As Cursor = Starter.skmt.ExecQuery("; + //BA.debugLineNum = 533;BA.debugLine="Private r6r As Cursor = Starter.skmt.ExecQuery("; _r6r = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r6r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5r.GetString("CONSECUTIVO")))+"' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); -RDebugUtils.currentLine=15663425; - //BA.debugLineNum = 15663425;BA.debugLine="r6r.Position = 0"; + //BA.debugLineNum = 534;BA.debugLine="r6r.Position = 0"; _r6r.setPosition((int) (0)); -RDebugUtils.currentLine=15663427; - //BA.debugLineNum = 15663427;BA.debugLine="rescant2r = rescant2r + ((r5r.GetString(\"HVD_CO"; + //BA.debugLineNum = 536;BA.debugLine="rescant2r = rescant2r + ((r5r.GetString(\"HVD_CO"; _rescant2r = BA.NumberToString((double)(Double.parseDouble(_rescant2r))+(((double)(Double.parseDouble(_r5r.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5r.GetString("CANTC")))))*((double)(Double.parseDouble((_r5r.GetString("HVD_RECHAZOCANT"))))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_r5r.GetString("HVD_PROID"))))))); -RDebugUtils.currentLine=15663428; - //BA.debugLineNum = 15663428;BA.debugLine="r6r.Close"; + //BA.debugLineNum = 537;BA.debugLine="r6r.Close"; _r6r.Close(); } }; }; -RDebugUtils.currentLine=15663431; - //BA.debugLineNum = 15663431;BA.debugLine="If rescant2r = \"NaN\" Then rescant2r = 0"; + //BA.debugLineNum = 540;BA.debugLine="If rescant2r = \"NaN\" Then rescant2r = 0"; if ((_rescant2r).equals("NaN")) { _rescant2r = BA.NumberToString(0);}; -RDebugUtils.currentLine=15663433; - //BA.debugLineNum = 15663433;BA.debugLine="r5r.Close"; + //BA.debugLineNum = 542;BA.debugLine="r5r.Close"; _r5r.Close(); -RDebugUtils.currentLine=15663434; - //BA.debugLineNum = 15663434;BA.debugLine="Log(rescant2r)"; -__c.LogImpl("215663434",_rescant2r,0); -RDebugUtils.currentLine=15663435; - //BA.debugLineNum = 15663435;BA.debugLine="Log(rescant2r+rescantr)"; -__c.LogImpl("215663435",BA.NumberToString((double)(Double.parseDouble(_rescant2r))+(double)(Double.parseDouble(_rescantr))),0); -RDebugUtils.currentLine=15663451; - //BA.debugLineNum = 15663451;BA.debugLine="Private r55 As Cursor = Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 543;BA.debugLine="Log(rescant2r)"; +__c.LogImpl("014549322",_rescant2r,0); + //BA.debugLineNum = 544;BA.debugLine="Log(rescant2r+rescantr)"; +__c.LogImpl("014549323",BA.NumberToString((double)(Double.parseDouble(_rescant2r))+(double)(Double.parseDouble(_rescantr))),0); + //BA.debugLineNum = 560;BA.debugLine="Private r55 As Cursor = Starter.skmt.ExecQuery($\""; _r55 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r55 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' ")))); -RDebugUtils.currentLine=15663452; - //BA.debugLineNum = 15663452;BA.debugLine="Private rescant3 As Double"; + //BA.debugLineNum = 561;BA.debugLine="Private rescant3 As Double"; _rescant3 = 0; -RDebugUtils.currentLine=15663453; - //BA.debugLineNum = 15663453;BA.debugLine="If r55.RowCount > 0 Then"; + //BA.debugLineNum = 562;BA.debugLine="If r55.RowCount > 0 Then"; if (_r55.getRowCount()>0) { -RDebugUtils.currentLine=15663454; - //BA.debugLineNum = 15663454;BA.debugLine="For r75 = 0 To r55.RowCount -1"; + //BA.debugLineNum = 563;BA.debugLine="For r75 = 0 To r55.RowCount -1"; { final int step230 = 1; final int limit230 = (int) (_r55.getRowCount()-1); _r75 = (int) (0) ; for (;_r75 <= limit230 ;_r75 = _r75 + step230 ) { -RDebugUtils.currentLine=15663455; - //BA.debugLineNum = 15663455;BA.debugLine="r55.Position = r75"; + //BA.debugLineNum = 564;BA.debugLine="r55.Position = r75"; _r55.setPosition(_r75); -RDebugUtils.currentLine=15663456; - //BA.debugLineNum = 15663456;BA.debugLine="rescant3 = rescant3 + r55.GetString(\"HVD_COSTO_"; + //BA.debugLineNum = 565;BA.debugLine="rescant3 = rescant3 + r55.GetString(\"HVD_COSTO_"; _rescant3 = _rescant3+(double)(Double.parseDouble(_r55.GetString("HVD_COSTO_TOT"))); -RDebugUtils.currentLine=15663457; - //BA.debugLineNum = 15663457;BA.debugLine="rescant3 = NumberFormat2(rescant3, 0, 2, 2, Fal"; + //BA.debugLineNum = 566;BA.debugLine="rescant3 = NumberFormat2(rescant3, 0, 2, 2, Fal"; _rescant3 = (double)(Double.parseDouble(__c.NumberFormat2(_rescant3,(int) (0),(int) (2),(int) (2),__c.False))); } }; }; -RDebugUtils.currentLine=15663461; - //BA.debugLineNum = 15663461;BA.debugLine="Log(rescant3)"; -__c.LogImpl("215663461",BA.NumberToString(_rescant3),0); -RDebugUtils.currentLine=15663462; - //BA.debugLineNum = 15663462;BA.debugLine="r55.Close"; + //BA.debugLineNum = 570;BA.debugLine="Log(rescant3)"; +__c.LogImpl("014549349",BA.NumberToString(_rescant3),0); + //BA.debugLineNum = 571;BA.debugLine="r55.Close"; _r55.Close(); -RDebugUtils.currentLine=15663467; - //BA.debugLineNum = 15663467;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 576;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; _r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '1' ")))); -RDebugUtils.currentLine=15663468; - //BA.debugLineNum = 15663468;BA.debugLine="Private rescant4 As Double"; + //BA.debugLineNum = 577;BA.debugLine="Private rescant4 As Double"; _rescant4 = 0; -RDebugUtils.currentLine=15663469; - //BA.debugLineNum = 15663469;BA.debugLine="If r5.RowCount > 0 Then"; + //BA.debugLineNum = 578;BA.debugLine="If r5.RowCount > 0 Then"; if (_r5.getRowCount()>0) { -RDebugUtils.currentLine=15663470; - //BA.debugLineNum = 15663470;BA.debugLine="r5.Position = 0"; + //BA.debugLineNum = 579;BA.debugLine="r5.Position = 0"; _r5.setPosition((int) (0)); -RDebugUtils.currentLine=15663471; - //BA.debugLineNum = 15663471;BA.debugLine="rescant4 = r5.GetString(\"HVD_COSTO_TOT\")"; + //BA.debugLineNum = 580;BA.debugLine="rescant4 = r5.GetString(\"HVD_COSTO_TOT\")"; _rescant4 = (double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT"))); }; -RDebugUtils.currentLine=15663473; - //BA.debugLineNum = 15663473;BA.debugLine="Log(rescant4)"; -__c.LogImpl("215663473",BA.NumberToString(_rescant4),0); -RDebugUtils.currentLine=15663474; - //BA.debugLineNum = 15663474;BA.debugLine="r5.Close"; + //BA.debugLineNum = 582;BA.debugLine="Log(rescant4)"; +__c.LogImpl("014549361",BA.NumberToString(_rescant4),0); + //BA.debugLineNum = 583;BA.debugLine="r5.Close"; _r5.Close(); -RDebugUtils.currentLine=15663476; - //BA.debugLineNum = 15663476;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 585;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; _r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT from PEDIDO WHERE PE_TIPO <> 'SOBRANTE' ")))); -RDebugUtils.currentLine=15663477; - //BA.debugLineNum = 15663477;BA.debugLine="Private rescant5 As Double"; + //BA.debugLineNum = 586;BA.debugLine="Private rescant5 As Double"; _rescant5 = 0; -RDebugUtils.currentLine=15663478; - //BA.debugLineNum = 15663478;BA.debugLine="If r5.RowCount > 0 Then"; + //BA.debugLineNum = 587;BA.debugLine="If r5.RowCount > 0 Then"; if (_r5.getRowCount()>0) { -RDebugUtils.currentLine=15663479; - //BA.debugLineNum = 15663479;BA.debugLine="r5.Position = 0"; + //BA.debugLineNum = 588;BA.debugLine="r5.Position = 0"; _r5.setPosition((int) (0)); -RDebugUtils.currentLine=15663480; - //BA.debugLineNum = 15663480;BA.debugLine="rescant5 = r5.GetString(\"PE_COSTO_TOT\")"; + //BA.debugLineNum = 589;BA.debugLine="rescant5 = r5.GetString(\"PE_COSTO_TOT\")"; _rescant5 = (double)(Double.parseDouble(_r5.GetString("PE_COSTO_TOT"))); }; -RDebugUtils.currentLine=15663482; - //BA.debugLineNum = 15663482;BA.debugLine="Log(rescant5)"; -__c.LogImpl("215663482",BA.NumberToString(_rescant5),0); -RDebugUtils.currentLine=15663483; - //BA.debugLineNum = 15663483;BA.debugLine="r5.Close"; + //BA.debugLineNum = 591;BA.debugLine="Log(rescant5)"; +__c.LogImpl("014549370",BA.NumberToString(_rescant5),0); + //BA.debugLineNum = 592;BA.debugLine="r5.Close"; _r5.Close(); -RDebugUtils.currentLine=15663488; - //BA.debugLineNum = 15663488;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 597;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; _r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' ")))); -RDebugUtils.currentLine=15663489; - //BA.debugLineNum = 15663489;BA.debugLine="Private rescant6 As Double"; + //BA.debugLineNum = 598;BA.debugLine="Private rescant6 As Double"; _rescant6 = 0; -RDebugUtils.currentLine=15663490; - //BA.debugLineNum = 15663490;BA.debugLine="If r5.RowCount > 0 Then"; + //BA.debugLineNum = 599;BA.debugLine="If r5.RowCount > 0 Then"; if (_r5.getRowCount()>0) { -RDebugUtils.currentLine=15663491; - //BA.debugLineNum = 15663491;BA.debugLine="For j4 = 0 To r5.RowCount -1"; + //BA.debugLineNum = 600;BA.debugLine="For j4 = 0 To r5.RowCount -1"; { final int step257 = 1; final int limit257 = (int) (_r5.getRowCount()-1); _j4 = (int) (0) ; for (;_j4 <= limit257 ;_j4 = _j4 + step257 ) { -RDebugUtils.currentLine=15663492; - //BA.debugLineNum = 15663492;BA.debugLine="r5.Position = j4"; + //BA.debugLineNum = 601;BA.debugLine="r5.Position = j4"; _r5.setPosition(_j4); -RDebugUtils.currentLine=15663493; - //BA.debugLineNum = 15663493;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 602;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($"; _r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"' AND PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); -RDebugUtils.currentLine=15663494; - //BA.debugLineNum = 15663494;BA.debugLine="r6.Position = 0"; + //BA.debugLineNum = 603;BA.debugLine="r6.Position = 0"; _r6.setPosition((int) (0)); -RDebugUtils.currentLine=15663497; - //BA.debugLineNum = 15663497;BA.debugLine="rescant6 = rescant6 + ((r5.GetString(\"HVD_COSTO"; + //BA.debugLineNum = 606;BA.debugLine="rescant6 = rescant6 + ((r5.GetString(\"HVD_COSTO"; _rescant6 = _rescant6+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("HVD_CANT")))))*((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT"))))); -RDebugUtils.currentLine=15663499; - //BA.debugLineNum = 15663499;BA.debugLine="r6.Close"; + //BA.debugLineNum = 608;BA.debugLine="r6.Close"; _r6.Close(); } }; }; -RDebugUtils.currentLine=15663502; - //BA.debugLineNum = 15663502;BA.debugLine="If rescant6 = \"NaN\" Then rescant6 = 0"; + //BA.debugLineNum = 611;BA.debugLine="If rescant6 = \"NaN\" Then rescant6 = 0"; if (_rescant6==(double)(Double.parseDouble("NaN"))) { _rescant6 = 0;}; -RDebugUtils.currentLine=15663503; - //BA.debugLineNum = 15663503;BA.debugLine="LogColor(rescant6,Colors.Red)"; -__c.LogImpl("215663503",BA.NumberToString(_rescant6),__c.Colors.Red); -RDebugUtils.currentLine=15663504; - //BA.debugLineNum = 15663504;BA.debugLine="r5.Close"; + //BA.debugLineNum = 612;BA.debugLine="LogColor(rescant6,Colors.Red)"; +__c.LogImpl("014549391",BA.NumberToString(_rescant6),__c.Colors.Red); + //BA.debugLineNum = 613;BA.debugLine="r5.Close"; _r5.Close(); -RDebugUtils.currentLine=15663506; - //BA.debugLineNum = 15663506;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 615;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; _r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT,IFNULL(CANTC,0) AS CANTC, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '1' ")))); -RDebugUtils.currentLine=15663507; - //BA.debugLineNum = 15663507;BA.debugLine="Private rescant7 As Double"; + //BA.debugLineNum = 616;BA.debugLine="Private rescant7 As Double"; _rescant7 = 0; -RDebugUtils.currentLine=15663508; - //BA.debugLineNum = 15663508;BA.debugLine="If r5.RowCount > 0 Then"; + //BA.debugLineNum = 617;BA.debugLine="If r5.RowCount > 0 Then"; if (_r5.getRowCount()>0) { -RDebugUtils.currentLine=15663509; - //BA.debugLineNum = 15663509;BA.debugLine="For j5 = 0 To r5.RowCount -1"; + //BA.debugLineNum = 618;BA.debugLine="For j5 = 0 To r5.RowCount -1"; { final int step271 = 1; final int limit271 = (int) (_r5.getRowCount()-1); _j5 = (int) (0) ; for (;_j5 <= limit271 ;_j5 = _j5 + step271 ) { -RDebugUtils.currentLine=15663510; - //BA.debugLineNum = 15663510;BA.debugLine="r5.Position = j5"; + //BA.debugLineNum = 619;BA.debugLine="r5.Position = j5"; _r5.setPosition(_j5); -RDebugUtils.currentLine=15663511; - //BA.debugLineNum = 15663511;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 620;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($"; _r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"' PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); -RDebugUtils.currentLine=15663512; - //BA.debugLineNum = 15663512;BA.debugLine="r6.Position = 0"; + //BA.debugLineNum = 621;BA.debugLine="r6.Position = 0"; _r6.setPosition((int) (0)); -RDebugUtils.currentLine=15663514; - //BA.debugLineNum = 15663514;BA.debugLine="rescant7 = rescant7 + ((r5.GetString(\"HVD_COSTO"; + //BA.debugLineNum = 623;BA.debugLine="rescant7 = rescant7 + ((r5.GetString(\"HVD_COSTO"; _rescant7 = _rescant7+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("CANTC")))))*(((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT"))))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_r5.GetString("HVD_PROID")))))); -RDebugUtils.currentLine=15663515; - //BA.debugLineNum = 15663515;BA.debugLine="r6.Close"; + //BA.debugLineNum = 624;BA.debugLine="r6.Close"; _r6.Close(); } }; }; -RDebugUtils.currentLine=15663518; - //BA.debugLineNum = 15663518;BA.debugLine="If rescant7 = \"NaN\" Then rescant7 = 0"; + //BA.debugLineNum = 627;BA.debugLine="If rescant7 = \"NaN\" Then rescant7 = 0"; if (_rescant7==(double)(Double.parseDouble("NaN"))) { _rescant7 = 0;}; -RDebugUtils.currentLine=15663519; - //BA.debugLineNum = 15663519;BA.debugLine="Log(rescant7)"; -__c.LogImpl("215663519",BA.NumberToString(_rescant7),0); -RDebugUtils.currentLine=15663520; - //BA.debugLineNum = 15663520;BA.debugLine="r5.Close"; + //BA.debugLineNum = 628;BA.debugLine="Log(rescant7)"; +__c.LogImpl("014549407",BA.NumberToString(_rescant7),0); + //BA.debugLineNum = 629;BA.debugLine="r5.Close"; _r5.Close(); -RDebugUtils.currentLine=15663523; - //BA.debugLineNum = 15663523;BA.debugLine="Private r55 As Cursor = Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 632;BA.debugLine="Private r55 As Cursor = Starter.skmt.ExecQuery($\""; _r55 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r55 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_COSTO_TOT, HVD_CANT from HIST_VENTAS where HVD_RECHAZO = '0' and BCAJAS = '0' AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2)")))); -RDebugUtils.currentLine=15663524; - //BA.debugLineNum = 15663524;BA.debugLine="Private rescant10 As Double"; + //BA.debugLineNum = 633;BA.debugLine="Private rescant10 As Double"; _rescant10 = 0; -RDebugUtils.currentLine=15663525; - //BA.debugLineNum = 15663525;BA.debugLine="Private pztotal As Int"; + //BA.debugLineNum = 634;BA.debugLine="Private pztotal As Int"; _pztotal = 0; -RDebugUtils.currentLine=15663526; - //BA.debugLineNum = 15663526;BA.debugLine="If r55.RowCount > 0 Then"; + //BA.debugLineNum = 635;BA.debugLine="If r55.RowCount > 0 Then"; if (_r55.getRowCount()>0) { -RDebugUtils.currentLine=15663527; - //BA.debugLineNum = 15663527;BA.debugLine="For r75 = 0 To r55.RowCount -1"; + //BA.debugLineNum = 636;BA.debugLine="For r75 = 0 To r55.RowCount -1"; { final int step286 = 1; final int limit286 = (int) (_r55.getRowCount()-1); _r75 = (int) (0) ; for (;_r75 <= limit286 ;_r75 = _r75 + step286 ) { -RDebugUtils.currentLine=15663528; - //BA.debugLineNum = 15663528;BA.debugLine="r55.Position = r75"; + //BA.debugLineNum = 637;BA.debugLine="r55.Position = r75"; _r55.setPosition(_r75); -RDebugUtils.currentLine=15663529; - //BA.debugLineNum = 15663529;BA.debugLine="rescant10 = rescant10 + r55.GetString(\"HVD_COST"; + //BA.debugLineNum = 638;BA.debugLine="rescant10 = rescant10 + r55.GetString(\"HVD_COST"; _rescant10 = _rescant10+(double)(Double.parseDouble(_r55.GetString("HVD_COSTO_TOT"))); -RDebugUtils.currentLine=15663530; - //BA.debugLineNum = 15663530;BA.debugLine="rescant10 = NumberFormat2(rescant10, 0, 2, 2, F"; + //BA.debugLineNum = 639;BA.debugLine="rescant10 = NumberFormat2(rescant10, 0, 2, 2, F"; _rescant10 = (double)(Double.parseDouble(__c.NumberFormat2(_rescant10,(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=15663531; - //BA.debugLineNum = 15663531;BA.debugLine="pztotal = pztotal + r55.GetString(\"HVD_CANT\")"; + //BA.debugLineNum = 640;BA.debugLine="pztotal = pztotal + r55.GetString(\"HVD_CANT\")"; _pztotal = (int) (_pztotal+(double)(Double.parseDouble(_r55.GetString("HVD_CANT")))); } }; }; -RDebugUtils.currentLine=15663534; - //BA.debugLineNum = 15663534;BA.debugLine="Log(rescant10)"; -__c.LogImpl("215663534",BA.NumberToString(_rescant10),0); -RDebugUtils.currentLine=15663535; - //BA.debugLineNum = 15663535;BA.debugLine="r55.Close"; + //BA.debugLineNum = 643;BA.debugLine="Log(rescant10)"; +__c.LogImpl("014549422",BA.NumberToString(_rescant10),0); + //BA.debugLineNum = 644;BA.debugLine="r55.Close"; _r55.Close(); -RDebugUtils.currentLine=15663548; - //BA.debugLineNum = 15663548;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 657;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; _r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT, IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO ")))); -RDebugUtils.currentLine=15663549; - //BA.debugLineNum = 15663549;BA.debugLine="Private pztotal2 As Int"; + //BA.debugLineNum = 658;BA.debugLine="Private pztotal2 As Int"; _pztotal2 = 0; -RDebugUtils.currentLine=15663550; - //BA.debugLineNum = 15663550;BA.debugLine="Private rescant11 As Double"; + //BA.debugLineNum = 659;BA.debugLine="Private rescant11 As Double"; _rescant11 = 0; -RDebugUtils.currentLine=15663551; - //BA.debugLineNum = 15663551;BA.debugLine="If r5.RowCount > 0 Then"; + //BA.debugLineNum = 660;BA.debugLine="If r5.RowCount > 0 Then"; if (_r5.getRowCount()>0) { -RDebugUtils.currentLine=15663552; - //BA.debugLineNum = 15663552;BA.debugLine="r5.Position = 0"; + //BA.debugLineNum = 661;BA.debugLine="r5.Position = 0"; _r5.setPosition((int) (0)); -RDebugUtils.currentLine=15663553; - //BA.debugLineNum = 15663553;BA.debugLine="rescant11 = r5.GetString(\"PE_COSTO_TOT\")"; + //BA.debugLineNum = 662;BA.debugLine="rescant11 = r5.GetString(\"PE_COSTO_TOT\")"; _rescant11 = (double)(Double.parseDouble(_r5.GetString("PE_COSTO_TOT"))); -RDebugUtils.currentLine=15663554; - //BA.debugLineNum = 15663554;BA.debugLine="pztotal2 = pztotal2 + r5.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 663;BA.debugLine="pztotal2 = pztotal2 + r5.GetString(\"PE_CANT\")"; _pztotal2 = (int) (_pztotal2+(double)(Double.parseDouble(_r5.GetString("PE_CANT")))); }; -RDebugUtils.currentLine=15663556; - //BA.debugLineNum = 15663556;BA.debugLine="Log(rescant11)"; -__c.LogImpl("215663556",BA.NumberToString(_rescant11),0); -RDebugUtils.currentLine=15663557; - //BA.debugLineNum = 15663557;BA.debugLine="r5.Close"; + //BA.debugLineNum = 665;BA.debugLine="Log(rescant11)"; +__c.LogImpl("014549444",BA.NumberToString(_rescant11),0); + //BA.debugLineNum = 666;BA.debugLine="r5.Close"; _r5.Close(); -RDebugUtils.currentLine=15663559; - //BA.debugLineNum = 15663559;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 668;BA.debugLine="Private r5 As Cursor = Starter.skmt.ExecQuery($\"s"; _r5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, IFNULL(HVD_CANT,0) AS HVD_CANT, IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_PROID, HVD_CLIENTE, CONSECUTIVO from HIST_VENTAS where HVD_RECHAZO = '1' and BCAJAS = '0' AND HVD_CLIENTE IN (SELECT CAT_CL_CODIGO from kmt_info WHERE gestion = 2) ")))); -RDebugUtils.currentLine=15663560; - //BA.debugLineNum = 15663560;BA.debugLine="Private pztotal3 As Int"; + //BA.debugLineNum = 669;BA.debugLine="Private pztotal3 As Int"; _pztotal3 = 0; -RDebugUtils.currentLine=15663561; - //BA.debugLineNum = 15663561;BA.debugLine="Private rescant12 As Double"; + //BA.debugLineNum = 670;BA.debugLine="Private rescant12 As Double"; _rescant12 = 0; -RDebugUtils.currentLine=15663562; - //BA.debugLineNum = 15663562;BA.debugLine="If r5.RowCount > 0 Then"; + //BA.debugLineNum = 671;BA.debugLine="If r5.RowCount > 0 Then"; if (_r5.getRowCount()>0) { -RDebugUtils.currentLine=15663563; - //BA.debugLineNum = 15663563;BA.debugLine="For j4 = 0 To r5.RowCount -1"; + //BA.debugLineNum = 672;BA.debugLine="For j4 = 0 To r5.RowCount -1"; { final int step309 = 1; final int limit309 = (int) (_r5.getRowCount()-1); _j4 = (int) (0) ; for (;_j4 <= limit309 ;_j4 = _j4 + step309 ) { -RDebugUtils.currentLine=15663564; - //BA.debugLineNum = 15663564;BA.debugLine="r5.Position = j4"; + //BA.debugLineNum = 673;BA.debugLine="r5.Position = j4"; _r5.setPosition(_j4); -RDebugUtils.currentLine=15663565; - //BA.debugLineNum = 15663565;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 674;BA.debugLine="Private r6 As Cursor = Starter.skmt.ExecQuery($"; _r6 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _r6 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_CANT),0) AS PE_CANT from PEDIDO where PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_r5.GetString("CONSECUTIVO")))+"' ")))); -RDebugUtils.currentLine=15663566; - //BA.debugLineNum = 15663566;BA.debugLine="r6.Position = 0"; + //BA.debugLineNum = 675;BA.debugLine="r6.Position = 0"; _r6.setPosition((int) (0)); -RDebugUtils.currentLine=15663567; - //BA.debugLineNum = 15663567;BA.debugLine="LogColor(r5.GetString(\"HVD_COSTO_TOT\")&\" / \"& r"; -__c.LogImpl("215663567",_r5.GetString("HVD_COSTO_TOT")+" / "+_r5.GetString("HVD_CANT")+" * "+_r5.GetString("HVD_RECHAZOCANT")+" - "+_r6.GetString("PE_CANT"),__c.Colors.Blue); -RDebugUtils.currentLine=15663568; - //BA.debugLineNum = 15663568;BA.debugLine="LogColor(r6.GetString(\"PE_CANT\"),Colors.Blue)"; -__c.LogImpl("215663568",_r6.GetString("PE_CANT"),__c.Colors.Blue); -RDebugUtils.currentLine=15663569; - //BA.debugLineNum = 15663569;BA.debugLine="rescant12 = rescant12 + ((r5.GetString(\"HVD_COS"; + //BA.debugLineNum = 676;BA.debugLine="LogColor(r5.GetString(\"HVD_COSTO_TOT\")&\" / \"& r"; +__c.LogImpl("014549455",_r5.GetString("HVD_COSTO_TOT")+" / "+_r5.GetString("HVD_CANT")+" * "+_r5.GetString("HVD_RECHAZOCANT")+" - "+_r6.GetString("PE_CANT"),__c.Colors.Blue); + //BA.debugLineNum = 677;BA.debugLine="LogColor(r6.GetString(\"PE_CANT\"),Colors.Blue)"; +__c.LogImpl("014549456",_r6.GetString("PE_CANT"),__c.Colors.Blue); + //BA.debugLineNum = 678;BA.debugLine="rescant12 = rescant12 + ((r5.GetString(\"HVD_COS"; _rescant12 = _rescant12+(((double)(Double.parseDouble(_r5.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble((_r5.GetString("HVD_CANT")))))*((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT"))))); -RDebugUtils.currentLine=15663570; - //BA.debugLineNum = 15663570;BA.debugLine="pztotal3 = pztotal3 + (r5.GetString(\"HVD_CANT\""; + //BA.debugLineNum = 679;BA.debugLine="pztotal3 = pztotal3 + (r5.GetString(\"HVD_CANT\""; _pztotal3 = (int) (_pztotal3+((double)(Double.parseDouble(_r5.GetString("HVD_CANT")))-(double)(Double.parseDouble(_r5.GetString("HVD_RECHAZOCANT"))))); -RDebugUtils.currentLine=15663571; - //BA.debugLineNum = 15663571;BA.debugLine="Log(rescant12)"; -__c.LogImpl("215663571",BA.NumberToString(_rescant12),0); -RDebugUtils.currentLine=15663572; - //BA.debugLineNum = 15663572;BA.debugLine="r6.Close"; + //BA.debugLineNum = 680;BA.debugLine="Log(rescant12)"; +__c.LogImpl("014549459",BA.NumberToString(_rescant12),0); + //BA.debugLineNum = 681;BA.debugLine="r6.Close"; _r6.Close(); } }; }; -RDebugUtils.currentLine=15663575; - //BA.debugLineNum = 15663575;BA.debugLine="If rescant12 = \"NaN\" Then rescant12 = 0"; + //BA.debugLineNum = 684;BA.debugLine="If rescant12 = \"NaN\" Then rescant12 = 0"; if (_rescant12==(double)(Double.parseDouble("NaN"))) { _rescant12 = 0;}; -RDebugUtils.currentLine=15663576; - //BA.debugLineNum = 15663576;BA.debugLine="LogColor(rescant12,Colors.Red)"; -__c.LogImpl("215663576",BA.NumberToString(_rescant12),__c.Colors.Red); -RDebugUtils.currentLine=15663577; - //BA.debugLineNum = 15663577;BA.debugLine="r5.Close"; + //BA.debugLineNum = 685;BA.debugLine="LogColor(rescant12,Colors.Red)"; +__c.LogImpl("014549464",BA.NumberToString(_rescant12),__c.Colors.Red); + //BA.debugLineNum = 686;BA.debugLine="r5.Close"; _r5.Close(); -RDebugUtils.currentLine=15663580; - //BA.debugLineNum = 15663580;BA.debugLine="Private restafaltante As Cursor = Starter.skmt.Ex"; + //BA.debugLineNum = 689;BA.debugLine="Private restafaltante As Cursor = Starter.skmt.Ex"; _restafaltante = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _restafaltante = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(SUM(PE_COSTO_TOT),0) AS PE_COSTO_TOT from PEDIDO where PE_CLIENTEOR = '' AND PE_TIPO = 'FALTANTE'")))); -RDebugUtils.currentLine=15663582; - //BA.debugLineNum = 15663582;BA.debugLine="Private rescant8 As Double = 0"; + //BA.debugLineNum = 691;BA.debugLine="Private rescant8 As Double = 0"; _rescant8 = 0; -RDebugUtils.currentLine=15663584; - //BA.debugLineNum = 15663584;BA.debugLine="If restafaltante.RowCount > 0 Then"; + //BA.debugLineNum = 693;BA.debugLine="If restafaltante.RowCount > 0 Then"; if (_restafaltante.getRowCount()>0) { -RDebugUtils.currentLine=15663585; - //BA.debugLineNum = 15663585;BA.debugLine="restafaltante.Position = 0"; + //BA.debugLineNum = 694;BA.debugLine="restafaltante.Position = 0"; _restafaltante.setPosition((int) (0)); -RDebugUtils.currentLine=15663586; - //BA.debugLineNum = 15663586;BA.debugLine="rescant8 = NumberFormat2(restafaltante.GetDouble"; + //BA.debugLineNum = 695;BA.debugLine="rescant8 = NumberFormat2(restafaltante.GetDouble"; _rescant8 = (double)(Double.parseDouble(__c.NumberFormat2(_restafaltante.GetDouble("PE_COSTO_TOT"),(int) (0),(int) (2),(int) (2),__c.False))); }; -RDebugUtils.currentLine=15663588; - //BA.debugLineNum = 15663588;BA.debugLine="If rescant8 = \"NaN\" Then rescant8 = 0"; + //BA.debugLineNum = 697;BA.debugLine="If rescant8 = \"NaN\" Then rescant8 = 0"; if (_rescant8==(double)(Double.parseDouble("NaN"))) { _rescant8 = 0;}; -RDebugUtils.currentLine=15663589; - //BA.debugLineNum = 15663589;BA.debugLine="Log(rescant8)"; -__c.LogImpl("215663589",BA.NumberToString(_rescant8),0); -RDebugUtils.currentLine=15663590; - //BA.debugLineNum = 15663590;BA.debugLine="r5.Close"; + //BA.debugLineNum = 698;BA.debugLine="Log(rescant8)"; +__c.LogImpl("014549477",BA.NumberToString(_rescant8),0); + //BA.debugLineNum = 699;BA.debugLine="r5.Close"; _r5.Close(); -RDebugUtils.currentLine=15663592; - //BA.debugLineNum = 15663592;BA.debugLine="l_rechazo.text = NumberFormat2((rescant + rescant"; -__ref._l_rechazo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_rescant))+_rescant2),(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=15663593; - //BA.debugLineNum = 15663593;BA.debugLine="L_MONTOE.Text = NumberFormat2((rescant3 + rescant"; -__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2((_rescant3+_rescant4+_rescant5+_rescant6+_rescant7),(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=15663594; - //BA.debugLineNum = 15663594;BA.debugLine="Log((rescant3 &\" + \"& rescant4 &\" + \"& re"; -__c.LogImpl("215663594",(BA.NumberToString(_rescant3)+" + "+BA.NumberToString(_rescant4)+" + "+BA.NumberToString(_rescant5)+" + "+BA.NumberToString(_rescant6)+" + "+BA.NumberToString(_rescant7)),0); -RDebugUtils.currentLine=15663597; - //BA.debugLineNum = 15663597;BA.debugLine="Dim g8 As Cursor = Starter.skmt.ExecQuery(\"SELECT"; + //BA.debugLineNum = 701;BA.debugLine="l_rechazo.text = NumberFormat2((rescant + rescant"; +_l_rechazo.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_rescant))+_rescant2),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 702;BA.debugLine="L_MONTOE.Text = NumberFormat2((rescant3 + rescant"; +_l_montoe.setText(BA.ObjectToCharSequence(__c.NumberFormat2((_rescant3+_rescant4+_rescant5+_rescant6+_rescant7),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 703;BA.debugLine="Log((rescant3 &\" + \"& rescant4 &\" + \"& re"; +__c.LogImpl("014549482",(BA.NumberToString(_rescant3)+" + "+BA.NumberToString(_rescant4)+" + "+BA.NumberToString(_rescant5)+" + "+BA.NumberToString(_rescant6)+" + "+BA.NumberToString(_rescant7)),0); + //BA.debugLineNum = 706;BA.debugLine="Dim g8 As Cursor = Starter.skmt.ExecQuery(\"SELECT"; _g8 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _g8 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IFNULL(SUM(HVD_COSTO_TOT),0) AS HVD_COSTO_TOT FROM HIST_VENTAS"))); -RDebugUtils.currentLine=15663598; - //BA.debugLineNum = 15663598;BA.debugLine="g8.Position = 0"; + //BA.debugLineNum = 707;BA.debugLine="g8.Position = 0"; _g8.setPosition((int) (0)); -RDebugUtils.currentLine=15663599; - //BA.debugLineNum = 15663599;BA.debugLine="Dim g11 As Cursor = Starter.skmt.ExecQuery(\"SELEC"; + //BA.debugLineNum = 708;BA.debugLine="Dim g11 As Cursor = Starter.skmt.ExecQuery(\"SELEC"; _g11 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _g11 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion <> 0"))); -RDebugUtils.currentLine=15663600; - //BA.debugLineNum = 15663600;BA.debugLine="g11.Position = 0"; + //BA.debugLineNum = 709;BA.debugLine="g11.Position = 0"; _g11.setPosition((int) (0)); -RDebugUtils.currentLine=15663601; - //BA.debugLineNum = 15663601;BA.debugLine="Dim g12 As Cursor = Starter.skmt.ExecQuery(\"SELEC"; + //BA.debugLineNum = 710;BA.debugLine="Dim g12 As Cursor = Starter.skmt.ExecQuery(\"SELEC"; _g12 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _g12 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion = 2"))); -RDebugUtils.currentLine=15663602; - //BA.debugLineNum = 15663602;BA.debugLine="g12.Position = 0"; + //BA.debugLineNum = 711;BA.debugLine="g12.Position = 0"; _g12.setPosition((int) (0)); -RDebugUtils.currentLine=15663603; - //BA.debugLineNum = 15663603;BA.debugLine="Dim g13 As Cursor = Starter.skmt.ExecQuery(\"SELEC"; + //BA.debugLineNum = 712;BA.debugLine="Dim g13 As Cursor = Starter.skmt.ExecQuery(\"SELEC"; _g13 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _g13 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT count(*) as cuenta FROM kmt_info where gestion = 3"))); -RDebugUtils.currentLine=15663604; - //BA.debugLineNum = 15663604;BA.debugLine="g13.Position = 0"; + //BA.debugLineNum = 713;BA.debugLine="g13.Position = 0"; _g13.setPosition((int) (0)); -RDebugUtils.currentLine=15663606; - //BA.debugLineNum = 15663606;BA.debugLine="B4XPages.MainPage.monto_entregadoactual = Number"; + //BA.debugLineNum = 715;BA.debugLine="B4XPages.MainPage.monto_entregadoactual = Number"; _b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._monto_entregadoactual /*String*/ = __c.NumberFormat2((_rescant10+_rescant11+_rescant12),(int) (0),(int) (2),(int) (2),__c.False); -RDebugUtils.currentLine=15663608; - //BA.debugLineNum = 15663608;BA.debugLine="B4XPages.MainPage.clientesVisitados = L_MONTOE.Te"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesvisitados /*String*/ = __ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(); -RDebugUtils.currentLine=15663609; - //BA.debugLineNum = 15663609;BA.debugLine="B4XPages.MainPage.clientesVenta = l_cuantosc.Text"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesventa /*String*/ = __ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(); -RDebugUtils.currentLine=15663610; - //BA.debugLineNum = 15663610;BA.debugLine="B4XPages.MainPage.clientesRechazo = l_cuantosn.Te"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesrechazo /*String*/ = __ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(); -RDebugUtils.currentLine=15663611; - //BA.debugLineNum = 15663611;BA.debugLine="B4XPages.MainPage.clientestotal = l_porvisitar.Te"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientestotal /*String*/ = __ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(); -RDebugUtils.currentLine=15663612; - //BA.debugLineNum = 15663612;BA.debugLine="B4XPages.MainPage.montoActual = Round2(g8.GetStr"; + //BA.debugLineNum = 717;BA.debugLine="B4XPages.MainPage.clientesVisitados = L_MONTOE.Te"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesvisitados /*String*/ = _l_montoe.getText(); + //BA.debugLineNum = 718;BA.debugLine="B4XPages.MainPage.clientesVenta = l_cuantosc.Text"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesventa /*String*/ = _l_cuantosc.getText(); + //BA.debugLineNum = 719;BA.debugLine="B4XPages.MainPage.clientesRechazo = l_cuantosn.Te"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientesrechazo /*String*/ = _l_cuantosn.getText(); + //BA.debugLineNum = 720;BA.debugLine="B4XPages.MainPage.clientestotal = l_porvisitar.Te"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._clientestotal /*String*/ = _l_porvisitar.getText(); + //BA.debugLineNum = 721;BA.debugLine="B4XPages.MainPage.montoActual = Round2(g8.GetStr"; _b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montoactual /*String*/ = BA.NumberToString(__c.Round2((double)(Double.parseDouble(_g8.GetString("HVD_COSTO_TOT"))),(int) (2))); -RDebugUtils.currentLine=15663613; - //BA.debugLineNum = 15663613;BA.debugLine="B4XPages.MainPage.porVisitar = l_ctast.text"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._porvisitar /*String*/ = __ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(); -RDebugUtils.currentLine=15663614; - //BA.debugLineNum = 15663614;BA.debugLine="B4XPages.MainPage.visitadostotales = g11.GetStrin"; + //BA.debugLineNum = 722;BA.debugLine="B4XPages.MainPage.porVisitar = l_ctast.text"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._porvisitar /*String*/ = _l_ctast.getText(); + //BA.debugLineNum = 723;BA.debugLine="B4XPages.MainPage.visitadostotales = g11.GetStrin"; _b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._visitadostotales /*String*/ = _g11.GetString("cuenta"); -RDebugUtils.currentLine=15663616; - //BA.debugLineNum = 15663616;BA.debugLine="B4XPages.MainPage.entregas = g12.GetString(\"cuent"; + //BA.debugLineNum = 725;BA.debugLine="B4XPages.MainPage.entregas = g12.GetString(\"cuent"; _b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._entregas /*String*/ = _g12.GetString("cuenta"); -RDebugUtils.currentLine=15663617; - //BA.debugLineNum = 15663617;BA.debugLine="B4XPages.MainPage.rechazos = g13.GetString(\"cuent"; + //BA.debugLineNum = 726;BA.debugLine="B4XPages.MainPage.rechazos = g13.GetString(\"cuent"; _b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rechazos /*String*/ = _g13.GetString("cuenta"); -RDebugUtils.currentLine=15663618; - //BA.debugLineNum = 15663618;BA.debugLine="B4XPages.MainPage.montoEntregado = L_MONTOE.text"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montoentregado /*String*/ = __ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(); -RDebugUtils.currentLine=15663619; - //BA.debugLineNum = 15663619;BA.debugLine="B4XPages.MainPage.montoRechazado = l_rechazo.text"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montorechazado /*String*/ = __ref._l_rechazo /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(); -RDebugUtils.currentLine=15663621; - //BA.debugLineNum = 15663621;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=15663624; - //BA.debugLineNum = 15663624;BA.debugLine="If l_ctast.Text = 0 And l_porvisitar.Text <> 0 Th"; -if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0)) && (__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0)) == false) { -RDebugUtils.currentLine=15663625; - //BA.debugLineNum = 15663625;BA.debugLine="Label9.Visible = True"; -__ref._label9 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=15663626; - //BA.debugLineNum = 15663626;BA.debugLine="L_MONTOE.Visible = True"; -__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=15663627; - //BA.debugLineNum = 15663627;BA.debugLine="l_montoaliquidar.Visible = True"; -__ref._l_montoaliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=15663628; - //BA.debugLineNum = 15663628;BA.debugLine="Label21.Visible = True"; -__ref._label21 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=15663636; - //BA.debugLineNum = 15663636;BA.debugLine="b_venta_emp.Visible = True"; -__ref._b_venta_emp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=15663637; - //BA.debugLineNum = 15663637;BA.debugLine="b_comodin.Visible = True"; -__ref._b_comodin /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 727;BA.debugLine="B4XPages.MainPage.montoEntregado = L_MONTOE.text"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montoentregado /*String*/ = _l_montoe.getText(); + //BA.debugLineNum = 728;BA.debugLine="B4XPages.MainPage.montoRechazado = l_rechazo.text"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._montorechazado /*String*/ = _l_rechazo.getText(); + //BA.debugLineNum = 730;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 733;BA.debugLine="If l_ctast.Text = 0 And l_porvisitar.Text <> 0 Th"; +if ((_l_ctast.getText()).equals(BA.NumberToString(0)) && (_l_porvisitar.getText()).equals(BA.NumberToString(0)) == false) { + //BA.debugLineNum = 734;BA.debugLine="Label9.Visible = True"; +_label9.setVisible(__c.True); + //BA.debugLineNum = 735;BA.debugLine="L_MONTOE.Visible = True"; +_l_montoe.setVisible(__c.True); + //BA.debugLineNum = 736;BA.debugLine="l_montoaliquidar.Visible = True"; +_l_montoaliquidar.setVisible(__c.True); + //BA.debugLineNum = 737;BA.debugLine="Label21.Visible = True"; +_label21.setVisible(__c.True); + //BA.debugLineNum = 745;BA.debugLine="b_venta_emp.Visible = True"; +_b_venta_emp.setVisible(__c.True); + //BA.debugLineNum = 746;BA.debugLine="b_comodin.Visible = True"; +_b_comodin.setVisible(__c.True); }else { -RDebugUtils.currentLine=15663639; - //BA.debugLineNum = 15663639;BA.debugLine="Label21.Visible = False"; -__ref._label21 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=15663640; - //BA.debugLineNum = 15663640;BA.debugLine="l_montoaliquidar.Visible = False"; -__ref._l_montoaliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=15663641; - //BA.debugLineNum = 15663641;BA.debugLine="Label9.Visible = False '''' PRUEBAS MOVER A TRU"; -__ref._label9 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=15663642; - //BA.debugLineNum = 15663642;BA.debugLine="L_MONTOE.Visible = False"; -__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=15663643; - //BA.debugLineNum = 15663643;BA.debugLine="b_venta_emp.Visible = False '''' PRUEBAS MOVER A"; -__ref._b_venta_emp /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=15663644; - //BA.debugLineNum = 15663644;BA.debugLine="b_comodin.Visible = False"; -__ref._b_comodin /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 748;BA.debugLine="Label21.Visible = False"; +_label21.setVisible(__c.False); + //BA.debugLineNum = 749;BA.debugLine="l_montoaliquidar.Visible = False"; +_l_montoaliquidar.setVisible(__c.False); + //BA.debugLineNum = 750;BA.debugLine="Label9.Visible = False '''' PRUEBAS MOVER A TRU"; +_label9.setVisible(__c.False); + //BA.debugLineNum = 751;BA.debugLine="L_MONTOE.Visible = False"; +_l_montoe.setVisible(__c.False); + //BA.debugLineNum = 752;BA.debugLine="b_venta_emp.Visible = False '''' PRUEBAS MOVER A"; +_b_venta_emp.setVisible(__c.False); + //BA.debugLineNum = 753;BA.debugLine="b_comodin.Visible = False"; +_b_comodin.setVisible(__c.False); }; -RDebugUtils.currentLine=15663647; - //BA.debugLineNum = 15663647;BA.debugLine="If l_ruta.Text = 0 Then"; -if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=15663648; - //BA.debugLineNum = 15663648;BA.debugLine="b_imp_inventario.Visible = False"; -__ref._b_imp_inventario /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 756;BA.debugLine="If l_ruta.Text = 0 Then"; +if ((_l_ruta.getText()).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 757;BA.debugLine="b_imp_inventario.Visible = False"; +_b_imp_inventario.setVisible(__c.False); }else { -RDebugUtils.currentLine=15663650; - //BA.debugLineNum = 15663650;BA.debugLine="b_imp_inventario.Visible = True"; -__ref._b_imp_inventario /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 759;BA.debugLine="b_imp_inventario.Visible = True"; +_b_imp_inventario.setVisible(__c.True); }; -RDebugUtils.currentLine=15663658; - //BA.debugLineNum = 15663658;BA.debugLine="c = Starter.skmt.ExecQuery2(\"select CAT_VA_VALOR"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"MACIMP"}))); -RDebugUtils.currentLine=15663659; - //BA.debugLineNum = 15663659;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=15663660; - //BA.debugLineNum = 15663660;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15663661; - //BA.debugLineNum = 15663661;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO"; -_starter._mac_impresora /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_VA_VALOR"); + //BA.debugLineNum = 767;BA.debugLine="c = Starter.skmt.ExecQuery2(\"select CAT_VA_VALOR"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select CAT_VA_VALOR from CAT_VARIABLES WHERE CAT_VA_DESCRIPCION = ?",new String[]{"MACIMP"}))); + //BA.debugLineNum = 768;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 769;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 770;BA.debugLine="Starter.MAC_IMPRESORA = c.GetString(\"CAT_VA_VALO"; +_starter._mac_impresora /*String*/ = _c.GetString("CAT_VA_VALOR"); }; -RDebugUtils.currentLine=15663663; - //BA.debugLineNum = 15663663;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM"; + //BA.debugLineNum = 772;BA.debugLine="If Starter.MAC_IMPRESORA = \"\" Then Starter.MAC_IM"; if ((_starter._mac_impresora /*String*/ ).equals("")) { _starter._mac_impresora /*String*/ = "0";}; -RDebugUtils.currentLine=15663665; - //BA.debugLineNum = 15663665;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._initialize /*String*/ (null,ba,this,"Printer1"); -RDebugUtils.currentLine=15663666; - //BA.debugLineNum = 15663666;BA.debugLine="If Printer1.IsConnected = False Then"; -if (__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null)==__c.False) { + //BA.debugLineNum = 774;BA.debugLine="Printer1.Initialize(Me, \"Printer1\")"; +_printer1._initialize /*String*/ (ba,this,"Printer1"); + //BA.debugLineNum = 775;BA.debugLine="If Printer1.IsConnected = False Then"; +if (_printer1._isconnected /*boolean*/ ()==__c.False) { }else { -RDebugUtils.currentLine=15663670; - //BA.debugLineNum = 15663670;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=15663671; - //BA.debugLineNum = 15663671;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=15663672; - //BA.debugLineNum = 15663672;BA.debugLine="Log(\"2\")"; -__c.LogImpl("215663672","2",0); + //BA.debugLineNum = 779;BA.debugLine="Printer1.DisConnect"; +_printer1._disconnect /*String*/ (); + //BA.debugLineNum = 780;BA.debugLine="Printer1.Connect"; +_printer1._connect /*boolean*/ (); + //BA.debugLineNum = 781;BA.debugLine="Log(\"2\")"; +__c.LogImpl("014549560","2",0); }; -RDebugUtils.currentLine=15663675; - //BA.debugLineNum = 15663675;BA.debugLine="Dim pagarescobrados As Cursor = Starter.skmt.Exec"; + //BA.debugLineNum = 784;BA.debugLine="Dim pagarescobrados As Cursor = Starter.skmt.Exec"; _pagarescobrados = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _pagarescobrados = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IfNULL(SUM(a_abono),0) as a_abono FROM ABONOS"))); -RDebugUtils.currentLine=15663676; - //BA.debugLineNum = 15663676;BA.debugLine="pagarescobrados.Position = 0"; + //BA.debugLineNum = 785;BA.debugLine="pagarescobrados.Position = 0"; _pagarescobrados.setPosition((int) (0)); -RDebugUtils.currentLine=15663677; - //BA.debugLineNum = 15663677;BA.debugLine="l_pagarescobrados.Text = NumberFormat2(pagarescob"; -__ref._l_pagarescobrados /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_pagarescobrados.GetDouble("a_abono"),(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=15663678; - //BA.debugLineNum = 15663678;BA.debugLine="pagarescobrados.Close"; + //BA.debugLineNum = 786;BA.debugLine="l_pagarescobrados.Text = NumberFormat2(pagarescob"; +_l_pagarescobrados.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_pagarescobrados.GetDouble("a_abono"),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 787;BA.debugLine="pagarescobrados.Close"; _pagarescobrados.Close(); -RDebugUtils.currentLine=15663680; - //BA.debugLineNum = 15663680;BA.debugLine="Dim pagaresnuevos As Cursor = Starter.skmt.ExecQu"; + //BA.debugLineNum = 789;BA.debugLine="Dim pagaresnuevos As Cursor = Starter.skmt.ExecQu"; _pagaresnuevos = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _pagaresnuevos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IfNULL(SUM(PA_MONTO),0) as PA_MONTO FROM PAGARES"))); -RDebugUtils.currentLine=15663681; - //BA.debugLineNum = 15663681;BA.debugLine="pagaresnuevos.Position = 0"; + //BA.debugLineNum = 790;BA.debugLine="pagaresnuevos.Position = 0"; _pagaresnuevos.setPosition((int) (0)); -RDebugUtils.currentLine=15663682; - //BA.debugLineNum = 15663682;BA.debugLine="l_pagaresnuevos.Text = NumberFormat2(pagaresnuevo"; -__ref._l_pagaresnuevos /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_pagaresnuevos.GetDouble("PA_MONTO"),(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=15663683; - //BA.debugLineNum = 15663683;BA.debugLine="pagaresnuevos.Close"; + //BA.debugLineNum = 791;BA.debugLine="l_pagaresnuevos.Text = NumberFormat2(pagaresnuevo"; +_l_pagaresnuevos.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_pagaresnuevos.GetDouble("PA_MONTO"),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 792;BA.debugLine="pagaresnuevos.Close"; _pagaresnuevos.Close(); -RDebugUtils.currentLine=15663685; - //BA.debugLineNum = 15663685;BA.debugLine="l_montoaliquidar.Text = NumberFormat2((l_pagaresc"; -__ref._l_montoaliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(__ref._l_pagarescobrados /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))+(double)(Double.parseDouble(__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))-(double)(Double.parseDouble(__ref._l_pagaresnuevos /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))),(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=15663688; - //BA.debugLineNum = 15663688;BA.debugLine="End Sub"; + //BA.debugLineNum = 794;BA.debugLine="l_montoaliquidar.Text = NumberFormat2((l_pagaresc"; +_l_montoaliquidar.setText(BA.ObjectToCharSequence(__c.NumberFormat2(((double)(Double.parseDouble(_l_pagarescobrados.getText()))+(double)(Double.parseDouble(_l_montoe.getText()))-(double)(Double.parseDouble(_l_pagaresnuevos.getText()))),(int) (0),(int) (2),(int) (2),__c.False))); + //BA.debugLineNum = 797;BA.debugLine="End Sub"; return ""; } -public String _b_check_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_check_click", false)) - {return ((String) Debug.delegate(ba, "b_check_click", null));} -RDebugUtils.currentLine=17104896; - //BA.debugLineNum = 17104896;BA.debugLine="Private Sub b_check_Click"; -RDebugUtils.currentLine=17104898; - //BA.debugLineNum = 17104898;BA.debugLine="B4XPages.ShowPage(\"checklist\")"; -_b4xpages._showpage /*String*/ (ba,"checklist"); -RDebugUtils.currentLine=17104900; - //BA.debugLineNum = 17104900;BA.debugLine="End Sub"; -return ""; -} -public String _b_clieprod_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_clieprod_click", false)) - {return ((String) Debug.delegate(ba, "b_clieprod_click", null));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _ch = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _ch1 = null; -anywheresoftware.b4a.objects.LabelWrapper _label1 = null; -anywheresoftware.b4a.objects.LabelWrapper _label2 = null; -int _i = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _vc = null; -String _cuenta0 = ""; -String _arti = ""; -int _hjf = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _vc2 = null; -String _cuenta1 = ""; -String _arti1 = ""; -int _h = 0; -float _preu = 0f; -anywheresoftware.b4a.sql.SQL.CursorWrapper _vc3 = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _vc4 = null; -String _cuenta2 = ""; -String _arti2 = ""; -int _k = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _vc5 = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c4 = null; -String _cuenta3 = ""; -String _arti3 = ""; -int _x = 0; -String _totalmonto = ""; -String _totalcantidad = ""; -RDebugUtils.currentLine=16842752; - //BA.debugLineNum = 16842752;BA.debugLine="Sub B_CLIEPROD_Click"; -RDebugUtils.currentLine=16842753; - //BA.debugLineNum = 16842753;BA.debugLine="If b_check.Visible = True Then"; -if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { -RDebugUtils.currentLine=16842754; - //BA.debugLineNum = 16842754;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten"; -__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba); - }else { -RDebugUtils.currentLine=16842756; - //BA.debugLineNum = 16842756;BA.debugLine="BUSCA.Visible = True"; -__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16842757; - //BA.debugLineNum = 16842757;BA.debugLine="connecta.Visible = False"; -__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16842758; - //BA.debugLineNum = 16842758;BA.debugLine="trabajar.Visible = True"; -__ref._trabajar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16842759; - //BA.debugLineNum = 16842759;BA.debugLine="B_CLIEPROD.Visible = True"; -__ref._b_clieprod /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16842760; - //BA.debugLineNum = 16842760;BA.debugLine="Panel1.Visible = True"; -__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16842761; - //BA.debugLineNum = 16842761;BA.debugLine="Panel1.BringToFront"; -__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront(); -RDebugUtils.currentLine=16842762; - //BA.debugLineNum = 16842762;BA.debugLine="Panel1.Width = Root.Width"; -__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=16842763; - //BA.debugLineNum = 16842763;BA.debugLine="Panel1.Height = Root.Height"; -__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=16842764; - //BA.debugLineNum = 16842764;BA.debugLine="B_REGRESA.Top = Panel1.Height - B_REGRESA.Height"; -__ref._b_regresa /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTop((int) (__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-__ref._b_regresa /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getHeight())); -RDebugUtils.currentLine=16842765; - //BA.debugLineNum = 16842765;BA.debugLine="Btn_Ubicar_Ru.Visible=True"; -__ref._btn_ubicar_ru /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16842767; - //BA.debugLineNum = 16842767;BA.debugLine="Dim ch As Cursor = Starter.skmt.ExecQuery(\"selec"; -_ch = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_ch = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as visit from kmt_info WHERE gestion = 2"))); -RDebugUtils.currentLine=16842768; - //BA.debugLineNum = 16842768;BA.debugLine="ch.Position = 0"; -_ch.setPosition((int) (0)); -RDebugUtils.currentLine=16842769; - //BA.debugLineNum = 16842769;BA.debugLine="L_clientes_visit.Text = ch.GetInt(\"visit\")"; -__ref._l_clientes_visit /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_ch.GetInt("visit"))); -RDebugUtils.currentLine=16842771; - //BA.debugLineNum = 16842771;BA.debugLine="Dim ch1 As Cursor = Starter.skmt.ExecQuery(\"sele"; -_ch1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_ch1 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as rechazo from kmt_info WHERE gestion = 3"))); -RDebugUtils.currentLine=16842772; - //BA.debugLineNum = 16842772;BA.debugLine="ch1.Position = 0"; -_ch1.setPosition((int) (0)); -RDebugUtils.currentLine=16842773; - //BA.debugLineNum = 16842773;BA.debugLine="l_clientes_recha.Text = ch1.GetInt(\"rechazo\")"; -__ref._l_clientes_recha /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_ch1.GetInt("rechazo"))); -RDebugUtils.currentLine=16842774; - //BA.debugLineNum = 16842774;BA.debugLine="l_clientes_visitados.Text = ch1.GetInt(\"rechazo\""; -__ref._l_clientes_visitados /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_ch1.GetInt("rechazo")+_ch.GetInt("visit"))); -RDebugUtils.currentLine=16842776; - //BA.debugLineNum = 16842776;BA.debugLine="c=Starter.skmt.ExecQuery(\"select distinct(CAT_CL_"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select distinct(CAT_CL_CODIGO), GESTION, CAT_CL_NOMBRE from kmt_info WHERE gestion <> 0 order by HORAENT"))); -RDebugUtils.currentLine=16842777; - //BA.debugLineNum = 16842777;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; -_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2)); -RDebugUtils.currentLine=16842778; - //BA.debugLineNum = 16842778;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=16842779; - //BA.debugLineNum = 16842779;BA.debugLine="Dim label1 As Label"; -_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=16842780; - //BA.debugLineNum = 16842780;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=16842781; - //BA.debugLineNum = 16842781;BA.debugLine="label1.TextSize = 16"; -_label1.setTextSize((float) (16)); -RDebugUtils.currentLine=16842782; - //BA.debugLineNum = 16842782;BA.debugLine="label1.TextColor = Colors.Black"; -_label1.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=16842783; - //BA.debugLineNum = 16842783;BA.debugLine="Dim label2 As Label"; -_label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=16842784; - //BA.debugLineNum = 16842784;BA.debugLine="label2 = ListView1.TwoLinesLayout.SecondLabel"; -_label2 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=16842785; - //BA.debugLineNum = 16842785;BA.debugLine="label2.TextSize = 16"; -_label2.setTextSize((float) (16)); -RDebugUtils.currentLine=16842786; - //BA.debugLineNum = 16842786;BA.debugLine="label2.TextColor = Colors.Black"; -_label2.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=16842788; - //BA.debugLineNum = 16842788;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16842789; - //BA.debugLineNum = 16842789;BA.debugLine="For i=0 To c.RowCount -1"; -{ -final int step33 = 1; -final int limit33 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit33 ;_i = _i + step33 ) { -RDebugUtils.currentLine=16842790; - //BA.debugLineNum = 16842790;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=16842791; - //BA.debugLineNum = 16842791;BA.debugLine="If c.GetString(\"gestion\") = \"2\" Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("gestion")).equals("2")) { -RDebugUtils.currentLine=16842792; - //BA.debugLineNum = 16842792;BA.debugLine="ESTATUS = \"ENTREGADO\""; -__ref._estatus /*String*/ = "ENTREGADO"; -RDebugUtils.currentLine=16842793; - //BA.debugLineNum = 16842793;BA.debugLine="Log(\"entrega\")"; -__c.LogImpl("216842793","entrega",0); - }else -{RDebugUtils.currentLine=16842794; - //BA.debugLineNum = 16842794;BA.debugLine="ELSE IF c.GetString(\"gestion\") = \"3\" Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("gestion")).equals("3")) { -RDebugUtils.currentLine=16842795; - //BA.debugLineNum = 16842795;BA.debugLine="Log(\"no entrega\")"; -__c.LogImpl("216842795","no entrega",0); -RDebugUtils.currentLine=16842796; - //BA.debugLineNum = 16842796;BA.debugLine="ESTATUS = \"RECHAZADO\""; -__ref._estatus /*String*/ = "RECHAZADO"; - }else { -RDebugUtils.currentLine=16842798; - //BA.debugLineNum = 16842798;BA.debugLine="ESTATUS = \"SIN ESTATUS\""; -__ref._estatus /*String*/ = "SIN ESTATUS"; - }} -; -RDebugUtils.currentLine=16842803; - //BA.debugLineNum = 16842803;BA.debugLine="If ESTATUS = \"ENTREGADO\" Then"; -if ((__ref._estatus /*String*/ ).equals("ENTREGADO")) { -RDebugUtils.currentLine=16842804; - //BA.debugLineNum = 16842804;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery"; -_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID,HVD_COSTO_TOT, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CAT_GP_PRECIO from HIST_VENTAS LEFT JOIN CAT_GUNAPROD ON CAT_GP_ID = HVD_PROID where BCAJAS = 0 and HVD_CODPROMO ='"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"' and HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"'")))); -RDebugUtils.currentLine=16842806; - //BA.debugLineNum = 16842806;BA.debugLine="Private cuenta0 As String = 0"; -_cuenta0 = BA.NumberToString(0); -RDebugUtils.currentLine=16842807; - //BA.debugLineNum = 16842807;BA.debugLine="Private arti As String = 0"; -_arti = BA.NumberToString(0); -RDebugUtils.currentLine=16842808; - //BA.debugLineNum = 16842808;BA.debugLine="If vc.RowCount > 0 Then"; -if (_vc.getRowCount()>0) { -RDebugUtils.currentLine=16842809; - //BA.debugLineNum = 16842809;BA.debugLine="For hjf = 0 To vc.RowCount - 1"; -{ -final int step49 = 1; -final int limit49 = (int) (_vc.getRowCount()-1); -_hjf = (int) (0) ; -for (;_hjf <= limit49 ;_hjf = _hjf + step49 ) { -RDebugUtils.currentLine=16842810; - //BA.debugLineNum = 16842810;BA.debugLine="vc.Position = hjf"; -_vc.setPosition(_hjf); -RDebugUtils.currentLine=16842812; - //BA.debugLineNum = 16842812;BA.debugLine="arti = arti + (vc.GetString(\"HVD_CANT\") - v"; -_arti = BA.NumberToString((double)(Double.parseDouble(_arti))+((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))); -RDebugUtils.currentLine=16842813; - //BA.debugLineNum = 16842813;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_CAN"; -_cuenta0 = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(((double)(Double.parseDouble(_vc.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc.GetString("HVD_RECHAZOCANT"))))*((double)(Double.parseDouble(_vc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc.GetString("HVD_CANT")))))); - } -}; - }; -RDebugUtils.currentLine=16842818; - //BA.debugLineNum = 16842818;BA.debugLine="Private vc2 As Cursor = Starter.skmt.ExecQuer"; -_vc2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_vc2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 1")))); -RDebugUtils.currentLine=16842819; - //BA.debugLineNum = 16842819;BA.debugLine="Private Cuenta1 As String = 0"; -_cuenta1 = BA.NumberToString(0); -RDebugUtils.currentLine=16842820; - //BA.debugLineNum = 16842820;BA.debugLine="Private arti1 As String = 0"; -_arti1 = BA.NumberToString(0); -RDebugUtils.currentLine=16842821; - //BA.debugLineNum = 16842821;BA.debugLine="If vc2.RowCount > 0 Then"; -if (_vc2.getRowCount()>0) { -RDebugUtils.currentLine=16842822; - //BA.debugLineNum = 16842822;BA.debugLine="For h = 0 To vc2.RowCount - 1"; -{ -final int step59 = 1; -final int limit59 = (int) (_vc2.getRowCount()-1); -_h = (int) (0) ; -for (;_h <= limit59 ;_h = _h + step59 ) { -RDebugUtils.currentLine=16842823; - //BA.debugLineNum = 16842823;BA.debugLine="vc2.Position = h"; -_vc2.setPosition(_h); -RDebugUtils.currentLine=16842824; - //BA.debugLineNum = 16842824;BA.debugLine="Dim preu As Float = NumberFormat2(vc2.GetSt"; -_preu = (float)(Double.parseDouble(__c.NumberFormat2((double)(Double.parseDouble(_vc2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_vc2.GetString("CANTC"))),(int) (0),(int) (2),(int) (2),__c.False))); -RDebugUtils.currentLine=16842825; - //BA.debugLineNum = 16842825;BA.debugLine="Private vc3 As Cursor = Starter.skmt.ExecQu"; -_vc3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_vc3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select PRECIOCONVER, CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc2.GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=16842826; - //BA.debugLineNum = 16842826;BA.debugLine="If vc3.RowCount > 0 Then"; -if (_vc3.getRowCount()>0) { -RDebugUtils.currentLine=16842827; - //BA.debugLineNum = 16842827;BA.debugLine="vc3.Position = 0"; -_vc3.setPosition((int) (0)); -RDebugUtils.currentLine=16842828; - //BA.debugLineNum = 16842828;BA.debugLine="Cuenta1 = Cuenta1 + ((vc2.GetString(\"CANTC"; -_cuenta1 = BA.NumberToString((double)(Double.parseDouble(_cuenta1))+(((double)(Double.parseDouble(_vc2.GetString("CANTC")))-((double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT")))/(double)(double)(Double.parseDouble(_vc3.GetString("CONVERSION")))))*_preu)); -RDebugUtils.currentLine=16842829; - //BA.debugLineNum = 16842829;BA.debugLine="arti1 = arti1 + (vc2.GetString(\"HVD_CANT\")"; -_arti1 = BA.NumberToString((double)(Double.parseDouble(_arti1))+((double)(Double.parseDouble(_vc2.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc2.GetString("HVD_RECHAZOCANT"))))); - }; - } -}; - }; -RDebugUtils.currentLine=16842835; - //BA.debugLineNum = 16842835;BA.debugLine="Private vc4 As Cursor = Starter.skmt.ExecQuer"; -_vc4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_vc4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_PROID, HVD_CANT, IFNULL(HVD_RECHAZOCANT, 0) AS HVD_RECHAZOCANT, CANTC,HVD_COSTO_TOT, HVD_RECHAZO, HVD_CODPROMO from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"' AND BCAJAS = 0 and HVD_CODPROMO <> '"+__c.SmartStringFormatter("",(Object)(_subs._traealmacen /*String*/ (ba)))+"'")))); -RDebugUtils.currentLine=16842836; - //BA.debugLineNum = 16842836;BA.debugLine="Private Cuenta2 As String = 0"; -_cuenta2 = BA.NumberToString(0); -RDebugUtils.currentLine=16842837; - //BA.debugLineNum = 16842837;BA.debugLine="Private arti2 As String = 0"; -_arti2 = BA.NumberToString(0); -RDebugUtils.currentLine=16842838; - //BA.debugLineNum = 16842838;BA.debugLine="If vc4.RowCount > 0 Then"; -if (_vc4.getRowCount()>0) { -RDebugUtils.currentLine=16842840; - //BA.debugLineNum = 16842840;BA.debugLine="For k = 0 To vc4.RowCount - 1"; -{ -final int step74 = 1; -final int limit74 = (int) (_vc4.getRowCount()-1); -_k = (int) (0) ; -for (;_k <= limit74 ;_k = _k + step74 ) { -RDebugUtils.currentLine=16842841; - //BA.debugLineNum = 16842841;BA.debugLine="vc4.Position = k"; -_vc4.setPosition(_k); -RDebugUtils.currentLine=16842842; - //BA.debugLineNum = 16842842;BA.debugLine="If vc4.GetString(\"HVD_PROID\") <> vc4.GetStr"; -if ((_vc4.GetString("HVD_PROID")).equals(_vc4.GetString("HVD_CODPROMO")) == false) { -RDebugUtils.currentLine=16842843; - //BA.debugLineNum = 16842843;BA.debugLine="If vc4.GetString(\"HVD_RECHAZO\") = 0 Then"; -if ((_vc4.GetString("HVD_RECHAZO")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=16842844; - //BA.debugLineNum = 16842844;BA.debugLine="Cuenta2 = Cuenta2 + vc4.GetString(\"HVD_CO"; -_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_vc4.GetString("HVD_COSTO_TOT")))); -RDebugUtils.currentLine=16842845; - //BA.debugLineNum = 16842845;BA.debugLine="arti2 = arti2 + vc4.GetString(\"HVD_CANT\")"; -_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))); - }else { -RDebugUtils.currentLine=16842847; - //BA.debugLineNum = 16842847;BA.debugLine="Private vc5 As Cursor = Starter.skmt.Exec"; -_vc5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_vc5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_vc4.GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=16842848; - //BA.debugLineNum = 16842848;BA.debugLine="If vc5.RowCount > 0 Then"; -if (_vc5.getRowCount()>0) { -RDebugUtils.currentLine=16842849; - //BA.debugLineNum = 16842849;BA.debugLine="vc5.Position= 0"; -_vc5.setPosition((int) (0)); -RDebugUtils.currentLine=16842851; - //BA.debugLineNum = 16842851;BA.debugLine="Cuenta2 = Cuenta2 +((vc4.GetString(\"HVD_"; -_cuenta2 = BA.NumberToString((double)(Double.parseDouble(_cuenta2))+(((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))*(double)(Double.parseDouble(_vc5.GetString("CAT_GP_PRECIO"))))); -RDebugUtils.currentLine=16842852; - //BA.debugLineNum = 16842852;BA.debugLine="arti2 = arti2 +(vc4.GetString(\"HVD_CANT\""; -_arti2 = BA.NumberToString((double)(Double.parseDouble(_arti2))+((double)(Double.parseDouble(_vc4.GetString("HVD_CANT")))-(double)(Double.parseDouble(_vc4.GetString("HVD_RECHAZOCANT"))))); - }; - }; - }; - } -}; - }; -RDebugUtils.currentLine=16842861; - //BA.debugLineNum = 16842861;BA.debugLine="Private c4 As Cursor = Starter.skmt.ExecQuery"; -_c4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(PE_CANT,0) AS PE_CANT, iFNULL(PE_COSTO_TOT,0) AS PE_COSTO_TOT FROM PEDIDO WHERE PE_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"'")))); -RDebugUtils.currentLine=16842862; - //BA.debugLineNum = 16842862;BA.debugLine="Private Cuenta3 As String = 0"; -_cuenta3 = BA.NumberToString(0); -RDebugUtils.currentLine=16842863; - //BA.debugLineNum = 16842863;BA.debugLine="Private arti3 As String = 0"; -_arti3 = BA.NumberToString(0); -RDebugUtils.currentLine=16842864; - //BA.debugLineNum = 16842864;BA.debugLine="If c4.RowCount > 0 Then"; -if (_c4.getRowCount()>0) { -RDebugUtils.currentLine=16842865; - //BA.debugLineNum = 16842865;BA.debugLine="For x = 0 To c4.RowCount -1"; -{ -final int step95 = 1; -final int limit95 = (int) (_c4.getRowCount()-1); -_x = (int) (0) ; -for (;_x <= limit95 ;_x = _x + step95 ) { -RDebugUtils.currentLine=16842866; - //BA.debugLineNum = 16842866;BA.debugLine="c4.Position = x"; -_c4.setPosition(_x); -RDebugUtils.currentLine=16842867; - //BA.debugLineNum = 16842867;BA.debugLine="arti3 = arti3 + c4.GetString(\"PE_CANT\")"; -_arti3 = BA.NumberToString((double)(Double.parseDouble(_arti3))+(double)(Double.parseDouble(_c4.GetString("PE_CANT")))); -RDebugUtils.currentLine=16842868; - //BA.debugLineNum = 16842868;BA.debugLine="Cuenta3 = Cuenta3 + c4.GetString(\"PE_COSTO_"; -_cuenta3 = BA.NumberToString((double)(Double.parseDouble(_cuenta3))+(double)(Double.parseDouble(_c4.GetString("PE_COSTO_TOT")))); - } -}; - }; -RDebugUtils.currentLine=16842873; - //BA.debugLineNum = 16842873;BA.debugLine="Private TOTALMONTO As String = cuenta0 + Cuen"; -_totalmonto = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(_cuenta1))+(double)(Double.parseDouble(_cuenta2))+(double)(Double.parseDouble(_cuenta3))); -RDebugUtils.currentLine=16842874; - //BA.debugLineNum = 16842874;BA.debugLine="Private TOTALcantidad As String = arti + arti"; -_totalcantidad = BA.NumberToString((double)(Double.parseDouble(_arti))+(double)(Double.parseDouble(_arti1))+(double)(Double.parseDouble(_arti2))+(double)(Double.parseDouble(_arti3))); -RDebugUtils.currentLine=16842876; - //BA.debugLineNum = 16842876;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_COD"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")+" - "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")),BA.ObjectToCharSequence("Articulos :"+_totalcantidad+" Monto :"+__c.NumberFormat2((double)(Double.parseDouble(_totalmonto)),(int) (0),(int) (2),(int) (2),__c.True)+" "+__ref._estatus /*String*/ )); -RDebugUtils.currentLine=16842877; - //BA.debugLineNum = 16842877;BA.debugLine="Log(\"si entre2\")"; -__c.LogImpl("216842877","si entre2",0); - }else -{RDebugUtils.currentLine=16842879; - //BA.debugLineNum = 16842879;BA.debugLine="Else If ESTATUS = \"RECHAZADO\" Then"; -if ((__ref._estatus /*String*/ ).equals("RECHAZADO")) { -RDebugUtils.currentLine=16842881; - //BA.debugLineNum = 16842881;BA.debugLine="Private vc As Cursor = Starter.skmt.ExecQuery"; -_vc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_vc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select SUM(HVD_COSTO_TOT) AS HVD_COSTO_TOT, SUM(HVD_CANT) AS HVD_CANT from HIST_VENTAS WHERE HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")))+"' AND HVD_CODPROMO ")))); -RDebugUtils.currentLine=16842883; - //BA.debugLineNum = 16842883;BA.debugLine="Private cuenta0 As String = 0"; -_cuenta0 = BA.NumberToString(0); -RDebugUtils.currentLine=16842884; - //BA.debugLineNum = 16842884;BA.debugLine="Private arti As String = 0"; -_arti = BA.NumberToString(0); -RDebugUtils.currentLine=16842885; - //BA.debugLineNum = 16842885;BA.debugLine="If vc.RowCount > 0 Then"; -if (_vc.getRowCount()>0) { -RDebugUtils.currentLine=16842886; - //BA.debugLineNum = 16842886;BA.debugLine="For hjf = 0 To vc.RowCount - 1"; -{ -final int step110 = 1; -final int limit110 = (int) (_vc.getRowCount()-1); -_hjf = (int) (0) ; -for (;_hjf <= limit110 ;_hjf = _hjf + step110 ) { -RDebugUtils.currentLine=16842887; - //BA.debugLineNum = 16842887;BA.debugLine="vc.Position = hjf"; -_vc.setPosition(_hjf); -RDebugUtils.currentLine=16842890; - //BA.debugLineNum = 16842890;BA.debugLine="arti = (vc.GetString(\"HVD_CANT\"))"; -_arti = (_vc.GetString("HVD_CANT")); -RDebugUtils.currentLine=16842891; - //BA.debugLineNum = 16842891;BA.debugLine="cuenta0 = cuenta0 + ((vc.GetString(\"HVD_COS"; -_cuenta0 = BA.NumberToString((double)(Double.parseDouble(_cuenta0))+(double)(Double.parseDouble(((_vc.GetString("HVD_COSTO_TOT")))))); - } -}; - }; -RDebugUtils.currentLine=16842894; - //BA.debugLineNum = 16842894;BA.debugLine="Log(cuenta0)"; -__c.LogImpl("216842894",_cuenta0,0); -RDebugUtils.currentLine=16842951; - //BA.debugLineNum = 16842951;BA.debugLine="Private TOTALMONTO As String = cuenta0"; -_totalmonto = _cuenta0; -RDebugUtils.currentLine=16842952; - //BA.debugLineNum = 16842952;BA.debugLine="Private TOTALcantidad As String = arti"; -_totalcantidad = _arti; -RDebugUtils.currentLine=16842954; - //BA.debugLineNum = 16842954;BA.debugLine="Log(\"si entre\")"; -__c.LogImpl("216842954","si entre",0); -RDebugUtils.currentLine=16842955; - //BA.debugLineNum = 16842955;BA.debugLine="ListView1.AddTwoLines(c.GetString(\"CAT_CL_COD"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddTwoLines(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_CODIGO")+" - "+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CAT_CL_NOMBRE")),BA.ObjectToCharSequence("Articulos :"+_totalcantidad+" Monto :"+__c.NumberFormat2((double)(Double.parseDouble(_totalmonto)),(int) (0),(int) (2),(int) (2),__c.True)+" "+__ref._estatus /*String*/ )); - }} -; - } -}; - }; - }; -RDebugUtils.currentLine=16842992; - //BA.debugLineNum = 16842992;BA.debugLine="End Sub"; -return ""; -} -public String _b_comodin_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_comodin_click", false)) - {return ((String) Debug.delegate(ba, "b_comodin_click", null));} -RDebugUtils.currentLine=18481152; - //BA.debugLineNum = 18481152;BA.debugLine="Private Sub b_comodin_Click"; -RDebugUtils.currentLine=18481153; - //BA.debugLineNum = 18481153;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); -RDebugUtils.currentLine=18481154; - //BA.debugLineNum = 18481154;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("100000")})); -RDebugUtils.currentLine=18481155; - //BA.debugLineNum = 18481155;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; -_b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=18481156; - //BA.debugLineNum = 18481156;BA.debugLine="End Sub"; -return ""; -} -public void _b_imp_inventario_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_imp_inventario_click", false)) - {Debug.delegate(ba, "b_imp_inventario_click", null); return;} -ResumableSub_b_imp_inventario_Click rsub = new ResumableSub_b_imp_inventario_Click(this,__ref); -rsub.resume(ba, null); -} -public static class ResumableSub_b_imp_inventario_Click extends BA.ResumableSub { -public ResumableSub_b_imp_inventario_Click(reparto_izca.keymon.lat.c_principal parent,reparto_izca.keymon.lat.c_principal __ref) { -this.parent = parent; -this.__ref = __ref; -this.__ref = parent; -} -reparto_izca.keymon.lat.c_principal __ref; -reparto_izca.keymon.lat.c_principal parent; -int _cont = 0; -anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null; -reparto_izca.keymon.lat.escposprinter._animage _myimage = null; -String _sdate = ""; -String _stime = ""; -int _i = 0; -String _firstchar = ""; -String _productoinven = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _sumainv = null; -int step56; -int limit56; -int step62; -int limit62; - -@Override -public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_principal"; - - while (true) { - switch (state) { - case -1: -return; - -case 0: -//C -this.state = 1; -RDebugUtils.currentLine=17956895; - //BA.debugLineNum = 17956895;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; -parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); -RDebugUtils.currentLine=17956896; - //BA.debugLineNum = 17956896;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=17956897; - //BA.debugLineNum = 17956897;BA.debugLine="If Not(Printer1.IsConnected) Then"; -if (true) break; - -case 1: -//if -this.state = 38; -if (parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { -this.state = 3; -}else { -this.state = 21; -}if (true) break; - -case 3: -//C -this.state = 4; -RDebugUtils.currentLine=17956899; - //BA.debugLineNum = 17956899;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=17956900; - //BA.debugLineNum = 17956900;BA.debugLine="Private cont As Int = 0"; -_cont = (int) (0); -RDebugUtils.currentLine=17956901; - //BA.debugLineNum = 17956901;BA.debugLine="Do While Not(impresoraConectada)"; -if (true) break; - -case 4: -//do while -this.state = 19; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ )) { -this.state = 6; -if (true) break; -} -if (true) break; - -case 6: -//C -this.state = 7; -RDebugUtils.currentLine=17956902; - //BA.debugLineNum = 17956902;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_imp_inventario_click"),(int) (1000)); -this.state = 57; -return; -case 57: -//C -this.state = 7; -; -RDebugUtils.currentLine=17956903; - //BA.debugLineNum = 17956903;BA.debugLine="cont = cont + 1"; -_cont = (int) (_cont+1); -RDebugUtils.currentLine=17956904; - //BA.debugLineNum = 17956904;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; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -if (true) break; - -case 12: -//C -this.state = 13; -; -RDebugUtils.currentLine=17956905; - //BA.debugLineNum = 17956905;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; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; -if (true) break; - -case 18: -//C -this.state = 4; -; - if (true) break; - -case 19: -//C -this.state = 38; -; -RDebugUtils.currentLine=17956907; - //BA.debugLineNum = 17956907;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_imp_inventario_click"),(int) (500)); -this.state = 58; -return; -case 58: -//C -this.state = 38; -; -RDebugUtils.currentLine=17956908; - //BA.debugLineNum = 17956908;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; - if (true) break; - -case 21: -//C -this.state = 22; -RDebugUtils.currentLine=17956911; - //BA.debugLineNum = 17956911;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=17956912; - //BA.debugLineNum = 17956912;BA.debugLine="Private cont As Int = 0"; -_cont = (int) (0); -RDebugUtils.currentLine=17956913; - //BA.debugLineNum = 17956913;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; -if (true) break; - -case 22: -//do while -this.state = 37; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ ) || parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { -this.state = 24; -if (true) break; -} -if (true) break; - -case 24: -//C -this.state = 25; -RDebugUtils.currentLine=17956914; - //BA.debugLineNum = 17956914;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_imp_inventario_click"),(int) (1000)); -this.state = 59; -return; -case 59: -//C -this.state = 25; -; -RDebugUtils.currentLine=17956915; - //BA.debugLineNum = 17956915;BA.debugLine="cont = cont + 1"; -_cont = (int) (_cont+1); -RDebugUtils.currentLine=17956916; - //BA.debugLineNum = 17956916;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; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -if (true) break; - -case 30: -//C -this.state = 31; -; -RDebugUtils.currentLine=17956917; - //BA.debugLineNum = 17956917;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; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; -if (true) break; - -case 36: -//C -this.state = 22; -; - if (true) break; - -case 37: -//C -this.state = 38; -; -RDebugUtils.currentLine=17956919; - //BA.debugLineNum = 17956919;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_imp_inventario_click"),(int) (500)); -this.state = 60; -return; -case 60: -//C -this.state = 38; -; -RDebugUtils.currentLine=17956920; - //BA.debugLineNum = 17956920;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; - if (true) break; - -case 38: -//C -this.state = 39; -; -RDebugUtils.currentLine=17956923; - //BA.debugLineNum = 17956923;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=17956924; - //BA.debugLineNum = 17956924;BA.debugLine="ESPACIO = 28"; -__ref._espacio /*int*/ = (int) (28); -RDebugUtils.currentLine=17956925; - //BA.debugLineNum = 17956925;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=17956926; - //BA.debugLineNum = 17956926;BA.debugLine="Dim bmp As Bitmap"; -_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); -RDebugUtils.currentLine=17956927; - //BA.debugLineNum = 17956927;BA.debugLine="Printer1.Justify= 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=17956928; - //BA.debugLineNum = 17956928;BA.debugLine="bmp.InitializeResize(File.DirAssets, \"inventarios"; -_bmp.InitializeResize(parent.__c.File.getDirAssets(),"inventarios.jpg",(int) (92),(int) (92),parent.__c.True); -RDebugUtils.currentLine=17956929; - //BA.debugLineNum = 17956929;BA.debugLine="Dim myimage As AnImage = Printer1.ImageToBWIMage("; -_myimage = __ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._imagetobwimage /*reparto_izca.keymon.lat.escposprinter._animage*/ (null,_bmp); -RDebugUtils.currentLine=17956930; - //BA.debugLineNum = 17956930;BA.debugLine="myimage = Printer1.DitherImage2D(myimage, 128)"; -_myimage = __ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._ditherimage2d /*reparto_izca.keymon.lat.escposprinter._animage*/ (null,_myimage,(int) (128)); -RDebugUtils.currentLine=17956931; - //BA.debugLineNum = 17956931;BA.debugLine="myimage= Printer1.PackImage(myimage)"; -_myimage = __ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._packimage /*reparto_izca.keymon.lat.escposprinter._animage*/ (null,_myimage); -RDebugUtils.currentLine=17956932; - //BA.debugLineNum = 17956932;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,parent.__c.CRLF); -RDebugUtils.currentLine=17956933; - //BA.debugLineNum = 17956933;BA.debugLine="Printer1.WriteString(CRLF) ' nudge the printer to"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,parent.__c.CRLF); -RDebugUtils.currentLine=17956934; - //BA.debugLineNum = 17956934;BA.debugLine="Printer1.WriteString(Printer1.REVERSE)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._reverse /*String*/ ); -RDebugUtils.currentLine=17956935; - //BA.debugLineNum = 17956935;BA.debugLine="Printer1.PrintImage(myimage)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._printimage /*int*/ (null,_myimage); -RDebugUtils.currentLine=17956936; - //BA.debugLineNum = 17956936;BA.debugLine="Printer1.WriteString(Printer1.UNREVERSE)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._unreverse /*String*/ ); -RDebugUtils.currentLine=17956937; - //BA.debugLineNum = 17956937;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=17956938; - //BA.debugLineNum = 17956938;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel"; -parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, HVD_PROID from HIST_VENTAS WHERE HVD_PRONOMBRE <> 'Cobranza Pendiente' and HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=17956939; - //BA.debugLineNum = 17956939;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C"; -__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label.setTextColor(parent.__c.Colors.White); -RDebugUtils.currentLine=17956940; - //BA.debugLineNum = 17956940;BA.debugLine="lv_prod_Prin.Clear"; -__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=17956941; - //BA.debugLineNum = 17956941;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=17956942; - //BA.debugLineNum = 17956942;BA.debugLine="Dim sDate, sTime As String"; -_sdate = ""; -_stime = ""; -RDebugUtils.currentLine=17956943; - //BA.debugLineNum = 17956943;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; -parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=17956944; - //BA.debugLineNum = 17956944;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; -parent.__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=17956945; - //BA.debugLineNum = 17956945;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; -_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=17956946; - //BA.debugLineNum = 17956946;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; -_stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=17956947; - //BA.debugLineNum = 17956947;BA.debugLine="Printer1.WriteString(\"Fecha: \" &sDate & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Fecha: "+_sdate+parent.__c.CRLF); -RDebugUtils.currentLine=17956948; - //BA.debugLineNum = 17956948;BA.debugLine="Printer1.WriteString(\"Hora: \" &sTime & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Hora: "+_stime+parent.__c.CRLF); -RDebugUtils.currentLine=17956949; - //BA.debugLineNum = 17956949;BA.debugLine="Printer1.WriteString(\"Ruta: \" & l_ruta.Text & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Ruta: "+__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=17956950; - //BA.debugLineNum = 17956950;BA.debugLine="Printer1.WriteString(\"Usuario: \" & Subs.dameUsuar"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Usuario: "+parent._subs._dameusuariodedb /*String*/ (ba)+parent.__c.CRLF); -RDebugUtils.currentLine=17956952; - //BA.debugLineNum = 17956952;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=17956953; - //BA.debugLineNum = 17956953;BA.debugLine="If c.RowCount > 0 Then"; -if (true) break; - -case 39: -//if -this.state = 56; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -this.state = 41; -}if (true) break; - -case 41: -//C -this.state = 42; -RDebugUtils.currentLine=17956954; - //BA.debugLineNum = 17956954;BA.debugLine="For i = 0 To c.RowCount - 1"; -if (true) break; - -case 42: -//for -this.state = 55; -step56 = 1; -limit56 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -this.state = 61; -if (true) break; - -case 61: -//C -this.state = 55; -if ((step56 > 0 && _i <= limit56) || (step56 < 0 && _i >= limit56)) this.state = 44; -if (true) break; - -case 62: -//C -this.state = 61; -_i = ((int)(0 + _i + step56)) ; -if (true) break; - -case 44: -//C -this.state = 45; -RDebugUtils.currentLine=17956955; - //BA.debugLineNum = 17956955;BA.debugLine="c.Position = i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=17956957; - //BA.debugLineNum = 17956957;BA.debugLine="Printer1.WriteString(\"-----------INVENTARIO----"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"-----------INVENTARIO-----------"+parent.__c.CRLF); -RDebugUtils.currentLine=17956958; - //BA.debugLineNum = 17956958;BA.debugLine="Printer1.WriteString(\"-------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=17956959; - //BA.debugLineNum = 17956959;BA.debugLine="Printer1.WriteString(\"Cant. Producto\" & C"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Cant. Producto"+parent.__c.CRLF); -RDebugUtils.currentLine=17956960; - //BA.debugLineNum = 17956960;BA.debugLine="Printer1.WriteString(\"-------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=17956961; - //BA.debugLineNum = 17956961;BA.debugLine="For i=0 To c.RowCount -1"; -if (true) break; - -case 45: -//for -this.state = 54; -step62 = 1; -limit62 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -this.state = 63; -if (true) break; - -case 63: -//C -this.state = 54; -if ((step62 > 0 && _i <= limit62) || (step62 < 0 && _i >= limit62)) this.state = 47; -if (true) break; - -case 64: -//C -this.state = 63; -_i = ((int)(0 + _i + step62)) ; -if (true) break; - -case 47: -//C -this.state = 48; -RDebugUtils.currentLine=17956962; - //BA.debugLineNum = 17956962;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=17956965; - //BA.debugLineNum = 17956965;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=17956966; - //BA.debugLineNum = 17956966;BA.debugLine="Printer1.WriteString( (c.GetString(\"HVD_CANT\")"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT"))+"- "); -RDebugUtils.currentLine=17956967; - //BA.debugLineNum = 17956967;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=17956968; - //BA.debugLineNum = 17956968;BA.debugLine="Dim firstChar As String = c.GetString(\"HVD_PRO"; -_firstchar = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE").substring((int) (0),(int) (1)); -RDebugUtils.currentLine=17956969; - //BA.debugLineNum = 17956969;BA.debugLine="Dim productoinven As String"; -_productoinven = ""; -RDebugUtils.currentLine=17956972; - //BA.debugLineNum = 17956972;BA.debugLine="If Asc(firstChar) >= Asc(\"0\") And Asc(firstCha"; -if (true) break; - -case 48: -//if -this.state = 53; -if (parent.__c.Asc(BA.ObjectToChar(_firstchar))>=parent.__c.Asc(BA.ObjectToChar("0")) && parent.__c.Asc(BA.ObjectToChar(_firstchar))<=parent.__c.Asc(BA.ObjectToChar("9"))) { -this.state = 50; -}else { -this.state = 52; -}if (true) break; - -case 50: -//C -this.state = 53; -RDebugUtils.currentLine=17956974; - //BA.debugLineNum = 17956974;BA.debugLine="productoinven = c.GetString(\"HVD_PRONOMBRE\")."; -_productoinven = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE").substring((int) (4)); - if (true) break; - -case 52: -//C -this.state = 53; -RDebugUtils.currentLine=17956977; - //BA.debugLineNum = 17956977;BA.debugLine="productoinven = c.GetString(\"HVD_PRONOMBRE\")"; -_productoinven = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"); - if (true) break; - -case 53: -//C -this.state = 64; -; -RDebugUtils.currentLine=17956981; - //BA.debugLineNum = 17956981;BA.debugLine="Printer1.WriteString(productoinven)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_productoinven); -RDebugUtils.currentLine=17956982; - //BA.debugLineNum = 17956982;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=17956983; - //BA.debugLineNum = 17956983;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); - if (true) break; -if (true) break; - -case 54: -//C -this.state = 62; -; - if (true) break; -if (true) break; - -case 55: -//C -this.state = 56; -; - if (true) break; - -case 56: -//C -this.state = -1; -; -RDebugUtils.currentLine=17956990; - //BA.debugLineNum = 17956990;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=17956992; - //BA.debugLineNum = 17956992;BA.debugLine="Dim sumainv As Cursor = Starter.skmt.ExecQuery(\"S"; -_sumainv = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_sumainv = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT SUM(HVD_CANT) AS CANTIDAD FROM HIST_VENTAS WHERE HVD_CODPROMO <> HVD_PROID"))); -RDebugUtils.currentLine=17956993; - //BA.debugLineNum = 17956993;BA.debugLine="sumainv.Position = 0"; -_sumainv.setPosition((int) (0)); -RDebugUtils.currentLine=17956995; - //BA.debugLineNum = 17956995;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=17956996; - //BA.debugLineNum = 17956996;BA.debugLine="Printer1.WriteString(\"Total piezas: \" & sumainv.G"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total piezas: "+_sumainv.GetString("CANTIDAD")+parent.__c.CRLF); -RDebugUtils.currentLine=17956997; - //BA.debugLineNum = 17956997;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=17956998; - //BA.debugLineNum = 17956998;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=17956999; - //BA.debugLineNum = 17956999;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=17957000; - //BA.debugLineNum = 17957000;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=17957001; - //BA.debugLineNum = 17957001;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=17957002; - //BA.debugLineNum = 17957002;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=17957003; - //BA.debugLineNum = 17957003;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_imp_inventario_click"),(int) (1000)); -this.state = 65; -return; -case 65: -//C -this.state = -1; -; -RDebugUtils.currentLine=17957004; - //BA.debugLineNum = 17957004;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=17957005; - //BA.debugLineNum = 17957005;BA.debugLine="ProgressDialogHide"; -parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=17957006; - //BA.debugLineNum = 17957006;BA.debugLine="End Sub"; -if (true) break; - - } - } - } -} -public void _b_impresion_rec_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_impresion_rec_click", false)) - {Debug.delegate(ba, "b_impresion_rec_click", null); return;} -ResumableSub_b_impresion_rec_Click rsub = new ResumableSub_b_impresion_rec_Click(this,__ref); -rsub.resume(ba, null); -} -public static class ResumableSub_b_impresion_rec_Click extends BA.ResumableSub { -public ResumableSub_b_impresion_rec_Click(reparto_izca.keymon.lat.c_principal parent,reparto_izca.keymon.lat.c_principal __ref) { -this.parent = parent; -this.__ref = __ref; -this.__ref = parent; -} -reparto_izca.keymon.lat.c_principal __ref; -reparto_izca.keymon.lat.c_principal parent; -int _totalentrega = 0; -int _totalrechazo = 0; -int _totalpiezas = 0; -String _sdate = ""; -String _stime = ""; -int _cont = 0; -int _i = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; -String _resta = ""; -int step46; -int limit46; - -@Override -public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_principal"; - - while (true) { - switch (state) { - case -1: -return; - -case 0: -//C -this.state = 1; -RDebugUtils.currentLine=18022401; - //BA.debugLineNum = 18022401;BA.debugLine="Dim totalentrega As Int"; -_totalentrega = 0; -RDebugUtils.currentLine=18022402; - //BA.debugLineNum = 18022402;BA.debugLine="Dim totalrechazo As Int"; -_totalrechazo = 0; -RDebugUtils.currentLine=18022403; - //BA.debugLineNum = 18022403;BA.debugLine="Dim totalpiezas As Int"; -_totalpiezas = 0; -RDebugUtils.currentLine=18022404; - //BA.debugLineNum = 18022404;BA.debugLine="Dim sDate, sTime As String"; -_sdate = ""; -_stime = ""; -RDebugUtils.currentLine=18022405; - //BA.debugLineNum = 18022405;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); -RDebugUtils.currentLine=18022406; - //BA.debugLineNum = 18022406;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=18022407; - //BA.debugLineNum = 18022407;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=18022409; - //BA.debugLineNum = 18022409;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; -parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=18022410; - //BA.debugLineNum = 18022410;BA.debugLine="DateTime.TimeFormat=\"HH:mm:ss\""; -parent.__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=18022411; - //BA.debugLineNum = 18022411;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -_sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=18022412; - //BA.debugLineNum = 18022412;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -_stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=18022413; - //BA.debugLineNum = 18022413;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=18022419; - //BA.debugLineNum = 18022419;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; -parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); -RDebugUtils.currentLine=18022420; - //BA.debugLineNum = 18022420;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=18022421; - //BA.debugLineNum = 18022421;BA.debugLine="If Not(Printer1.IsConnected) Then"; -if (true) break; - -case 1: -//if -this.state = 38; -if (parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { -this.state = 3; -}else { -this.state = 21; -}if (true) break; - -case 3: -//C -this.state = 4; -RDebugUtils.currentLine=18022423; - //BA.debugLineNum = 18022423;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=18022424; - //BA.debugLineNum = 18022424;BA.debugLine="Private cont As Int = 0"; -_cont = (int) (0); -RDebugUtils.currentLine=18022425; - //BA.debugLineNum = 18022425;BA.debugLine="Do While Not(impresoraConectada)"; -if (true) break; - -case 4: -//do while -this.state = 19; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ )) { -this.state = 6; -if (true) break; -} -if (true) break; - -case 6: -//C -this.state = 7; -RDebugUtils.currentLine=18022426; - //BA.debugLineNum = 18022426;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_impresion_rec_click"),(int) (1000)); -this.state = 53; -return; -case 53: -//C -this.state = 7; -; -RDebugUtils.currentLine=18022428; - //BA.debugLineNum = 18022428;BA.debugLine="cont = cont + 1"; -_cont = (int) (_cont+1); -RDebugUtils.currentLine=18022429; - //BA.debugLineNum = 18022429;BA.debugLine="If cont = 2 Then Printer1.Connect 'Tratamos de"; -if (true) break; - -case 7: -//if -this.state = 12; -if (_cont==2) { -this.state = 9; -;}if (true) break; - -case 9: -//C -this.state = 12; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -if (true) break; - -case 12: -//C -this.state = 13; -; -RDebugUtils.currentLine=18022430; - //BA.debugLineNum = 18022430;BA.debugLine="If cont > 3 Then impresoraConectada = True"; -if (true) break; - -case 13: -//if -this.state = 18; -if (_cont>3) { -this.state = 15; -;}if (true) break; - -case 15: -//C -this.state = 18; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; -if (true) break; - -case 18: -//C -this.state = 4; -; - if (true) break; - -case 19: -//C -this.state = 38; -; -RDebugUtils.currentLine=18022432; - //BA.debugLineNum = 18022432;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_impresion_rec_click"),(int) (500)); -this.state = 54; -return; -case 54: -//C -this.state = 38; -; -RDebugUtils.currentLine=18022433; - //BA.debugLineNum = 18022433;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; - if (true) break; - -case 21: -//C -this.state = 22; -RDebugUtils.currentLine=18022436; - //BA.debugLineNum = 18022436;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=18022437; - //BA.debugLineNum = 18022437;BA.debugLine="Private cont As Int = 0"; -_cont = (int) (0); -RDebugUtils.currentLine=18022438; - //BA.debugLineNum = 18022438;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; -if (true) break; - -case 22: -//do while -this.state = 37; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ ) || parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { -this.state = 24; -if (true) break; -} -if (true) break; - -case 24: -//C -this.state = 25; -RDebugUtils.currentLine=18022439; - //BA.debugLineNum = 18022439;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_impresion_rec_click"),(int) (1000)); -this.state = 55; -return; -case 55: -//C -this.state = 25; -; -RDebugUtils.currentLine=18022441; - //BA.debugLineNum = 18022441;BA.debugLine="cont = cont + 1"; -_cont = (int) (_cont+1); -RDebugUtils.currentLine=18022442; - //BA.debugLineNum = 18022442;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; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -if (true) break; - -case 30: -//C -this.state = 31; -; -RDebugUtils.currentLine=18022443; - //BA.debugLineNum = 18022443;BA.debugLine="If cont > 3 Then impresoraConectada = True"; -if (true) break; - -case 31: -//if -this.state = 36; -if (_cont>3) { -this.state = 33; -;}if (true) break; - -case 33: -//C -this.state = 36; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; -if (true) break; - -case 36: -//C -this.state = 22; -; - if (true) break; - -case 37: -//C -this.state = 38; -; -RDebugUtils.currentLine=18022445; - //BA.debugLineNum = 18022445;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_impresion_rec_click"),(int) (500)); -this.state = 56; -return; -case 56: -//C -this.state = 38; -; -RDebugUtils.currentLine=18022446; - //BA.debugLineNum = 18022446;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; - if (true) break; - -case 38: -//C -this.state = 39; -; -RDebugUtils.currentLine=18022449; - //BA.debugLineNum = 18022449;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=18022450; - //BA.debugLineNum = 18022450;BA.debugLine="ESPACIO = 28"; -__ref._espacio /*int*/ = (int) (28); -RDebugUtils.currentLine=18022451; - //BA.debugLineNum = 18022451;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=18022453; - //BA.debugLineNum = 18022453;BA.debugLine="Printer1.WriteString(\"Izca Distribuciones\" & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Izca Distribuciones"+parent.__c.CRLF); -RDebugUtils.currentLine=18022454; - //BA.debugLineNum = 18022454;BA.debugLine="Printer1.WriteString(sDate & \" \" &sTime & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_sdate+" "+_stime+parent.__c.CRLF); -RDebugUtils.currentLine=18022456; - //BA.debugLineNum = 18022456;BA.debugLine="Printer1.WriteString(\"------------ENTREGA--------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------ENTREGA-----------"+parent.__c.CRLF); -RDebugUtils.currentLine=18022457; - //BA.debugLineNum = 18022457;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel"; -parent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, IFNULL(SUM(HVD_CANT), 0) AS HVD_CANT, (IFNULL(SUM(HVD_CANT), 0) - IFNULL(SUM(HVD_RECHAZOCANT), 0)) as total, HVD_PROID from HIST_VENTAS where HVD_PROID <> HVD_CODPROMO GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=18022458; - //BA.debugLineNum = 18022458;BA.debugLine="If c.RowCount > 0 Then"; -if (true) break; - -case 39: -//if -this.state = 52; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -this.state = 41; -}if (true) break; - -case 41: -//C -this.state = 42; -RDebugUtils.currentLine=18022459; - //BA.debugLineNum = 18022459;BA.debugLine="For i = 0 To c.RowCount - 1"; -if (true) break; - -case 42: -//for -this.state = 51; -step46 = 1; -limit46 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -this.state = 57; -if (true) break; - -case 57: -//C -this.state = 51; -if ((step46 > 0 && _i <= limit46) || (step46 < 0 && _i >= limit46)) this.state = 44; -if (true) break; - -case 58: -//C -this.state = 57; -_i = ((int)(0 + _i + step46)) ; -if (true) break; - -case 44: -//C -this.state = 45; -RDebugUtils.currentLine=18022460; - //BA.debugLineNum = 18022460;BA.debugLine="c.Position = i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=18022463; - //BA.debugLineNum = 18022463;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s"; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+parent.__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=18022464; - //BA.debugLineNum = 18022464;BA.debugLine="Private resta As String = 0"; -_resta = BA.NumberToString(0); -RDebugUtils.currentLine=18022466; - //BA.debugLineNum = 18022466;BA.debugLine="If c3.RowCount > 0 Then"; -if (true) break; - -case 45: -//if -this.state = 50; -if (_c3.getRowCount()>0) { -this.state = 47; -}else { -this.state = 49; -}if (true) break; - -case 47: -//C -this.state = 50; -RDebugUtils.currentLine=18022467; - //BA.debugLineNum = 18022467;BA.debugLine="c3.Position = 0"; -_c3.setPosition((int) (0)); -RDebugUtils.currentLine=18022468; - //BA.debugLineNum = 18022468;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; -_resta = _c3.GetString("PE_CANT"); - if (true) break; - -case 49: -//C -this.state = 50; -RDebugUtils.currentLine=18022470; - //BA.debugLineNum = 18022470;BA.debugLine="resta = 0"; -_resta = BA.NumberToString(0); - if (true) break; - -case 50: -//C -this.state = 58; -; -RDebugUtils.currentLine=18022472; - //BA.debugLineNum = 18022472;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=18022473; - //BA.debugLineNum = 18022473;BA.debugLine="Printer1.WriteString(c.GetString(\"HVD_PRONOMBRE"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")+parent.__c.CRLF); -RDebugUtils.currentLine=18022474; - //BA.debugLineNum = 18022474;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=18022475; - //BA.debugLineNum = 18022475;BA.debugLine="Printer1.WriteString(\"TP: \"& c.GetInt(\"HVD_CANT"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"TP: "+BA.NumberToString(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_CANT"))+" "); -RDebugUtils.currentLine=18022476; - //BA.debugLineNum = 18022476;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=18022477; - //BA.debugLineNum = 18022477;BA.debugLine="Printer1.WriteString(\" TE: \" & (c.GetInt(\"tot"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," TE: "+BA.NumberToString((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("total")+(double)(Double.parseDouble(_resta))))+" "); -RDebugUtils.currentLine=18022478; - //BA.debugLineNum = 18022478;BA.debugLine="Printer1.Justify = 2"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (2)); -RDebugUtils.currentLine=18022479; - //BA.debugLineNum = 18022479;BA.debugLine="Printer1.WriteString(\" TR: \" & (c.GetInt(\"HVD"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," TR: "+BA.NumberToString((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))+" "); -RDebugUtils.currentLine=18022480; - //BA.debugLineNum = 18022480;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=18022481; - //BA.debugLineNum = 18022481;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=18022483; - //BA.debugLineNum = 18022483;BA.debugLine="totalentrega = totalentrega + c.GetInt(\"total\")"; -_totalentrega = (int) (_totalentrega+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("total")+(double)(Double.parseDouble(_resta))); -RDebugUtils.currentLine=18022484; - //BA.debugLineNum = 18022484;BA.debugLine="totalrechazo = totalrechazo + c.GetInt(\"HVD_REC"; -_totalrechazo = (int) (_totalrechazo+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))); -RDebugUtils.currentLine=18022485; - //BA.debugLineNum = 18022485;BA.debugLine="totalpiezas = totalpiezas + c.GetInt(\"HVD_CANT\""; -_totalpiezas = (int) (_totalpiezas+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_CANT")); - if (true) break; -if (true) break; - -case 51: -//C -this.state = 52; -; - if (true) break; - -case 52: -//C -this.state = -1; -; -RDebugUtils.currentLine=18022490; - //BA.debugLineNum = 18022490;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=18022491; - //BA.debugLineNum = 18022491;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=18022492; - //BA.debugLineNum = 18022492;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=18022493; - //BA.debugLineNum = 18022493;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=18022495; - //BA.debugLineNum = 18022495;BA.debugLine="Printer1.WriteString(\"Total Piezas: \"& totalpiez"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total Piezas: "+BA.NumberToString(_totalpiezas)+parent.__c.CRLF); -RDebugUtils.currentLine=18022496; - //BA.debugLineNum = 18022496;BA.debugLine="Printer1.WriteString(\"Total Entrega: \"& totalent"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total Entrega: "+BA.NumberToString(_totalentrega)+parent.__c.CRLF); -RDebugUtils.currentLine=18022497; - //BA.debugLineNum = 18022497;BA.debugLine="Printer1.WriteString(\"Total Rechazo: \"& totalrec"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Total Rechazo: "+BA.NumberToString(_totalrechazo)+parent.__c.CRLF); -RDebugUtils.currentLine=18022500; - //BA.debugLineNum = 18022500;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=18022501; - //BA.debugLineNum = 18022501;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=18022502; - //BA.debugLineNum = 18022502;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=18022503; - //BA.debugLineNum = 18022503;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=18022504; - //BA.debugLineNum = 18022504;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=18022505; - //BA.debugLineNum = 18022505;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "b_impresion_rec_click"),(int) (1000)); -this.state = 59; -return; -case 59: -//C -this.state = -1; -; -RDebugUtils.currentLine=18022506; - //BA.debugLineNum = 18022506;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=18022508; - //BA.debugLineNum = 18022508;BA.debugLine="ProgressDialogHide"; -parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=18022509; - //BA.debugLineNum = 18022509;BA.debugLine="End Sub"; -if (true) break; - - } - } - } -} -public String _b_mapa_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_mapa_click", false)) - {return ((String) Debug.delegate(ba, "b_mapa_click", null));} -RDebugUtils.currentLine=16580608; - //BA.debugLineNum = 16580608;BA.debugLine="Sub b_mapa_Click"; -RDebugUtils.currentLine=16580610; - //BA.debugLineNum = 16580610;BA.debugLine="B4XPages.ShowPage(\"mapas\")"; -_b4xpages._showpage /*String*/ (ba,"mapas"); -RDebugUtils.currentLine=16580611; - //BA.debugLineNum = 16580611;BA.debugLine="End Sub"; -return ""; -} -public String _b_pc_env_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_pc_env_click", false)) - {return ((String) Debug.delegate(ba, "b_pc_env_click", null));} -String _sdate = ""; -String _stime = ""; -int _i = 0; -anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null; -anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null; -anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null; -String _inputtext = ""; -anywheresoftware.b4a.objects.B4XViewWrapper _labelcant = null; -String _cantidadrestar = ""; -anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null; -String _idtext = ""; -String[] _idparts = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null; -String[] _fechatabulador = null; -String _fechatabulador3 = ""; -int _restado = 0; -RDebugUtils.currentLine=18153472; - //BA.debugLineNum = 18153472;BA.debugLine="Private Sub B_PC_ENV_Click"; -RDebugUtils.currentLine=18153473; - //BA.debugLineNum = 18153473;BA.debugLine="Dim sDate, sTime As String"; -_sdate = ""; -_stime = ""; -RDebugUtils.currentLine=18153474; - //BA.debugLineNum = 18153474;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; -__c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=18153475; - //BA.debugLineNum = 18153475;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; -__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=18153476; - //BA.debugLineNum = 18153476;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; -_sdate = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=18153477; - //BA.debugLineNum = 18153477;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; -_stime = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=18153480; - //BA.debugLineNum = 18153480;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1"; -{ -final int step6 = 1; -final int limit6 = (int) (__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getsize()-1); -_i = (int) (0) ; -for (;_i <= limit6 ;_i = _i + step6 ) { -RDebugUtils.currentLine=18153482; - //BA.debugLineNum = 18153482;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan"; -_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_itempanel = __ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getpanel(_i); -RDebugUtils.currentLine=18153483; - //BA.debugLineNum = 18153483;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)"; -_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_innerpanel = _itempanel.GetView((int) (0)); -RDebugUtils.currentLine=18153484; - //BA.debugLineNum = 18153484;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)"; -_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_edittext = _innerpanel.GetView((int) (1)); -RDebugUtils.currentLine=18153485; - //BA.debugLineNum = 18153485;BA.debugLine="Dim inputText As String = editText.As(EditText)."; -_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText(); -RDebugUtils.currentLine=18153486; - //BA.debugLineNum = 18153486;BA.debugLine="Dim labelcant As B4XView = innerPanel.GetView(2)"; -_labelcant = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_labelcant = _innerpanel.GetView((int) (2)); -RDebugUtils.currentLine=18153487; - //BA.debugLineNum = 18153487;BA.debugLine="Dim cantidadrestar As String = labelcant.As(Labe"; -_cantidadrestar = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_labelcant.getObject()))).getText(); -RDebugUtils.currentLine=18153490; - //BA.debugLineNum = 18153490;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe"; -if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { -RDebugUtils.currentLine=18153491; - //BA.debugLineNum = 18153491;BA.debugLine="inputText = \"0\""; -_inputtext = "0"; - }; -RDebugUtils.currentLine=18153495; - //BA.debugLineNum = 18153495;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)"; -_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_idlabel = _innerpanel.GetView((int) (0)); -RDebugUtils.currentLine=18153496; - //BA.debugLineNum = 18153496;BA.debugLine="Dim idText As String = idLabel.As(Label).Text"; -_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText(); -RDebugUtils.currentLine=18153497; - //BA.debugLineNum = 18153497;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe"; -_idparts = __c.Regex.Split(__c.CRLF,_idtext); -RDebugUtils.currentLine=18153499; - //BA.debugLineNum = 18153499;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); -RDebugUtils.currentLine=18153500; - //BA.debugLineNum = 18153500;BA.debugLine="f.Position=0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=18153502; - //BA.debugLineNum = 18153502;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=18153503; - //BA.debugLineNum = 18153503;BA.debugLine="If a.RowCount>0 Then"; -if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=18153504; - //BA.debugLineNum = 18153504;BA.debugLine="a.Position=0"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); - }; -RDebugUtils.currentLine=18153506; - //BA.debugLineNum = 18153506;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT"; -_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); -RDebugUtils.currentLine=18153507; - //BA.debugLineNum = 18153507;BA.debugLine="k.Position = 0"; -_k.setPosition((int) (0)); -RDebugUtils.currentLine=18153508; - //BA.debugLineNum = 18153508;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \""; -_fechatabulador = __c.Regex.Split(" ",_k.GetString("HVD_FECHA")); -RDebugUtils.currentLine=18153510; - //BA.debugLineNum = 18153510;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(0"; -_fechatabulador3 = _fechatabulador[(int) (0)]; -RDebugUtils.currentLine=18153511; - //BA.debugLineNum = 18153511;BA.debugLine="k.Close"; -_k.Close(); -RDebugUtils.currentLine=18153512; - //BA.debugLineNum = 18153512;BA.debugLine="If inputText <> \"\" Then"; -if ((_inputtext).equals("") == false) { -RDebugUtils.currentLine=18153513; - //BA.debugLineNum = 18153513;BA.debugLine="Log(idParts(0))"; -__c.LogImpl("218153513",_idparts[(int) (0)],0); -RDebugUtils.currentLine=18153514; - //BA.debugLineNum = 18153514;BA.debugLine="Log(cantidadrestar)"; -__c.LogImpl("218153514",_cantidadrestar,0); -RDebugUtils.currentLine=18153515; - //BA.debugLineNum = 18153515;BA.debugLine="Log(inputText)"; -__c.LogImpl("218153515",_inputtext,0); -RDebugUtils.currentLine=18153516; - //BA.debugLineNum = 18153516;BA.debugLine="Dim restado As Int = cantidadrestar - inputText"; -_restado = (int) ((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))); -RDebugUtils.currentLine=18153517; - //BA.debugLineNum = 18153517;BA.debugLine="Log(cantidadrestar - inputText)"; -__c.LogImpl("218153517",BA.NumberToString((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))),0); -RDebugUtils.currentLine=18153518; - //BA.debugLineNum = 18153518;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]}))); -RDebugUtils.currentLine=18153519; - //BA.debugLineNum = 18153519;BA.debugLine="If c.RowCount = 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=18153523; - //BA.debugLineNum = 18153523;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA, RESTA) VALUES(?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),_fechatabulador3+" "+_stime,BA.NumberToString(_restado)})); - }else { -RDebugUtils.currentLine=18153528; - //BA.debugLineNum = 18153528;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]})); - }; - }; -RDebugUtils.currentLine=18153532; - //BA.debugLineNum = 18153532;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=18153533; - //BA.debugLineNum = 18153533;BA.debugLine="a.Close"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=18153534; - //BA.debugLineNum = 18153534;BA.debugLine="Log(\"Processed item \" & i)"; -__c.LogImpl("218153534","Processed item "+BA.NumberToString(_i),0); - } -}; -RDebugUtils.currentLine=18153537; - //BA.debugLineNum = 18153537;BA.debugLine="End Sub"; -return ""; -} -public String _b_rechazos_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_rechazos_click", false)) - {return ((String) Debug.delegate(ba, "b_rechazos_click", null));} -anywheresoftware.b4a.objects.LabelWrapper _label1 = null; -int _i = 0; -String _itemtext = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; -String _resta = ""; -RDebugUtils.currentLine=17235968; - //BA.debugLineNum = 17235968;BA.debugLine="Private Sub b_rechazos_Click"; -RDebugUtils.currentLine=17235969; - //BA.debugLineNum = 17235969;BA.debugLine="Dim label1 As Label"; -_label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=17235970; - //BA.debugLineNum = 17235970;BA.debugLine="label1 = lv_prod_Prin.SingleLineLayout.Label"; -_label1 = __ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label; -RDebugUtils.currentLine=17235971; - //BA.debugLineNum = 17235971;BA.debugLine="label1.TextSize = 14"; -_label1.setTextSize((float) (14)); -RDebugUtils.currentLine=17235972; - //BA.debugLineNum = 17235972;BA.debugLine="p_prod.Width = Root.Width"; -__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=17235973; - //BA.debugLineNum = 17235973;BA.debugLine="p_prod.Height = Root.Height"; -__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=17235976; - //BA.debugLineNum = 17235976;BA.debugLine="b_regreso.Top = p_prod.Height - b_regreso.Height"; -__ref._b_regreso /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTop((int) (__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-__ref._b_regreso /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getHeight())); -RDebugUtils.currentLine=17235977; - //BA.debugLineNum = 17235977;BA.debugLine="b_impresion_rec.Top = p_prod.Height - b_impresion"; -__ref._b_impresion_rec /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setTop((int) (__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getHeight()-__ref._b_impresion_rec /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getHeight())); -RDebugUtils.currentLine=17235979; - //BA.debugLineNum = 17235979;BA.debugLine="p_prod.Visible = True"; -__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=17235980; - //BA.debugLineNum = 17235980;BA.debugLine="p_prod.BringToFront"; -__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront(); -RDebugUtils.currentLine=17235982; - //BA.debugLineNum = 17235982;BA.debugLine="If l_ctast.Text = \"0\" Then"; -if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { -RDebugUtils.currentLine=17235983; - //BA.debugLineNum = 17235983;BA.debugLine="b_impresion_rec.Enabled = True"; -__ref._b_impresion_rec /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.True); - }else -{RDebugUtils.currentLine=17235984; - //BA.debugLineNum = 17235984;BA.debugLine="Else If l_ctast.Text <> \"0\" Then"; -if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { -RDebugUtils.currentLine=17235985; - //BA.debugLineNum = 17235985;BA.debugLine="b_impresion_rec.Enabled = False"; -__ref._b_impresion_rec /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setEnabled(__c.False); - }} -; -RDebugUtils.currentLine=17235989; - //BA.debugLineNum = 17235989;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"sel"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=17235991; - //BA.debugLineNum = 17235991;BA.debugLine="lv_prod_Prin.SingleLineLayout.Label.TextColor = C"; -__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getSingleLineLayout().Label.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=17235992; - //BA.debugLineNum = 17235992;BA.debugLine="lv_prod_Prin.Clear"; -__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=17235993; - //BA.debugLineNum = 17235993;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=17235994; - //BA.debugLineNum = 17235994;BA.debugLine="For i = 0 To c.RowCount - 1"; -{ -final int step19 = 1; -final int limit19 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit19 ;_i = _i + step19 ) { -RDebugUtils.currentLine=17235995; - //BA.debugLineNum = 17235995;BA.debugLine="c.Position = i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=17235996; - //BA.debugLineNum = 17235996;BA.debugLine="Dim itemText As String"; -_itemtext = ""; -RDebugUtils.currentLine=17235998; - //BA.debugLineNum = 17235998;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s"; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' ")))); -RDebugUtils.currentLine=17235999; - //BA.debugLineNum = 17235999;BA.debugLine="Private resta As String = 0"; -_resta = BA.NumberToString(0); -RDebugUtils.currentLine=17236001; - //BA.debugLineNum = 17236001;BA.debugLine="If c3.RowCount > 0 Then"; -if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=17236002; - //BA.debugLineNum = 17236002;BA.debugLine="c3.Position = 0"; -_c3.setPosition((int) (0)); -RDebugUtils.currentLine=17236003; - //BA.debugLineNum = 17236003;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; -_resta = _c3.GetString("PE_CANT"); - }else { -RDebugUtils.currentLine=17236005; - //BA.debugLineNum = 17236005;BA.debugLine="resta = 0"; -_resta = BA.NumberToString(0); - }; -RDebugUtils.currentLine=17236007; - //BA.debugLineNum = 17236007;BA.debugLine="If ( c.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { - }else { -RDebugUtils.currentLine=17236010; - //BA.debugLineNum = 17236010;BA.debugLine="itemText = $\"${c.GetString(\"HVD_PRONOMBRE\")} $"; -_itemtext = (""+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE")))+" "+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inventario: "+__c.SmartStringFormatter("",(Object)((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))))+""); -RDebugUtils.currentLine=17236011; - //BA.debugLineNum = 17236011;BA.debugLine="lv_prod_Prin.AddSingleLine(itemText)"; -__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence(_itemtext)); - }; - } -}; - }else { -RDebugUtils.currentLine=17236017; - //BA.debugLineNum = 17236017;BA.debugLine="lv_prod_Prin.AddSingleLine(\"No hay datos disponi"; -__ref._lv_prod_prin /*anywheresoftware.b4a.objects.ListViewWrapper*/ .AddSingleLine(BA.ObjectToCharSequence("No hay datos disponibles.")); - }; -RDebugUtils.currentLine=17236019; - //BA.debugLineNum = 17236019;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=17236022; - //BA.debugLineNum = 17236022;BA.debugLine="End Sub"; -return ""; -} -public String _b_regresa_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_regresa_click", false)) - {return ((String) Debug.delegate(ba, "b_regresa_click", null));} -RDebugUtils.currentLine=16908288; - //BA.debugLineNum = 16908288;BA.debugLine="Sub B_REGRESA_Click"; -RDebugUtils.currentLine=16908289; - //BA.debugLineNum = 16908289;BA.debugLine="Log(\"B_REGRESA_Click\")"; -__c.LogImpl("216908289","B_REGRESA_Click",0); -RDebugUtils.currentLine=16908290; - //BA.debugLineNum = 16908290;BA.debugLine="BUSCA.Visible = False"; -__ref._busca /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16908291; - //BA.debugLineNum = 16908291;BA.debugLine="connecta.Visible = True"; -__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16908292; - //BA.debugLineNum = 16908292;BA.debugLine="trabajar.Visible = True"; -__ref._trabajar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16908293; - //BA.debugLineNum = 16908293;BA.debugLine="B_CLIEPROD.Visible = True"; -__ref._b_clieprod /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16908294; - //BA.debugLineNum = 16908294;BA.debugLine="Panel1.Visible = False"; -__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16908295; - //BA.debugLineNum = 16908295;BA.debugLine="Btn_Ubicar_Ru.Visible=True"; -__ref._btn_ubicar_ru /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16908296; - //BA.debugLineNum = 16908296;BA.debugLine="End Sub"; -return ""; -} -public String _b_regreso_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_regreso_click", false)) - {return ((String) Debug.delegate(ba, "b_regreso_click", null));} -RDebugUtils.currentLine=17301504; - //BA.debugLineNum = 17301504;BA.debugLine="Private Sub b_regreso_Click"; -RDebugUtils.currentLine=17301505; - //BA.debugLineNum = 17301505;BA.debugLine="p_prod.Visible = False"; -__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=17301506; - //BA.debugLineNum = 17301506;BA.debugLine="End Sub"; -return ""; -} -public String _b_tabulador_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_tabulador_click", false)) - {return ((String) Debug.delegate(ba, "b_tabulador_click", null));} -RDebugUtils.currentLine=17039360; - //BA.debugLineNum = 17039360;BA.debugLine="Private Sub b_tabulador_Click"; -RDebugUtils.currentLine=17039361; - //BA.debugLineNum = 17039361;BA.debugLine="If b_check.Visible = True Then"; -if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { -RDebugUtils.currentLine=17039362; - //BA.debugLineNum = 17039362;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten"; -__c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba); - }else { -RDebugUtils.currentLine=17039364; - //BA.debugLineNum = 17039364;BA.debugLine="B4XPages.ShowPage(\"tabulador\")"; -_b4xpages._showpage /*String*/ (ba,"tabulador"); - }; -RDebugUtils.currentLine=17039366; - //BA.debugLineNum = 17039366;BA.debugLine="End Sub"; -return ""; -} -public String _b_terpc_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_terpc_click", false)) - {return ((String) Debug.delegate(ba, "b_terpc_click", null));} -String _sdate = ""; -String _stime = ""; -int _consecutivo = 0; -int _i = 0; -anywheresoftware.b4a.objects.B4XViewWrapper _itempanel = null; -anywheresoftware.b4a.objects.B4XViewWrapper _innerpanel = null; -anywheresoftware.b4a.objects.B4XViewWrapper _edittext = null; -String _inputtext = ""; -anywheresoftware.b4a.objects.B4XViewWrapper _labelcant = null; -String _cantidadrestar = ""; -anywheresoftware.b4a.objects.B4XViewWrapper _idlabel = null; -String _idtext = ""; -String[] _idparts = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _k = null; -String[] _fechatabulador = null; -String _fechatabulador3 = ""; -int _restado = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _preciocat = null; -String _preciofull = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _faltantes = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _restadoanterior = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _sobrantes = null; -RDebugUtils.currentLine=18087936; - //BA.debugLineNum = 18087936;BA.debugLine="Private Sub b_terpc_Click"; -RDebugUtils.currentLine=18087938; - //BA.debugLineNum = 18087938;BA.debugLine="Dim sDate, sTime As String"; -_sdate = ""; -_stime = ""; -RDebugUtils.currentLine=18087939; - //BA.debugLineNum = 18087939;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; -__c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=18087940; - //BA.debugLineNum = 18087940;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; -__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=18087941; - //BA.debugLineNum = 18087941;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; -_sdate = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=18087942; - //BA.debugLineNum = 18087942;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; -_stime = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=18087944; - //BA.debugLineNum = 18087944;BA.debugLine="Dim consecutivo As Int = 1000"; -_consecutivo = (int) (1000); -RDebugUtils.currentLine=18087945; - //BA.debugLineNum = 18087945;BA.debugLine="For i = 0 To CLV_PICK_CIEGO.Size - 1"; -{ -final int step7 = 1; -final int limit7 = (int) (__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getsize()-1); -_i = (int) (0) ; -for (;_i <= limit7 ;_i = _i + step7 ) { -RDebugUtils.currentLine=18087947; - //BA.debugLineNum = 18087947;BA.debugLine="Dim itemPanel As B4XView = CLV_PICK_CIEGO.GetPan"; -_itempanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_itempanel = __ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._getpanel(_i); -RDebugUtils.currentLine=18087948; - //BA.debugLineNum = 18087948;BA.debugLine="Dim innerPanel As B4XView = itemPanel.GetView(0)"; -_innerpanel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_innerpanel = _itempanel.GetView((int) (0)); -RDebugUtils.currentLine=18087949; - //BA.debugLineNum = 18087949;BA.debugLine="Dim editText As B4XView = innerPanel.GetView(1)"; -_edittext = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_edittext = _innerpanel.GetView((int) (1)); -RDebugUtils.currentLine=18087950; - //BA.debugLineNum = 18087950;BA.debugLine="Dim inputText As String = editText.As(EditText)."; -_inputtext = ((anywheresoftware.b4a.objects.EditTextWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.EditTextWrapper(), (android.widget.EditText)(_edittext.getObject()))).getText(); -RDebugUtils.currentLine=18087951; - //BA.debugLineNum = 18087951;BA.debugLine="Dim labelcant As B4XView = innerPanel.GetView(2)"; -_labelcant = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_labelcant = _innerpanel.GetView((int) (2)); -RDebugUtils.currentLine=18087952; - //BA.debugLineNum = 18087952;BA.debugLine="Dim cantidadrestar As String = labelcant.As(Labe"; -_cantidadrestar = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_labelcant.getObject()))).getText(); -RDebugUtils.currentLine=18087955; - //BA.debugLineNum = 18087955;BA.debugLine="If Regex.IsMatch(\"^[0]+$\", inputText) Or inputTe"; -if (__c.Regex.IsMatch("^[0]+$",_inputtext) || (_inputtext).equals("")) { -RDebugUtils.currentLine=18087956; - //BA.debugLineNum = 18087956;BA.debugLine="inputText = \"0\""; -_inputtext = "0"; - }; -RDebugUtils.currentLine=18087960; - //BA.debugLineNum = 18087960;BA.debugLine="Dim idLabel As B4XView = innerPanel.GetView(0)"; -_idlabel = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_idlabel = _innerpanel.GetView((int) (0)); -RDebugUtils.currentLine=18087961; - //BA.debugLineNum = 18087961;BA.debugLine="Dim idText As String = idLabel.As(Label).Text"; -_idtext = ((anywheresoftware.b4a.objects.LabelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.LabelWrapper(), (android.widget.TextView)(_idlabel.getObject()))).getText(); -RDebugUtils.currentLine=18087962; - //BA.debugLineNum = 18087962;BA.debugLine="Dim idParts() As String = Regex.Split(CRLF, idTe"; -_idparts = __c.Regex.Split(__c.CRLF,_idtext); -RDebugUtils.currentLine=18087964; - //BA.debugLineNum = 18087964;BA.debugLine="f=Starter.skmt.ExecQuery(\"select RUTAA from RUTA"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); -RDebugUtils.currentLine=18087965; - //BA.debugLineNum = 18087965;BA.debugLine="f.Position=0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=18087967; - //BA.debugLineNum = 18087967;BA.debugLine="a=Starter.skmt.ExecQuery(\"select ID_ALMACEN from"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=18087968; - //BA.debugLineNum = 18087968;BA.debugLine="If a.RowCount>0 Then"; -if (__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=18087969; - //BA.debugLineNum = 18087969;BA.debugLine="a.Position=0"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); - }; -RDebugUtils.currentLine=18087971; - //BA.debugLineNum = 18087971;BA.debugLine="Dim k As Cursor = Starter.skmt.ExecQuery(\"SELECT"; -_k = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_k = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); -RDebugUtils.currentLine=18087972; - //BA.debugLineNum = 18087972;BA.debugLine="k.Position = 0"; -_k.setPosition((int) (0)); -RDebugUtils.currentLine=18087973; - //BA.debugLineNum = 18087973;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\" \""; -_fechatabulador = __c.Regex.Split(" ",_k.GetString("HVD_FECHA")); -RDebugUtils.currentLine=18087975; - //BA.debugLineNum = 18087975;BA.debugLine="Dim fechatabulador3 As String = fechatabulador(0"; -_fechatabulador3 = _fechatabulador[(int) (0)]; -RDebugUtils.currentLine=18087976; - //BA.debugLineNum = 18087976;BA.debugLine="k.Close"; -_k.Close(); -RDebugUtils.currentLine=18087977; - //BA.debugLineNum = 18087977;BA.debugLine="If inputText <> \"\" And inputText <> 0 Then"; -if ((_inputtext).equals("") == false && (_inputtext).equals(BA.NumberToString(0)) == false) { -RDebugUtils.currentLine=18087978; - //BA.debugLineNum = 18087978;BA.debugLine="Log(\"IMPUT DIFERENTE DE CERO\")"; -__c.LogImpl("218087978","IMPUT DIFERENTE DE CERO",0); -RDebugUtils.currentLine=18087979; - //BA.debugLineNum = 18087979;BA.debugLine="Log(idParts(0))"; -__c.LogImpl("218087979",_idparts[(int) (0)],0); -RDebugUtils.currentLine=18087980; - //BA.debugLineNum = 18087980;BA.debugLine="Log(cantidadrestar)"; -__c.LogImpl("218087980",_cantidadrestar,0); -RDebugUtils.currentLine=18087981; - //BA.debugLineNum = 18087981;BA.debugLine="Log(inputText)"; -__c.LogImpl("218087981",_inputtext,0); -RDebugUtils.currentLine=18087982; - //BA.debugLineNum = 18087982;BA.debugLine="Dim restado As Int = cantidadrestar - inputText"; -_restado = (int) ((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))); -RDebugUtils.currentLine=18087983; - //BA.debugLineNum = 18087983;BA.debugLine="Log(cantidadrestar - inputText)"; -__c.LogImpl("218087983",BA.NumberToString((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))),0); -RDebugUtils.currentLine=18087984; - //BA.debugLineNum = 18087984;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PICK"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]}))); -RDebugUtils.currentLine=18087986; - //BA.debugLineNum = 18087986;BA.debugLine="If c.RowCount = 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=18087991; - //BA.debugLineNum = 18087991;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PICK_C"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PICK_CIEGO(PC_ID_PROD, PC_NOM_PROD, PC_CANT, PC_ALMACEN, PC_RUTA, PC_FECHA, RESTA) VALUES(?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],_inputtext,__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"),__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA"),_fechatabulador3+" "+_stime,BA.NumberToString(_restado)})); -RDebugUtils.currentLine=18087992; - //BA.debugLineNum = 18087992;BA.debugLine="If restado > 0 And inputText <> 0 Then"; -if (_restado>0 && (_inputtext).equals(BA.NumberToString(0)) == false) { -RDebugUtils.currentLine=18087994; - //BA.debugLineNum = 18087994;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu"; -_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); -RDebugUtils.currentLine=18087995; - //BA.debugLineNum = 18087995;BA.debugLine="If preciocat.RowCount > 0 Then"; -if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=18087996; - //BA.debugLineNum = 18087996;BA.debugLine="preciocat.Position = 0"; -_preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=18087997; - //BA.debugLineNum = 18087997;BA.debugLine="Dim preciofull As String = preciocat.GetStri"; -_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); - }; -RDebugUtils.currentLine=18087999; - //BA.debugLineNum = 18087999;BA.debugLine="preciocat.Close"; -_preciocat.Close(); -RDebugUtils.currentLine=18088000; - //BA.debugLineNum = 18088000;BA.debugLine="Log(\"MAYOR A CERO\")"; -__c.LogImpl("218088000","MAYOR A CERO",0); -RDebugUtils.currentLine=18088001; - //BA.debugLineNum = 18088001;BA.debugLine="consecutivo = consecutivo + 1"; -_consecutivo = (int) (_consecutivo+1); -RDebugUtils.currentLine=18088002; - //BA.debugLineNum = 18088002;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu"; -_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'")))); -RDebugUtils.currentLine=18088003; - //BA.debugLineNum = 18088003;BA.debugLine="If faltantes.RowCount > 0 Then"; -if (_faltantes.getRowCount()>0) { -RDebugUtils.currentLine=18088004; - //BA.debugLineNum = 18088004;BA.debugLine="faltantes.Position = 0"; -_faltantes.setPosition((int) (0)); -RDebugUtils.currentLine=18088005; - //BA.debugLineNum = 18088005;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); - }else { -RDebugUtils.currentLine=18088007; - //BA.debugLineNum = 18088007;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString(_restado),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString(((double)(Double.parseDouble(_preciofull))*_restado)),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"FALTANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); - }; - }else -{RDebugUtils.currentLine=18088009; - //BA.debugLineNum = 18088009;BA.debugLine="Else If restado < 0 And inputText <> 0 Then"; -if (_restado<0 && (_inputtext).equals(BA.NumberToString(0)) == false) { -RDebugUtils.currentLine=18088011; - //BA.debugLineNum = 18088011;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu"; -_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); -RDebugUtils.currentLine=18088012; - //BA.debugLineNum = 18088012;BA.debugLine="If preciocat.RowCount > 0 Then"; -if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=18088013; - //BA.debugLineNum = 18088013;BA.debugLine="preciocat.Position = 0"; -_preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=18088014; - //BA.debugLineNum = 18088014;BA.debugLine="Dim preciofull As String = preciocat.GetStri"; -_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); - }; -RDebugUtils.currentLine=18088016; - //BA.debugLineNum = 18088016;BA.debugLine="preciocat.Close"; -_preciocat.Close(); -RDebugUtils.currentLine=18088017; - //BA.debugLineNum = 18088017;BA.debugLine="Log(\"MENOR A CERO\")"; -__c.LogImpl("218088017","MENOR A CERO",0); -RDebugUtils.currentLine=18088018; - //BA.debugLineNum = 18088018;BA.debugLine="consecutivo = consecutivo + 1"; -_consecutivo = (int) (_consecutivo+1); -RDebugUtils.currentLine=18088019; - //BA.debugLineNum = 18088019;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu"; -_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'")))); -RDebugUtils.currentLine=18088020; - //BA.debugLineNum = 18088020;BA.debugLine="If faltantes.RowCount > 0 Then"; -if (_faltantes.getRowCount()>0) { -RDebugUtils.currentLine=18088021; - //BA.debugLineNum = 18088021;BA.debugLine="faltantes.Position = 0"; -_faltantes.setPosition((int) (0)); -RDebugUtils.currentLine=18088022; - //BA.debugLineNum = 18088022;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"', PE_COSTO_TOT= "+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"*"+__c.SmartStringFormatter("",(Object)(_preciofull))+", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); - }else { -RDebugUtils.currentLine=18088024; - //BA.debugLineNum = 18088024;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDI"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString((-1*_restado)),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString((-1*((double)(Double.parseDouble(_preciofull))*_restado))),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"SOBRANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); - }; - }} -; - }else { -RDebugUtils.currentLine=18088030; - //BA.debugLineNum = 18088030;BA.debugLine="Dim restadoanterior As Cursor = Starter.skmt.E"; -_restadoanterior = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_restadoanterior = (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 RESTA from PICK_CIEGO WHERE PC_ID_PROD = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); -RDebugUtils.currentLine=18088031; - //BA.debugLineNum = 18088031;BA.debugLine="restadoanterior.Position = 0"; -_restadoanterior.setPosition((int) (0)); -RDebugUtils.currentLine=18088034; - //BA.debugLineNum = 18088034;BA.debugLine="If restadoanterior.GetInt(\"RESTA\") > 0 And res"; -if (_restadoanterior.GetInt("RESTA")>0 && _restadoanterior.GetInt("RESTA")!=_restado) { -RDebugUtils.currentLine=18088037; - //BA.debugLineNum = 18088037;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQu"; -_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'")))); -RDebugUtils.currentLine=18088039; - //BA.debugLineNum = 18088039;BA.debugLine="If faltantes.RowCount > 0 Then"; -if (_faltantes.getRowCount()>0) { -RDebugUtils.currentLine=18088040; - //BA.debugLineNum = 18088040;BA.debugLine="faltantes.Position = 0"; -_faltantes.setPosition((int) (0)); -RDebugUtils.currentLine=18088041; - //BA.debugLineNum = 18088041;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; -_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); -RDebugUtils.currentLine=18088042; - //BA.debugLineNum = 18088042;BA.debugLine="If preciocat.RowCount > 0 Then"; -if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=18088043; - //BA.debugLineNum = 18088043;BA.debugLine="preciocat.Position = 0"; -_preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=18088044; - //BA.debugLineNum = 18088044;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; -_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); - }; -RDebugUtils.currentLine=18088046; - //BA.debugLineNum = 18088046;BA.debugLine="preciocat.Close"; -_preciocat.Close(); -RDebugUtils.currentLine=18088048; - //BA.debugLineNum = 18088048;BA.debugLine="Log(\"MAYOR A CERO UPDATE\")"; -__c.LogImpl("218088048","MAYOR A CERO UPDATE",0); -RDebugUtils.currentLine=18088049; - //BA.debugLineNum = 18088049;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]})); -RDebugUtils.currentLine=18088050; - //BA.debugLineNum = 18088050;BA.debugLine="If restado > 0 Then"; -if (_restado>0) { -RDebugUtils.currentLine=18088051; - //BA.debugLineNum = 18088051;BA.debugLine="Log(\"AQUI ES FALTANTE\")"; -__c.LogImpl("218088051","AQUI ES FALTANTE",0); -RDebugUtils.currentLine=18088053; - //BA.debugLineNum = 18088053;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); - }else -{RDebugUtils.currentLine=18088054; - //BA.debugLineNum = 18088054;BA.debugLine="Else If restado < 0 Then"; -if (_restado<0) { -RDebugUtils.currentLine=18088055; - //BA.debugLineNum = 18088055;BA.debugLine="Log(\"AQUI ES SOBRANTE\")"; -__c.LogImpl("218088055","AQUI ES SOBRANTE",0); -RDebugUtils.currentLine=18088057; - //BA.debugLineNum = 18088057;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"', PE_COSTO_TOT= "+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"*"+__c.SmartStringFormatter("",(Object)(_preciofull))+", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); - }else -{RDebugUtils.currentLine=18088058; - //BA.debugLineNum = 18088058;BA.debugLine="Else If restado = 0 Then"; -if (_restado==0) { -RDebugUtils.currentLine=18088059; - //BA.debugLineNum = 18088059;BA.debugLine="Log(\"AQUI ES SOBRANTE\")"; -__c.LogImpl("218088059","AQUI ES SOBRANTE",0); -RDebugUtils.currentLine=18088060; - //BA.debugLineNum = 18088060;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PED"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); - }}} -; - }; - }else -{RDebugUtils.currentLine=18088065; - //BA.debugLineNum = 18088065;BA.debugLine="Else If restadoanterior.GetInt(\"RESTA\") < 0 An"; -if (_restadoanterior.GetInt("RESTA")<0 && _restadoanterior.GetInt("RESTA")!=_restado) { -RDebugUtils.currentLine=18088066; - //BA.debugLineNum = 18088066;BA.debugLine="Log(\"es sobrante\")"; -__c.LogImpl("218088066","es sobrante",0); -RDebugUtils.currentLine=18088067; - //BA.debugLineNum = 18088067;BA.debugLine="Dim sobrantes As Cursor = Starter.skmt.ExecQu"; -_sobrantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_sobrantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'SOBRANTE'")))); -RDebugUtils.currentLine=18088068; - //BA.debugLineNum = 18088068;BA.debugLine="If sobrantes.RowCount > 0 Then"; -if (_sobrantes.getRowCount()>0) { -RDebugUtils.currentLine=18088069; - //BA.debugLineNum = 18088069;BA.debugLine="sobrantes.Position = 0"; -_sobrantes.setPosition((int) (0)); -RDebugUtils.currentLine=18088071; - //BA.debugLineNum = 18088071;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; -_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); -RDebugUtils.currentLine=18088072; - //BA.debugLineNum = 18088072;BA.debugLine="If preciocat.RowCount > 0 Then"; -if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=18088073; - //BA.debugLineNum = 18088073;BA.debugLine="preciocat.Position = 0"; -_preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=18088074; - //BA.debugLineNum = 18088074;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; -_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); - }; -RDebugUtils.currentLine=18088076; - //BA.debugLineNum = 18088076;BA.debugLine="preciocat.Close"; -_preciocat.Close(); -RDebugUtils.currentLine=18088078; - //BA.debugLineNum = 18088078;BA.debugLine="Log(\"MENOR A CERO UPDATE\")"; -__c.LogImpl("218088078","MENOR A CERO UPDATE",0); -RDebugUtils.currentLine=18088079; - //BA.debugLineNum = 18088079;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEG"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]})); -RDebugUtils.currentLine=18088080; - //BA.debugLineNum = 18088080;BA.debugLine="If restado > 0 Then"; -if (_restado>0) { -RDebugUtils.currentLine=18088083; - //BA.debugLineNum = 18088083;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'")); - }else -{RDebugUtils.currentLine=18088084; - //BA.debugLineNum = 18088084;BA.debugLine="Else If restado < 0 Then"; -if (_restado<0) { -RDebugUtils.currentLine=18088087; - //BA.debugLineNum = 18088087;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(-1*_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(-1*_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'")); - }else -{RDebugUtils.currentLine=18088088; - //BA.debugLineNum = 18088088;BA.debugLine="Else If restado = 0 Then"; -if (_restado==0) { -RDebugUtils.currentLine=18088089; - //BA.debugLineNum = 18088089;BA.debugLine="Log(\"a eliminar\")"; -__c.LogImpl("218088089","a eliminar",0); -RDebugUtils.currentLine=18088090; - //BA.debugLineNum = 18088090;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PED"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'")); - }}} -; - }; - }else -{RDebugUtils.currentLine=18088094; - //BA.debugLineNum = 18088094;BA.debugLine="Else If restadoanterior.GetInt(\"RESTA\") = 0 An"; -if (_restadoanterior.GetInt("RESTA")==0 && _restadoanterior.GetInt("RESTA")!=_restado) { -RDebugUtils.currentLine=18088095; - //BA.debugLineNum = 18088095;BA.debugLine="Starter.skmt.ExecNonQuery2(\"Update PICK_CIEGO"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("Update PICK_CIEGO set PC_CANT = ?, RESTA = ? WHERE PC_ID_PROD = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_inputtext,BA.NumberToString(_restado),_idparts[(int) (0)]})); -RDebugUtils.currentLine=18088096; - //BA.debugLineNum = 18088096;BA.debugLine="If restado > 0 And inputText <> 0 Then"; -if (_restado>0 && (_inputtext).equals(BA.NumberToString(0)) == false) { -RDebugUtils.currentLine=18088098; - //BA.debugLineNum = 18088098;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; -_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); -RDebugUtils.currentLine=18088099; - //BA.debugLineNum = 18088099;BA.debugLine="If preciocat.RowCount > 0 Then"; -if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=18088100; - //BA.debugLineNum = 18088100;BA.debugLine="preciocat.Position = 0"; -_preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=18088101; - //BA.debugLineNum = 18088101;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; -_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); - }; -RDebugUtils.currentLine=18088103; - //BA.debugLineNum = 18088103;BA.debugLine="preciocat.Close"; -_preciocat.Close(); -RDebugUtils.currentLine=18088104; - //BA.debugLineNum = 18088104;BA.debugLine="Log(\"MAYOR A CERO\")"; -__c.LogImpl("218088104","MAYOR A CERO",0); -RDebugUtils.currentLine=18088105; - //BA.debugLineNum = 18088105;BA.debugLine="consecutivo = consecutivo + 1"; -_consecutivo = (int) (_consecutivo+1); -RDebugUtils.currentLine=18088106; - //BA.debugLineNum = 18088106;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQ"; -_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'")))); -RDebugUtils.currentLine=18088107; - //BA.debugLineNum = 18088107;BA.debugLine="If faltantes.RowCount > 0 Then"; -if (_faltantes.getRowCount()>0) { -RDebugUtils.currentLine=18088108; - //BA.debugLineNum = 18088108;BA.debugLine="faltantes.Position = 0"; -_faltantes.setPosition((int) (0)); -RDebugUtils.currentLine=18088109; - //BA.debugLineNum = 18088109;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)(_restado))+"', PE_COSTO_TOT= '"+__c.SmartStringFormatter("",(Object)(_restado))+"'*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"', PE_TIPO = 'FALTANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); - }else { -RDebugUtils.currentLine=18088111; - //BA.debugLineNum = 18088111;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString(_restado),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString(((double)(Double.parseDouble(_preciofull))*_restado)),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"FALTANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); - }; - }else -{RDebugUtils.currentLine=18088113; - //BA.debugLineNum = 18088113;BA.debugLine="Else If restado < 0 And inputText <> 0 Then"; -if (_restado<0 && (_inputtext).equals(BA.NumberToString(0)) == false) { -RDebugUtils.currentLine=18088115; - //BA.debugLineNum = 18088115;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; -_preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); -RDebugUtils.currentLine=18088116; - //BA.debugLineNum = 18088116;BA.debugLine="If preciocat.RowCount > 0 Then"; -if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=18088117; - //BA.debugLineNum = 18088117;BA.debugLine="preciocat.Position = 0"; -_preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=18088118; - //BA.debugLineNum = 18088118;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; -_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); - }; -RDebugUtils.currentLine=18088120; - //BA.debugLineNum = 18088120;BA.debugLine="preciocat.Close"; -_preciocat.Close(); -RDebugUtils.currentLine=18088121; - //BA.debugLineNum = 18088121;BA.debugLine="Log(\"MENOR A CERO\")"; -__c.LogImpl("218088121","MENOR A CERO",0); -RDebugUtils.currentLine=18088122; - //BA.debugLineNum = 18088122;BA.debugLine="consecutivo = consecutivo + 1"; -_consecutivo = (int) (_consecutivo+1); -RDebugUtils.currentLine=18088123; - //BA.debugLineNum = 18088123;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQ"; -_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' AND PE_TIPO = 'FALTANTE'")))); -RDebugUtils.currentLine=18088124; - //BA.debugLineNum = 18088124;BA.debugLine="If faltantes.RowCount > 0 Then"; -if (_faltantes.getRowCount()>0) { -RDebugUtils.currentLine=18088125; - //BA.debugLineNum = 18088125;BA.debugLine="faltantes.Position = 0"; -_faltantes.setPosition((int) (0)); -RDebugUtils.currentLine=18088126; - //BA.debugLineNum = 18088126;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO s"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = '"+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"', PE_COSTO_TOT= "+__c.SmartStringFormatter("",(Object)((-1*_restado)))+"*"+__c.SmartStringFormatter("",(Object)(_preciofull))+", PE_TIPO = 'SOBRANTE' WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_faltantes.GetString("CONSECUTIVO")))+"'")); - }else { -RDebugUtils.currentLine=18088128; - //BA.debugLineNum = 18088128;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString((-1*_restado)),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString((-1*((double)(Double.parseDouble(_preciofull))*_restado))),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"SOBRANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); - }; - }} -; - }else -{RDebugUtils.currentLine=18088131; - //BA.debugLineNum = 18088131;BA.debugLine="Else If restadoanterior.GetInt(\"RESTA\") = 0 An"; -if (_restadoanterior.GetInt("RESTA")==0 && _restado==0) { -RDebugUtils.currentLine=18088132; - //BA.debugLineNum = 18088132;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND PE_TIPO NOT IN ('DANADO') ")); - }}}} -; - }; - }else -{RDebugUtils.currentLine=18088135; - //BA.debugLineNum = 18088135;BA.debugLine="Else If inputText = \"\" Or inputText = 0 Then"; -if ((_inputtext).equals("") || (_inputtext).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=18088136; - //BA.debugLineNum = 18088136;BA.debugLine="Log(\"IMPUT IGUAL DE CERO\")"; -__c.LogImpl("218088136","IMPUT IGUAL DE CERO",0); -RDebugUtils.currentLine=18088137; - //BA.debugLineNum = 18088137;BA.debugLine="Log(idParts(0))"; -__c.LogImpl("218088137",_idparts[(int) (0)],0); -RDebugUtils.currentLine=18088138; - //BA.debugLineNum = 18088138;BA.debugLine="Log(cantidadrestar)"; -__c.LogImpl("218088138",_cantidadrestar,0); -RDebugUtils.currentLine=18088139; - //BA.debugLineNum = 18088139;BA.debugLine="Log(inputText)"; -__c.LogImpl("218088139",_inputtext,0); -RDebugUtils.currentLine=18088140; - //BA.debugLineNum = 18088140;BA.debugLine="Dim restado As Int = cantidadrestar - inputText"; -_restado = (int) ((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))); -RDebugUtils.currentLine=18088141; - //BA.debugLineNum = 18088141;BA.debugLine="Log(cantidadrestar - inputText)"; -__c.LogImpl("218088141",BA.NumberToString((double)(Double.parseDouble(_cantidadrestar))-(double)(Double.parseDouble(_inputtext))),0); -RDebugUtils.currentLine=18088142; - //BA.debugLineNum = 18088142;BA.debugLine="Dim faltantes As Cursor = Starter.skmt.ExecQuer"; -_faltantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_faltantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO where PC_ID_PROD = ?",new String[]{_idparts[(int) (0)]}))); -RDebugUtils.currentLine=18088143; - //BA.debugLineNum = 18088143;BA.debugLine="If faltantes.RowCount > 0 Then"; -if (_faltantes.getRowCount()>0) { -RDebugUtils.currentLine=18088144; - //BA.debugLineNum = 18088144;BA.debugLine="faltantes.Position = 0"; -_faltantes.setPosition((int) (0)); -RDebugUtils.currentLine=18088145; - //BA.debugLineNum = 18088145;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PICK_C"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PICK_CIEGO where PC_ID_PROD = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")); - }; -RDebugUtils.currentLine=18088148; - //BA.debugLineNum = 18088148;BA.debugLine="Dim sobrantes As Cursor = Starter.skmt.ExecQuer"; -_sobrantes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_sobrantes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403'")))); -RDebugUtils.currentLine=18088149; - //BA.debugLineNum = 18088149;BA.debugLine="If sobrantes.RowCount > 0 Then"; -if (_sobrantes.getRowCount()>0) { -RDebugUtils.currentLine=18088150; - //BA.debugLineNum = 18088150;BA.debugLine="sobrantes.Position = 0"; -_sobrantes.setPosition((int) (0)); -RDebugUtils.currentLine=18088151; - //BA.debugLineNum = 18088151;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"' and PE_CLIENTE = '63403' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_sobrantes.GetString("CONSECUTIVO")))+"'")); - }; -RDebugUtils.currentLine=18088154; - //BA.debugLineNum = 18088154;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 IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_idparts[(int) (0)]))+"'")))); -RDebugUtils.currentLine=18088155; - //BA.debugLineNum = 18088155;BA.debugLine="If preciocat.RowCount > 0 Then"; -if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=18088156; - //BA.debugLineNum = 18088156;BA.debugLine="preciocat.Position = 0"; -_preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=18088157; - //BA.debugLineNum = 18088157;BA.debugLine="Dim preciofull As String = preciocat.GetString"; -_preciofull = _preciocat.GetString("CAT_GP_PRECIO"); - }; -RDebugUtils.currentLine=18088159; - //BA.debugLineNum = 18088159;BA.debugLine="preciocat.Close"; -_preciocat.Close(); -RDebugUtils.currentLine=18088160; - //BA.debugLineNum = 18088160;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDIDO("; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_idparts[(int) (0)],_idparts[(int) (1)],BA.NumberToString(_restado),"",_subs._traecliente /*String*/ (ba),_preciofull,BA.NumberToString(((double)(Double.parseDouble(_preciofull))*_restado)),BA.NumberToString(_consecutivo),BA.NumberToString(1000),"FALTANTE",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); - }} -; -RDebugUtils.currentLine=18088163; - //BA.debugLineNum = 18088163;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=18088164; - //BA.debugLineNum = 18088164;BA.debugLine="a.Close"; -__ref._a /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=18088165; - //BA.debugLineNum = 18088165;BA.debugLine="Log(\"Processed item \" & i)"; -__c.LogImpl("218088165","Processed item "+BA.NumberToString(_i),0); - } -}; -RDebugUtils.currentLine=18088168; - //BA.debugLineNum = 18088168;BA.debugLine="P_CIEGO.Visible = False"; -__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=18088169; - //BA.debugLineNum = 18088169;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; -_b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=18088170; - //BA.debugLineNum = 18088170;BA.debugLine="End Sub"; -return ""; -} -public String _b_venta_emp_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b_venta_emp_click", false)) - {return ((String) Debug.delegate(ba, "b_venta_emp_click", null));} -RDebugUtils.currentLine=17432576; - //BA.debugLineNum = 17432576;BA.debugLine="Private Sub b_venta_emp_Click"; -RDebugUtils.currentLine=17432578; - //BA.debugLineNum = 17432578;BA.debugLine="p_validacion.Visible = True"; -__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=17432579; - //BA.debugLineNum = 17432579;BA.debugLine="p_validacion.Width = Root.Width"; -__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=17432580; - //BA.debugLineNum = 17432580;BA.debugLine="p_validacion.Height = Root.Height"; -__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=17432582; - //BA.debugLineNum = 17432582;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));} -ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref); +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{ +ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { -public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_principal parent,reparto_izca.keymon.lat.c_principal __ref) { +public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_principal parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_principal __ref; reparto_izca.keymon.lat.c_principal parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_principal"; while (true) { switch (state) { @@ -4204,62 +3096,49 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = 1; -RDebugUtils.currentLine=16384002; - //BA.debugLineNum = 16384002;BA.debugLine="If Panel1.visible Then"; + //BA.debugLineNum = 2572;BA.debugLine="If Panel1.visible Then"; if (true) break; case 1: //if this.state = 10; -if (__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { +if (parent._panel1.getVisible()) { this.state = 3; -}else -{RDebugUtils.currentLine=16384005; - //BA.debugLineNum = 16384005;BA.debugLine="Else If P_CIEGO.Visible Then"; -if (__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { +}else if(parent._p_ciego.getVisible()) { this.state = 5; -}else -{RDebugUtils.currentLine=16384007; - //BA.debugLineNum = 16384007;BA.debugLine="Else If p_prod.Visible Then"; -if (__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .getVisible()) { +}else if(parent._p_prod.getVisible()) { this.state = 7; }else { this.state = 9; -}}} -if (true) break; +}if (true) break; case 3: //C this.state = 10; -RDebugUtils.currentLine=16384003; - //BA.debugLineNum = 16384003;BA.debugLine="Log(\"PANEL1 VISIBLE\")"; -parent.__c.LogImpl("216384003","PANEL1 VISIBLE",0); -RDebugUtils.currentLine=16384004; - //BA.debugLineNum = 16384004;BA.debugLine="B_REGRESA_Click"; -__ref._b_regresa_click /*String*/ (null); + //BA.debugLineNum = 2573;BA.debugLine="Log(\"PANEL1 VISIBLE\")"; +parent.__c.LogImpl("015269891","PANEL1 VISIBLE",0); + //BA.debugLineNum = 2574;BA.debugLine="B_REGRESA_Click"; +parent._b_regresa_click(); if (true) break; case 5: //C this.state = 10; -RDebugUtils.currentLine=16384006; - //BA.debugLineNum = 16384006;BA.debugLine="P_CIEGO.Visible = False"; -__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); + //BA.debugLineNum = 2576;BA.debugLine="P_CIEGO.Visible = False"; +parent._p_ciego.setVisible(parent.__c.False); if (true) break; case 7: //C this.state = 10; -RDebugUtils.currentLine=16384008; - //BA.debugLineNum = 16384008;BA.debugLine="p_prod.Visible = False"; -__ref._p_prod /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(parent.__c.False); + //BA.debugLineNum = 2578;BA.debugLine="p_prod.Visible = False"; +parent._p_prod.setVisible(parent.__c.False); if (true) break; case 9: //C this.state = 10; -RDebugUtils.currentLine=16384010; - //BA.debugLineNum = 16384010;BA.debugLine="B4XPages.ShowPage(\"Login\")"; + //BA.debugLineNum = 2580;BA.debugLine="B4XPages.ShowPage(\"Login\")"; parent._b4xpages._showpage /*String*/ (ba,"Login"); if (true) break; @@ -4267,1394 +3146,1547 @@ case 10: //C this.state = -1; ; -RDebugUtils.currentLine=16384013; - //BA.debugLineNum = 16384013;BA.debugLine="Return False"; + //BA.debugLineNum = 2583;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; -RDebugUtils.currentLine=16384014; - //BA.debugLineNum = 16384014;BA.debugLine="End Sub"; + //BA.debugLineNum = 2584;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b4xpage_created(reparto_izca.keymon.lat.c_principal __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=15597568; - //BA.debugLineNum = 15597568;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=15597569; - //BA.debugLineNum = 15597569;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=15597571; - //BA.debugLineNum = 15597571;BA.debugLine="Root.LoadLayout(\"principal\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("principal",ba); -RDebugUtils.currentLine=15597572; - //BA.debugLineNum = 15597572;BA.debugLine="EJECUTANDO=1"; -__ref._ejecutando /*String*/ = BA.NumberToString(1); -RDebugUtils.currentLine=15597573; - //BA.debugLineNum = 15597573;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=15597576; - //BA.debugLineNum = 15597576;BA.debugLine="img2.Visible =False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=15597577; - //BA.debugLineNum = 15597577;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 149;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 150;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 152;BA.debugLine="Root.LoadLayout(\"principal\")"; +_root.LoadLayout("principal",ba); + //BA.debugLineNum = 153;BA.debugLine="EJECUTANDO=1"; +_ejecutando = BA.NumberToString(1); + //BA.debugLineNum = 154;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serve"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 157;BA.debugLine="img2.Visible =False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 158;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; __c.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=15597578; - //BA.debugLineNum = 15597578;BA.debugLine="fecha=DateTime.Date(DateTime.Now)"; -__ref._fecha /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=15597580; - //BA.debugLineNum = 15597580;BA.debugLine="b=Starter.skmt.ExecQuery(\"Select count(*) as CUAN"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente"))); -RDebugUtils.currentLine=15597581; - //BA.debugLineNum = 15597581;BA.debugLine="b.Position=0"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15597582; - //BA.debugLineNum = 15597582;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")"; -__ref._cuantos /*String*/ = __ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS"); -RDebugUtils.currentLine=15597583; - //BA.debugLineNum = 15597583;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(*) as TOTA"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000"))); -RDebugUtils.currentLine=15597584; - //BA.debugLineNum = 15597584;BA.debugLine="D.Position=0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15597585; - //BA.debugLineNum = 15597585;BA.debugLine="b.Close"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15597586; - //BA.debugLineNum = 15597586;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(*) as POR_"; -__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000"))); -RDebugUtils.currentLine=15597587; - //BA.debugLineNum = 15597587;BA.debugLine="e.Position=0"; -__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15597588; - //BA.debugLineNum = 15597588;BA.debugLine="If Cuantos = 0 Then"; -if ((__ref._cuantos /*String*/ ).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=15597590; - //BA.debugLineNum = 15597590;BA.debugLine="l_cuantosc.Text = 0"; -__ref._l_cuantosc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15597591; - //BA.debugLineNum = 15597591;BA.debugLine="l_cuantosn.Text = 0"; -__ref._l_cuantosn /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15597592; - //BA.debugLineNum = 15597592;BA.debugLine="drop = 0"; -__ref._drop /*double*/ = 0; -RDebugUtils.currentLine=15597593; - //BA.debugLineNum = 15597593;BA.debugLine="l_montoSalida.Text = 0"; -__ref._l_montosalida /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(0)); -RDebugUtils.currentLine=15597594; - //BA.debugLineNum = 15597594;BA.debugLine="efectiva = 0"; -__ref._efectiva /*double*/ = 0; -RDebugUtils.currentLine=15597596; - //BA.debugLineNum = 15597596;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")"; -__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL_VISITAR"))); -RDebugUtils.currentLine=15597597; - //BA.debugLineNum = 15597597;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")"; -__ref._l_porvisitar /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._e /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("POR_VISITAR"))); + //BA.debugLineNum = 159;BA.debugLine="fecha=DateTime.Date(DateTime.Now)"; +_fecha = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 161;BA.debugLine="b=Starter.skmt.ExecQuery(\"Select count(*) as CUAN"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select count(*) as CUANTOS from pedido_cliente"))); + //BA.debugLineNum = 162;BA.debugLine="b.Position=0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 163;BA.debugLine="Cuantos = b.GetString(\"CUANTOS\")"; +_cuantos = _b.GetString("CUANTOS"); + //BA.debugLineNum = 164;BA.debugLine="d=Starter.skmt.ExecQuery(\"select count(*) as TOTA"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as TOTAL_VISITAR from kmt_info where gestion = 0 AND CAT_CL_RUTA <> 1000"))); + //BA.debugLineNum = 165;BA.debugLine="D.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 166;BA.debugLine="b.Close"; +_b.Close(); + //BA.debugLineNum = 167;BA.debugLine="e=Starter.skmt.ExecQuery(\"select count(*) as POR_"; +_e = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as POR_VISITAR from kmt_info WHERE CAT_CL_RUTA <> 1000"))); + //BA.debugLineNum = 168;BA.debugLine="e.Position=0"; +_e.setPosition((int) (0)); + //BA.debugLineNum = 169;BA.debugLine="If Cuantos = 0 Then"; +if ((_cuantos).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 171;BA.debugLine="l_cuantosc.Text = 0"; +_l_cuantosc.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 172;BA.debugLine="l_cuantosn.Text = 0"; +_l_cuantosn.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 173;BA.debugLine="drop = 0"; +_drop = 0; + //BA.debugLineNum = 174;BA.debugLine="l_montoSalida.Text = 0"; +_l_montosalida.setText(BA.ObjectToCharSequence(0)); + //BA.debugLineNum = 175;BA.debugLine="efectiva = 0"; +_efectiva = 0; + //BA.debugLineNum = 177;BA.debugLine="l_ctast.Text = d.GetString(\"TOTAL_VISITAR\")"; +_l_ctast.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL_VISITAR"))); + //BA.debugLineNum = 178;BA.debugLine="l_porvisitar.Text = e.GetString(\"POR_VISITAR\")"; +_l_porvisitar.setText(BA.ObjectToCharSequence(_e.GetString("POR_VISITAR"))); }else { }; -RDebugUtils.currentLine=15597616; - //BA.debugLineNum = 15597616;BA.debugLine="b=Starter.skmt.ExecQuery(\"select id_almacen from"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=15597617; - //BA.debugLineNum = 15597617;BA.debugLine="If b.RowCount > 0 Then"; -if (__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=15597619; - //BA.debugLineNum = 15597619;BA.debugLine="b.Position = 0"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15597621; - //BA.debugLineNum = 15597621;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 197;BA.debugLine="b=Starter.skmt.ExecQuery(\"select id_almacen from"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select id_almacen from CAT_ALMACEN"))); + //BA.debugLineNum = 198;BA.debugLine="If b.RowCount > 0 Then"; +if (_b.getRowCount()>0) { + //BA.debugLineNum = 200;BA.debugLine="b.Position = 0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 202;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=15597622; - //BA.debugLineNum = 15597622;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=15597623; - //BA.debugLineNum = 15597623;BA.debugLine="cmd.Name = \"select_coords_almacen_mards\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_coords_almacen_mards"; -RDebugUtils.currentLine=15597624; - //BA.debugLineNum = 15597624;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"ID"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN"))}; -RDebugUtils.currentLine=15597625; - //BA.debugLineNum = 15597625;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coords_almacen")); + //BA.debugLineNum = 203;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 204;BA.debugLine="cmd.Name = \"select_coords_almacen_mards\""; +_cmd.Name /*String*/ = "select_coords_almacen_mards"; + //BA.debugLineNum = 205;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"ID"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_b.GetString("ID_ALMACEN"))}; + //BA.debugLineNum = 206;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("coords_almacen")); }; -RDebugUtils.currentLine=15597627; - //BA.debugLineNum = 15597627;BA.debugLine="B4XPages.MainPage.usuario=Subs.dameUsuarioDeDB"; + //BA.debugLineNum = 208;BA.debugLine="B4XPages.MainPage.usuario=Subs.dameUsuarioDeDB"; _b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._usuario /*String*/ = _subs._dameusuariodedb /*String*/ (ba); -RDebugUtils.currentLine=15597628; - //BA.debugLineNum = 15597628;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")"; -__ref._btadmin /*anywheresoftware.b4a.objects.Serial.BluetoothAdmin*/ .Initialize(ba,"BlueTeeth"); -RDebugUtils.currentLine=15597629; - //BA.debugLineNum = 15597629;BA.debugLine="cmp20.Initialize(\"Printer\")"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Initialize("Printer"); -RDebugUtils.currentLine=15597630; - //BA.debugLineNum = 15597630;BA.debugLine="End Sub"; + //BA.debugLineNum = 209;BA.debugLine="btAdmin.Initialize(\"BlueTeeth\")"; +_btadmin.Initialize(ba,"BlueTeeth"); + //BA.debugLineNum = 210;BA.debugLine="cmp20.Initialize(\"Printer\")"; +_cmp20.Initialize("Printer"); + //BA.debugLineNum = 211;BA.debugLine="End Sub"; return ""; } -public String _btn_ubicar_ru_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "btn_ubicar_ru_click", false)) - {return ((String) Debug.delegate(ba, "btn_ubicar_ru_click", null));} -RDebugUtils.currentLine=16973824; - //BA.debugLineNum = 16973824;BA.debugLine="Sub Btn_Ubicar_Ru_Click"; -RDebugUtils.currentLine=16973825; - //BA.debugLineNum = 16973825;BA.debugLine="If b_check.Visible = True Then"; -if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { -RDebugUtils.currentLine=16973826; - //BA.debugLineNum = 16973826;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten"; +public String _btn_ubicar_ru_click() throws Exception{ + //BA.debugLineNum = 2937;BA.debugLine="Sub Btn_Ubicar_Ru_Click"; + //BA.debugLineNum = 2938;BA.debugLine="If b_check.Visible = True Then"; +if (_b_check.getVisible()==__c.True) { + //BA.debugLineNum = 2939;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten"; __c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba); }else { -RDebugUtils.currentLine=16973829; - //BA.debugLineNum = 16973829;BA.debugLine="StartActivity(MAPA_RUTAS)"; + //BA.debugLineNum = 2942;BA.debugLine="StartActivity(MAPA_RUTAS)"; __c.StartActivity(ba,(Object)(_mapa_rutas.getObject())); }; -RDebugUtils.currentLine=16973831; - //BA.debugLineNum = 16973831;BA.debugLine="End Sub"; + //BA.debugLineNum = 2944;BA.debugLine="End Sub"; return ""; } -public String _busca_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "busca_click", false)) - {return ((String) Debug.delegate(ba, "busca_click", null));} -RDebugUtils.currentLine=16515072; - //BA.debugLineNum = 16515072;BA.debugLine="Sub BUSCA_Click"; -RDebugUtils.currentLine=16515073; - //BA.debugLineNum = 16515073;BA.debugLine="If b_check.Visible = True Then"; -if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { -RDebugUtils.currentLine=16515074; - //BA.debugLineNum = 16515074;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten"; +public String _busca_click() throws Exception{ + //BA.debugLineNum = 2613;BA.debugLine="Sub BUSCA_Click"; + //BA.debugLineNum = 2614;BA.debugLine="If b_check.Visible = True Then"; +if (_b_check.getVisible()==__c.True) { + //BA.debugLineNum = 2615;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Aten"; __c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba); }else { -RDebugUtils.currentLine=16515077; - //BA.debugLineNum = 16515077;BA.debugLine="B4XPages.ShowPage(\"Buscar\")"; + //BA.debugLineNum = 2618;BA.debugLine="B4XPages.ShowPage(\"Buscar\")"; _b4xpages._showpage /*String*/ (ba,"Buscar"); }; -RDebugUtils.currentLine=16515079; - //BA.debugLineNum = 16515079;BA.debugLine="End Sub"; + //BA.debugLineNum = 2620;BA.debugLine="End Sub"; return ""; } -public String _cargar____click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "cargar____click", false)) - {return ((String) Debug.delegate(ba, "cargar____click", null));} +public String _cargar____click() throws Exception{ boolean _pedidodiaanterior = false; String[] _fecha2 = null; String[] _fecha3 = null; String _dia = ""; String _dia2 = ""; -RDebugUtils.currentLine=16252928; - //BA.debugLineNum = 16252928;BA.debugLine="Sub cargar____Click"; -RDebugUtils.currentLine=16252929; - //BA.debugLineNum = 16252929;BA.debugLine="Dim pedidodiaanterior As Boolean = False"; + //BA.debugLineNum = 1640;BA.debugLine="Sub cargar____Click"; + //BA.debugLineNum = 1641;BA.debugLine="Dim pedidodiaanterior As Boolean = False"; _pedidodiaanterior = __c.False; -RDebugUtils.currentLine=16252930; - //BA.debugLineNum = 16252930;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"select"; + //BA.debugLineNum = 1642;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"select"; _cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _cp = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from NOVENTA"))); -RDebugUtils.currentLine=16252931; - //BA.debugLineNum = 16252931;BA.debugLine="If cp.RowCount > 0 Then"; -if (__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16252932; - //BA.debugLineNum = 16252932;BA.debugLine="cp.Position = 0"; -__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16252933; - //BA.debugLineNum = 16252933;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA"; -_fecha = __ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA"); -RDebugUtils.currentLine=16252934; - //BA.debugLineNum = 16252934;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))"; -__c.LogImpl("216252934",__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA"),0); -RDebugUtils.currentLine=16252935; - //BA.debugLineNum = 16252935;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)"; -_fecha2 = __c.Regex.Split(" ",__ref._fecha /*String*/ ); -RDebugUtils.currentLine=16252936; - //BA.debugLineNum = 16252936;BA.debugLine="Log(fecha2(0))"; -__c.LogImpl("216252936",_fecha2[(int) (0)],0); -RDebugUtils.currentLine=16252937; - //BA.debugLineNum = 16252937;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2("; + //BA.debugLineNum = 1643;BA.debugLine="If cp.RowCount > 0 Then"; +if (_cp.getRowCount()>0) { + //BA.debugLineNum = 1644;BA.debugLine="cp.Position = 0"; +_cp.setPosition((int) (0)); + //BA.debugLineNum = 1645;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA"; +_fecha = _cp.GetString("NV_FECHA"); + //BA.debugLineNum = 1646;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))"; +__c.LogImpl("015138822",_cp.GetString("NV_FECHA"),0); + //BA.debugLineNum = 1647;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)"; +_fecha2 = __c.Regex.Split(" ",_fecha); + //BA.debugLineNum = 1648;BA.debugLine="Log(fecha2(0))"; +__c.LogImpl("015138824",_fecha2[(int) (0)],0); + //BA.debugLineNum = 1649;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2("; _fecha3 = __c.Regex.Split("/",_fecha2[(int) (0)]); -RDebugUtils.currentLine=16252938; - //BA.debugLineNum = 16252938;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\""; + //BA.debugLineNum = 1650;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\""; __c.DateTime.setDateFormat("yyyyMMdd"); -RDebugUtils.currentLine=16252939; - //BA.debugLineNum = 16252939;BA.debugLine="DateTime.TimeFormat = \"\""; + //BA.debugLineNum = 1651;BA.debugLine="DateTime.TimeFormat = \"\""; __c.DateTime.setTimeFormat(""); -RDebugUtils.currentLine=16252940; - //BA.debugLineNum = 16252940;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1"; + //BA.debugLineNum = 1652;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1"; _dia = _fecha3[(int) (2)]+_fecha3[(int) (0)]+_fecha3[(int) (1)]; -RDebugUtils.currentLine=16252941; - //BA.debugLineNum = 16252941;BA.debugLine="Log(dia)"; -__c.LogImpl("216252941",_dia,0); -RDebugUtils.currentLine=16252942; - //BA.debugLineNum = 16252942;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)"; + //BA.debugLineNum = 1653;BA.debugLine="Log(dia)"; +__c.LogImpl("015138829",_dia,0); + //BA.debugLineNum = 1654;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)"; _dia2 = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=16252943; - //BA.debugLineNum = 16252943;BA.debugLine="Log(dia & \" , \" & dia2)"; -__c.LogImpl("216252943",_dia+" , "+_dia2,0); -RDebugUtils.currentLine=16252944; - //BA.debugLineNum = 16252944;BA.debugLine="If dia < dia2 Then"; + //BA.debugLineNum = 1655;BA.debugLine="Log(dia & \" , \" & dia2)"; +__c.LogImpl("015138831",_dia+" , "+_dia2,0); + //BA.debugLineNum = 1656;BA.debugLine="If dia < dia2 Then"; if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { -RDebugUtils.currentLine=16252945; - //BA.debugLineNum = 16252945;BA.debugLine="pedidodiaanterior = True"; + //BA.debugLineNum = 1657;BA.debugLine="pedidodiaanterior = True"; _pedidodiaanterior = __c.True; }; }; -RDebugUtils.currentLine=16252948; - //BA.debugLineNum = 16252948;BA.debugLine="If Not (pedidodiaanterior) Then"; + //BA.debugLineNum = 1660;BA.debugLine="If Not (pedidodiaanterior) Then"; if (__c.Not(_pedidodiaanterior)) { -RDebugUtils.currentLine=16252949; - //BA.debugLineNum = 16252949;BA.debugLine="Log(\"CUMPLE\")"; -__c.LogImpl("216252949","CUMPLE",0); -RDebugUtils.currentLine=16252950; - //BA.debugLineNum = 16252950;BA.debugLine="EJECUTANDO = 1"; -__ref._ejecutando /*String*/ = BA.NumberToString(1); -RDebugUtils.currentLine=16252951; - //BA.debugLineNum = 16252951;BA.debugLine="reqs.Initialize"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=16252952; - //BA.debugLineNum = 16252952;BA.debugLine="TOPE = 0"; -__ref._tope /*int*/ = (int) (0); -RDebugUtils.currentLine=16252953; - //BA.debugLineNum = 16252953;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve"; -__c.LogImpl("216252953",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); -RDebugUtils.currentLine=16252954; - //BA.debugLineNum = 16252954;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=16252956; - //BA.debugLineNum = 16252956;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 1661;BA.debugLine="Log(\"CUMPLE\")"; +__c.LogImpl("015138837","CUMPLE",0); + //BA.debugLineNum = 1662;BA.debugLine="EJECUTANDO = 1"; +_ejecutando = BA.NumberToString(1); + //BA.debugLineNum = 1663;BA.debugLine="reqs.Initialize"; +_reqs.Initialize(); + //BA.debugLineNum = 1664;BA.debugLine="TOPE = 0"; +_tope = (int) (0); + //BA.debugLineNum = 1665;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve"; +__c.LogImpl("015138841",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); + //BA.debugLineNum = 1666;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 1668;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16252957; - //BA.debugLineNum = 16252957;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16252958; - //BA.debugLineNum = 16252958;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_drop_rep_IZCA2"; -RDebugUtils.currentLine=16252959; - //BA.debugLineNum = 16252959;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("CARGA"),(Object)(__c.Application.getVersionName())}; -RDebugUtils.currentLine=16252960; - //BA.debugLineNum = 16252960;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop")); -RDebugUtils.currentLine=16252963; - //BA.debugLineNum = 16252963;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\""; + //BA.debugLineNum = 1669;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1670;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\""; +_cmd.Name /*String*/ = "insert_drop_rep_IZCA2"; + //BA.debugLineNum = 1671;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_l_ctast.getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("CARGA"),(Object)(__c.Application.getVersionName())}; + //BA.debugLineNum = 1672;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_drop")); + //BA.debugLineNum = 1675;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info"); -RDebugUtils.currentLine=16252964; - //BA.debugLineNum = 16252964;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul"; + //BA.debugLineNum = 1676;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result"); -RDebugUtils.currentLine=16252965; - //BA.debugLineNum = 16252965;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest"; + //BA.debugLineNum = 1677;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest"); -RDebugUtils.currentLine=16252966; - //BA.debugLineNum = 16252966;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL"; + //BA.debugLineNum = 1678;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ"); -RDebugUtils.currentLine=16252967; - //BA.debugLineNum = 16252967;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos"; + //BA.debugLineNum = 1679;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos"); -RDebugUtils.currentLine=16252969; - //BA.debugLineNum = 16252969;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP"; + //BA.debugLineNum = 1681;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PUNTEO_GPS"); -RDebugUtils.currentLine=16252970; - //BA.debugLineNum = 16252970;BA.debugLine="If l_ruta.Text = \"0\" Then '"; -if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { -RDebugUtils.currentLine=16252971; - //BA.debugLineNum = 16252971;BA.debugLine="Log(\"********************* No hay ruta, BORRAM"; -__c.LogImpl("216252971","********************* No hay ruta, BORRAMOS TODO",0); -RDebugUtils.currentLine=16252972; - //BA.debugLineNum = 16252972;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; + //BA.debugLineNum = 1682;BA.debugLine="If l_ruta.Text = \"0\" Then '"; +if ((_l_ruta.getText()).equals("0")) { + //BA.debugLineNum = 1683;BA.debugLine="Log(\"********************* No hay ruta, BORRAM"; +__c.LogImpl("015138859","********************* No hay ruta, BORRAMOS TODO",0); + //BA.debugLineNum = 1684;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod"); -RDebugUtils.currentLine=16252973; - //BA.debugLineNum = 16252973;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; + //BA.debugLineNum = 1685;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3"); -RDebugUtils.currentLine=16252974; - //BA.debugLineNum = 16252974;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\""; + //BA.debugLineNum = 1686;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO"); -RDebugUtils.currentLine=16252975; - //BA.debugLineNum = 16252975;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; + //BA.debugLineNum = 1687;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS"); -RDebugUtils.currentLine=16252976; - //BA.debugLineNum = 16252976;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; + //BA.debugLineNum = 1688;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS2"); -RDebugUtils.currentLine=16252977; - //BA.debugLineNum = 16252977;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\""; + //BA.debugLineNum = 1689;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA"); }else { -RDebugUtils.currentLine=16252979; - //BA.debugLineNum = 16252979;BA.debugLine="Log(\"********************* Hay ruta, NO BORRAM"; -__c.LogImpl("216252979","********************* Hay ruta, NO BORRAMOS TODO",0); + //BA.debugLineNum = 1691;BA.debugLine="Log(\"********************* Hay ruta, NO BORRAM"; +__c.LogImpl("015138867","********************* Hay ruta, NO BORRAMOS TODO",0); }; -RDebugUtils.currentLine=16252983; - //BA.debugLineNum = 16252983;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=16252984; - //BA.debugLineNum = 16252984;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16252985; - //BA.debugLineNum = 16252985;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=16252987; - //BA.debugLineNum = 16252987;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16252988; - //BA.debugLineNum = 16252988;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_punteo_mards_re_REPG"; -RDebugUtils.currentLine=16252989; - //BA.debugLineNum = 16252989;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16252990; - //BA.debugLineNum = 16252990;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("punteo")); -RDebugUtils.currentLine=16252991; - //BA.debugLineNum = 16252991;BA.debugLine="Log($\"Pedimos Punteo\"$)"; -__c.LogImpl("216252991",("Pedimos Punteo"),0); -RDebugUtils.currentLine=16252992; - //BA.debugLineNum = 16252992;BA.debugLine="reqs.Add(\"punteo\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("punteo")); -RDebugUtils.currentLine=16252995; - //BA.debugLineNum = 16252995;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16252996; - //BA.debugLineNum = 16252996;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_almacen_mards_re_REPG"; -RDebugUtils.currentLine=16252997; - //BA.debugLineNum = 16252997;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16252998; - //BA.debugLineNum = 16252998;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod")); -RDebugUtils.currentLine=16252999; - //BA.debugLineNum = 16252999;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te"; -__c.LogImpl("216252999",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+""),0); -RDebugUtils.currentLine=16253000; - //BA.debugLineNum = 16253000;BA.debugLine="reqs.Add(\"gunaprod\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("gunaprod")); -RDebugUtils.currentLine=16253004; - //BA.debugLineNum = 16253004;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16253005; - //BA.debugLineNum = 16253005;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_cliente_mards_re_REPG"; -RDebugUtils.currentLine=16253006; - //BA.debugLineNum = 16253006;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16253007; - //BA.debugLineNum = 16253007;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos")); -RDebugUtils.currentLine=16253008; - //BA.debugLineNum = 16253008;BA.debugLine="Log($\"Pedimos kmt_datos\"$)"; -__c.LogImpl("216253008",("Pedimos kmt_datos"),0); -RDebugUtils.currentLine=16253009; - //BA.debugLineNum = 16253009;BA.debugLine="reqs.Add(\"kmt_datos\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("kmt_datos")); -RDebugUtils.currentLine=16253011; - //BA.debugLineNum = 16253011;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16253012; - //BA.debugLineNum = 16253012;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_ventad_mards_re_REPG"; -RDebugUtils.currentLine=16253013; - //BA.debugLineNum = 16253013;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16253014; - //BA.debugLineNum = 16253014;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos")); -RDebugUtils.currentLine=16253015; - //BA.debugLineNum = 16253015;BA.debugLine="Log($\"Pedimos hist_datos\"$)"; -__c.LogImpl("216253015",("Pedimos hist_datos"),0); -RDebugUtils.currentLine=16253016; - //BA.debugLineNum = 16253016;BA.debugLine="reqs.Add(\"hist_datos\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("hist_datos")); -RDebugUtils.currentLine=16253033; - //BA.debugLineNum = 16253033;BA.debugLine="If ALMACEN = \"32\" Then"; -if ((__ref._almacen /*String*/ ).equals("32")) { -RDebugUtils.currentLine=16253034; - //BA.debugLineNum = 16253034;BA.debugLine="ALMACEN = \"33\""; -__ref._almacen /*String*/ = "33"; -RDebugUtils.currentLine=16253035; - //BA.debugLineNum = 16253035;BA.debugLine="cargo = 2"; -__ref._cargo /*String*/ = BA.NumberToString(2); -RDebugUtils.currentLine=16253036; - //BA.debugLineNum = 16253036;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16253037; - //BA.debugLineNum = 16253037;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_punteo_mards_re_REPG"; -RDebugUtils.currentLine=16253038; - //BA.debugLineNum = 16253038;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16253039; - //BA.debugLineNum = 16253039;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("punteo")); -RDebugUtils.currentLine=16253040; - //BA.debugLineNum = 16253040;BA.debugLine="reqs.Add(\"punteo\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("punteo")); -RDebugUtils.currentLine=16253042; - //BA.debugLineNum = 16253042;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16253043; - //BA.debugLineNum = 16253043;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_almacen_mards_re_REPG"; -RDebugUtils.currentLine=16253044; - //BA.debugLineNum = 16253044;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_rut"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16253045; - //BA.debugLineNum = 16253045;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod")); -RDebugUtils.currentLine=16253046; - //BA.debugLineNum = 16253046;BA.debugLine="reqs.Add(\"gunaprod\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("gunaprod")); -RDebugUtils.currentLine=16253048; - //BA.debugLineNum = 16253048;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16253049; - //BA.debugLineNum = 16253049;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_cliente_mards_re_REPG"; -RDebugUtils.currentLine=16253050; - //BA.debugLineNum = 16253050;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16253051; - //BA.debugLineNum = 16253051;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos")); -RDebugUtils.currentLine=16253052; - //BA.debugLineNum = 16253052;BA.debugLine="reqs.Add(\"kmt_datos\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("kmt_datos")); -RDebugUtils.currentLine=16253054; - //BA.debugLineNum = 16253054;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16253055; - //BA.debugLineNum = 16253055;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_ventad_mards_re_REPG"; -RDebugUtils.currentLine=16253056; - //BA.debugLineNum = 16253056;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16253057; - //BA.debugLineNum = 16253057;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos")); -RDebugUtils.currentLine=16253058; - //BA.debugLineNum = 16253058;BA.debugLine="reqs.Add(\"hist_datos\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("hist_datos")); + //BA.debugLineNum = 1695;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 1696;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1697;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 1699;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1700;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\""; +_cmd.Name /*String*/ = "select_punteo_mards_re_REPG"; + //BA.debugLineNum = 1701;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen)}; + //BA.debugLineNum = 1702;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("punteo")); + //BA.debugLineNum = 1703;BA.debugLine="Log($\"Pedimos Punteo\"$)"; +__c.LogImpl("015138879",("Pedimos Punteo"),0); + //BA.debugLineNum = 1704;BA.debugLine="reqs.Add(\"punteo\")"; +_reqs.Add((Object)("punteo")); + //BA.debugLineNum = 1707;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1708;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\""; +_cmd.Name /*String*/ = "select_almacen_mards_re_REPG"; + //BA.debugLineNum = 1709;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1710;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod")); + //BA.debugLineNum = 1711;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te"; +__c.LogImpl("015138887",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(_almacen))+", "+__c.SmartStringFormatter("",(Object)(_e_ruta.getText()))+""),0); + //BA.debugLineNum = 1712;BA.debugLine="reqs.Add(\"gunaprod\")"; +_reqs.Add((Object)("gunaprod")); + //BA.debugLineNum = 1716;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1717;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\""; +_cmd.Name /*String*/ = "select_cliente_mards_re_REPG"; + //BA.debugLineNum = 1718;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1719;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_datos")); + //BA.debugLineNum = 1720;BA.debugLine="Log($\"Pedimos kmt_datos\"$)"; +__c.LogImpl("015138896",("Pedimos kmt_datos"),0); + //BA.debugLineNum = 1721;BA.debugLine="reqs.Add(\"kmt_datos\")"; +_reqs.Add((Object)("kmt_datos")); + //BA.debugLineNum = 1723;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1724;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\""; +_cmd.Name /*String*/ = "select_ventad_mards_re_REPG"; + //BA.debugLineNum = 1725;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1726;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_datos")); + //BA.debugLineNum = 1727;BA.debugLine="Log($\"Pedimos hist_datos\"$)"; +__c.LogImpl("015138903",("Pedimos hist_datos"),0); + //BA.debugLineNum = 1728;BA.debugLine="reqs.Add(\"hist_datos\")"; +_reqs.Add((Object)("hist_datos")); + //BA.debugLineNum = 1745;BA.debugLine="If ALMACEN = \"32\" Then"; +if ((_almacen).equals("32")) { + //BA.debugLineNum = 1746;BA.debugLine="ALMACEN = \"33\""; +_almacen = "33"; + //BA.debugLineNum = 1747;BA.debugLine="cargo = 2"; +_cargo = BA.NumberToString(2); + //BA.debugLineNum = 1748;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1749;BA.debugLine="cmd.Name = \"select_punteo_mards_re_REPG\""; +_cmd.Name /*String*/ = "select_punteo_mards_re_REPG"; + //BA.debugLineNum = 1750;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen)}; + //BA.debugLineNum = 1751;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("punteo")); + //BA.debugLineNum = 1752;BA.debugLine="reqs.Add(\"punteo\")"; +_reqs.Add((Object)("punteo")); + //BA.debugLineNum = 1754;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1755;BA.debugLine="cmd.Name = \"select_almacen_mards_re_REPG\""; +_cmd.Name /*String*/ = "select_almacen_mards_re_REPG"; + //BA.debugLineNum = 1756;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_rut"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1757;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod")); + //BA.debugLineNum = 1758;BA.debugLine="reqs.Add(\"gunaprod\")"; +_reqs.Add((Object)("gunaprod")); + //BA.debugLineNum = 1760;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1761;BA.debugLine="cmd.Name = \"select_cliente_mards_re_REPG\""; +_cmd.Name /*String*/ = "select_cliente_mards_re_REPG"; + //BA.debugLineNum = 1762;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1763;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_datos")); + //BA.debugLineNum = 1764;BA.debugLine="reqs.Add(\"kmt_datos\")"; +_reqs.Add((Object)("kmt_datos")); + //BA.debugLineNum = 1766;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1767;BA.debugLine="cmd.Name = \"select_ventad_mards_re_REPG\""; +_cmd.Name /*String*/ = "select_ventad_mards_re_REPG"; + //BA.debugLineNum = 1768;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, A"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 1769;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_datos")); + //BA.debugLineNum = 1770;BA.debugLine="reqs.Add(\"hist_datos\")"; +_reqs.Add((Object)("hist_datos")); }; -RDebugUtils.currentLine=16253092; - //BA.debugLineNum = 16253092;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUA"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))); -RDebugUtils.currentLine=16253093; - //BA.debugLineNum = 16253093;BA.debugLine="d.Position=0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16253094; - //BA.debugLineNum = 16253094;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")"; -__ref._cuantos_noventa /*String*/ = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA"); -RDebugUtils.currentLine=16253095; - //BA.debugLineNum = 16253095;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16253096; - //BA.debugLineNum = 16253096;BA.debugLine="cargar.Visible = False"; -__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16253097; - //BA.debugLineNum = 16253097;BA.debugLine="Subir.Visible = False"; -__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16253098; - //BA.debugLineNum = 16253098;BA.debugLine="connecta.Visible = True"; -__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16253099; - //BA.debugLineNum = 16253099;BA.debugLine="inv.Visible = False"; -__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16253100; - //BA.debugLineNum = 16253100;BA.debugLine="ToastMessageShow(\"Se actualizarĆ”n los datos, est"; + //BA.debugLineNum = 1804;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUA"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))); + //BA.debugLineNum = 1805;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 1806;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")"; +_cuantos_noventa = _d.GetString("CUANTOS_NOVENTA"); + //BA.debugLineNum = 1807;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1808;BA.debugLine="cargar.Visible = False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 1809;BA.debugLine="Subir.Visible = False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 1810;BA.debugLine="connecta.Visible = True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 1811;BA.debugLine="inv.Visible = False"; +_inv.setVisible(__c.False); + //BA.debugLineNum = 1812;BA.debugLine="ToastMessageShow(\"Se actualizarĆ”n los datos, est"; __c.ToastMessageShow(BA.ObjectToCharSequence("Se actualizarĆ”n los datos, este proceso podria tardar hasta un minuto, gracias"),__c.True); -RDebugUtils.currentLine=16253101; - //BA.debugLineNum = 16253101;BA.debugLine="ProgressDialogShow2(\"Descargando rutas, espere u"; + //BA.debugLineNum = 1813;BA.debugLine="ProgressDialogShow2(\"Descargando rutas, espere u"; __c.ProgressDialogShow2(ba,BA.ObjectToCharSequence("Descargando rutas, espere un momento."),__c.False); -RDebugUtils.currentLine=16253102; - //BA.debugLineNum = 16253102;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\""; -if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { + //BA.debugLineNum = 1814;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\""; +if (__c.Not(_isconnectedtointernet())) { __c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);}; }else { -RDebugUtils.currentLine=16253106; - //BA.debugLineNum = 16253106;BA.debugLine="Log(\"XXXX\")"; -__c.LogImpl("216253106","XXXX",0); -RDebugUtils.currentLine=16253107; - //BA.debugLineNum = 16253107;BA.debugLine="MsgboxAsync(\"Para poder cargar dĆ­a no puedes ten"; + //BA.debugLineNum = 1818;BA.debugLine="Log(\"XXXX\")"; +__c.LogImpl("015138994","XXXX",0); + //BA.debugLineNum = 1819;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); }; -RDebugUtils.currentLine=16253110; - //BA.debugLineNum = 16253110;BA.debugLine="End Sub"; + //BA.debugLineNum = 1822;BA.debugLine="End Sub"; return ""; } -public boolean _isconnectedtointernet(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "isconnectedtointernet", false)) - {return ((Boolean) Debug.delegate(ba, "isconnectedtointernet", null));} -anywheresoftware.b4a.agraham.reflection.Reflection _r = null; -RDebugUtils.currentLine=15794176; - //BA.debugLineNum = 15794176;BA.debugLine="Sub IsConnectedToInternet As Boolean 'ignore"; -RDebugUtils.currentLine=15794177; - //BA.debugLineNum = 15794177;BA.debugLine="Dim r As Reflector"; -_r = new anywheresoftware.b4a.agraham.reflection.Reflection(); -RDebugUtils.currentLine=15794178; - //BA.debugLineNum = 15794178;BA.debugLine="r.Target = r.GetContext"; -_r.Target = (Object)(_r.GetContext(ba)); -RDebugUtils.currentLine=15794179; - //BA.debugLineNum = 15794179;BA.debugLine="r.Target = r.RunMethod2(\"getSystemService\", \"conn"; -_r.Target = _r.RunMethod2("getSystemService","connectivity","java.lang.String"); -RDebugUtils.currentLine=15794180; - //BA.debugLineNum = 15794180;BA.debugLine="r.Target = r.RunMethod(\"getActiveNetworkInfo\")"; -_r.Target = _r.RunMethod("getActiveNetworkInfo"); -RDebugUtils.currentLine=15794181; - //BA.debugLineNum = 15794181;BA.debugLine="If r.Target <> Null Then"; -if (_r.Target!= null) { -RDebugUtils.currentLine=15794182; - //BA.debugLineNum = 15794182;BA.debugLine="Return r.RunMethod(\"isConnectedOrConnecting\")"; -if (true) return BA.ObjectToBoolean(_r.RunMethod("isConnectedOrConnecting")); - }; -RDebugUtils.currentLine=15794184; - //BA.debugLineNum = 15794184;BA.debugLine="Return False"; -if (true) return __c.False; -RDebugUtils.currentLine=15794185; - //BA.debugLineNum = 15794185;BA.debugLine="End Sub"; -return false; -} -public String _cargar_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "cargar_click", false)) - {return ((String) Debug.delegate(ba, "cargar_click", null));} +public String _cargar_click() throws Exception{ boolean _pedidodiaanterior = false; String[] _fecha2 = null; String[] _fecha3 = null; String _dia = ""; String _dia2 = ""; -RDebugUtils.currentLine=16187392; - //BA.debugLineNum = 16187392;BA.debugLine="Sub cargar_Click"; -RDebugUtils.currentLine=16187393; - //BA.debugLineNum = 16187393;BA.debugLine="Dim pedidodiaanterior As Boolean = False"; + //BA.debugLineNum = 1467;BA.debugLine="Sub cargar_Click"; + //BA.debugLineNum = 1468;BA.debugLine="Dim pedidodiaanterior As Boolean = False"; _pedidodiaanterior = __c.False; -RDebugUtils.currentLine=16187394; - //BA.debugLineNum = 16187394;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"select"; + //BA.debugLineNum = 1469;BA.debugLine="Dim cp As Cursor = Starter.skmt.ExecQuery(\"select"; _cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _cp = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from NOVENTA"))); -RDebugUtils.currentLine=16187395; - //BA.debugLineNum = 16187395;BA.debugLine="If cp.RowCount > 0 Then"; -if (__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16187396; - //BA.debugLineNum = 16187396;BA.debugLine="cp.Position = 0"; -__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16187397; - //BA.debugLineNum = 16187397;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA"; -_fecha = __ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA"); -RDebugUtils.currentLine=16187398; - //BA.debugLineNum = 16187398;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))"; -__c.LogImpl("216187398",__ref._cp /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA"),0); -RDebugUtils.currentLine=16187399; - //BA.debugLineNum = 16187399;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)"; -_fecha2 = __c.Regex.Split(" ",__ref._fecha /*String*/ ); -RDebugUtils.currentLine=16187400; - //BA.debugLineNum = 16187400;BA.debugLine="Log(fecha2(0))"; -__c.LogImpl("216187400",_fecha2[(int) (0)],0); -RDebugUtils.currentLine=16187401; - //BA.debugLineNum = 16187401;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2("; + //BA.debugLineNum = 1470;BA.debugLine="If cp.RowCount > 0 Then"; +if (_cp.getRowCount()>0) { + //BA.debugLineNum = 1471;BA.debugLine="cp.Position = 0"; +_cp.setPosition((int) (0)); + //BA.debugLineNum = 1472;BA.debugLine="Private fecha As String = cp.GetString(\"NV_FECHA"; +_fecha = _cp.GetString("NV_FECHA"); + //BA.debugLineNum = 1473;BA.debugLine="Log(cp.GetString(\"NV_FECHA\"))"; +__c.LogImpl("015073286",_cp.GetString("NV_FECHA"),0); + //BA.debugLineNum = 1474;BA.debugLine="Dim fecha2() As String = Regex.Split(\" \",fecha)"; +_fecha2 = __c.Regex.Split(" ",_fecha); + //BA.debugLineNum = 1475;BA.debugLine="Log(fecha2(0))"; +__c.LogImpl("015073288",_fecha2[(int) (0)],0); + //BA.debugLineNum = 1476;BA.debugLine="Dim fecha3() As String = Regex.Split(\"/\",fecha2("; _fecha3 = __c.Regex.Split("/",_fecha2[(int) (0)]); -RDebugUtils.currentLine=16187402; - //BA.debugLineNum = 16187402;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\""; + //BA.debugLineNum = 1477;BA.debugLine="DateTime.DateFormat = \"yyyyMMdd\""; __c.DateTime.setDateFormat("yyyyMMdd"); -RDebugUtils.currentLine=16187403; - //BA.debugLineNum = 16187403;BA.debugLine="DateTime.TimeFormat = \"\""; + //BA.debugLineNum = 1478;BA.debugLine="DateTime.TimeFormat = \"\""; __c.DateTime.setTimeFormat(""); -RDebugUtils.currentLine=16187404; - //BA.debugLineNum = 16187404;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1"; + //BA.debugLineNum = 1479;BA.debugLine="Dim dia As String = fecha3(2)&fecha3(0)&fecha3(1"; _dia = _fecha3[(int) (2)]+_fecha3[(int) (0)]+_fecha3[(int) (1)]; -RDebugUtils.currentLine=16187405; - //BA.debugLineNum = 16187405;BA.debugLine="Log(dia)"; -__c.LogImpl("216187405",_dia,0); -RDebugUtils.currentLine=16187406; - //BA.debugLineNum = 16187406;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)"; + //BA.debugLineNum = 1480;BA.debugLine="Log(dia)"; +__c.LogImpl("015073293",_dia,0); + //BA.debugLineNum = 1481;BA.debugLine="Dim dia2 As String = DateTime.Date(DateTime.Now)"; _dia2 = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=16187407; - //BA.debugLineNum = 16187407;BA.debugLine="Log(dia & \" , \" & dia2)"; -__c.LogImpl("216187407",_dia+" , "+_dia2,0); -RDebugUtils.currentLine=16187408; - //BA.debugLineNum = 16187408;BA.debugLine="If dia < dia2 Then"; + //BA.debugLineNum = 1482;BA.debugLine="Log(dia & \" , \" & dia2)"; +__c.LogImpl("015073295",_dia+" , "+_dia2,0); + //BA.debugLineNum = 1483;BA.debugLine="If dia < dia2 Then"; if ((double)(Double.parseDouble(_dia))<(double)(Double.parseDouble(_dia2))) { -RDebugUtils.currentLine=16187409; - //BA.debugLineNum = 16187409;BA.debugLine="pedidodiaanterior = True"; + //BA.debugLineNum = 1484;BA.debugLine="pedidodiaanterior = True"; _pedidodiaanterior = __c.True; }; }; -RDebugUtils.currentLine=16187412; - //BA.debugLineNum = 16187412;BA.debugLine="If Not (pedidodiaanterior) Then"; + //BA.debugLineNum = 1487;BA.debugLine="If Not (pedidodiaanterior) Then"; if (__c.Not(_pedidodiaanterior)) { -RDebugUtils.currentLine=16187413; - //BA.debugLineNum = 16187413;BA.debugLine="P_carga.Visible = True"; -__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16187414; - //BA.debugLineNum = 16187414;BA.debugLine="P_carga.Width = Root.Width"; -__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=16187415; - //BA.debugLineNum = 16187415;BA.debugLine="P_carga.Height = Root.Height"; -__ref._p_carga /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=16187416; - //BA.debugLineNum = 16187416;BA.debugLine="l_carga2.Text = \"CARGANDO\""; -__ref._l_carga2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO")); -RDebugUtils.currentLine=16187417; - //BA.debugLineNum = 16187417;BA.debugLine="L_carga.Text = \"CARGANDO\""; -__ref._l_carga /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("CARGANDO")); -RDebugUtils.currentLine=16187418; - //BA.debugLineNum = 16187418;BA.debugLine="PB_carga.Progress = 0"; -__ref._pb_carga /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0)); -RDebugUtils.currentLine=16187419; - //BA.debugLineNum = 16187419;BA.debugLine="PB_carga2.Progress = 0"; -__ref._pb_carga2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (0)); -RDebugUtils.currentLine=16187420; - //BA.debugLineNum = 16187420;BA.debugLine="Log(\"CUMPLE\")"; -__c.LogImpl("216187420","CUMPLE",0); -RDebugUtils.currentLine=16187421; - //BA.debugLineNum = 16187421;BA.debugLine="EJECUTANDO = 1"; -__ref._ejecutando /*String*/ = BA.NumberToString(1); -RDebugUtils.currentLine=16187422; - //BA.debugLineNum = 16187422;BA.debugLine="reqs.Initialize"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=16187423; - //BA.debugLineNum = 16187423;BA.debugLine="TOPE = 0"; -__ref._tope /*int*/ = (int) (0); -RDebugUtils.currentLine=16187424; - //BA.debugLineNum = 16187424;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve"; -__c.LogImpl("216187424",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); -RDebugUtils.currentLine=16187425; - //BA.debugLineNum = 16187425;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._initialize /*String*/ (null,ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); -RDebugUtils.currentLine=16187427; - //BA.debugLineNum = 16187427;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 1488;BA.debugLine="P_carga.Visible = True"; +_p_carga.setVisible(__c.True); + //BA.debugLineNum = 1489;BA.debugLine="P_carga.Width = Root.Width"; +_p_carga.setWidth(_root.getWidth()); + //BA.debugLineNum = 1490;BA.debugLine="P_carga.Height = Root.Height"; +_p_carga.setHeight(_root.getHeight()); + //BA.debugLineNum = 1491;BA.debugLine="l_carga2.Text = \"CARGANDO\""; +_l_carga2.setText(BA.ObjectToCharSequence("CARGANDO")); + //BA.debugLineNum = 1492;BA.debugLine="L_carga.Text = \"CARGANDO\""; +_l_carga.setText(BA.ObjectToCharSequence("CARGANDO")); + //BA.debugLineNum = 1493;BA.debugLine="PB_carga.Progress = 0"; +_pb_carga.setProgress((int) (0)); + //BA.debugLineNum = 1494;BA.debugLine="PB_carga2.Progress = 0"; +_pb_carga2.setProgress((int) (0)); + //BA.debugLineNum = 1495;BA.debugLine="Log(\"CUMPLE\")"; +__c.LogImpl("015073308","CUMPLE",0); + //BA.debugLineNum = 1496;BA.debugLine="EJECUTANDO = 1"; +_ejecutando = BA.NumberToString(1); + //BA.debugLineNum = 1497;BA.debugLine="reqs.Initialize"; +_reqs.Initialize(); + //BA.debugLineNum = 1498;BA.debugLine="TOPE = 0"; +_tope = (int) (0); + //BA.debugLineNum = 1499;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.serve"; +__c.LogImpl("015073312",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); + //BA.debugLineNum = 1500;BA.debugLine="reqManager.Initialize(Me, B4XPages.MainPage.serv"; +_reqmanager._initialize /*String*/ (ba,this,_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ); + //BA.debugLineNum = 1502;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16187428; - //BA.debugLineNum = 16187428;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16187429; - //BA.debugLineNum = 16187429;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_drop_rep_IZCA2"; -RDebugUtils.currentLine=16187430; - //BA.debugLineNum = 16187430;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("CARGA"),(Object)(__c.Application.getVersionName())}; -RDebugUtils.currentLine=16187431; - //BA.debugLineNum = 16187431;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop")); -RDebugUtils.currentLine=16187434; - //BA.debugLineNum = 16187434;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\""; + //BA.debugLineNum = 1503;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1504;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\""; +_cmd.Name /*String*/ = "insert_drop_rep_IZCA2"; + //BA.debugLineNum = 1505;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuari"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_l_ctast.getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("CARGA"),(Object)(__c.Application.getVersionName())}; + //BA.debugLineNum = 1506;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_drop")); + //BA.debugLineNum = 1509;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info"); -RDebugUtils.currentLine=16187435; - //BA.debugLineNum = 16187435;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul"; + //BA.debugLineNum = 1510;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cod_resul"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cod_result"); -RDebugUtils.currentLine=16187436; - //BA.debugLineNum = 16187436;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest"; + //BA.debugLineNum = 1511;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from hist_gest"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from hist_gest"); -RDebugUtils.currentLine=16187437; - //BA.debugLineNum = 16187437;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL"; + //BA.debugLineNum = 1512;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETAL"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ"); -RDebugUtils.currentLine=16187438; - //BA.debugLineNum = 16187438;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos"; + //BA.debugLineNum = 1513;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from telefonos"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from telefonos"); -RDebugUtils.currentLine=16187439; - //BA.debugLineNum = 16187439;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_gunap"; + //BA.debugLineNum = 1514;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_gunap"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod"); -RDebugUtils.currentLine=16187440; - //BA.debugLineNum = 16187440;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_gunap"; + //BA.debugLineNum = 1515;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_gunap"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3"); -RDebugUtils.currentLine=16187442; - //BA.debugLineNum = 16187442;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP"; + //BA.debugLineNum = 1517;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PUNTEO_GP"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PUNTEO_GPS"); -RDebugUtils.currentLine=16187443; - //BA.debugLineNum = 16187443;BA.debugLine="If l_ruta.Text = \"0\" Then '"; -if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { -RDebugUtils.currentLine=16187444; - //BA.debugLineNum = 16187444;BA.debugLine="Log(\"********************* No hay ruta, BORRAM"; -__c.LogImpl("216187444","********************* No hay ruta, BORRAMOS TODO",0); -RDebugUtils.currentLine=16187445; - //BA.debugLineNum = 16187445;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\""; + //BA.debugLineNum = 1518;BA.debugLine="If l_ruta.Text = \"0\" Then '"; +if ((_l_ruta.getText()).equals("0")) { + //BA.debugLineNum = 1519;BA.debugLine="Log(\"********************* No hay ruta, BORRAM"; +__c.LogImpl("015073332","********************* No hay ruta, BORRAMOS TODO",0); + //BA.debugLineNum = 1520;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO"); -RDebugUtils.currentLine=16187446; - //BA.debugLineNum = 16187446;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; + //BA.debugLineNum = 1521;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS"); -RDebugUtils.currentLine=16187447; - //BA.debugLineNum = 16187447;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; + //BA.debugLineNum = 1522;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS2"); -RDebugUtils.currentLine=16187448; - //BA.debugLineNum = 16187448;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\""; + //BA.debugLineNum = 1523;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from NOVENTA\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from NOVENTA"); -RDebugUtils.currentLine=16187449; - //BA.debugLineNum = 16187449;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\""; + //BA.debugLineNum = 1524;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\""; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP"); }else { -RDebugUtils.currentLine=16187451; - //BA.debugLineNum = 16187451;BA.debugLine="Log(\"********************* Hay ruta, NO BORRAM"; -__c.LogImpl("216187451","********************* Hay ruta, NO BORRAMOS TODO",0); + //BA.debugLineNum = 1526;BA.debugLine="Log(\"********************* Hay ruta, NO BORRAM"; +__c.LogImpl("015073339","********************* Hay ruta, NO BORRAMOS TODO",0); }; -RDebugUtils.currentLine=16187455; - //BA.debugLineNum = 16187455;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=16187456; - //BA.debugLineNum = 16187456;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16187457; - //BA.debugLineNum = 16187457;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=16187459; - //BA.debugLineNum = 16187459;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16187460; - //BA.debugLineNum = 16187460;BA.debugLine="cmd.Name = \"select_punteo_re_REPG_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_punteo_re_REPG_IZCA"; -RDebugUtils.currentLine=16187461; - //BA.debugLineNum = 16187461;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16187462; - //BA.debugLineNum = 16187462;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("punteo")); -RDebugUtils.currentLine=16187463; - //BA.debugLineNum = 16187463;BA.debugLine="Log($\"Pedimos Punteo\"$)"; -__c.LogImpl("216187463",("Pedimos Punteo"),0); -RDebugUtils.currentLine=16187464; - //BA.debugLineNum = 16187464;BA.debugLine="reqs.Add(\"punteo\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("punteo")); -RDebugUtils.currentLine=16187466; - //BA.debugLineNum = 16187466;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16187467; - //BA.debugLineNum = 16187467;BA.debugLine="cmd.Name = \"select_almacen_IZCA_re_REPG2\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_almacen_IZCA_re_REPG2"; -RDebugUtils.currentLine=16187468; - //BA.debugLineNum = 16187468;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16187469; - //BA.debugLineNum = 16187469;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod")); -RDebugUtils.currentLine=16187470; - //BA.debugLineNum = 16187470;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te"; -__c.LogImpl("216187470",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+""),0); -RDebugUtils.currentLine=16187471; - //BA.debugLineNum = 16187471;BA.debugLine="reqs.Add(\"gunaprod\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("gunaprod")); -RDebugUtils.currentLine=16187473; - //BA.debugLineNum = 16187473;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16187474; - //BA.debugLineNum = 16187474;BA.debugLine="cmd.Name = \"select_abonosp_IZCAREP2\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_abonosp_IZCAREP2"; -RDebugUtils.currentLine=16187475; - //BA.debugLineNum = 16187475;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())}; -RDebugUtils.currentLine=16187476; - //BA.debugLineNum = 16187476;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"select_abonosp"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("select_abonosp")); -RDebugUtils.currentLine=16187486; - //BA.debugLineNum = 16187486;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16187487; - //BA.debugLineNum = 16187487;BA.debugLine="cmd.Name = \"select_cliente_IZCA_re_REPG4\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_cliente_IZCA_re_REPG4"; -RDebugUtils.currentLine=16187488; - //BA.debugLineNum = 16187488;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16187489; - //BA.debugLineNum = 16187489;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("kmt_datos")); -RDebugUtils.currentLine=16187490; - //BA.debugLineNum = 16187490;BA.debugLine="Log($\"Pedimos kmt_datos\"$)"; -__c.LogImpl("216187490",("Pedimos kmt_datos"),0); -RDebugUtils.currentLine=16187491; - //BA.debugLineNum = 16187491;BA.debugLine="reqs.Add(\"kmt_datos\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("kmt_datos")); -RDebugUtils.currentLine=16187493; - //BA.debugLineNum = 16187493;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16187494; - //BA.debugLineNum = 16187494;BA.debugLine="cmd.Name = \"select_ventad3_IZCA_re_REPG\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_ventad3_IZCA_re_REPG"; -RDebugUtils.currentLine=16187495; - //BA.debugLineNum = 16187495;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16187496; - //BA.debugLineNum = 16187496;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("hist_datos")); -RDebugUtils.currentLine=16187497; - //BA.debugLineNum = 16187497;BA.debugLine="Log($\"Pedimos hist_datos\"$)"; -__c.LogImpl("216187497",("Pedimos hist_datos"),0); -RDebugUtils.currentLine=16187498; - //BA.debugLineNum = 16187498;BA.debugLine="reqs.Add(\"hist_datos\")"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)("hist_datos")); -RDebugUtils.currentLine=16187500; - //BA.debugLineNum = 16187500;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16187501; - //BA.debugLineNum = 16187501;BA.debugLine="cmd.Name = \"select_coords_almacen_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_coords_almacen_IZCA"; -RDebugUtils.currentLine=16187502; - //BA.debugLineNum = 16187502;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16187503; - //BA.debugLineNum = 16187503;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("coords_almacen")); -RDebugUtils.currentLine=16187505; - //BA.debugLineNum = 16187505;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16187506; - //BA.debugLineNum = 16187506;BA.debugLine="cmd.Name = \"select_cat_gunaprod3_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_cat_gunaprod3_IZCA"; -RDebugUtils.currentLine=16187507; - //BA.debugLineNum = 16187507;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16187508; - //BA.debugLineNum = 16187508;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod3\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("gunaprod3")); -RDebugUtils.currentLine=16187545; - //BA.debugLineNum = 16187545;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUA"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))); -RDebugUtils.currentLine=16187546; - //BA.debugLineNum = 16187546;BA.debugLine="d.Position=0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16187547; - //BA.debugLineNum = 16187547;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")"; -__ref._cuantos_noventa /*String*/ = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA"); -RDebugUtils.currentLine=16187548; - //BA.debugLineNum = 16187548;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16187549; - //BA.debugLineNum = 16187549;BA.debugLine="cargar.Visible = False"; -__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16187550; - //BA.debugLineNum = 16187550;BA.debugLine="Subir.Visible = False"; -__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16187551; - //BA.debugLineNum = 16187551;BA.debugLine="connecta.Visible = True"; -__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16187552; - //BA.debugLineNum = 16187552;BA.debugLine="inv.Visible = False"; -__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16187553; - //BA.debugLineNum = 16187553;BA.debugLine="ToastMessageShow(\"Se actualizarĆ”n los datos, est"; + //BA.debugLineNum = 1530;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from us"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 1531;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1532;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 1534;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1535;BA.debugLine="cmd.Name = \"select_punteo_re_REPG_IZCA\""; +_cmd.Name /*String*/ = "select_punteo_re_REPG_IZCA"; + //BA.debugLineNum = 1536;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen)}; + //BA.debugLineNum = 1537;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"punteo\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("punteo")); + //BA.debugLineNum = 1538;BA.debugLine="Log($\"Pedimos Punteo\"$)"; +__c.LogImpl("015073351",("Pedimos Punteo"),0); + //BA.debugLineNum = 1539;BA.debugLine="reqs.Add(\"punteo\")"; +_reqs.Add((Object)("punteo")); + //BA.debugLineNum = 1541;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1542;BA.debugLine="cmd.Name = \"select_almacen_IZCA_re_REPG2\""; +_cmd.Name /*String*/ = "select_almacen_IZCA_re_REPG2"; + //BA.debugLineNum = 1543;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1544;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod")); + //BA.debugLineNum = 1545;BA.debugLine="Log($\"Pedimos gunaprod - ${ALMACEN}, ${e_ruta.te"; +__c.LogImpl("015073358",("Pedimos gunaprod - "+__c.SmartStringFormatter("",(Object)(_almacen))+", "+__c.SmartStringFormatter("",(Object)(_e_ruta.getText()))+""),0); + //BA.debugLineNum = 1546;BA.debugLine="reqs.Add(\"gunaprod\")"; +_reqs.Add((Object)("gunaprod")); + //BA.debugLineNum = 1548;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1549;BA.debugLine="cmd.Name = \"select_abonosp_IZCAREP2\""; +_cmd.Name /*String*/ = "select_abonosp_IZCAREP2"; + //BA.debugLineNum = 1550;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText())}; + //BA.debugLineNum = 1551;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"select_abonosp"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("select_abonosp")); + //BA.debugLineNum = 1561;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1562;BA.debugLine="cmd.Name = \"select_cliente_IZCA_re_REPG4\""; +_cmd.Name /*String*/ = "select_cliente_IZCA_re_REPG4"; + //BA.debugLineNum = 1563;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, AL"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_almacen),(Object)(_almacen)}; + //BA.debugLineNum = 1564;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"kmt_datos\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("kmt_datos")); + //BA.debugLineNum = 1565;BA.debugLine="Log($\"Pedimos kmt_datos\"$)"; +__c.LogImpl("015073378",("Pedimos kmt_datos"),0); + //BA.debugLineNum = 1566;BA.debugLine="reqs.Add(\"kmt_datos\")"; +_reqs.Add((Object)("kmt_datos")); + //BA.debugLineNum = 1568;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1569;BA.debugLine="cmd.Name = \"select_ventad3_IZCA_re_REPG\""; +_cmd.Name /*String*/ = "select_ventad3_IZCA_re_REPG"; + //BA.debugLineNum = 1570;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 = 1571;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"hist_datos\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("hist_datos")); + //BA.debugLineNum = 1572;BA.debugLine="Log($\"Pedimos hist_datos\"$)"; +__c.LogImpl("015073385",("Pedimos hist_datos"),0); + //BA.debugLineNum = 1573;BA.debugLine="reqs.Add(\"hist_datos\")"; +_reqs.Add((Object)("hist_datos")); + //BA.debugLineNum = 1575;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1576;BA.debugLine="cmd.Name = \"select_coords_almacen_IZCA\""; +_cmd.Name /*String*/ = "select_coords_almacen_IZCA"; + //BA.debugLineNum = 1577;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1578;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"coords_almacen"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("coords_almacen")); + //BA.debugLineNum = 1580;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1581;BA.debugLine="cmd.Name = \"select_cat_gunaprod3_IZCA\""; +_cmd.Name /*String*/ = "select_cat_gunaprod3_IZCA"; + //BA.debugLineNum = 1582;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN)"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen)}; + //BA.debugLineNum = 1583;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"gunaprod3\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("gunaprod3")); + //BA.debugLineNum = 1620;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUA"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))); + //BA.debugLineNum = 1621;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 1622;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")"; +_cuantos_noventa = _d.GetString("CUANTOS_NOVENTA"); + //BA.debugLineNum = 1623;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1624;BA.debugLine="cargar.Visible = False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 1625;BA.debugLine="Subir.Visible = False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 1626;BA.debugLine="connecta.Visible = True"; +_connecta.setVisible(__c.True); + //BA.debugLineNum = 1627;BA.debugLine="inv.Visible = False"; +_inv.setVisible(__c.False); + //BA.debugLineNum = 1628;BA.debugLine="ToastMessageShow(\"Se actualizarĆ”n los datos, est"; __c.ToastMessageShow(BA.ObjectToCharSequence("Se actualizarĆ”n los datos, este proceso podria tardar hasta un minuto, gracias"),__c.True); -RDebugUtils.currentLine=16187555; - //BA.debugLineNum = 16187555;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\""; -if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { + //BA.debugLineNum = 1630;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\""; +if (__c.Not(_isconnectedtointernet())) { __c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);}; }else { -RDebugUtils.currentLine=16187559; - //BA.debugLineNum = 16187559;BA.debugLine="Log(\"XXXX\")"; -__c.LogImpl("216187559","XXXX",0); -RDebugUtils.currentLine=16187560; - //BA.debugLineNum = 16187560;BA.debugLine="MsgboxAsync(\"Para poder cargar dĆ­a no puedes ten"; + //BA.debugLineNum = 1634;BA.debugLine="Log(\"XXXX\")"; +__c.LogImpl("015073447","XXXX",0); + //BA.debugLineNum = 1635;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); }; -RDebugUtils.currentLine=16187563; - //BA.debugLineNum = 16187563;BA.debugLine="End Sub"; + //BA.debugLineNum = 1638;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -RDebugUtils.currentLine=15466496; - //BA.debugLineNum = 15466496;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=15466497; - //BA.debugLineNum = 15466497;BA.debugLine="Private Root As B4XView 'ignore"; +public String _checachek() throws Exception{ + //BA.debugLineNum = 799;BA.debugLine="Sub checachek"; + //BA.debugLineNum = 800;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT CHECADO FROM"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CHECADO FROM CHECADO_CHECK"))); + //BA.debugLineNum = 801;BA.debugLine="If b.RowCount > 0 Then"; +if (_b.getRowCount()>0) { + //BA.debugLineNum = 802;BA.debugLine="b.Position = 0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 803;BA.debugLine="If b.GetString(\"CHECADO\") = 0 Then"; +if ((_b.GetString("CHECADO")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 804;BA.debugLine="b_check.Visible = True"; +_b_check.setVisible(__c.True); + }else if((_b.GetString("CHECADO")).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 806;BA.debugLine="b_check.Visible =False"; +_b_check.setVisible(__c.False); + }; + //BA.debugLineNum = 808;BA.debugLine="b.Close"; +_b.Close(); + }; + //BA.debugLineNum = 810;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(); -RDebugUtils.currentLine=15466498; - //BA.debugLineNum = 15466498;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=15466499; - //BA.debugLineNum = 15466499;BA.debugLine="Dim reqManager As DBRequestManager"; + //BA.debugLineNum = 4;BA.debugLine="Dim reqManager As DBRequestManager"; _reqmanager = new reparto_izca.keymon.lat.dbrequestmanager(); -RDebugUtils.currentLine=15466500; - //BA.debugLineNum = 15466500;BA.debugLine="Dim conectado As String"; + //BA.debugLineNum = 5;BA.debugLine="Dim conectado As String"; _conectado = ""; -RDebugUtils.currentLine=15466501; - //BA.debugLineNum = 15466501;BA.debugLine="Dim t1 As Timer"; + //BA.debugLineNum = 6;BA.debugLine="Dim t1 As Timer"; _t1 = new anywheresoftware.b4a.objects.Timer(); -RDebugUtils.currentLine=15466502; - //BA.debugLineNum = 15466502;BA.debugLine="Dim sb As StringBuilder"; + //BA.debugLineNum = 7;BA.debugLine="Dim sb As StringBuilder"; _sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); -RDebugUtils.currentLine=15466503; - //BA.debugLineNum = 15466503;BA.debugLine="Dim PHONE As Phone"; + //BA.debugLineNum = 8;BA.debugLine="Dim PHONE As Phone"; _phone = new anywheresoftware.b4a.phone.Phone(); -RDebugUtils.currentLine=15466504; - //BA.debugLineNum = 15466504;BA.debugLine="Dim trabajar As Button"; + //BA.debugLineNum = 9;BA.debugLine="Dim trabajar As Button"; _trabajar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466505; - //BA.debugLineNum = 15466505;BA.debugLine="Dim c, a As Cursor"; + //BA.debugLineNum = 10;BA.debugLine="Dim c, a As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _a = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466506; - //BA.debugLineNum = 15466506;BA.debugLine="Dim d As Cursor"; + //BA.debugLineNum = 11;BA.debugLine="Dim d As Cursor"; _d = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466507; - //BA.debugLineNum = 15466507;BA.debugLine="Dim b As Cursor"; + //BA.debugLineNum = 12;BA.debugLine="Dim b As Cursor"; _b = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466508; - //BA.debugLineNum = 15466508;BA.debugLine="Dim e As Cursor"; + //BA.debugLineNum = 13;BA.debugLine="Dim e As Cursor"; _e = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466509; - //BA.debugLineNum = 15466509;BA.debugLine="Dim f As Cursor"; + //BA.debugLineNum = 14;BA.debugLine="Dim f As Cursor"; _f = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466510; - //BA.debugLineNum = 15466510;BA.debugLine="Dim f1 As Cursor"; + //BA.debugLineNum = 15;BA.debugLine="Dim f1 As Cursor"; _f1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466511; - //BA.debugLineNum = 15466511;BA.debugLine="Dim f2 As Cursor"; + //BA.debugLineNum = 16;BA.debugLine="Dim f2 As Cursor"; _f2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466512; - //BA.debugLineNum = 15466512;BA.debugLine="Dim f3 As Cursor"; + //BA.debugLineNum = 17;BA.debugLine="Dim f3 As Cursor"; _f3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466513; - //BA.debugLineNum = 15466513;BA.debugLine="Dim F4 As Cursor"; + //BA.debugLineNum = 18;BA.debugLine="Dim F4 As Cursor"; _f4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466514; - //BA.debugLineNum = 15466514;BA.debugLine="Dim lv As ListView"; + //BA.debugLineNum = 19;BA.debugLine="Dim lv As ListView"; _lv = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=15466515; - //BA.debugLineNum = 15466515;BA.debugLine="Dim cargar As Button"; + //BA.debugLineNum = 20;BA.debugLine="Dim cargar As Button"; _cargar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466516; - //BA.debugLineNum = 15466516;BA.debugLine="Dim pendiente As Button"; + //BA.debugLineNum = 21;BA.debugLine="Dim pendiente As Button"; _pendiente = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466517; - //BA.debugLineNum = 15466517;BA.debugLine="Dim foto1() As Byte"; + //BA.debugLineNum = 22;BA.debugLine="Dim foto1() As Byte"; _foto1 = new byte[(int) (0)]; ; -RDebugUtils.currentLine=15466518; - //BA.debugLineNum = 15466518;BA.debugLine="Dim usuario As String"; + //BA.debugLineNum = 23;BA.debugLine="Dim usuario As String"; _usuario = ""; -RDebugUtils.currentLine=15466519; - //BA.debugLineNum = 15466519;BA.debugLine="Dim connecta As Button"; + //BA.debugLineNum = 24;BA.debugLine="Dim connecta As Button"; _connecta = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466520; - //BA.debugLineNum = 15466520;BA.debugLine="Dim conn As String"; + //BA.debugLineNum = 25;BA.debugLine="Dim conn As String"; _conn = ""; -RDebugUtils.currentLine=15466521; - //BA.debugLineNum = 15466521;BA.debugLine="Dim Subir As Button"; + //BA.debugLineNum = 26;BA.debugLine="Dim Subir As Button"; _subir = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466522; - //BA.debugLineNum = 15466522;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 27;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=15466523; - //BA.debugLineNum = 15466523;BA.debugLine="Dim TOPE As Int"; + //BA.debugLineNum = 28;BA.debugLine="Dim TOPE As Int"; _tope = 0; -RDebugUtils.currentLine=15466524; - //BA.debugLineNum = 15466524;BA.debugLine="Dim COUNT_CLIE As Int"; + //BA.debugLineNum = 29;BA.debugLine="Dim COUNT_CLIE As Int"; _count_clie = 0; -RDebugUtils.currentLine=15466525; - //BA.debugLineNum = 15466525;BA.debugLine="Dim fecha As String"; + //BA.debugLineNum = 30;BA.debugLine="Dim fecha As String"; _fecha = ""; -RDebugUtils.currentLine=15466526; - //BA.debugLineNum = 15466526;BA.debugLine="Dim drop As Double"; + //BA.debugLineNum = 31;BA.debugLine="Dim drop As Double"; _drop = 0; -RDebugUtils.currentLine=15466527; - //BA.debugLineNum = 15466527;BA.debugLine="Dim efectiva As Double"; + //BA.debugLineNum = 32;BA.debugLine="Dim efectiva As Double"; _efectiva = 0; -RDebugUtils.currentLine=15466528; - //BA.debugLineNum = 15466528;BA.debugLine="Dim L As Cursor"; + //BA.debugLineNum = 33;BA.debugLine="Dim L As Cursor"; _l = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466529; - //BA.debugLineNum = 15466529;BA.debugLine="Dim l_aLiquidar As Label"; + //BA.debugLineNum = 34;BA.debugLine="Dim l_aLiquidar As Label"; _l_aliquidar = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466530; - //BA.debugLineNum = 15466530;BA.debugLine="Dim l_cuantosc As Label"; + //BA.debugLineNum = 35;BA.debugLine="Dim l_cuantosc As Label"; _l_cuantosc = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466531; - //BA.debugLineNum = 15466531;BA.debugLine="Dim l_montoSalida As Label"; + //BA.debugLineNum = 36;BA.debugLine="Dim l_montoSalida As Label"; _l_montosalida = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466533; - //BA.debugLineNum = 15466533;BA.debugLine="Dim l_ctast As Label"; + //BA.debugLineNum = 38;BA.debugLine="Dim l_ctast As Label"; _l_ctast = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466534; - //BA.debugLineNum = 15466534;BA.debugLine="Dim BUSCA As Button"; + //BA.debugLineNum = 39;BA.debugLine="Dim BUSCA As Button"; _busca = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466535; - //BA.debugLineNum = 15466535;BA.debugLine="Dim Cuantos As String"; + //BA.debugLineNum = 40;BA.debugLine="Dim Cuantos As String"; _cuantos = ""; -RDebugUtils.currentLine=15466536; - //BA.debugLineNum = 15466536;BA.debugLine="Dim l_cuantosn As Label"; + //BA.debugLineNum = 41;BA.debugLine="Dim l_cuantosn As Label"; _l_cuantosn = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466537; - //BA.debugLineNum = 15466537;BA.debugLine="Dim e_ruta As EditText"; + //BA.debugLineNum = 42;BA.debugLine="Dim e_ruta As EditText"; _e_ruta = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=15466538; - //BA.debugLineNum = 15466538;BA.debugLine="Dim l_porvisitar As Label"; + //BA.debugLineNum = 43;BA.debugLine="Dim l_porvisitar As Label"; _l_porvisitar = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466539; - //BA.debugLineNum = 15466539;BA.debugLine="Dim b_mapa As Button"; + //BA.debugLineNum = 44;BA.debugLine="Dim b_mapa As Button"; _b_mapa = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466540; - //BA.debugLineNum = 15466540;BA.debugLine="Dim l_ruta As Label"; + //BA.debugLineNum = 45;BA.debugLine="Dim l_ruta As Label"; _l_ruta = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466541; - //BA.debugLineNum = 15466541;BA.debugLine="Dim ALMACEN As String"; + //BA.debugLineNum = 46;BA.debugLine="Dim ALMACEN As String"; _almacen = ""; -RDebugUtils.currentLine=15466542; - //BA.debugLineNum = 15466542;BA.debugLine="Private img2 As ImageView"; + //BA.debugLineNum = 47;BA.debugLine="Private img2 As ImageView"; _img2 = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=15466543; - //BA.debugLineNum = 15466543;BA.debugLine="Dim Listo1 As String"; + //BA.debugLineNum = 48;BA.debugLine="Dim Listo1 As String"; _listo1 = ""; -RDebugUtils.currentLine=15466544; - //BA.debugLineNum = 15466544;BA.debugLine="Dim Listo2 As String"; + //BA.debugLineNum = 49;BA.debugLine="Dim Listo2 As String"; _listo2 = ""; -RDebugUtils.currentLine=15466545; - //BA.debugLineNum = 15466545;BA.debugLine="Dim Listo3 As String"; + //BA.debugLineNum = 50;BA.debugLine="Dim Listo3 As String"; _listo3 = ""; -RDebugUtils.currentLine=15466546; - //BA.debugLineNum = 15466546;BA.debugLine="Dim Listo4 As String"; + //BA.debugLineNum = 51;BA.debugLine="Dim Listo4 As String"; _listo4 = ""; -RDebugUtils.currentLine=15466547; - //BA.debugLineNum = 15466547;BA.debugLine="Dim Listo5 As String"; + //BA.debugLineNum = 52;BA.debugLine="Dim Listo5 As String"; _listo5 = ""; -RDebugUtils.currentLine=15466548; - //BA.debugLineNum = 15466548;BA.debugLine="Dim EJECUTANDO As String"; + //BA.debugLineNum = 53;BA.debugLine="Dim EJECUTANDO As String"; _ejecutando = ""; -RDebugUtils.currentLine=15466549; - //BA.debugLineNum = 15466549;BA.debugLine="Dim RES As String"; + //BA.debugLineNum = 54;BA.debugLine="Dim RES As String"; _res = ""; -RDebugUtils.currentLine=15466550; - //BA.debugLineNum = 15466550;BA.debugLine="Dim inve As String"; + //BA.debugLineNum = 55;BA.debugLine="Dim inve As String"; _inve = ""; -RDebugUtils.currentLine=15466551; - //BA.debugLineNum = 15466551;BA.debugLine="Dim cuantos_pedidosc As String"; + //BA.debugLineNum = 56;BA.debugLine="Dim cuantos_pedidosc As String"; _cuantos_pedidosc = ""; -RDebugUtils.currentLine=15466552; - //BA.debugLineNum = 15466552;BA.debugLine="Dim cuantos_pedido As String"; + //BA.debugLineNum = 57;BA.debugLine="Dim cuantos_pedido As String"; _cuantos_pedido = ""; -RDebugUtils.currentLine=15466553; - //BA.debugLineNum = 15466553;BA.debugLine="Dim cuantos_noventa As String"; + //BA.debugLineNum = 58;BA.debugLine="Dim cuantos_noventa As String"; _cuantos_noventa = ""; -RDebugUtils.currentLine=15466554; - //BA.debugLineNum = 15466554;BA.debugLine="Dim datos_iguales As String"; + //BA.debugLineNum = 59;BA.debugLine="Dim datos_iguales As String"; _datos_iguales = ""; -RDebugUtils.currentLine=15466555; - //BA.debugLineNum = 15466555;BA.debugLine="Dim p As PhoneId"; + //BA.debugLineNum = 60;BA.debugLine="Dim p As PhoneId"; _p = new anywheresoftware.b4a.phone.Phone.PhoneId(); -RDebugUtils.currentLine=15466556; - //BA.debugLineNum = 15466556;BA.debugLine="Dim imei As String"; + //BA.debugLineNum = 61;BA.debugLine="Dim imei As String"; _imei = ""; -RDebugUtils.currentLine=15466558; - //BA.debugLineNum = 15466558;BA.debugLine="Private inv As Button"; + //BA.debugLineNum = 63;BA.debugLine="Private inv As Button"; _inv = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466560; - //BA.debugLineNum = 15466560;BA.debugLine="Private L_MONTOE As Label"; + //BA.debugLineNum = 65;BA.debugLine="Private L_MONTOE As Label"; _l_montoe = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466561; - //BA.debugLineNum = 15466561;BA.debugLine="Private B_CLIEPROD As Button"; + //BA.debugLineNum = 66;BA.debugLine="Private B_CLIEPROD As Button"; _b_clieprod = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466562; - //BA.debugLineNum = 15466562;BA.debugLine="Private ListView1 As ListView"; + //BA.debugLineNum = 67;BA.debugLine="Private ListView1 As ListView"; _listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=15466563; - //BA.debugLineNum = 15466563;BA.debugLine="Private B_REGRESA As Button"; + //BA.debugLineNum = 68;BA.debugLine="Private B_REGRESA As Button"; _b_regresa = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466564; - //BA.debugLineNum = 15466564;BA.debugLine="Private Panel1 As Panel"; + //BA.debugLineNum = 69;BA.debugLine="Private Panel1 As Panel"; _panel1 = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=15466565; - //BA.debugLineNum = 15466565;BA.debugLine="Dim ESTATUS As String"; + //BA.debugLineNum = 70;BA.debugLine="Dim ESTATUS As String"; _estatus = ""; -RDebugUtils.currentLine=15466566; - //BA.debugLineNum = 15466566;BA.debugLine="Dim batterystatus(11) As Int"; + //BA.debugLineNum = 71;BA.debugLine="Dim batterystatus(11) As Int"; _batterystatus = new int[(int) (11)]; ; -RDebugUtils.currentLine=15466567; - //BA.debugLineNum = 15466567;BA.debugLine="Private bu As BatteryUtilities"; + //BA.debugLineNum = 72;BA.debugLine="Private bu As BatteryUtilities"; _bu = new reparto_izca.keymon.lat.batteryutilities(); -RDebugUtils.currentLine=15466568; - //BA.debugLineNum = 15466568;BA.debugLine="Dim RUTA_T As String"; + //BA.debugLineNum = 73;BA.debugLine="Dim RUTA_T As String"; _ruta_t = ""; -RDebugUtils.currentLine=15466569; - //BA.debugLineNum = 15466569;BA.debugLine="Dim reqs As List"; + //BA.debugLineNum = 74;BA.debugLine="Dim reqs As List"; _reqs = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=15466571; - //BA.debugLineNum = 15466571;BA.debugLine="Private Btn_Ubicar_Ru As Button"; + //BA.debugLineNum = 76;BA.debugLine="Private Btn_Ubicar_Ru As Button"; _btn_ubicar_ru = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466572; - //BA.debugLineNum = 15466572;BA.debugLine="Dim cargo As String"; + //BA.debugLineNum = 77;BA.debugLine="Dim cargo As String"; _cargo = ""; -RDebugUtils.currentLine=15466573; - //BA.debugLineNum = 15466573;BA.debugLine="Private p_principal As Panel"; + //BA.debugLineNum = 78;BA.debugLine="Private p_principal As Panel"; _p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=15466574; - //BA.debugLineNum = 15466574;BA.debugLine="Dim ime As IME"; + //BA.debugLineNum = 79;BA.debugLine="Dim ime As IME"; _ime = new anywheresoftware.b4a.objects.IME(); -RDebugUtils.currentLine=15466575; - //BA.debugLineNum = 15466575;BA.debugLine="Private b_tabulador As Button"; + //BA.debugLineNum = 80;BA.debugLine="Private b_tabulador As Button"; _b_tabulador = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466576; - //BA.debugLineNum = 15466576;BA.debugLine="Dim paso1 As String"; + //BA.debugLineNum = 81;BA.debugLine="Dim paso1 As String"; _paso1 = ""; -RDebugUtils.currentLine=15466577; - //BA.debugLineNum = 15466577;BA.debugLine="Private l_rutasP As Label"; + //BA.debugLineNum = 82;BA.debugLine="Private l_rutasP As Label"; _l_rutasp = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466578; - //BA.debugLineNum = 15466578;BA.debugLine="Private l_rechazo As Label"; + //BA.debugLineNum = 83;BA.debugLine="Private l_rechazo As Label"; _l_rechazo = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466579; - //BA.debugLineNum = 15466579;BA.debugLine="Private Label9 As Label"; + //BA.debugLineNum = 84;BA.debugLine="Private Label9 As Label"; _label9 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466580; - //BA.debugLineNum = 15466580;BA.debugLine="Dim cp As Cursor"; + //BA.debugLineNum = 85;BA.debugLine="Dim cp As Cursor"; _cp = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466581; - //BA.debugLineNum = 15466581;BA.debugLine="Private b_check As Button"; + //BA.debugLineNum = 86;BA.debugLine="Private b_check As Button"; _b_check = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466582; - //BA.debugLineNum = 15466582;BA.debugLine="Private b_rechazos As Button"; + //BA.debugLineNum = 87;BA.debugLine="Private b_rechazos As Button"; _b_rechazos = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466583; - //BA.debugLineNum = 15466583;BA.debugLine="Private p_prod As Panel"; + //BA.debugLineNum = 88;BA.debugLine="Private p_prod As Panel"; _p_prod = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=15466584; - //BA.debugLineNum = 15466584;BA.debugLine="Private b_regreso As Button"; + //BA.debugLineNum = 89;BA.debugLine="Private b_regreso As Button"; _b_regreso = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466585; - //BA.debugLineNum = 15466585;BA.debugLine="Private lv_prod_Prin As ListView"; + //BA.debugLineNum = 90;BA.debugLine="Private lv_prod_Prin As ListView"; _lv_prod_prin = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=15466586; - //BA.debugLineNum = 15466586;BA.debugLine="Private b_venta_emp As Button"; + //BA.debugLineNum = 91;BA.debugLine="Private b_venta_emp As Button"; _b_venta_emp = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466589; - //BA.debugLineNum = 15466589;BA.debugLine="Dim t8 As Timer"; + //BA.debugLineNum = 94;BA.debugLine="Dim t8 As Timer"; _t8 = new anywheresoftware.b4a.objects.Timer(); -RDebugUtils.currentLine=15466590; - //BA.debugLineNum = 15466590;BA.debugLine="Private B_carga As Button"; + //BA.debugLineNum = 95;BA.debugLine="Private B_carga As Button"; _b_carga = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466591; - //BA.debugLineNum = 15466591;BA.debugLine="Private P_carga As Panel"; + //BA.debugLineNum = 96;BA.debugLine="Private P_carga As Panel"; _p_carga = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=15466592; - //BA.debugLineNum = 15466592;BA.debugLine="Private L_carga As Label"; + //BA.debugLineNum = 97;BA.debugLine="Private L_carga As Label"; _l_carga = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466593; - //BA.debugLineNum = 15466593;BA.debugLine="Private PB_carga As ProgressBar"; + //BA.debugLineNum = 98;BA.debugLine="Private PB_carga As ProgressBar"; _pb_carga = new anywheresoftware.b4a.objects.ProgressBarWrapper(); -RDebugUtils.currentLine=15466594; - //BA.debugLineNum = 15466594;BA.debugLine="Private PB_carga2 As ProgressBar"; + //BA.debugLineNum = 99;BA.debugLine="Private PB_carga2 As ProgressBar"; _pb_carga2 = new anywheresoftware.b4a.objects.ProgressBarWrapper(); -RDebugUtils.currentLine=15466595; - //BA.debugLineNum = 15466595;BA.debugLine="Private l_carga2 As Label"; + //BA.debugLineNum = 100;BA.debugLine="Private l_carga2 As Label"; _l_carga2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466598; - //BA.debugLineNum = 15466598;BA.debugLine="Dim btAdmin As BluetoothAdmin"; + //BA.debugLineNum = 103;BA.debugLine="Dim btAdmin As BluetoothAdmin"; _btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin(); -RDebugUtils.currentLine=15466599; - //BA.debugLineNum = 15466599;BA.debugLine="Dim cmp20 As Serial"; + //BA.debugLineNum = 104;BA.debugLine="Dim cmp20 As Serial"; _cmp20 = new anywheresoftware.b4a.objects.Serial(); -RDebugUtils.currentLine=15466600; - //BA.debugLineNum = 15466600;BA.debugLine="Dim printer As TextWriter"; + //BA.debugLineNum = 105;BA.debugLine="Dim printer As TextWriter"; _printer = new anywheresoftware.b4a.objects.streams.File.TextWriterWrapper(); -RDebugUtils.currentLine=15466601; - //BA.debugLineNum = 15466601;BA.debugLine="Dim TAMANO As Int"; + //BA.debugLineNum = 106;BA.debugLine="Dim TAMANO As Int"; _tamano = 0; -RDebugUtils.currentLine=15466602; - //BA.debugLineNum = 15466602;BA.debugLine="Dim ESPACIO As Int"; + //BA.debugLineNum = 107;BA.debugLine="Dim ESPACIO As Int"; _espacio = 0; -RDebugUtils.currentLine=15466603; - //BA.debugLineNum = 15466603;BA.debugLine="Dim BLANCO As String"; + //BA.debugLineNum = 108;BA.debugLine="Dim BLANCO As String"; _blanco = ""; -RDebugUtils.currentLine=15466604; - //BA.debugLineNum = 15466604;BA.debugLine="Dim Printer1 As EscPosPrinter"; + //BA.debugLineNum = 109;BA.debugLine="Dim Printer1 As EscPosPrinter"; _printer1 = new reparto_izca.keymon.lat.escposprinter(); -RDebugUtils.currentLine=15466605; - //BA.debugLineNum = 15466605;BA.debugLine="Dim impresoraConectada As Boolean = False"; + //BA.debugLineNum = 110;BA.debugLine="Dim impresoraConectada As Boolean = False"; _impresoraconectada = __c.False; -RDebugUtils.currentLine=15466606; - //BA.debugLineNum = 15466606;BA.debugLine="Dim errorImpresora As Int = 0"; + //BA.debugLineNum = 111;BA.debugLine="Dim errorImpresora As Int = 0"; _errorimpresora = (int) (0); -RDebugUtils.currentLine=15466607; - //BA.debugLineNum = 15466607;BA.debugLine="Private inventario As ImageView"; + //BA.debugLineNum = 112;BA.debugLine="Private inventario As ImageView"; _inventario = new anywheresoftware.b4a.objects.ImageViewWrapper(); -RDebugUtils.currentLine=15466608; - //BA.debugLineNum = 15466608;BA.debugLine="Dim PASA_IMP As String"; + //BA.debugLineNum = 113;BA.debugLine="Dim PASA_IMP As String"; _pasa_imp = ""; -RDebugUtils.currentLine=15466609; - //BA.debugLineNum = 15466609;BA.debugLine="Private b_imp_inventario As Button"; + //BA.debugLineNum = 114;BA.debugLine="Private b_imp_inventario As Button"; _b_imp_inventario = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466611; - //BA.debugLineNum = 15466611;BA.debugLine="Dim s As Cursor"; + //BA.debugLineNum = 116;BA.debugLine="Dim s As Cursor"; _s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=15466612; - //BA.debugLineNum = 15466612;BA.debugLine="Private PrinterIsReady As Boolean = False"; + //BA.debugLineNum = 117;BA.debugLine="Private PrinterIsReady As Boolean = False"; _printerisready = __c.False; -RDebugUtils.currentLine=15466613; - //BA.debugLineNum = 15466613;BA.debugLine="Private LastConnectionAttempt As Long = 0"; + //BA.debugLineNum = 118;BA.debugLine="Private LastConnectionAttempt As Long = 0"; _lastconnectionattempt = (long) (0); -RDebugUtils.currentLine=15466614; - //BA.debugLineNum = 15466614;BA.debugLine="Private b_impresion_rec As Button"; + //BA.debugLineNum = 119;BA.debugLine="Private b_impresion_rec As Button"; _b_impresion_rec = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466615; - //BA.debugLineNum = 15466615;BA.debugLine="Private L_clientes_visit As Label"; + //BA.debugLineNum = 120;BA.debugLine="Private L_clientes_visit As Label"; _l_clientes_visit = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466616; - //BA.debugLineNum = 15466616;BA.debugLine="Private l_clientes_recha As Label"; + //BA.debugLineNum = 121;BA.debugLine="Private l_clientes_recha As Label"; _l_clientes_recha = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466617; - //BA.debugLineNum = 15466617;BA.debugLine="Private l_clientes_visitados As Label"; + //BA.debugLineNum = 122;BA.debugLine="Private l_clientes_visitados As Label"; _l_clientes_visitados = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466618; - //BA.debugLineNum = 15466618;BA.debugLine="Private l_numtickets As Label"; + //BA.debugLineNum = 123;BA.debugLine="Private l_numtickets As Label"; _l_numtickets = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466619; - //BA.debugLineNum = 15466619;BA.debugLine="Private P_CIEGO As Panel"; + //BA.debugLineNum = 124;BA.debugLine="Private P_CIEGO As Panel"; _p_ciego = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=15466620; - //BA.debugLineNum = 15466620;BA.debugLine="Private B_PC_ENV As Button"; + //BA.debugLineNum = 125;BA.debugLine="Private B_PC_ENV As Button"; _b_pc_env = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466621; - //BA.debugLineNum = 15466621;BA.debugLine="Private b_terpc As Button"; + //BA.debugLineNum = 126;BA.debugLine="Private b_terpc As Button"; _b_terpc = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466622; - //BA.debugLineNum = 15466622;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView"; + //BA.debugLineNum = 127;BA.debugLine="Private CLV_PICK_CIEGO As CustomListView"; _clv_pick_ciego = new b4a.example3.customlistview(); -RDebugUtils.currentLine=15466623; - //BA.debugLineNum = 15466623;BA.debugLine="Private L_PICK_CIEGO As Label"; + //BA.debugLineNum = 128;BA.debugLine="Private L_PICK_CIEGO As Label"; _l_pick_ciego = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466624; - //BA.debugLineNum = 15466624;BA.debugLine="Private ET_PICK_CIEGO As EditText"; + //BA.debugLineNum = 129;BA.debugLine="Private ET_PICK_CIEGO As EditText"; _et_pick_ciego = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=15466625; - //BA.debugLineNum = 15466625;BA.debugLine="Private P_PICK_CIEGO As Panel"; + //BA.debugLineNum = 130;BA.debugLine="Private P_PICK_CIEGO As Panel"; _p_pick_ciego = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=15466626; - //BA.debugLineNum = 15466626;BA.debugLine="Private L_CANT_PCIK As Label"; + //BA.debugLineNum = 131;BA.debugLine="Private L_CANT_PCIK As Label"; _l_cant_pcik = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466627; - //BA.debugLineNum = 15466627;BA.debugLine="Private l_pagarescobrados As Label"; + //BA.debugLineNum = 132;BA.debugLine="Private l_pagarescobrados As Label"; _l_pagarescobrados = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466628; - //BA.debugLineNum = 15466628;BA.debugLine="Private l_pagaresnuevos As Label"; + //BA.debugLineNum = 133;BA.debugLine="Private l_pagaresnuevos As Label"; _l_pagaresnuevos = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466629; - //BA.debugLineNum = 15466629;BA.debugLine="Private l_montoaliquidar As Label"; + //BA.debugLineNum = 134;BA.debugLine="Private l_montoaliquidar As Label"; _l_montoaliquidar = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466630; - //BA.debugLineNum = 15466630;BA.debugLine="Private Label21 As Label"; + //BA.debugLineNum = 135;BA.debugLine="Private Label21 As Label"; _label21 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=15466631; - //BA.debugLineNum = 15466631;BA.debugLine="Private b_comodin As Button"; + //BA.debugLineNum = 136;BA.debugLine="Private b_comodin As Button"; _b_comodin = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466632; - //BA.debugLineNum = 15466632;BA.debugLine="Private p_validacion As Panel"; + //BA.debugLineNum = 137;BA.debugLine="Private p_validacion As Panel"; _p_validacion = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=15466633; - //BA.debugLineNum = 15466633;BA.debugLine="Private b_cancelarcodigo As Button"; + //BA.debugLineNum = 138;BA.debugLine="Private b_cancelarcodigo As Button"; _b_cancelarcodigo = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466634; - //BA.debugLineNum = 15466634;BA.debugLine="Private b_aceptar As Button"; + //BA.debugLineNum = 139;BA.debugLine="Private b_aceptar As Button"; _b_aceptar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=15466635; - //BA.debugLineNum = 15466635;BA.debugLine="Private et_codigo As EditText"; + //BA.debugLineNum = 140;BA.debugLine="Private et_codigo As EditText"; _et_codigo = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=15466636; - //BA.debugLineNum = 15466636;BA.debugLine="End Sub"; + //BA.debugLineNum = 141;BA.debugLine="End Sub"; return ""; } -public String _connecta_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "connecta_click", false)) - {return ((String) Debug.delegate(ba, "connecta_click", null));} -RDebugUtils.currentLine=16449536; - //BA.debugLineNum = 16449536;BA.debugLine="Sub connecta_Click"; -RDebugUtils.currentLine=16449537; - //BA.debugLineNum = 16449537;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server"; -__c.LogImpl("216449537",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); -RDebugUtils.currentLine=16449538; - //BA.debugLineNum = 16449538;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"N"; -if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { +public String _connecta_click() throws Exception{ + //BA.debugLineNum = 2586;BA.debugLine="Sub connecta_Click"; + //BA.debugLineNum = 2587;BA.debugLine="LogColor($\"ReqServer = ${B4XPages.MainPage.server"; +__c.LogImpl("015335425",("ReqServer = "+__c.SmartStringFormatter("",(Object)(_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._server /*String*/ ))+""),__c.Colors.Red); + //BA.debugLineNum = 2588;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync(\"N"; +if (__c.Not(_isconnectedtointernet())) { __c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);}; -RDebugUtils.currentLine=16449539; - //BA.debugLineNum = 16449539;BA.debugLine="If e_ruta.Text <> \"\" Then"; -if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("") == false) { -RDebugUtils.currentLine=16449540; - //BA.debugLineNum = 16449540;BA.debugLine="imei = \"\" 'p.GetDeviceId"; -__ref._imei /*String*/ = ""; -RDebugUtils.currentLine=16449541; - //BA.debugLineNum = 16449541;BA.debugLine="conn = \"1\""; -__ref._conn /*String*/ = "1"; -RDebugUtils.currentLine=16449542; - //BA.debugLineNum = 16449542;BA.debugLine="ime.HideKeyboard"; -__ref._ime /*anywheresoftware.b4a.objects.IME*/ .HideKeyboard(ba); -RDebugUtils.currentLine=16449543; - //BA.debugLineNum = 16449543;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 2589;BA.debugLine="If e_ruta.Text <> \"\" Then"; +if ((_e_ruta.getText()).equals("") == false) { + //BA.debugLineNum = 2590;BA.debugLine="imei = \"\" 'p.GetDeviceId"; +_imei = ""; + //BA.debugLineNum = 2591;BA.debugLine="conn = \"1\""; +_conn = "1"; + //BA.debugLineNum = 2592;BA.debugLine="ime.HideKeyboard"; +_ime.HideKeyboard(ba); + //BA.debugLineNum = 2593;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16449544; - //BA.debugLineNum = 16449544;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16449545; - //BA.debugLineNum = 16449545;BA.debugLine="cmd.Name = \"select_version_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_version_IZCA"; -RDebugUtils.currentLine=16449546; - //BA.debugLineNum = 16449546;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("version")); -RDebugUtils.currentLine=16449547; - //BA.debugLineNum = 16449547;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 2594;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2595;BA.debugLine="cmd.Name = \"select_version_IZCA\""; +_cmd.Name /*String*/ = "select_version_IZCA"; + //BA.debugLineNum = 2596;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"version\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("version")); + //BA.debugLineNum = 2597;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16449548; - //BA.debugLineNum = 16449548;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16449551; - //BA.debugLineNum = 16449551;BA.debugLine="cmd.Name = \"select_ruta_re_REPG_IZCA4\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_ruta_re_REPG_IZCA4"; -RDebugUtils.currentLine=16449552; - //BA.debugLineNum = 16449552;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._usuario /*String*/ )}; -RDebugUtils.currentLine=16449553; - //BA.debugLineNum = 16449553;BA.debugLine="Log($\"${ALMACEN}, ${e_ruta.text}, ${usuario}\"$)"; -__c.LogImpl("216449553",(""+__c.SmartStringFormatter("",(Object)(__ref._almacen /*String*/ ))+", "+__c.SmartStringFormatter("",(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))+", "+__c.SmartStringFormatter("",(Object)(__ref._usuario /*String*/ ))+""),0); -RDebugUtils.currentLine=16449554; - //BA.debugLineNum = 16449554;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"ruta\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("ruta")); -RDebugUtils.currentLine=16449556; - //BA.debugLineNum = 16449556;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True)"; + //BA.debugLineNum = 2598;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2601;BA.debugLine="cmd.Name = \"select_ruta_re_REPG_IZCA6\""; +_cmd.Name /*String*/ = "select_ruta_re_REPG_IZCA6"; + //BA.debugLineNum = 2602;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN, e_ruta"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_e_ruta.getText()),(Object)(_usuario)}; + //BA.debugLineNum = 2603;BA.debugLine="Log($\"${ALMACEN}, ${e_ruta.text}, ${usuario}\"$)"; +__c.LogImpl("015335441",(""+__c.SmartStringFormatter("",(Object)(_almacen))+", "+__c.SmartStringFormatter("",(Object)(_e_ruta.getText()))+", "+__c.SmartStringFormatter("",(Object)(_usuario))+""),0); + //BA.debugLineNum = 2604;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"ruta\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("ruta")); + //BA.debugLineNum = 2606;BA.debugLine="ToastMessageShow(\"Validando Conexión.\" , True)"; __c.ToastMessageShow(BA.ObjectToCharSequence("Validando Conexión."),__c.True); -RDebugUtils.currentLine=16449557; - //BA.debugLineNum = 16449557;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")"; + //BA.debugLineNum = 2607;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA"); -RDebugUtils.currentLine=16449558; - //BA.debugLineNum = 16449558;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTAA(RU"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())})); -RDebugUtils.currentLine=16449559; - //BA.debugLineNum = 16449559;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/ = __ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(); + //BA.debugLineNum = 2608;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTAA(RU"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_e_ruta.getText())})); + //BA.debugLineNum = 2609;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/ = _e_ruta.getText(); }; -RDebugUtils.currentLine=16449561; - //BA.debugLineNum = 16449561;BA.debugLine="End Sub"; + //BA.debugLineNum = 2611;BA.debugLine="End Sub"; return ""; } -public String _connecta_longclick(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "connecta_longclick", false)) - {return ((String) Debug.delegate(ba, "connecta_longclick", null));} -RDebugUtils.currentLine=18415616; - //BA.debugLineNum = 18415616;BA.debugLine="Private Sub connecta_LongClick"; -RDebugUtils.currentLine=18415617; - //BA.debugLineNum = 18415617;BA.debugLine="imp_LIQUIDACION"; -__ref._imp_liquidacion /*void*/ (null); -RDebugUtils.currentLine=18415618; - //BA.debugLineNum = 18415618;BA.debugLine="End Sub"; +public String _connecta_longclick() throws Exception{ + //BA.debugLineNum = 3875;BA.debugLine="Private Sub connecta_LongClick"; + //BA.debugLineNum = 3876;BA.debugLine="imp_LIQUIDACION"; +_imp_liquidacion(); + //BA.debugLineNum = 3877;BA.debugLine="End Sub"; return ""; } -public void _imp_liquidacion(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "imp_liquidacion", false)) - {Debug.delegate(ba, "imp_liquidacion", null); return;} -ResumableSub_imp_LIQUIDACION rsub = new ResumableSub_imp_LIQUIDACION(this,__ref); +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _id_prod,String _prod,String _cant,String _cantreal) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _pa = null; + //BA.debugLineNum = 3842;BA.debugLine="Sub CreateListItem(Id_prod As String, Prod As Stri"; + //BA.debugLineNum = 3843;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")"; +_pa = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pa = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 3844;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)"; +_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10)); + //BA.debugLineNum = 3845;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")"; +_pa.LoadLayout("PANEL_PICK_CIEGO",ba); + //BA.debugLineNum = 3846;BA.debugLine="pa.Height = 55dip"; +_pa.setHeight(__c.DipToCurrent((int) (55))); + //BA.debugLineNum = 3847;BA.debugLine="pa.Width = 298dip"; +_pa.setWidth(__c.DipToCurrent((int) (298))); + //BA.debugLineNum = 3849;BA.debugLine="L_PICK_CIEGO.Text = Id_prod & CRLF & Prod"; +_l_pick_ciego.setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod)); + //BA.debugLineNum = 3850;BA.debugLine="L_PICK_CIEGO.TextSize = 12"; +_l_pick_ciego.setTextSize((float) (12)); + //BA.debugLineNum = 3851;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT"; +_l_pick_ciego.setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL)); + //BA.debugLineNum = 3852;BA.debugLine="ET_PICK_CIEGO.Text = cant"; +_et_pick_ciego.setText(BA.ObjectToCharSequence(_cant)); + //BA.debugLineNum = 3853;BA.debugLine="L_CANT_PCIK.Text = cantreal"; +_l_cant_pcik.setText(BA.ObjectToCharSequence(_cantreal)); + //BA.debugLineNum = 3856;BA.debugLine="Return pa"; +if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject())); + //BA.debugLineNum = 3857;BA.debugLine="End Sub"; +return null; +} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(String _id_prod,String _prod,String _cantreal) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _pa = null; + //BA.debugLineNum = 3859;BA.debugLine="Sub CreateListItem2(Id_prod As String, Prod As Str"; + //BA.debugLineNum = 3860;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")"; +_pa = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pa = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 3861;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)"; +_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10)); + //BA.debugLineNum = 3862;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")"; +_pa.LoadLayout("PANEL_PICK_CIEGO",ba); + //BA.debugLineNum = 3863;BA.debugLine="pa.Height = 55dip"; +_pa.setHeight(__c.DipToCurrent((int) (55))); + //BA.debugLineNum = 3864;BA.debugLine="pa.Width = 298dip"; +_pa.setWidth(__c.DipToCurrent((int) (298))); + //BA.debugLineNum = 3866;BA.debugLine="L_PICK_CIEGO.Text = Id_prod & CRLF & Prod"; +_l_pick_ciego.setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod)); + //BA.debugLineNum = 3867;BA.debugLine="L_PICK_CIEGO.TextSize = 12"; +_l_pick_ciego.setTextSize((float) (12)); + //BA.debugLineNum = 3868;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT"; +_l_pick_ciego.setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL)); + //BA.debugLineNum = 3869;BA.debugLine="L_CANT_PCIK.Text = cantreal"; +_l_cant_pcik.setText(BA.ObjectToCharSequence(_cantreal)); + //BA.debugLineNum = 3872;BA.debugLine="Return pa"; +if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject())); + //BA.debugLineNum = 3873;BA.debugLine="End Sub"; +return null; +} +public String _e_ruta_enterpressed() throws Exception{ + //BA.debugLineNum = 2627;BA.debugLine="Sub e_ruta_EnterPressed"; + //BA.debugLineNum = 2628;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then"; +if ((_e_ruta.getText()).equals("FIN DIA")) { + //BA.debugLineNum = 2629;BA.debugLine="RES = Msgbox2(\"Seguro que desea hacer el cierre"; +_res = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea hacer el cierre todos los datos se borraran?"),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); + //BA.debugLineNum = 2630;BA.debugLine="If RES = DialogResponse.POSITIVE Then"; +if ((_res).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { + //BA.debugLineNum = 2632;BA.debugLine="e_ruta.Text = \"\""; +_e_ruta.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2633;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PICK_CIEGO"); + //BA.debugLineNum = 2634;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO_"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO_GEO"); + //BA.debugLineNum = 2635;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente"); + //BA.debugLineNum = 2636;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\""; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PAGARES"); + //BA.debugLineNum = 2637;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECADO_CHECK"); + //BA.debugLineNum = 2638;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECKLIST2"); + //BA.debugLineNum = 2639;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido"); + //BA.debugLineNum = 2640;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\""; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa"); + //BA.debugLineNum = 2641;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act"); + //BA.debugLineNum = 2642;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info"); + //BA.debugLineNum = 2643;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod"); + //BA.debugLineNum = 2644;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3"); + //BA.debugLineNum = 2645;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ"); + //BA.debugLineNum = 2646;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS"); + //BA.debugLineNum = 2647;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\""; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO"); + //BA.debugLineNum = 2648;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS"); + //BA.debugLineNum = 2649;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES"); + //BA.debugLineNum = 2650;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA"); + //BA.debugLineNum = 2651;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\""; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP"); + //BA.debugLineNum = 2652;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOS"); + //BA.debugLineNum = 2653;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BLOCKENVIO"); + //BA.debugLineNum = 2654;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + //BA.debugLineNum = 2657;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints"); + }; + //BA.debugLineNum = 2659;BA.debugLine="End Sub"; +return ""; +} +public String _envioinfo() throws Exception{ +int _i = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _r = null; +int _rx = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _pa = null; +int _pag = 0; +String[] _fechaenvio = null; +String[] _fechacap = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _ab = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _ab1 = null; +String[] _fechatabulador = null; +String _fechatabulador3 = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _d4 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _d5 = null; +String _restacant = ""; +String[] _fecha1 = null; +String _fecha3 = ""; +String _hora = ""; +String _sdate = ""; +String _stime = ""; + //BA.debugLineNum = 1071;BA.debugLine="Sub envioinfo"; + //BA.debugLineNum = 1076;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NV_CLIENTE,NV_"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO, NV_REPROGRAMAR FROM NOVENTA"))); + //BA.debugLineNum = 1077;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUAN"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))); + //BA.debugLineNum = 1078;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1079;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 = 1080;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 1081;BA.debugLine="foto1 = c.GetBlob(\"NV_FOTO\")"; +_foto1 = _c.GetBlob("NV_FOTO"); + //BA.debugLineNum = 1082;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1083;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1084;BA.debugLine="cmd.Name = \"insert_reparto_REPG_IZCA\""; +_cmd.Name /*String*/ = "insert_reparto_REPG_IZCA"; + //BA.debugLineNum = 1085;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"N"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("NV_CLIENTE")),(Object)(_c.GetString("NV_FECHA")),(Object)(_c.GetString("NV_USER")),(Object)(_c.GetString("NV_MOTIVO")),(Object)(_c.GetString("NV_COMM")),(Object)(_c.GetString("NV_LAT")),(Object)(_c.GetString("NV_LON")),(Object)(_almacen),(Object)(_l_ruta.getText()),(Object)(_c.GetString("NV_REPROGRAMAR"))}; + //BA.debugLineNum = 1086;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_noventa_"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_noventa_")); + } +}; + //BA.debugLineNum = 1088;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 1090;BA.debugLine="d.Position=0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 1091;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")"; +_cuantos_noventa = _d.GetString("CUANTOS_NOVENTA"); + //BA.debugLineNum = 1092;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1095;BA.debugLine="Dim r As Cursor =Starter.skmt.ExecQuery(\"select *"; +_r = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from noventa where nv_reprogramar = 1"))); + //BA.debugLineNum = 1096;BA.debugLine="If r.RowCount > 0 Then"; +if (_r.getRowCount()>0) { + //BA.debugLineNum = 1097;BA.debugLine="For rx = 0 To r.RowCount - 1"; +{ +final int step20 = 1; +final int limit20 = (int) (_r.getRowCount()-1); +_rx = (int) (0) ; +for (;_rx <= limit20 ;_rx = _rx + step20 ) { + //BA.debugLineNum = 1098;BA.debugLine="r.Position = rx"; +_r.setPosition(_rx); + //BA.debugLineNum = 1099;BA.debugLine="Dim o As Cursor = Starter.skmt.ExecQuery2(\"sele"; +_o = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_o = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select HVD_FECHA, CAT_CL_RUTA FROM HIST_VENTAS INNER JOIN kmt_info on HVD_CLIENTE = cat_cl_codigo WHERE HVD_CLIENTE = ?",new String[]{_r.GetString("NV_CLIENTE")}))); + //BA.debugLineNum = 1100;BA.debugLine="If o.RowCount > 0 Then"; +if (_o.getRowCount()>0) { + //BA.debugLineNum = 1101;BA.debugLine="o.Position = 0"; +_o.setPosition((int) (0)); + //BA.debugLineNum = 1102;BA.debugLine="Log(\"Enviamos reprogramados: \" & r.RowCount)"; +__c.LogImpl("015007775","Enviamos reprogramados: "+BA.NumberToString(_r.getRowCount()),0); + //BA.debugLineNum = 1104;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1105;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1106;BA.debugLine="cmd.Name = \"insert_reparto_reprogramar3_IZCA\""; +_cmd.Name /*String*/ = "insert_reparto_reprogramar3_IZCA"; + //BA.debugLineNum = 1107;BA.debugLine="cmd.Parameters = Array As Object(r.GetString(\""; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_r.GetString("NV_CLIENTE")),(Object)(_r.GetString("NV_REPROGRAMAR")),(Object)(_o.GetString("HVD_FECHA")),(Object)(_o.GetString("CAT_CL_RUTA")),(Object)(_almacen)}; + //BA.debugLineNum = 1108;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_reprogram"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_reprogramar")); + }; + } +}; + }; + //BA.debugLineNum = 1112;BA.debugLine="r.Close"; +_r.Close(); + //BA.debugLineNum = 1169;BA.debugLine="Dim pa As Cursor =Starter.skmt.ExecQuery(\"select"; +_pa = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pa = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PA_ALMACEN,PA_RUTA_REP,PA_RUTAPREV,PA_FECHA_PREV,PA_CAPTURA,PA_MONTO,PA_USUARIO,PA_CLIENTE from PAGARES"))); + //BA.debugLineNum = 1170;BA.debugLine="If pa.RowCount > 0 Then"; +if (_pa.getRowCount()>0) { + //BA.debugLineNum = 1171;BA.debugLine="For pag = 0 To pa.RowCount - 1"; +{ +final int step37 = 1; +final int limit37 = (int) (_pa.getRowCount()-1); +_pag = (int) (0) ; +for (;_pag <= limit37 ;_pag = _pag + step37 ) { + //BA.debugLineNum = 1172;BA.debugLine="pa.Position = pag"; +_pa.setPosition(_pag); + //BA.debugLineNum = 1173;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1174;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1175;BA.debugLine="cmd.Name = \"insert_reparto_PAGARES_IZCA_VN\""; +_cmd.Name /*String*/ = "insert_reparto_PAGARES_IZCA_VN"; + //BA.debugLineNum = 1176;BA.debugLine="Dim fechaenvio() As String"; +_fechaenvio = new String[(int) (0)]; +java.util.Arrays.fill(_fechaenvio,""); + //BA.debugLineNum = 1177;BA.debugLine="fechaenvio = Regex.Split(\" \",pa.GetString(\"PA_F"; +_fechaenvio = __c.Regex.Split(" ",_pa.GetString("PA_FECHA_PREV")); + //BA.debugLineNum = 1184;BA.debugLine="Dim fechacap() As String"; +_fechacap = new String[(int) (0)]; +java.util.Arrays.fill(_fechacap,""); + //BA.debugLineNum = 1185;BA.debugLine="fechacap = Regex.Split(\"/\",pa.GetString(\"PA_CAP"; +_fechacap = __c.Regex.Split("/",_pa.GetString("PA_CAPTURA")); + //BA.debugLineNum = 1191;BA.debugLine="cmd.Parameters = Array As Object(pa.GetString("; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_pa.GetString("PA_CLIENTE")),(Object)(_pa.GetString("PA_MONTO")),(Object)(_fechaenvio[(int) (0)]),(Object)(_pa.GetString("PA_ALMACEN")),(Object)(_pa.GetString("PA_RUTAPREV")),(Object)(_pa.GetString("PA_RUTA_REP")),(Object)(_pa.GetString("PA_CAPTURA")),(Object)(_pa.GetString("PA_USUARIO")),(Object)("")}; + //BA.debugLineNum = 1193;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pagares\")"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_pagares")); + } +}; + }; + //BA.debugLineNum = 1196;BA.debugLine="pa.Close"; +_pa.Close(); + //BA.debugLineNum = 1199;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); + //BA.debugLineNum = 1200;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 1201;BA.debugLine="Dim ab As Cursor = Starter.skmt.ExecQuery($\"SELEC"; +_ab = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_ab = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from ABONOS where a_enviado is null and a_tipoabono IS NULL")))); + //BA.debugLineNum = 1202;BA.debugLine="Log(ab.RowCount)"; +__c.LogImpl("015007875",BA.NumberToString(_ab.getRowCount()),0); + //BA.debugLineNum = 1203;BA.debugLine="If ab.RowCount > 0 Then"; +if (_ab.getRowCount()>0) { + //BA.debugLineNum = 1204;BA.debugLine="For i=0 To ab.RowCount -1"; +{ +final int step56 = 1; +final int limit56 = (int) (_ab.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit56 ;_i = _i + step56 ) { + //BA.debugLineNum = 1205;BA.debugLine="ab.Position = i"; +_ab.setPosition(_i); + //BA.debugLineNum = 1207;BA.debugLine="Dim ab1 As Cursor = Starter.skmt.ExecQuery($\"SE"; +_ab1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_ab1 = (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 a_abono from ABONOS where a_cliente = '"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"' and a_tipoabono IS NULL")))); + //BA.debugLineNum = 1208;BA.debugLine="ab1.Position = 0"; +_ab1.setPosition((int) (0)); + //BA.debugLineNum = 1210;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1211;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1212;BA.debugLine="cmd.Name = \"insert_abono_REP_IZCA_VN2\""; +_cmd.Name /*String*/ = "insert_abono_REP_IZCA_VN2"; + //BA.debugLineNum = 1213;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString("; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_ab.GetString("a_usuario")),(Object)(_ab.GetString("a_ruta")),(Object)(_ab.GetString("a_cliente")),(Object)(_ab.GetString("a_abono")),(Object)(_ab.GetString("a_fecha")),(Object)(_almacen),(Object)("REPARTO"),(Object)(_d.GetString("RUTAA")),(Object)(""),(Object)(_ab.GetString("TIPO_PAGO")),(Object)(_ab.GetString("a_ticket")),(Object)(_ab.GetString("a_numpago"))}; + //BA.debugLineNum = 1214;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""))); + //BA.debugLineNum = 1215;BA.debugLine="ab1.Close"; +_ab1.Close(); + //BA.debugLineNum = 1216;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl"; +__c.LogImpl("015007889",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0); + } +}; + }; + //BA.debugLineNum = 1219;BA.debugLine="ab.Close"; +_ab.Close(); + //BA.debugLineNum = 1220;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1224;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); + //BA.debugLineNum = 1225;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 1226;BA.debugLine="Dim ab As Cursor = Starter.skmt.ExecQuery($\"SELEC"; +_ab = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_ab = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from ABONOS where a_enviado is null and a_tipoabono IS NOT NULL")))); + //BA.debugLineNum = 1227;BA.debugLine="Log(ab.RowCount)"; +__c.LogImpl("015007900",BA.NumberToString(_ab.getRowCount()),0); + //BA.debugLineNum = 1228;BA.debugLine="If ab.RowCount > 0 Then"; +if (_ab.getRowCount()>0) { + //BA.debugLineNum = 1229;BA.debugLine="For i=0 To ab.RowCount -1"; +{ +final int step76 = 1; +final int limit76 = (int) (_ab.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit76 ;_i = _i + step76 ) { + //BA.debugLineNum = 1230;BA.debugLine="ab.Position = i"; +_ab.setPosition(_i); + //BA.debugLineNum = 1232;BA.debugLine="Dim ab1 As Cursor = Starter.skmt.ExecQuery($\"SE"; +_ab1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_ab1 = (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 a_abono from ABONOS where a_cliente = '"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"' and a_tipoabono IS NOT NULL")))); + //BA.debugLineNum = 1233;BA.debugLine="ab1.Position = 0"; +_ab1.setPosition((int) (0)); + //BA.debugLineNum = 1235;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1236;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1237;BA.debugLine="cmd.Name = \"insert_abono_REP_IZCA_VN2\""; +_cmd.Name /*String*/ = "insert_abono_REP_IZCA_VN2"; + //BA.debugLineNum = 1238;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString("; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_ab.GetString("a_usuario")),(Object)(_ab.GetString("a_ruta")),(Object)(_ab.GetString("a_cliente")),(Object)(_ab.GetString("a_abono")),(Object)(_ab.GetString("a_fecha")),(Object)(_almacen),(Object)("REPARTO"),(Object)(_d.GetString("RUTAA")),(Object)("1"),(Object)(_ab.GetString("TIPO_PAGO")),(Object)(_ab.GetString("a_ticket")),(Object)(_ab.GetString("a_numpago"))}; + //BA.debugLineNum = 1239;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""))); + //BA.debugLineNum = 1240;BA.debugLine="ab1.Close"; +_ab1.Close(); + //BA.debugLineNum = 1241;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl"; +__c.LogImpl("015007914",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0); + } +}; + }; + //BA.debugLineNum = 1244;BA.debugLine="ab.Close"; +_ab.Close(); + //BA.debugLineNum = 1245;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1269;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT PE_TIPO, PE_RUTA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PE_TIPO, PE_RUTA, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_CLIENTEOR, PE_CAJAS, PE_BCAJAS, CONSECUTIVO, FECHA_PREV, RUTA_REP, PE_REGALO FROM PEDIDO"))); + //BA.debugLineNum = 1270;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1271;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 = 1272;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 1273;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1274;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1275;BA.debugLine="cmd.Name = \"insert_pedido_REP_IZCA\""; +_cmd.Name /*String*/ = "insert_pedido_REP_IZCA"; + //BA.debugLineNum = 1276;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PE_TIPO")),(Object)(_c.GetString("PE_RUTA")),(Object)(_c.GetString("PE_CEDIS")),(Object)(_c.GetString("PE_COSTO_TOT")),(Object)(_c.GetString("PE_COSTOU")),(Object)(_c.GetString("PE_CANT")),(Object)(_c.GetString("PE_PRONOMBRE")),(Object)(_c.GetString("PE_PROID")),(Object)(_c.GetString("PE_CLIENTE")),(Object)(_c.GetString("PE_FECHA")),(Object)(_c.GetString("PE_USUARIO")),(Object)(_c.GetString("PE_CLIENTEOR")),(Object)(_c.GetString("PE_CAJAS")),(Object)(_c.GetString("PE_BCAJAS")),(Object)(_c.GetString("CONSECUTIVO")),(Object)(_c.GetString("FECHA_PREV")),(Object)(_c.GetString("RUTA_REP")),(Object)(_c.GetString("PE_REGALO"))}; + //BA.debugLineNum = 1277;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pedido_Inm"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_pedido_Inmtex")); + } +}; + //BA.debugLineNum = 1279;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 1326;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT CLIENTE, USUARI"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT CLIENTE, USUARIO, FECHA_PUNTEO, LATITUD, LONGITUD, ALMACEN, RUTA_REPARTO, RUTA_PREV, FECHA_PREVENTA, MOTIVO, COMENTARIO,TIPO FROM REPARTO_GEO"))); + //BA.debugLineNum = 1327;BA.debugLine="Log($\"REPARTO_Cliente PENDIENTE: ${c.RowCount}\"$)"; +__c.LogImpl("015008000",("REPARTO_Cliente PENDIENTE: "+__c.SmartStringFormatter("",(Object)(_c.getRowCount()))+""),0); + //BA.debugLineNum = 1328;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1329;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step106 = 1; +final int limit106 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit106 ;_i = _i + step106 ) { + //BA.debugLineNum = 1330;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 1332;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1333;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1334;BA.debugLine="cmd.Name = \"insert_REPARTO_IZCA\""; +_cmd.Name /*String*/ = "insert_REPARTO_IZCA"; + //BA.debugLineNum = 1335;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"C"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("CLIENTE")),(Object)(_c.GetString("USUARIO")),(Object)(_c.GetString("FECHA_PUNTEO")),(Object)(_c.GetString("LATITUD")),(Object)(_c.GetString("LONGITUD")),(Object)(_c.GetString("ALMACEN")),(Object)(_c.GetString("RUTA_REPARTO")),(Object)(_c.GetString("RUTA_PREV")),(Object)(_c.GetString("FECHA_PREVENTA")),(Object)(_c.GetString("MOTIVO")),(Object)(_c.GetString("COMENTARIO")),(Object)(_c.GetString("TIPO"))}; + //BA.debugLineNum = 1336;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_REPARTOPe"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)(("ins_REPARTOPendientes_head_"+__c.SmartStringFormatter("",(Object)(_c.GetString("CLIENTE")))+""))); + } +}; + }; + //BA.debugLineNum = 1340;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1343;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PC_ID_PROD, PC"; +_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_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO"))); + //BA.debugLineNum = 1344;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1345;BA.debugLine="For i = 0 To c.RowCount - 1"; +{ +final int step118 = 1; +final int limit118 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit118 ;_i = _i + step118 ) { + //BA.debugLineNum = 1346;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 1347;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1348;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1349;BA.debugLine="cmd.Name = \"select_HIST_PICKCIEGO_IZCA\" '"; +_cmd.Name /*String*/ = "select_HIST_PICKCIEGO_IZCA"; + //BA.debugLineNum = 1350;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PC_ID_PROD")),(Object)(_c.GetString("PC_ALMACEN")),(Object)(_c.GetString("PC_RUTA")),(Object)(_c.GetString("PC_FECHA")),(Object)("REPARTO")}; + //BA.debugLineNum = 1351;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, $\"PICK_C_${c.G"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)(("PICK_C_"+__c.SmartStringFormatter("",(Object)(_c.GetString("PC_ID_PROD")))+""))); + } +}; + }; + //BA.debugLineNum = 1354;BA.debugLine="c.close"; +_c.Close(); + //BA.debugLineNum = 1357;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT VEINTE, DIEZ,"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS"))); + //BA.debugLineNum = 1358;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); + //BA.debugLineNum = 1359;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN"))); + //BA.debugLineNum = 1360;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); + //BA.debugLineNum = 1361;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 1362;BA.debugLine="b.Position = 0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 1363;BA.debugLine="f.Position = 0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 1364;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1365;BA.debugLine="For i = 0 To c.RowCount - 1"; +{ +final int step136 = 1; +final int limit136 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit136 ;_i = _i + step136 ) { + //BA.debugLineNum = 1366;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 1367;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1368;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\""; +_fechatabulador = __c.Regex.Split(" ",_f.GetString("HVD_FECHA")); + //BA.debugLineNum = 1370;BA.debugLine="Dim fechatabulador3 As String = fechatabulador("; +_fechatabulador3 = _fechatabulador[(int) (0)]; + //BA.debugLineNum = 1371;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1372;BA.debugLine="cmd.Name = \"insert_tabulador_monedas_IZCA\""; +_cmd.Name /*String*/ = "insert_tabulador_monedas_IZCA"; + //BA.debugLineNum = 1373;BA.debugLine="cmd.Parameters = Array As Object(d.GetString(\"R"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_d.GetString("RUTAA")),(Object)(_b.GetString("ID_ALMACEN")),(Object)(_c.GetString("VEINTE")),(Object)(_c.GetString("DIEZ")),(Object)(_c.GetString("CINCO")),(Object)(_c.GetString("DOS")),(Object)(_c.GetString("PESO")),(Object)(_c.GetString("CENTAVO")),(Object)(_fechatabulador3)}; + //BA.debugLineNum = 1374;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_tabulador_mon")); + } +}; + //BA.debugLineNum = 1376;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1377;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1378;BA.debugLine="b.Close"; +_b.Close(); + //BA.debugLineNum = 1379;BA.debugLine="f.Close"; +_f.Close(); + }; + //BA.debugLineNum = 1382;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT IFNULL(HVD_REC"; +_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 IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_CLIENTE, HVD_PROID, HVD_FECHA, HVD_CODPROMO, HVD_NUM_TICKET, HVD_CANT, CONSECUTIVO, BCAJAS, CANTC FROM HIST_VENTAS"))); + //BA.debugLineNum = 1383;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1384;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step153 = 1; +final int limit153 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit153 ;_i = _i + step153 ) { + //BA.debugLineNum = 1385;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 1386;BA.debugLine="Log(c.GetString(\"HVD_CLIENTE\"))"; +__c.LogImpl("015008059",_c.GetString("HVD_CLIENTE"),0); + //BA.debugLineNum = 1387;BA.debugLine="Private d4 As Cursor = Starter.skmt.ExecQuery($"; +_d4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_d4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"'")))); + //BA.debugLineNum = 1388;BA.debugLine="d4.Position = 0"; +_d4.setPosition((int) (0)); + //BA.debugLineNum = 1389;BA.debugLine="Log(d4.GetString(\"CAT_CL_RUTA\"))"; +__c.LogImpl("015008062",_d4.GetString("CAT_CL_RUTA"),0); + //BA.debugLineNum = 1390;BA.debugLine="Private d5 As Cursor = Starter.skmt.ExecQuery("; +_d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE') ")))); + //BA.debugLineNum = 1391;BA.debugLine="d5.Position = 0"; +_d5.setPosition((int) (0)); + //BA.debugLineNum = 1392;BA.debugLine="Private restacant As String = d5.GetString(\"PE_"; +_restacant = _d5.GetString("PE_CANT"); + //BA.debugLineNum = 1393;BA.debugLine="d5.Close"; +_d5.Close(); + //BA.debugLineNum = 1395;BA.debugLine="Dim fecha1() As String = Regex.Split(\" \", c.Get"; +_fecha1 = __c.Regex.Split(" ",_c.GetString("HVD_FECHA")); + //BA.debugLineNum = 1397;BA.debugLine="Dim fecha3 As String = fecha1(0)"; +_fecha3 = _fecha1[(int) (0)]; + //BA.debugLineNum = 1398;BA.debugLine="Log(fecha3)"; +__c.LogImpl("015008071",_fecha3,0); + //BA.debugLineNum = 1399;BA.debugLine="Dim hora As String = fecha1(1)"; +_hora = _fecha1[(int) (1)]; + //BA.debugLineNum = 1402;BA.debugLine="Dim sDate, sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 1403;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; +__c.DateTime.setDateFormat("dd/MM/yyyy"); + //BA.debugLineNum = 1404;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; +__c.DateTime.setTimeFormat("HH:mm:ss"); + //BA.debugLineNum = 1405;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 1406;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 1407;BA.debugLine="If c.GetString(\"HVD_RECHAZOCANT\") <> \"0\" Then"; +if ((_c.GetString("HVD_RECHAZOCANT")).equals("0") == false) { + //BA.debugLineNum = 1408;BA.debugLine="Log((c.GetString(\"HVD_RECHAZOCANT\")-restacant)"; +__c.LogImpl("015008081",BA.NumberToString(((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))),0); + //BA.debugLineNum = 1409;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1410;BA.debugLine="cmd.Name = \"update_HVD_izcarep2\""; +_cmd.Name /*String*/ = "update_HVD_izcarep2"; + //BA.debugLineNum = 1411;BA.debugLine="cmd.Parameters = Array As String(c.GetString(\""; +_cmd.Parameters /*Object[]*/ = (Object[])(new String[]{_c.GetString("HVD_RECHAZOCANT"),_sdate+" "+_stime,BA.NumberToString(1),_c.GetString("HVD_CLIENTE"),_c.GetString("HVD_PROID"),_fecha3+" "+_hora,_d4.GetString("CAT_CL_RUTA"),_almacen,_l_ruta.getText(),_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_NUM_TICKET"),_c.GetString("HVD_CANT")}); + //BA.debugLineNum = 1412;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvd\")"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("update_hvd")); + }else { + //BA.debugLineNum = 1414;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1415;BA.debugLine="cmd.Name = \"update_HVD_izcarep2\""; +_cmd.Name /*String*/ = "update_HVD_izcarep2"; + //BA.debugLineNum = 1416;BA.debugLine="Log( c.GetString(\"CANTC\")& c.GetString(\"HVD_CL"; +__c.LogImpl("015008089",_c.GetString("CANTC")+_c.GetString("HVD_CLIENTE")+_c.GetString("HVD_PROID")+_fecha3+" "+_hora+_d4.GetString("CAT_CL_RUTA")+_almacen+_l_ruta.getText()+_c.GetString("HVD_CODPROMO")+_c.GetString("HVD_NUM_TICKET")+_c.GetString("HVD_CANT"),0); + //BA.debugLineNum = 1417;BA.debugLine="cmd.Parameters = Array As String(\"\",\"\",\"\", c.G"; +_cmd.Parameters /*Object[]*/ = (Object[])(new String[]{"","","",_c.GetString("HVD_CLIENTE"),_c.GetString("HVD_PROID"),_fecha3+" "+_hora,_d4.GetString("CAT_CL_RUTA"),_almacen,_l_ruta.getText(),_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_NUM_TICKET"),_c.GetString("HVD_CANT")}); + //BA.debugLineNum = 1418;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvd\")"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("update_hvd")); + }; + //BA.debugLineNum = 1420;BA.debugLine="d4.Close"; +_d4.Close(); + } +}; + }; + //BA.debugLineNum = 1423;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1426;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT MIL, QUINIENTO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES"))); + //BA.debugLineNum = 1427;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); + //BA.debugLineNum = 1428;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO"; +_b = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT ID_ALMACEN FROM CAT_ALMACEN"))); + //BA.debugLineNum = 1429;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM"; +_f = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); + //BA.debugLineNum = 1430;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 1431;BA.debugLine="b.Position = 0"; +_b.setPosition((int) (0)); + //BA.debugLineNum = 1432;BA.debugLine="f.Position = 0"; +_f.setPosition((int) (0)); + //BA.debugLineNum = 1433;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1434;BA.debugLine="For i = 0 To c.RowCount - 1"; +{ +final int step197 = 1; +final int limit197 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit197 ;_i = _i + step197 ) { + //BA.debugLineNum = 1435;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 1436;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1441;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\""; +_fechatabulador = __c.Regex.Split(" ",_f.GetString("HVD_FECHA")); + //BA.debugLineNum = 1443;BA.debugLine="Dim fechatabulador3 As String = fechatabulador("; +_fechatabulador3 = _fechatabulador[(int) (0)]; + //BA.debugLineNum = 1445;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1446;BA.debugLine="cmd.Name = \"insert_tabulador_billetes_IZCA\""; +_cmd.Name /*String*/ = "insert_tabulador_billetes_IZCA"; + //BA.debugLineNum = 1447;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"I"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_b.GetString("ID_ALMACEN")),(Object)(_d.GetString("RUTAA")),(Object)(_c.GetString("MIL")),(Object)(_c.GetString("QUINIENTOS")),(Object)(_c.GetString("DOCIENTOS")),(Object)(_c.GetString("CIEN")),(Object)(_c.GetString("CINCUENTA")),(Object)(_c.GetString("VEINTE")),(Object)(_fechatabulador3)}; + //BA.debugLineNum = 1448;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_tabulador_bill")); + } +}; + //BA.debugLineNum = 1450;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1451;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 1452;BA.debugLine="b.Close"; +_b.Close(); + //BA.debugLineNum = 1453;BA.debugLine="f.Close"; +_f.Close(); + }; + //BA.debugLineNum = 1457;BA.debugLine="imp_LIQUIDACION"; +_imp_liquidacion(); + //BA.debugLineNum = 1459;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 1460;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1461;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\""; +_cmd.Name /*String*/ = "insert_drop_rep_IZCA2"; + //BA.debugLineNum = 1462;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuario"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(_l_ruta.getText()),(Object)(_almacen),(Object)(_l_ctast.getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("ENVIO"),(Object)(__c.Application.getVersionName())}; + //BA.debugLineNum = 1463;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_drop")); + //BA.debugLineNum = 1464;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias "+_l_ruta.getText()),__c.True); + //BA.debugLineNum = 1465;BA.debugLine="End Sub"; +return ""; +} +public void _imp_liquidacion() throws Exception{ +ResumableSub_imp_LIQUIDACION rsub = new ResumableSub_imp_LIQUIDACION(this); rsub.resume(ba, null); } public static class ResumableSub_imp_LIQUIDACION extends BA.ResumableSub { -public ResumableSub_imp_LIQUIDACION(reparto_izca.keymon.lat.c_principal parent,reparto_izca.keymon.lat.c_principal __ref) { +public ResumableSub_imp_LIQUIDACION(reparto_izca.keymon.lat.c_principal parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_principal __ref; reparto_izca.keymon.lat.c_principal parent; int _cont = 0; String _sdate = ""; @@ -5674,7 +4706,6 @@ int limit79; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_principal"; while (true) { switch (state) { @@ -5684,20 +4715,17 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=16056322; - //BA.debugLineNum = 16056322;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; + //BA.debugLineNum = 935;BA.debugLine="ProgressDialogShow(\"Imprimiendo, un momento ...\")"; parent.__c.ProgressDialogShow(ba,BA.ObjectToCharSequence("Imprimiendo, un momento ...")); -RDebugUtils.currentLine=16056323; - //BA.debugLineNum = 16056323;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=16056324; - //BA.debugLineNum = 16056324;BA.debugLine="If Not(Printer1.IsConnected) Then"; + //BA.debugLineNum = 936;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 937;BA.debugLine="If Not(Printer1.IsConnected) Then"; if (true) break; case 1: //if this.state = 38; -if (parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { +if (parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { this.state = 3; }else { this.state = 21; @@ -5706,20 +4734,17 @@ this.state = 21; case 3: //C this.state = 4; -RDebugUtils.currentLine=16056326; - //BA.debugLineNum = 16056326;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=16056327; - //BA.debugLineNum = 16056327;BA.debugLine="Private cont As Int = 0"; + //BA.debugLineNum = 939;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 940;BA.debugLine="Private cont As Int = 0"; _cont = (int) (0); -RDebugUtils.currentLine=16056328; - //BA.debugLineNum = 16056328;BA.debugLine="Do While Not(impresoraConectada)"; + //BA.debugLineNum = 941;BA.debugLine="Do While Not(impresoraConectada)"; if (true) break; case 4: //do while this.state = 19; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ )) { +while (parent.__c.Not(parent._impresoraconectada)) { this.state = 6; if (true) break; } @@ -5728,20 +4753,17 @@ if (true) break; case 6: //C this.state = 7; -RDebugUtils.currentLine=16056329; - //BA.debugLineNum = 16056329;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "imp_liquidacion"),(int) (1000)); + //BA.debugLineNum = 942;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 69; return; case 69: //C this.state = 7; ; -RDebugUtils.currentLine=16056330; - //BA.debugLineNum = 16056330;BA.debugLine="cont = cont + 1"; + //BA.debugLineNum = 943;BA.debugLine="cont = cont + 1"; _cont = (int) (_cont+1); -RDebugUtils.currentLine=16056331; - //BA.debugLineNum = 16056331;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de"; + //BA.debugLineNum = 944;BA.debugLine="If cont = 7 Then Printer1.Connect 'Tratamos de"; if (true) break; case 7: @@ -5754,15 +4776,14 @@ this.state = 9; case 9: //C this.state = 12; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); +parent._printer1._connect /*boolean*/ (); if (true) break; case 12: //C this.state = 13; ; -RDebugUtils.currentLine=16056332; - //BA.debugLineNum = 16056332;BA.debugLine="If cont > 15 Then impresoraConectada = True"; + //BA.debugLineNum = 945;BA.debugLine="If cont > 15 Then impresoraConectada = True"; if (true) break; case 13: @@ -5775,7 +4796,7 @@ this.state = 15; case 15: //C this.state = 18; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; +parent._impresoraconectada = parent.__c.True; if (true) break; case 18: @@ -5788,37 +4809,32 @@ case 19: //C this.state = 38; ; -RDebugUtils.currentLine=16056334; - //BA.debugLineNum = 16056334;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "imp_liquidacion"),(int) (500)); + //BA.debugLineNum = 947;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); this.state = 70; return; case 70: //C this.state = 38; ; -RDebugUtils.currentLine=16056335; - //BA.debugLineNum = 16056335;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 948;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; if (true) break; case 21: //C this.state = 22; -RDebugUtils.currentLine=16056338; - //BA.debugLineNum = 16056338;BA.debugLine="Printer1.Connect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); -RDebugUtils.currentLine=16056339; - //BA.debugLineNum = 16056339;BA.debugLine="Private cont As Int = 0"; + //BA.debugLineNum = 951;BA.debugLine="Printer1.Connect"; +parent._printer1._connect /*boolean*/ (); + //BA.debugLineNum = 952;BA.debugLine="Private cont As Int = 0"; _cont = (int) (0); -RDebugUtils.currentLine=16056340; - //BA.debugLineNum = 16056340;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; + //BA.debugLineNum = 953;BA.debugLine="Do While Not(impresoraConectada) Or Not(Printer1"; if (true) break; case 22: //do while this.state = 37; -while (parent.__c.Not(__ref._impresoraconectada /*boolean*/ ) || parent.__c.Not(__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._isconnected /*boolean*/ (null))) { +while (parent.__c.Not(parent._impresoraconectada) || parent.__c.Not(parent._printer1._isconnected /*boolean*/ ())) { this.state = 24; if (true) break; } @@ -5827,20 +4843,17 @@ if (true) break; case 24: //C this.state = 25; -RDebugUtils.currentLine=16056341; - //BA.debugLineNum = 16056341;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "imp_liquidacion"),(int) (1000)); + //BA.debugLineNum = 954;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 71; return; case 71: //C this.state = 25; ; -RDebugUtils.currentLine=16056342; - //BA.debugLineNum = 16056342;BA.debugLine="cont = cont + 1"; + //BA.debugLineNum = 955;BA.debugLine="cont = cont + 1"; _cont = (int) (_cont+1); -RDebugUtils.currentLine=16056343; - //BA.debugLineNum = 16056343;BA.debugLine="If cont = 2 Then Printer1.Connect"; + //BA.debugLineNum = 956;BA.debugLine="If cont = 2 Then Printer1.Connect"; if (true) break; case 25: @@ -5853,15 +4866,14 @@ this.state = 27; case 27: //C this.state = 30; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._connect /*boolean*/ (null); +parent._printer1._connect /*boolean*/ (); if (true) break; case 30: //C this.state = 31; ; -RDebugUtils.currentLine=16056344; - //BA.debugLineNum = 16056344;BA.debugLine="If cont > 4 Then impresoraConectada = True"; + //BA.debugLineNum = 957;BA.debugLine="If cont > 4 Then impresoraConectada = True"; if (true) break; case 31: @@ -5874,7 +4886,7 @@ this.state = 33; case 33: //C this.state = 36; -__ref._impresoraconectada /*boolean*/ = parent.__c.True; +parent._impresoraconectada = parent.__c.True; if (true) break; case 36: @@ -5887,108 +4899,82 @@ case 37: //C this.state = 38; ; -RDebugUtils.currentLine=16056346; - //BA.debugLineNum = 16056346;BA.debugLine="Sleep(500)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "imp_liquidacion"),(int) (500)); + //BA.debugLineNum = 959;BA.debugLine="Sleep(500)"; +parent.__c.Sleep(ba,this,(int) (500)); this.state = 72; return; case 72: //C this.state = 38; ; -RDebugUtils.currentLine=16056347; - //BA.debugLineNum = 16056347;BA.debugLine="impresoraConectada = False"; -__ref._impresoraconectada /*boolean*/ = parent.__c.False; + //BA.debugLineNum = 960;BA.debugLine="impresoraConectada = False"; +parent._impresoraconectada = parent.__c.False; if (true) break; case 38: //C this.state = 39; ; -RDebugUtils.currentLine=16056350; - //BA.debugLineNum = 16056350;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=16056351; - //BA.debugLineNum = 16056351;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=16056352; - //BA.debugLineNum = 16056352;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=16056353; - //BA.debugLineNum = 16056353;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=16056354; - //BA.debugLineNum = 16056354;BA.debugLine="Dim sDate, sTime As String"; + //BA.debugLineNum = 963;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 964;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 965;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 966;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 967;BA.debugLine="Dim sDate, sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=16056355; - //BA.debugLineNum = 16056355;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; + //BA.debugLineNum = 968;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; parent.__c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=16056356; - //BA.debugLineNum = 16056356;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; + //BA.debugLineNum = 969;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; parent.__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=16056357; - //BA.debugLineNum = 16056357;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; + //BA.debugLineNum = 970;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; _sdate = parent.__c.DateTime.Date(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=16056358; - //BA.debugLineNum = 16056358;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; + //BA.debugLineNum = 971;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; _stime = parent.__c.DateTime.Time(parent.__c.DateTime.getNow()); -RDebugUtils.currentLine=16056359; - //BA.debugLineNum = 16056359;BA.debugLine="Printer1.WriteString(\"Fecha: \" &sDate & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Fecha: "+_sdate+parent.__c.CRLF); -RDebugUtils.currentLine=16056360; - //BA.debugLineNum = 16056360;BA.debugLine="Printer1.WriteString(\"Hora: \" &sTime & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Hora: "+_stime+parent.__c.CRLF); -RDebugUtils.currentLine=16056361; - //BA.debugLineNum = 16056361;BA.debugLine="Printer1.WriteString(\"Ruta: \" & l_ruta.Text & CRL"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Ruta: "+__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=16056362; - //BA.debugLineNum = 16056362;BA.debugLine="Printer1.WriteString(\"Usuario: \" & Subs.dameUsuar"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Usuario: "+parent._subs._dameusuariodedb /*String*/ (ba)+parent.__c.CRLF); -RDebugUtils.currentLine=16056363; - //BA.debugLineNum = 16056363;BA.debugLine="Printer1.WriteString(\"----------LIQUIDACION------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"----------LIQUIDACION----------"+parent.__c.CRLF); -RDebugUtils.currentLine=16056364; - //BA.debugLineNum = 16056364;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=16056366; - //BA.debugLineNum = 16056366;BA.debugLine="Printer1.WriteString(\"Monto entregado: $\" & L_MON"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Monto entregado: $"+__ref._l_montoe /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=16056367; - //BA.debugLineNum = 16056367;BA.debugLine="Printer1.WriteString(\"Monto rechazado: $\" & l_rec"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Monto rechazado: $"+__ref._l_rechazo /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=16056368; - //BA.debugLineNum = 16056368;BA.debugLine="Printer1.WriteString(\"Pagares cobrados: $\" & l_pa"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Pagares cobrados: $"+__ref._l_pagarescobrados /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=16056370; - //BA.debugLineNum = 16056370;BA.debugLine="If l_pagarescobrados.Text > 0 Then"; + //BA.debugLineNum = 972;BA.debugLine="Printer1.WriteString(\"Fecha: \" &sDate & CRLF)"; +parent._printer1._writestring /*String*/ ("Fecha: "+_sdate+parent.__c.CRLF); + //BA.debugLineNum = 973;BA.debugLine="Printer1.WriteString(\"Hora: \" &sTime & CRLF)"; +parent._printer1._writestring /*String*/ ("Hora: "+_stime+parent.__c.CRLF); + //BA.debugLineNum = 974;BA.debugLine="Printer1.WriteString(\"Ruta: \" & l_ruta.Text & CRL"; +parent._printer1._writestring /*String*/ ("Ruta: "+parent._l_ruta.getText()+parent.__c.CRLF); + //BA.debugLineNum = 975;BA.debugLine="Printer1.WriteString(\"Usuario: \" & Subs.dameUsuar"; +parent._printer1._writestring /*String*/ ("Usuario: "+parent._subs._dameusuariodedb /*String*/ (ba)+parent.__c.CRLF); + //BA.debugLineNum = 976;BA.debugLine="Printer1.WriteString(\"----------LIQUIDACION------"; +parent._printer1._writestring /*String*/ ("----------LIQUIDACION----------"+parent.__c.CRLF); + //BA.debugLineNum = 977;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 979;BA.debugLine="Printer1.WriteString(\"Monto entregado: $\" & L_MON"; +parent._printer1._writestring /*String*/ ("Monto entregado: $"+parent._l_montoe.getText()+parent.__c.CRLF); + //BA.debugLineNum = 980;BA.debugLine="Printer1.WriteString(\"Monto rechazado: $\" & l_rec"; +parent._printer1._writestring /*String*/ ("Monto rechazado: $"+parent._l_rechazo.getText()+parent.__c.CRLF); + //BA.debugLineNum = 981;BA.debugLine="Printer1.WriteString(\"Pagares cobrados: $\" & l_pa"; +parent._printer1._writestring /*String*/ ("Pagares cobrados: $"+parent._l_pagarescobrados.getText()+parent.__c.CRLF); + //BA.debugLineNum = 983;BA.debugLine="If l_pagarescobrados.Text > 0 Then"; if (true) break; case 39: //if this.state = 50; -if ((double)(Double.parseDouble(__ref._l_pagarescobrados /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))>0) { +if ((double)(Double.parseDouble(parent._l_pagarescobrados.getText()))>0) { this.state = 41; }if (true) break; case 41: //C this.state = 42; -RDebugUtils.currentLine=16056371; - //BA.debugLineNum = 16056371;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=16056372; - //BA.debugLineNum = 16056372;BA.debugLine="Printer1.WriteString(\" Cliente Abo"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," Cliente Abono"+parent.__c.CRLF); -RDebugUtils.currentLine=16056373; - //BA.debugLineNum = 16056373;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=16056375; - //BA.debugLineNum = 16056375;BA.debugLine="Dim abonoscreditos As Cursor = Starter.skmt.Exec"; + //BA.debugLineNum = 984;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 985;BA.debugLine="Printer1.WriteString(\" Cliente Abo"; +parent._printer1._writestring /*String*/ (" Cliente Abono"+parent.__c.CRLF); + //BA.debugLineNum = 986;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 988;BA.debugLine="Dim abonoscreditos As Cursor = Starter.skmt.Exec"; _abonoscreditos = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _abonoscreditos = (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 a_abono, length(a_abono) as L_abono , length(a_cliente) as L_cliente , a_cliente FROM ABONOS ORDER BY a_cliente"))); -RDebugUtils.currentLine=16056376; - //BA.debugLineNum = 16056376;BA.debugLine="For g = 0 To abonoscreditos.RowCount -1"; + //BA.debugLineNum = 989;BA.debugLine="For g = 0 To abonoscreditos.RowCount -1"; if (true) break; case 42: @@ -6015,24 +5001,20 @@ if (true) break; case 44: //C this.state = 45; -RDebugUtils.currentLine=16056377; - //BA.debugLineNum = 16056377;BA.debugLine="abonoscreditos.Position = g"; + //BA.debugLineNum = 990;BA.debugLine="abonoscreditos.Position = g"; _abonoscreditos.setPosition(_g); -RDebugUtils.currentLine=16056379; - //BA.debugLineNum = 16056379;BA.debugLine="TAMANO = abonoscreditos.GetInt(\"L_abono\") + TAM"; -__ref._tamano /*int*/ = (int) (_abonoscreditos.GetInt("L_abono")+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=16056380; - //BA.debugLineNum = 16056380;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=16056382; - //BA.debugLineNum = 16056382;BA.debugLine="For j =0 To ESPACIO -1"; + //BA.debugLineNum = 992;BA.debugLine="TAMANO = abonoscreditos.GetInt(\"L_abono\") + TAM"; +parent._tamano = (int) (_abonoscreditos.GetInt("L_abono")+parent._tamano); + //BA.debugLineNum = 993;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 995;BA.debugLine="For j =0 To ESPACIO -1"; if (true) break; case 45: //for this.state = 48; step53 = 1; -limit53 = (int) (__ref._espacio /*int*/ -1); +limit53 = (int) (parent._espacio-1); _j = (int) (0) ; this.state = 75; if (true) break; @@ -6052,9 +5034,8 @@ if (true) break; case 47: //C this.state = 76; -RDebugUtils.currentLine=16056383; - //BA.debugLineNum = 16056383;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 996;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -6062,33 +5043,24 @@ case 48: //C this.state = 74; ; -RDebugUtils.currentLine=16056385; - //BA.debugLineNum = 16056385;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=16056386; - //BA.debugLineNum = 16056386;BA.debugLine="Printer1.WriteString( abonoscreditos.GetString("; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_abonoscreditos.GetString("a_cliente")+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=16056387; - //BA.debugLineNum = 16056387;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=16056388; - //BA.debugLineNum = 16056388;BA.debugLine="Printer1.WriteString( abonoscreditos.GetString("; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_abonoscreditos.GetString("a_abono")); -RDebugUtils.currentLine=16056389; - //BA.debugLineNum = 16056389;BA.debugLine="Printer1.WriteString( CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,parent.__c.CRLF); -RDebugUtils.currentLine=16056390; - //BA.debugLineNum = 16056390;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=16056391; - //BA.debugLineNum = 16056391;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=16056392; - //BA.debugLineNum = 16056392;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=16056393; - //BA.debugLineNum = 16056393;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); + //BA.debugLineNum = 998;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 999;BA.debugLine="Printer1.WriteString( abonoscreditos.GetString("; +parent._printer1._writestring /*String*/ (_abonoscreditos.GetString("a_cliente")+parent._blanco); + //BA.debugLineNum = 1000;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 1001;BA.debugLine="Printer1.WriteString( abonoscreditos.GetString("; +parent._printer1._writestring /*String*/ (_abonoscreditos.GetString("a_abono")); + //BA.debugLineNum = 1002;BA.debugLine="Printer1.WriteString( CRLF)"; +parent._printer1._writestring /*String*/ (parent.__c.CRLF); + //BA.debugLineNum = 1003;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 1004;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 1005;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 1006;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); if (true) break; if (true) break; @@ -6096,50 +5068,41 @@ case 49: //C this.state = 50; ; -RDebugUtils.currentLine=16056395; - //BA.debugLineNum = 16056395;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=16056396; - //BA.debugLineNum = 16056396;BA.debugLine="Printer1.WriteString( CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,parent.__c.CRLF); + //BA.debugLineNum = 1008;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 1009;BA.debugLine="Printer1.WriteString( CRLF)"; +parent._printer1._writestring /*String*/ (parent.__c.CRLF); if (true) break; case 50: //C this.state = 51; ; -RDebugUtils.currentLine=16056398; - //BA.debugLineNum = 16056398;BA.debugLine="Printer1.WriteString(\"Pagares nuevos: $\" & l_paga"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Pagares nuevos: $"+__ref._l_pagaresnuevos /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=16056400; - //BA.debugLineNum = 16056400;BA.debugLine="If l_pagaresnuevos.Text > 0 Then"; + //BA.debugLineNum = 1011;BA.debugLine="Printer1.WriteString(\"Pagares nuevos: $\" & l_paga"; +parent._printer1._writestring /*String*/ ("Pagares nuevos: $"+parent._l_pagaresnuevos.getText()+parent.__c.CRLF); + //BA.debugLineNum = 1013;BA.debugLine="If l_pagaresnuevos.Text > 0 Then"; if (true) break; case 51: //if this.state = 62; -if ((double)(Double.parseDouble(__ref._l_pagaresnuevos /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()))>0) { +if ((double)(Double.parseDouble(parent._l_pagaresnuevos.getText()))>0) { this.state = 53; }if (true) break; case 53: //C this.state = 54; -RDebugUtils.currentLine=16056401; - //BA.debugLineNum = 16056401;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=16056402; - //BA.debugLineNum = 16056402;BA.debugLine="Printer1.WriteString(\" Cliente Pag"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," Cliente Pagare"+parent.__c.CRLF); -RDebugUtils.currentLine=16056403; - //BA.debugLineNum = 16056403;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=16056405; - //BA.debugLineNum = 16056405;BA.debugLine="Dim abonoscreditos As Cursor = Starter.skmt.Exec"; + //BA.debugLineNum = 1014;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 1015;BA.debugLine="Printer1.WriteString(\" Cliente Pag"; +parent._printer1._writestring /*String*/ (" Cliente Pagare"+parent.__c.CRLF); + //BA.debugLineNum = 1016;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 1018;BA.debugLine="Dim abonoscreditos As Cursor = Starter.skmt.Exec"; _abonoscreditos = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _abonoscreditos = (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 PA_MONTO, length(PA_MONTO) as L_PA_MONTO , length(PA_CLIENTE) as L_cliente , PA_CLIENTE FROM PAGARES ORDER BY PA_CLIENTE"))); -RDebugUtils.currentLine=16056406; - //BA.debugLineNum = 16056406;BA.debugLine="For g = 0 To abonoscreditos.RowCount -1"; + //BA.debugLineNum = 1019;BA.debugLine="For g = 0 To abonoscreditos.RowCount -1"; if (true) break; case 54: @@ -6166,24 +5129,20 @@ if (true) break; case 56: //C this.state = 57; -RDebugUtils.currentLine=16056407; - //BA.debugLineNum = 16056407;BA.debugLine="abonoscreditos.Position = g"; + //BA.debugLineNum = 1020;BA.debugLine="abonoscreditos.Position = g"; _abonoscreditos.setPosition(_g); -RDebugUtils.currentLine=16056409; - //BA.debugLineNum = 16056409;BA.debugLine="TAMANO = abonoscreditos.GetInt(\"L_PA_MONTO\") +"; -__ref._tamano /*int*/ = (int) (_abonoscreditos.GetInt("L_PA_MONTO")+__ref._tamano /*int*/ ); -RDebugUtils.currentLine=16056410; - //BA.debugLineNum = 16056410;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; -__ref._espacio /*int*/ = (int) ((__ref._espacio /*int*/ -__ref._tamano /*int*/ )/(double)2); -RDebugUtils.currentLine=16056412; - //BA.debugLineNum = 16056412;BA.debugLine="For j =0 To ESPACIO -1"; + //BA.debugLineNum = 1022;BA.debugLine="TAMANO = abonoscreditos.GetInt(\"L_PA_MONTO\") +"; +parent._tamano = (int) (_abonoscreditos.GetInt("L_PA_MONTO")+parent._tamano); + //BA.debugLineNum = 1023;BA.debugLine="ESPACIO = (ESPACIO - TAMANO)/2"; +parent._espacio = (int) ((parent._espacio-parent._tamano)/(double)2); + //BA.debugLineNum = 1025;BA.debugLine="For j =0 To ESPACIO -1"; if (true) break; case 57: //for this.state = 60; step79 = 1; -limit79 = (int) (__ref._espacio /*int*/ -1); +limit79 = (int) (parent._espacio-1); _j = (int) (0) ; this.state = 79; if (true) break; @@ -6203,9 +5162,8 @@ if (true) break; case 59: //C this.state = 80; -RDebugUtils.currentLine=16056413; - //BA.debugLineNum = 16056413;BA.debugLine="BLANCO = \" \" & BLANCO"; -__ref._blanco /*String*/ = " "+__ref._blanco /*String*/ ; + //BA.debugLineNum = 1026;BA.debugLine="BLANCO = \" \" & BLANCO"; +parent._blanco = " "+parent._blanco; if (true) break; if (true) break; @@ -6213,33 +5171,24 @@ case 60: //C this.state = 78; ; -RDebugUtils.currentLine=16056415; - //BA.debugLineNum = 16056415;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=16056416; - //BA.debugLineNum = 16056416;BA.debugLine="Printer1.WriteString( abonoscreditos.GetString("; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_abonoscreditos.GetString("PA_CLIENTE")+__ref._blanco /*String*/ ); -RDebugUtils.currentLine=16056417; - //BA.debugLineNum = 16056417;BA.debugLine="Printer1.Justify = 1"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (1)); -RDebugUtils.currentLine=16056418; - //BA.debugLineNum = 16056418;BA.debugLine="Printer1.WriteString( abonoscreditos.GetString("; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,_abonoscreditos.GetString("PA_MONTO")); -RDebugUtils.currentLine=16056419; - //BA.debugLineNum = 16056419;BA.debugLine="Printer1.WriteString( CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,parent.__c.CRLF); -RDebugUtils.currentLine=16056420; - //BA.debugLineNum = 16056420;BA.debugLine="TAMANO = 0"; -__ref._tamano /*int*/ = (int) (0); -RDebugUtils.currentLine=16056421; - //BA.debugLineNum = 16056421;BA.debugLine="ESPACIO = 29"; -__ref._espacio /*int*/ = (int) (29); -RDebugUtils.currentLine=16056422; - //BA.debugLineNum = 16056422;BA.debugLine="BLANCO = \" \""; -__ref._blanco /*String*/ = " "; -RDebugUtils.currentLine=16056423; - //BA.debugLineNum = 16056423;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); + //BA.debugLineNum = 1028;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 1029;BA.debugLine="Printer1.WriteString( abonoscreditos.GetString("; +parent._printer1._writestring /*String*/ (_abonoscreditos.GetString("PA_CLIENTE")+parent._blanco); + //BA.debugLineNum = 1030;BA.debugLine="Printer1.Justify = 1"; +parent._printer1._setjustify((int) (1)); + //BA.debugLineNum = 1031;BA.debugLine="Printer1.WriteString( abonoscreditos.GetString("; +parent._printer1._writestring /*String*/ (_abonoscreditos.GetString("PA_MONTO")); + //BA.debugLineNum = 1032;BA.debugLine="Printer1.WriteString( CRLF)"; +parent._printer1._writestring /*String*/ (parent.__c.CRLF); + //BA.debugLineNum = 1033;BA.debugLine="TAMANO = 0"; +parent._tamano = (int) (0); + //BA.debugLineNum = 1034;BA.debugLine="ESPACIO = 29"; +parent._espacio = (int) (29); + //BA.debugLineNum = 1035;BA.debugLine="BLANCO = \" \""; +parent._blanco = " "; + //BA.debugLineNum = 1036;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); if (true) break; if (true) break; @@ -6247,69 +5196,54 @@ case 61: //C this.state = 62; ; -RDebugUtils.currentLine=16056425; - //BA.debugLineNum = 16056425;BA.debugLine="Printer1.WriteString(\"--------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"--------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=16056426; - //BA.debugLineNum = 16056426;BA.debugLine="Printer1.WriteString( CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,parent.__c.CRLF); + //BA.debugLineNum = 1038;BA.debugLine="Printer1.WriteString(\"--------------------------"; +parent._printer1._writestring /*String*/ ("--------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 1039;BA.debugLine="Printer1.WriteString( CRLF)"; +parent._printer1._writestring /*String*/ (parent.__c.CRLF); if (true) break; case 62: //C this.state = 63; ; -RDebugUtils.currentLine=16056428; - //BA.debugLineNum = 16056428;BA.debugLine="Printer1.WriteString(\"Monto a liquidar: $\" & l_mo"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"Monto a liquidar: $"+__ref._l_montoaliquidar /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+parent.__c.CRLF); -RDebugUtils.currentLine=16056437; - //BA.debugLineNum = 16056437;BA.debugLine="Printer1.WriteString(\"---------------------------"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null,"------------------------------"+parent.__c.CRLF); -RDebugUtils.currentLine=16056438; - //BA.debugLineNum = 16056438;BA.debugLine="Printer1.Justify = 0"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._setjustify(null,(int) (0)); -RDebugUtils.currentLine=16056439; - //BA.debugLineNum = 16056439;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=16056440; - //BA.debugLineNum = 16056440;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=16056441; - //BA.debugLineNum = 16056441;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=16056442; - //BA.debugLineNum = 16056442;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._writestring /*String*/ (null," "+parent.__c.CRLF); -RDebugUtils.currentLine=16056443; - //BA.debugLineNum = 16056443;BA.debugLine="Sleep(1000)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "imp_liquidacion"),(int) (1000)); + //BA.debugLineNum = 1041;BA.debugLine="Printer1.WriteString(\"Monto a liquidar: $\" & l_mo"; +parent._printer1._writestring /*String*/ ("Monto a liquidar: $"+parent._l_montoaliquidar.getText()+parent.__c.CRLF); + //BA.debugLineNum = 1050;BA.debugLine="Printer1.WriteString(\"---------------------------"; +parent._printer1._writestring /*String*/ ("------------------------------"+parent.__c.CRLF); + //BA.debugLineNum = 1051;BA.debugLine="Printer1.Justify = 0"; +parent._printer1._setjustify((int) (0)); + //BA.debugLineNum = 1052;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1053;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1054;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1055;BA.debugLine="Printer1.WriteString(\" \" & CRLF)"; +parent._printer1._writestring /*String*/ (" "+parent.__c.CRLF); + //BA.debugLineNum = 1056;BA.debugLine="Sleep(1000)"; +parent.__c.Sleep(ba,this,(int) (1000)); this.state = 81; return; case 81: //C this.state = 63; ; -RDebugUtils.currentLine=16056444; - //BA.debugLineNum = 16056444;BA.debugLine="Printer1.DisConnect"; -__ref._printer1 /*reparto_izca.keymon.lat.escposprinter*/ ._disconnect /*String*/ (null); -RDebugUtils.currentLine=16056445; - //BA.debugLineNum = 16056445;BA.debugLine="ProgressDialogHide"; + //BA.debugLineNum = 1057;BA.debugLine="Printer1.DisConnect"; +parent._printer1._disconnect /*String*/ (); + //BA.debugLineNum = 1058;BA.debugLine="ProgressDialogHide"; parent.__c.ProgressDialogHide(); -RDebugUtils.currentLine=16056448; - //BA.debugLineNum = 16056448;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket?"; + //BA.debugLineNum = 1061;BA.debugLine="Msgbox2Async(\"Deseas imprimir de nuevo el ticket?"; parent.__c.Msgbox2Async(BA.ObjectToCharSequence("Deseas imprimir de nuevo el ticket?"),BA.ObjectToCharSequence("ATENCION"),"SI","","NO",parent.__c.LoadBitmap(parent.__c.File.getDirAssets(),"alert2.png"),ba,parent.__c.False); -RDebugUtils.currentLine=16056449; - //BA.debugLineNum = 16056449;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_principal", "imp_liquidacion"), null); + //BA.debugLineNum = 1062;BA.debugLine="Wait For Msgbox_Result (resultado As Int)"; +parent.__c.WaitFor("msgbox_result", ba, this, null); this.state = 82; return; case 82: //C this.state = 63; -_resultado = (Integer) result[1]; +_resultado = (Integer) result[0]; ; -RDebugUtils.currentLine=16056450; - //BA.debugLineNum = 16056450;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; + //BA.debugLineNum = 1063;BA.debugLine="If resultado = DialogResponse.POSITIVE Then"; if (true) break; case 63: @@ -6324,9 +5258,8 @@ this.state = 67; case 65: //C this.state = 68; -RDebugUtils.currentLine=16056451; - //BA.debugLineNum = 16056451;BA.debugLine="imp_LIQUIDACION"; -__ref._imp_liquidacion /*void*/ (null); + //BA.debugLineNum = 1064;BA.debugLine="imp_LIQUIDACION"; +parent._imp_liquidacion(); if (true) break; case 67: @@ -6338,878 +5271,52 @@ case 68: //C this.state = -1; ; -RDebugUtils.currentLine=16056455; - //BA.debugLineNum = 16056455;BA.debugLine="End Sub"; + //BA.debugLineNum = 1068;BA.debugLine="End Sub"; if (true) break; } } } } -public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(reparto_izca.keymon.lat.c_principal __ref,String _id_prod,String _prod,String _cant,String _cantreal) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "createlistitem", false)) - {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_id_prod,_prod,_cant,_cantreal}));} -anywheresoftware.b4a.objects.B4XViewWrapper _pa = null; -RDebugUtils.currentLine=18284544; - //BA.debugLineNum = 18284544;BA.debugLine="Sub CreateListItem(Id_prod As String, Prod As Stri"; -RDebugUtils.currentLine=18284545; - //BA.debugLineNum = 18284545;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")"; -_pa = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pa = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=18284546; - //BA.debugLineNum = 18284546;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)"; -_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10)); -RDebugUtils.currentLine=18284547; - //BA.debugLineNum = 18284547;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")"; -_pa.LoadLayout("PANEL_PICK_CIEGO",ba); -RDebugUtils.currentLine=18284548; - //BA.debugLineNum = 18284548;BA.debugLine="pa.Height = 55dip"; -_pa.setHeight(__c.DipToCurrent((int) (55))); -RDebugUtils.currentLine=18284549; - //BA.debugLineNum = 18284549;BA.debugLine="pa.Width = 298dip"; -_pa.setWidth(__c.DipToCurrent((int) (298))); -RDebugUtils.currentLine=18284551; - //BA.debugLineNum = 18284551;BA.debugLine="L_PICK_CIEGO.Text = Id_prod & CRLF & Prod"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod)); -RDebugUtils.currentLine=18284552; - //BA.debugLineNum = 18284552;BA.debugLine="L_PICK_CIEGO.TextSize = 12"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12)); -RDebugUtils.currentLine=18284553; - //BA.debugLineNum = 18284553;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL)); -RDebugUtils.currentLine=18284554; - //BA.debugLineNum = 18284554;BA.debugLine="ET_PICK_CIEGO.Text = cant"; -__ref._et_pick_ciego /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(_cant)); -RDebugUtils.currentLine=18284555; - //BA.debugLineNum = 18284555;BA.debugLine="L_CANT_PCIK.Text = cantreal"; -__ref._l_cant_pcik /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cantreal)); -RDebugUtils.currentLine=18284558; - //BA.debugLineNum = 18284558;BA.debugLine="Return pa"; -if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject())); -RDebugUtils.currentLine=18284559; - //BA.debugLineNum = 18284559;BA.debugLine="End Sub"; +public void _msgbox_result(int _resultado) throws Exception{ +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 144;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 145;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 146;BA.debugLine="End Sub"; return null; } -public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(reparto_izca.keymon.lat.c_principal __ref,String _id_prod,String _prod,String _cantreal) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "createlistitem2", false)) - {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem2", new Object[] {_id_prod,_prod,_cantreal}));} -anywheresoftware.b4a.objects.B4XViewWrapper _pa = null; -RDebugUtils.currentLine=18350080; - //BA.debugLineNum = 18350080;BA.debugLine="Sub CreateListItem2(Id_prod As String, Prod As Str"; -RDebugUtils.currentLine=18350081; - //BA.debugLineNum = 18350081;BA.debugLine="Dim pa As B4XView = xui.CreatePanel(\"\")"; -_pa = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pa = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=18350082; - //BA.debugLineNum = 18350082;BA.debugLine="pa.SetLayoutAnimated(0, 0, 0, 1, 10)"; -_pa.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (1),(int) (10)); -RDebugUtils.currentLine=18350083; - //BA.debugLineNum = 18350083;BA.debugLine="pa.LoadLayout(\"PANEL_PICK_CIEGO\")"; -_pa.LoadLayout("PANEL_PICK_CIEGO",ba); -RDebugUtils.currentLine=18350084; - //BA.debugLineNum = 18350084;BA.debugLine="pa.Height = 55dip"; -_pa.setHeight(__c.DipToCurrent((int) (55))); -RDebugUtils.currentLine=18350085; - //BA.debugLineNum = 18350085;BA.debugLine="pa.Width = 298dip"; -_pa.setWidth(__c.DipToCurrent((int) (298))); -RDebugUtils.currentLine=18350087; - //BA.debugLineNum = 18350087;BA.debugLine="L_PICK_CIEGO.Text = Id_prod & CRLF & Prod"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_id_prod+__c.CRLF+_prod)); -RDebugUtils.currentLine=18350088; - //BA.debugLineNum = 18350088;BA.debugLine="L_PICK_CIEGO.TextSize = 12"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12)); -RDebugUtils.currentLine=18350089; - //BA.debugLineNum = 18350089;BA.debugLine="L_PICK_CIEGO.Gravity = Bit.Or(Gravity.CENTER_VERT"; -__ref._l_pick_ciego /*anywheresoftware.b4a.objects.LabelWrapper*/ .setGravity(__c.Bit.Or(__c.Gravity.CENTER_VERTICAL,__c.Gravity.CENTER_HORIZONTAL)); -RDebugUtils.currentLine=18350090; - //BA.debugLineNum = 18350090;BA.debugLine="L_CANT_PCIK.Text = cantreal"; -__ref._l_cant_pcik /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cantreal)); -RDebugUtils.currentLine=18350093; - //BA.debugLineNum = 18350093;BA.debugLine="Return pa"; -if (true) return (anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(_pa.getObject())); -RDebugUtils.currentLine=18350094; - //BA.debugLineNum = 18350094;BA.debugLine="End Sub"; -return null; -} -public String _e_ruta_enterpressed(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "e_ruta_enterpressed", false)) - {return ((String) Debug.delegate(ba, "e_ruta_enterpressed", null));} -RDebugUtils.currentLine=16646144; - //BA.debugLineNum = 16646144;BA.debugLine="Sub e_ruta_EnterPressed"; -RDebugUtils.currentLine=16646145; - //BA.debugLineNum = 16646145;BA.debugLine="If e_ruta.Text = \"FIN DIA\" Then"; -if ((__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("FIN DIA")) { -RDebugUtils.currentLine=16646146; - //BA.debugLineNum = 16646146;BA.debugLine="RES = Msgbox2(\"Seguro que desea hacer el cierre"; -__ref._res /*String*/ = BA.NumberToString(__c.Msgbox2(BA.ObjectToCharSequence("Seguro que desea hacer el cierre todos los datos se borraran?"),BA.ObjectToCharSequence("Cierre"),"Si","","No",(android.graphics.Bitmap)(__c.LoadBitmap(__c.File.getDirAssets(),"alert2.png").getObject()),ba)); -RDebugUtils.currentLine=16646147; - //BA.debugLineNum = 16646147;BA.debugLine="If RES = DialogResponse.POSITIVE Then"; -if ((__ref._res /*String*/ ).equals(BA.NumberToString(__c.DialogResponse.POSITIVE))) { -RDebugUtils.currentLine=16646149; - //BA.debugLineNum = 16646149;BA.debugLine="e_ruta.Text = \"\""; -__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=16646150; - //BA.debugLineNum = 16646150;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PICK_CIE"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PICK_CIEGO"); -RDebugUtils.currentLine=16646151; - //BA.debugLineNum = 16646151;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO_"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO_GEO"); -RDebugUtils.currentLine=16646152; - //BA.debugLineNum = 16646152;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido_c"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido_cliente"); -RDebugUtils.currentLine=16646153; - //BA.debugLineNum = 16646153;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from PAGARES\""; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from PAGARES"); -RDebugUtils.currentLine=16646154; - //BA.debugLineNum = 16646154;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECADO_"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECADO_CHECK"); -RDebugUtils.currentLine=16646155; - //BA.debugLineNum = 16646155;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CHECKLIS"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CHECKLIST2"); -RDebugUtils.currentLine=16646156; - //BA.debugLineNum = 16646156;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from pedido\")"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from pedido"); -RDebugUtils.currentLine=16646157; - //BA.debugLineNum = 16646157;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from noventa\""; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from noventa"); -RDebugUtils.currentLine=16646158; - //BA.debugLineNum = 16646158;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from clie_act"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from clie_act"); -RDebugUtils.currentLine=16646159; - //BA.debugLineNum = 16646159;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from kmt_info"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from kmt_info"); -RDebugUtils.currentLine=16646160; - //BA.debugLineNum = 16646160;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod"); -RDebugUtils.currentLine=16646161; - //BA.debugLineNum = 16646161;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from cat_guna"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from cat_gunaprod3"); -RDebugUtils.currentLine=16646162; - //BA.debugLineNum = 16646162;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CAT_DETA"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CAT_DETALLES_PAQ"); -RDebugUtils.currentLine=16646163; - //BA.debugLineNum = 16646163;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from HIST_VEN"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from HIST_VENTAS"); -RDebugUtils.currentLine=16646164; - //BA.debugLineNum = 16646164;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from REPARTO\""; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from REPARTO"); -RDebugUtils.currentLine=16646165; - //BA.debugLineNum = 16646165;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS"); -RDebugUtils.currentLine=16646166; - //BA.debugLineNum = 16646166;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADO"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES"); -RDebugUtils.currentLine=16646167; - //BA.debugLineNum = 16646167;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA\")"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA"); -RDebugUtils.currentLine=16646168; - //BA.debugLineNum = 16646168;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP\""; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP"); -RDebugUtils.currentLine=16646169; - //BA.debugLineNum = 16646169;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOS\")"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOS"); -RDebugUtils.currentLine=16646170; - //BA.debugLineNum = 16646170;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM BLOCKENV"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM BLOCKENVIO"); -RDebugUtils.currentLine=16646171; - //BA.debugLineNum = 16646171;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }; -RDebugUtils.currentLine=16646174; - //BA.debugLineNum = 16646174;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from waypoints"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from waypoints"); - }; -RDebugUtils.currentLine=16646176; - //BA.debugLineNum = 16646176;BA.debugLine="End Sub"; -return ""; -} -public String _envioinfo(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "envioinfo", false)) - {return ((String) Debug.delegate(ba, "envioinfo", null));} -int _i = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _r = null; -int _rx = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _o = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _pa = null; -int _pag = 0; -String[] _fechaenvio = null; -String[] _fechacap = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _ab = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _ab1 = null; -String[] _fechatabulador = null; -String _fechatabulador3 = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _d4 = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _d5 = null; -String _restacant = ""; -String[] _fecha1 = null; -String _fecha3 = ""; -String _hora = ""; -String _sdate = ""; -String _stime = ""; -RDebugUtils.currentLine=16121856; - //BA.debugLineNum = 16121856;BA.debugLine="Sub envioinfo"; -RDebugUtils.currentLine=16121861; - //BA.debugLineNum = 16121861;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT NV_CLIENTE,NV_"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO, NV_REPROGRAMAR FROM NOVENTA"))); -RDebugUtils.currentLine=16121862; - //BA.debugLineNum = 16121862;BA.debugLine="D=Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS CUAN"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS_NOVENTA FROM NOVENTA"))); -RDebugUtils.currentLine=16121863; - //BA.debugLineNum = 16121863;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16121864; - //BA.debugLineNum = 16121864;BA.debugLine="For i=0 To c.RowCount -1"; -{ -final int step4 = 1; -final int limit4 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit4 ;_i = _i + step4 ) { -RDebugUtils.currentLine=16121865; - //BA.debugLineNum = 16121865;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=16121866; - //BA.debugLineNum = 16121866;BA.debugLine="foto1 = c.GetBlob(\"NV_FOTO\")"; -__ref._foto1 /*byte[]*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetBlob("NV_FOTO"); -RDebugUtils.currentLine=16121867; - //BA.debugLineNum = 16121867;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16121868; - //BA.debugLineNum = 16121868;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16121869; - //BA.debugLineNum = 16121869;BA.debugLine="cmd.Name = \"insert_reparto_REPG_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_reparto_REPG_IZCA"; -RDebugUtils.currentLine=16121870; - //BA.debugLineNum = 16121870;BA.debugLine="cmd.Parameters = Array As Object(C.GetString(\"N"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_USER")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_MOTIVO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_COMM")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_LAT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_LON")),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("NV_REPROGRAMAR"))}; -RDebugUtils.currentLine=16121871; - //BA.debugLineNum = 16121871;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_noventa_"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_noventa_")); - } -}; -RDebugUtils.currentLine=16121873; - //BA.debugLineNum = 16121873;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }; -RDebugUtils.currentLine=16121875; - //BA.debugLineNum = 16121875;BA.debugLine="d.Position=0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16121876; - //BA.debugLineNum = 16121876;BA.debugLine="cuantos_noventa = D.GetString(\"CUANTOS_NOVENTA\")"; -__ref._cuantos_noventa /*String*/ = __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS_NOVENTA"); -RDebugUtils.currentLine=16121877; - //BA.debugLineNum = 16121877;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16121880; - //BA.debugLineNum = 16121880;BA.debugLine="Dim r As Cursor =Starter.skmt.ExecQuery(\"select *"; -_r = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_r = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from noventa where nv_reprogramar = 1"))); -RDebugUtils.currentLine=16121881; - //BA.debugLineNum = 16121881;BA.debugLine="If r.RowCount > 0 Then"; -if (_r.getRowCount()>0) { -RDebugUtils.currentLine=16121882; - //BA.debugLineNum = 16121882;BA.debugLine="For rx = 0 To r.RowCount - 1"; -{ -final int step20 = 1; -final int limit20 = (int) (_r.getRowCount()-1); -_rx = (int) (0) ; -for (;_rx <= limit20 ;_rx = _rx + step20 ) { -RDebugUtils.currentLine=16121883; - //BA.debugLineNum = 16121883;BA.debugLine="r.Position = rx"; -_r.setPosition(_rx); -RDebugUtils.currentLine=16121884; - //BA.debugLineNum = 16121884;BA.debugLine="Dim o As Cursor = Starter.skmt.ExecQuery2(\"sele"; -_o = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_o = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("select HVD_FECHA, CAT_CL_RUTA FROM HIST_VENTAS INNER JOIN kmt_info on HVD_CLIENTE = cat_cl_codigo WHERE HVD_CLIENTE = ?",new String[]{_r.GetString("NV_CLIENTE")}))); -RDebugUtils.currentLine=16121885; - //BA.debugLineNum = 16121885;BA.debugLine="If o.RowCount > 0 Then"; -if (_o.getRowCount()>0) { -RDebugUtils.currentLine=16121886; - //BA.debugLineNum = 16121886;BA.debugLine="o.Position = 0"; -_o.setPosition((int) (0)); -RDebugUtils.currentLine=16121887; - //BA.debugLineNum = 16121887;BA.debugLine="Log(\"Enviamos reprogramados: \" & r.RowCount)"; -__c.LogImpl("216121887","Enviamos reprogramados: "+BA.NumberToString(_r.getRowCount()),0); -RDebugUtils.currentLine=16121889; - //BA.debugLineNum = 16121889;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16121890; - //BA.debugLineNum = 16121890;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16121891; - //BA.debugLineNum = 16121891;BA.debugLine="cmd.Name = \"insert_reparto_reprogramar3_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_reparto_reprogramar3_IZCA"; -RDebugUtils.currentLine=16121892; - //BA.debugLineNum = 16121892;BA.debugLine="cmd.Parameters = Array As Object(r.GetString(\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(_r.GetString("NV_CLIENTE")),(Object)(_r.GetString("NV_REPROGRAMAR")),(Object)(_o.GetString("HVD_FECHA")),(Object)(_o.GetString("CAT_CL_RUTA")),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=16121893; - //BA.debugLineNum = 16121893;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_reprogram"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_reprogramar")); - }; - } -}; - }; -RDebugUtils.currentLine=16121897; - //BA.debugLineNum = 16121897;BA.debugLine="r.Close"; -_r.Close(); -RDebugUtils.currentLine=16121954; - //BA.debugLineNum = 16121954;BA.debugLine="Dim pa As Cursor =Starter.skmt.ExecQuery(\"select"; -_pa = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_pa = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select PA_ALMACEN,PA_RUTA_REP,PA_RUTAPREV,PA_FECHA_PREV,PA_CAPTURA,PA_MONTO,PA_USUARIO,PA_CLIENTE from PAGARES"))); -RDebugUtils.currentLine=16121955; - //BA.debugLineNum = 16121955;BA.debugLine="If pa.RowCount > 0 Then"; -if (_pa.getRowCount()>0) { -RDebugUtils.currentLine=16121956; - //BA.debugLineNum = 16121956;BA.debugLine="For pag = 0 To pa.RowCount - 1"; -{ -final int step37 = 1; -final int limit37 = (int) (_pa.getRowCount()-1); -_pag = (int) (0) ; -for (;_pag <= limit37 ;_pag = _pag + step37 ) { -RDebugUtils.currentLine=16121957; - //BA.debugLineNum = 16121957;BA.debugLine="pa.Position = pag"; -_pa.setPosition(_pag); -RDebugUtils.currentLine=16121958; - //BA.debugLineNum = 16121958;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16121959; - //BA.debugLineNum = 16121959;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16121960; - //BA.debugLineNum = 16121960;BA.debugLine="cmd.Name = \"insert_reparto_PAGARES_IZCA_VN\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_reparto_PAGARES_IZCA_VN"; -RDebugUtils.currentLine=16121961; - //BA.debugLineNum = 16121961;BA.debugLine="Dim fechaenvio() As String"; -_fechaenvio = new String[(int) (0)]; -java.util.Arrays.fill(_fechaenvio,""); -RDebugUtils.currentLine=16121962; - //BA.debugLineNum = 16121962;BA.debugLine="fechaenvio = Regex.Split(\" \",pa.GetString(\"PA_F"; -_fechaenvio = __c.Regex.Split(" ",_pa.GetString("PA_FECHA_PREV")); -RDebugUtils.currentLine=16121969; - //BA.debugLineNum = 16121969;BA.debugLine="Dim fechacap() As String"; -_fechacap = new String[(int) (0)]; -java.util.Arrays.fill(_fechacap,""); -RDebugUtils.currentLine=16121970; - //BA.debugLineNum = 16121970;BA.debugLine="fechacap = Regex.Split(\"/\",pa.GetString(\"PA_CAP"; -_fechacap = __c.Regex.Split("/",_pa.GetString("PA_CAPTURA")); -RDebugUtils.currentLine=16121976; - //BA.debugLineNum = 16121976;BA.debugLine="cmd.Parameters = Array As Object(pa.GetString("; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(_pa.GetString("PA_CLIENTE")),(Object)(_pa.GetString("PA_MONTO")),(Object)(_fechaenvio[(int) (0)]),(Object)(_pa.GetString("PA_ALMACEN")),(Object)(_pa.GetString("PA_RUTAPREV")),(Object)(_pa.GetString("PA_RUTA_REP")),(Object)(_pa.GetString("PA_CAPTURA")),(Object)(_pa.GetString("PA_USUARIO")),(Object)("")}; -RDebugUtils.currentLine=16121978; - //BA.debugLineNum = 16121978;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pagares\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_pagares")); - } -}; - }; -RDebugUtils.currentLine=16121981; - //BA.debugLineNum = 16121981;BA.debugLine="pa.Close"; -_pa.Close(); -RDebugUtils.currentLine=16121984; - //BA.debugLineNum = 16121984;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); -RDebugUtils.currentLine=16121985; - //BA.debugLineNum = 16121985;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16121986; - //BA.debugLineNum = 16121986;BA.debugLine="Dim ab As Cursor = Starter.skmt.ExecQuery($\"SELEC"; -_ab = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_ab = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from ABONOS where a_enviado is null and a_tipoabono IS NULL")))); -RDebugUtils.currentLine=16121987; - //BA.debugLineNum = 16121987;BA.debugLine="Log(ab.RowCount)"; -__c.LogImpl("216121987",BA.NumberToString(_ab.getRowCount()),0); -RDebugUtils.currentLine=16121988; - //BA.debugLineNum = 16121988;BA.debugLine="If ab.RowCount > 0 Then"; -if (_ab.getRowCount()>0) { -RDebugUtils.currentLine=16121989; - //BA.debugLineNum = 16121989;BA.debugLine="For i=0 To ab.RowCount -1"; -{ -final int step56 = 1; -final int limit56 = (int) (_ab.getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit56 ;_i = _i + step56 ) { -RDebugUtils.currentLine=16121990; - //BA.debugLineNum = 16121990;BA.debugLine="ab.Position = i"; -_ab.setPosition(_i); -RDebugUtils.currentLine=16121992; - //BA.debugLineNum = 16121992;BA.debugLine="Dim ab1 As Cursor = Starter.skmt.ExecQuery($\"SE"; -_ab1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_ab1 = (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 a_abono from ABONOS where a_cliente = '"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"' and a_tipoabono IS NULL")))); -RDebugUtils.currentLine=16121993; - //BA.debugLineNum = 16121993;BA.debugLine="ab1.Position = 0"; -_ab1.setPosition((int) (0)); -RDebugUtils.currentLine=16121995; - //BA.debugLineNum = 16121995;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16121996; - //BA.debugLineNum = 16121996;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16121997; - //BA.debugLineNum = 16121997;BA.debugLine="cmd.Name = \"insert_abono_REP_IZCA_VN2\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_abono_REP_IZCA_VN2"; -RDebugUtils.currentLine=16121998; - //BA.debugLineNum = 16121998;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString("; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(_ab.GetString("a_usuario")),(Object)(_ab.GetString("a_ruta")),(Object)(_ab.GetString("a_cliente")),(Object)(_ab.GetString("a_abono")),(Object)(_ab.GetString("a_fecha")),(Object)(__ref._almacen /*String*/ ),(Object)("REPARTO"),(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA")),(Object)(""),(Object)(_ab.GetString("TIPO_PAGO")),(Object)(_ab.GetString("a_ticket")),(Object)(_ab.GetString("a_numpago"))}; -RDebugUtils.currentLine=16121999; - //BA.debugLineNum = 16121999;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""))); -RDebugUtils.currentLine=16122000; - //BA.debugLineNum = 16122000;BA.debugLine="ab1.Close"; -_ab1.Close(); -RDebugUtils.currentLine=16122001; - //BA.debugLineNum = 16122001;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl"; -__c.LogImpl("216122001",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0); - } -}; - }; -RDebugUtils.currentLine=16122004; - //BA.debugLineNum = 16122004;BA.debugLine="ab.Close"; -_ab.Close(); -RDebugUtils.currentLine=16122005; - //BA.debugLineNum = 16122005;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16122009; - //BA.debugLineNum = 16122009;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); -RDebugUtils.currentLine=16122010; - //BA.debugLineNum = 16122010;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16122011; - //BA.debugLineNum = 16122011;BA.debugLine="Dim ab As Cursor = Starter.skmt.ExecQuery($\"SELEC"; -_ab = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_ab = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT * from ABONOS where a_enviado is null and a_tipoabono IS NOT NULL")))); -RDebugUtils.currentLine=16122012; - //BA.debugLineNum = 16122012;BA.debugLine="Log(ab.RowCount)"; -__c.LogImpl("216122012",BA.NumberToString(_ab.getRowCount()),0); -RDebugUtils.currentLine=16122013; - //BA.debugLineNum = 16122013;BA.debugLine="If ab.RowCount > 0 Then"; -if (_ab.getRowCount()>0) { -RDebugUtils.currentLine=16122014; - //BA.debugLineNum = 16122014;BA.debugLine="For i=0 To ab.RowCount -1"; -{ -final int step76 = 1; -final int limit76 = (int) (_ab.getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit76 ;_i = _i + step76 ) { -RDebugUtils.currentLine=16122015; - //BA.debugLineNum = 16122015;BA.debugLine="ab.Position = i"; -_ab.setPosition(_i); -RDebugUtils.currentLine=16122017; - //BA.debugLineNum = 16122017;BA.debugLine="Dim ab1 As Cursor = Starter.skmt.ExecQuery($\"SE"; -_ab1 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_ab1 = (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 a_abono from ABONOS where a_cliente = '"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+"' and a_tipoabono IS NOT NULL")))); -RDebugUtils.currentLine=16122018; - //BA.debugLineNum = 16122018;BA.debugLine="ab1.Position = 0"; -_ab1.setPosition((int) (0)); -RDebugUtils.currentLine=16122020; - //BA.debugLineNum = 16122020;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16122021; - //BA.debugLineNum = 16122021;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16122022; - //BA.debugLineNum = 16122022;BA.debugLine="cmd.Name = \"insert_abono_REP_IZCA_VN2\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_abono_REP_IZCA_VN2"; -RDebugUtils.currentLine=16122023; - //BA.debugLineNum = 16122023;BA.debugLine="cmd.Parameters = Array As Object( ab.GetString("; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(_ab.GetString("a_usuario")),(Object)(_ab.GetString("a_ruta")),(Object)(_ab.GetString("a_cliente")),(Object)(_ab.GetString("a_abono")),(Object)(_ab.GetString("a_fecha")),(Object)(__ref._almacen /*String*/ ),(Object)("REPARTO"),(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA")),(Object)("1"),(Object)(_ab.GetString("TIPO_PAGO")),(Object)(_ab.GetString("a_ticket")),(Object)(_ab.GetString("a_numpago"))}; -RDebugUtils.currentLine=16122024; - //BA.debugLineNum = 16122024;BA.debugLine="reqManager.ExecuteCommand(cmd , $\"ins_abonosPen"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)(("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""))); -RDebugUtils.currentLine=16122025; - //BA.debugLineNum = 16122025;BA.debugLine="ab1.Close"; -_ab1.Close(); -RDebugUtils.currentLine=16122026; - //BA.debugLineNum = 16122026;BA.debugLine="Log($\"ins_abonosPendientes_${ab.GetString(\"a_cl"; -__c.LogImpl("216122026",("ins_abonosPendientes_"+__c.SmartStringFormatter("",(Object)(_ab.GetString("a_cliente")))+""),0); - } -}; - }; -RDebugUtils.currentLine=16122029; - //BA.debugLineNum = 16122029;BA.debugLine="ab.Close"; -_ab.Close(); -RDebugUtils.currentLine=16122030; - //BA.debugLineNum = 16122030;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16122054; - //BA.debugLineNum = 16122054;BA.debugLine="c=Starter.skmt.ExecQuery(\"SELECT PE_TIPO, PE_RUTA"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT PE_TIPO, PE_RUTA, PE_CEDIS, PE_COSTO_TOT, PE_COSTOU, PE_CANT, PE_PRONOMBRE, PE_PROID, PE_CLIENTE, PE_FECHA, PE_USUARIO, PE_CLIENTEOR, PE_CAJAS, PE_BCAJAS, CONSECUTIVO, FECHA_PREV, RUTA_REP, PE_REGALO FROM PEDIDO"))); -RDebugUtils.currentLine=16122055; - //BA.debugLineNum = 16122055;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16122056; - //BA.debugLineNum = 16122056;BA.debugLine="For i=0 To c.RowCount -1"; -{ -final int step93 = 1; -final int limit93 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit93 ;_i = _i + step93 ) { -RDebugUtils.currentLine=16122057; - //BA.debugLineNum = 16122057;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=16122058; - //BA.debugLineNum = 16122058;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16122059; - //BA.debugLineNum = 16122059;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16122060; - //BA.debugLineNum = 16122060;BA.debugLine="cmd.Name = \"insert_pedido_REP_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_pedido_REP_IZCA"; -RDebugUtils.currentLine=16122061; - //BA.debugLineNum = 16122061;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_TIPO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CEDIS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTO_TOT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_COSTOU")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PRONOMBRE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_PROID")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_FECHA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_USUARIO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CLIENTEOR")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_CAJAS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_BCAJAS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("FECHA_PREV")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTA_REP")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PE_REGALO"))}; -RDebugUtils.currentLine=16122062; - //BA.debugLineNum = 16122062;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_pedido_Inm"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_pedido_Inmtex")); - } -}; -RDebugUtils.currentLine=16122064; - //BA.debugLineNum = 16122064;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }; -RDebugUtils.currentLine=16122128; - //BA.debugLineNum = 16122128;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT PC_ID_PROD, PC"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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_ID_PROD, PC_ALMACEN, PC_RUTA, PC_FECHA FROM PICK_CIEGO"))); -RDebugUtils.currentLine=16122129; - //BA.debugLineNum = 16122129;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16122130; - //BA.debugLineNum = 16122130;BA.debugLine="For i = 0 To c.RowCount - 1"; -{ -final int step105 = 1; -final int limit105 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit105 ;_i = _i + step105 ) { -RDebugUtils.currentLine=16122131; - //BA.debugLineNum = 16122131;BA.debugLine="c.Position = i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=16122132; - //BA.debugLineNum = 16122132;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16122133; - //BA.debugLineNum = 16122133;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16122134; - //BA.debugLineNum = 16122134;BA.debugLine="cmd.Name = \"select_HIST_PICKCIEGO_IZCA\" '"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_HIST_PICKCIEGO_IZCA"; -RDebugUtils.currentLine=16122135; - //BA.debugLineNum = 16122135;BA.debugLine="cmd.Parameters = Array As Object(c.GetString(\"P"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)("REPARTO")}; -RDebugUtils.currentLine=16122136; - //BA.debugLineNum = 16122136;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, $\"PICK_C_${c.G"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)(("PICK_C_"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")))+""))); - } -}; - }; -RDebugUtils.currentLine=16122139; - //BA.debugLineNum = 16122139;BA.debugLine="c.close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16122142; - //BA.debugLineNum = 16122142;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT VEINTE, DIEZ,"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS"))); -RDebugUtils.currentLine=16122143; - //BA.debugLineNum = 16122143;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); -RDebugUtils.currentLine=16122144; - //BA.debugLineNum = 16122144;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=16122145; - //BA.debugLineNum = 16122145;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); -RDebugUtils.currentLine=16122146; - //BA.debugLineNum = 16122146;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16122147; - //BA.debugLineNum = 16122147;BA.debugLine="b.Position = 0"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16122148; - //BA.debugLineNum = 16122148;BA.debugLine="f.Position = 0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16122149; - //BA.debugLineNum = 16122149;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16122150; - //BA.debugLineNum = 16122150;BA.debugLine="For i = 0 To c.RowCount - 1"; -{ -final int step123 = 1; -final int limit123 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit123 ;_i = _i + step123 ) { -RDebugUtils.currentLine=16122151; - //BA.debugLineNum = 16122151;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=16122152; - //BA.debugLineNum = 16122152;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16122153; - //BA.debugLineNum = 16122153;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\""; -_fechatabulador = __c.Regex.Split(" ",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA")); -RDebugUtils.currentLine=16122155; - //BA.debugLineNum = 16122155;BA.debugLine="Dim fechatabulador3 As String = fechatabulador("; -_fechatabulador3 = _fechatabulador[(int) (0)]; -RDebugUtils.currentLine=16122156; - //BA.debugLineNum = 16122156;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16122157; - //BA.debugLineNum = 16122157;BA.debugLine="cmd.Name = \"insert_tabulador_monedas_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_tabulador_monedas_IZCA"; -RDebugUtils.currentLine=16122158; - //BA.debugLineNum = 16122158;BA.debugLine="cmd.Parameters = Array As Object(d.GetString(\"R"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA")),(Object)(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("VEINTE")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("DIEZ")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CINCO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("DOS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PESO")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CENTAVO")),(Object)(_fechatabulador3)}; -RDebugUtils.currentLine=16122159; - //BA.debugLineNum = 16122159;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_tabulador_mon")); - } -}; -RDebugUtils.currentLine=16122161; - //BA.debugLineNum = 16122161;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16122162; - //BA.debugLineNum = 16122162;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16122163; - //BA.debugLineNum = 16122163;BA.debugLine="b.Close"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16122164; - //BA.debugLineNum = 16122164;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }; -RDebugUtils.currentLine=16122167; - //BA.debugLineNum = 16122167;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT IFNULL(HVD_REC"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT IFNULL(HVD_RECHAZOCANT,0) AS HVD_RECHAZOCANT, HVD_CLIENTE, HVD_PROID, HVD_FECHA, HVD_CODPROMO, HVD_NUM_TICKET, HVD_CANT, CONSECUTIVO, BCAJAS, CANTC FROM HIST_VENTAS"))); -RDebugUtils.currentLine=16122168; - //BA.debugLineNum = 16122168;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16122169; - //BA.debugLineNum = 16122169;BA.debugLine="For i=0 To c.RowCount -1"; -{ -final int step140 = 1; -final int limit140 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit140 ;_i = _i + step140 ) { -RDebugUtils.currentLine=16122170; - //BA.debugLineNum = 16122170;BA.debugLine="c.Position = i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=16122171; - //BA.debugLineNum = 16122171;BA.debugLine="Log(c.GetString(\"HVD_CLIENTE\"))"; -__c.LogImpl("216122171",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),0); -RDebugUtils.currentLine=16122172; - //BA.debugLineNum = 16122172;BA.debugLine="Private d4 As Cursor = Starter.skmt.ExecQuery($"; -_d4 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_d4 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT CAT_CL_RUTA FROM kmt_info WHERE CAT_CL_CODIGO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"'")))); -RDebugUtils.currentLine=16122173; - //BA.debugLineNum = 16122173;BA.debugLine="d4.Position = 0"; -_d4.setPosition((int) (0)); -RDebugUtils.currentLine=16122174; - //BA.debugLineNum = 16122174;BA.debugLine="Log(d4.GetString(\"CAT_CL_RUTA\"))"; -__c.LogImpl("216122174",_d4.GetString("CAT_CL_RUTA"),0); -RDebugUtils.currentLine=16122175; - //BA.debugLineNum = 16122175;BA.debugLine="Private d5 As Cursor = Starter.skmt.ExecQuery("; -_d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE') ")))); -RDebugUtils.currentLine=16122176; - //BA.debugLineNum = 16122176;BA.debugLine="d5.Position = 0"; -_d5.setPosition((int) (0)); -RDebugUtils.currentLine=16122177; - //BA.debugLineNum = 16122177;BA.debugLine="Private restacant As String = d5.GetString(\"PE_"; -_restacant = _d5.GetString("PE_CANT"); -RDebugUtils.currentLine=16122178; - //BA.debugLineNum = 16122178;BA.debugLine="d5.Close"; -_d5.Close(); -RDebugUtils.currentLine=16122180; - //BA.debugLineNum = 16122180;BA.debugLine="Dim fecha1() As String = Regex.Split(\" \", c.Get"; -_fecha1 = __c.Regex.Split(" ",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA")); -RDebugUtils.currentLine=16122182; - //BA.debugLineNum = 16122182;BA.debugLine="Dim fecha3 As String = fecha1(0)"; -_fecha3 = _fecha1[(int) (0)]; -RDebugUtils.currentLine=16122183; - //BA.debugLineNum = 16122183;BA.debugLine="Log(fecha3)"; -__c.LogImpl("216122183",_fecha3,0); -RDebugUtils.currentLine=16122184; - //BA.debugLineNum = 16122184;BA.debugLine="Dim hora As String = fecha1(1)"; -_hora = _fecha1[(int) (1)]; -RDebugUtils.currentLine=16122187; - //BA.debugLineNum = 16122187;BA.debugLine="Dim sDate, sTime As String"; -_sdate = ""; -_stime = ""; -RDebugUtils.currentLine=16122188; - //BA.debugLineNum = 16122188;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; -__c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=16122189; - //BA.debugLineNum = 16122189;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; -__c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=16122190; - //BA.debugLineNum = 16122190;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; -_sdate = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=16122191; - //BA.debugLineNum = 16122191;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; -_stime = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=16122192; - //BA.debugLineNum = 16122192;BA.debugLine="If c.GetString(\"HVD_RECHAZOCANT\") <> \"0\" Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")).equals("0") == false) { -RDebugUtils.currentLine=16122193; - //BA.debugLineNum = 16122193;BA.debugLine="Log((c.GetString(\"HVD_RECHAZOCANT\")-restacant)"; -__c.LogImpl("216122193",BA.NumberToString(((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))),0); -RDebugUtils.currentLine=16122194; - //BA.debugLineNum = 16122194;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16122195; - //BA.debugLineNum = 16122195;BA.debugLine="cmd.Name = \"update_HVD_izcarep2\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "update_HVD_izcarep2"; -RDebugUtils.currentLine=16122196; - //BA.debugLineNum = 16122196;BA.debugLine="cmd.Parameters = Array As String(c.GetString(\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = (Object[])(new String[]{__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT"),_sdate+" "+_stime,BA.NumberToString(1),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_fecha3+" "+_hora,_d4.GetString("CAT_CL_RUTA"),__ref._almacen /*String*/ ,__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")}); -RDebugUtils.currentLine=16122197; - //BA.debugLineNum = 16122197;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvd\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("update_hvd")); - }else { -RDebugUtils.currentLine=16122199; - //BA.debugLineNum = 16122199;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16122200; - //BA.debugLineNum = 16122200;BA.debugLine="cmd.Name = \"update_HVD_izcarep2\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "update_HVD_izcarep2"; -RDebugUtils.currentLine=16122201; - //BA.debugLineNum = 16122201;BA.debugLine="Log( c.GetString(\"CANTC\")& c.GetString(\"HVD_CL"; -__c.LogImpl("216122201",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANTC")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")+_fecha3+" "+_hora+_d4.GetString("CAT_CL_RUTA")+__ref._almacen /*String*/ +__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET")+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT"),0); -RDebugUtils.currentLine=16122202; - //BA.debugLineNum = 16122202;BA.debugLine="cmd.Parameters = Array As String(\"\",\"\",\"\", c.G"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = (Object[])(new String[]{"","","",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_fecha3+" "+_hora,_d4.GetString("CAT_CL_RUTA"),__ref._almacen /*String*/ ,__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_TICKET"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CANT")}); -RDebugUtils.currentLine=16122203; - //BA.debugLineNum = 16122203;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_hvd\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("update_hvd")); - }; -RDebugUtils.currentLine=16122205; - //BA.debugLineNum = 16122205;BA.debugLine="d4.Close"; -_d4.Close(); - } -}; - }; -RDebugUtils.currentLine=16122208; - //BA.debugLineNum = 16122208;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16122211; - //BA.debugLineNum = 16122211;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT MIL, QUINIENTO"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES"))); -RDebugUtils.currentLine=16122212; - //BA.debugLineNum = 16122212;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT RUTAA FROM RUT"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT RUTAA FROM RUTAA"))); -RDebugUtils.currentLine=16122213; - //BA.debugLineNum = 16122213;BA.debugLine="b = Starter.skmt.ExecQuery(\"SELECT ID_ALMACEN FRO"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=16122214; - //BA.debugLineNum = 16122214;BA.debugLine="f = Starter.skmt.ExecQuery(\"SELECT HVD_FECHA FROM"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT HVD_FECHA FROM HIST_VENTAS"))); -RDebugUtils.currentLine=16122215; - //BA.debugLineNum = 16122215;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16122216; - //BA.debugLineNum = 16122216;BA.debugLine="b.Position = 0"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16122217; - //BA.debugLineNum = 16122217;BA.debugLine="f.Position = 0"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16122218; - //BA.debugLineNum = 16122218;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16122219; - //BA.debugLineNum = 16122219;BA.debugLine="For i = 0 To c.RowCount - 1"; -{ -final int step184 = 1; -final int limit184 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); -_i = (int) (0) ; -for (;_i <= limit184 ;_i = _i + step184 ) { -RDebugUtils.currentLine=16122220; - //BA.debugLineNum = 16122220;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=16122221; - //BA.debugLineNum = 16122221;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16122226; - //BA.debugLineNum = 16122226;BA.debugLine="Dim fechatabulador() As String = Regex.Split(\""; -_fechatabulador = __c.Regex.Split(" ",__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_FECHA")); -RDebugUtils.currentLine=16122228; - //BA.debugLineNum = 16122228;BA.debugLine="Dim fechatabulador3 As String = fechatabulador("; -_fechatabulador3 = _fechatabulador[(int) (0)]; -RDebugUtils.currentLine=16122230; - //BA.debugLineNum = 16122230;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16122231; - //BA.debugLineNum = 16122231;BA.debugLine="cmd.Name = \"insert_tabulador_billetes_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_tabulador_billetes_IZCA"; -RDebugUtils.currentLine=16122232; - //BA.debugLineNum = 16122232;BA.debugLine="cmd.Parameters = Array As Object(b.GetString(\"I"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("ID_ALMACEN")),(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("RUTAA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MIL")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("QUINIENTOS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("DOCIENTOS")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CIEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CINCUENTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("VEINTE")),(Object)(_fechatabulador3)}; -RDebugUtils.currentLine=16122233; - //BA.debugLineNum = 16122233;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_tabulador_"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_tabulador_bill")); - } -}; -RDebugUtils.currentLine=16122235; - //BA.debugLineNum = 16122235;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16122236; - //BA.debugLineNum = 16122236;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16122237; - //BA.debugLineNum = 16122237;BA.debugLine="b.Close"; -__ref._b /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=16122238; - //BA.debugLineNum = 16122238;BA.debugLine="f.Close"; -__ref._f /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }; -RDebugUtils.currentLine=16122242; - //BA.debugLineNum = 16122242;BA.debugLine="imp_LIQUIDACION"; -__ref._imp_liquidacion /*void*/ (null); -RDebugUtils.currentLine=16122244; - //BA.debugLineNum = 16122244;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16122245; - //BA.debugLineNum = 16122245;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16122246; - //BA.debugLineNum = 16122246;BA.debugLine="cmd.Name = \"insert_drop_rep_IZCA2\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_drop_rep_IZCA2"; -RDebugUtils.currentLine=16122247; - //BA.debugLineNum = 16122247;BA.debugLine="cmd.Parameters = Array As Object(Subs.dameUsuario"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(_subs._dameusuariodedb /*String*/ (ba)),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),(Object)(_subs._traeentregados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)(_subs._traerechazados /*anywheresoftware.b4a.objects.collections.Map*/ (ba).getObject()),(Object)("ENVIO"),(Object)(__c.Application.getVersionName())}; -RDebugUtils.currentLine=16122248; - //BA.debugLineNum = 16122248;BA.debugLine="reqManager.ExecuteCommand(cmd , \"inst_drop\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("inst_drop")); -RDebugUtils.currentLine=16122249; - //BA.debugLineNum = 16122249;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este"; -__c.ToastMessageShow(BA.ObjectToCharSequence("Se Actualizaran los datos, Este proceso podria tardar hasta un minuto, gracias "+__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()),__c.True); -RDebugUtils.currentLine=16122250; - //BA.debugLineNum = 16122250;BA.debugLine="End Sub"; -return ""; -} -public String _inv_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "inv_click", false)) - {return ((String) Debug.delegate(ba, "inv_click", null));} -RDebugUtils.currentLine=16711680; - //BA.debugLineNum = 16711680;BA.debugLine="Sub inv_Click"; -RDebugUtils.currentLine=16711681; - //BA.debugLineNum = 16711681;BA.debugLine="ToastMessageShow(\"Se Actualizaran los datos, Este"; +public String _inv_click() throws Exception{ + //BA.debugLineNum = 2661;BA.debugLine="Sub inv_Click"; + //BA.debugLineNum = 2662;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); -RDebugUtils.currentLine=16711682; - //BA.debugLineNum = 16711682;BA.debugLine="End Sub"; + //BA.debugLineNum = 2663;BA.debugLine="End Sub"; return ""; } -public String _jobdone(reparto_izca.keymon.lat.c_principal __ref,reparto_izca.keymon.lat.httpjob _job) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "jobdone", false)) - {return ((String) Debug.delegate(ba, "jobdone", new Object[] {_job}));} +public boolean _isconnectedtointernet() throws Exception{ +anywheresoftware.b4a.agraham.reflection.Reflection _r = null; + //BA.debugLineNum = 812;BA.debugLine="Sub IsConnectedToInternet As Boolean 'ignore"; + //BA.debugLineNum = 813;BA.debugLine="Dim r As Reflector"; +_r = new anywheresoftware.b4a.agraham.reflection.Reflection(); + //BA.debugLineNum = 814;BA.debugLine="r.Target = r.GetContext"; +_r.Target = (Object)(_r.GetContext(ba)); + //BA.debugLineNum = 815;BA.debugLine="r.Target = r.RunMethod2(\"getSystemService\", \"conn"; +_r.Target = _r.RunMethod2("getSystemService","connectivity","java.lang.String"); + //BA.debugLineNum = 816;BA.debugLine="r.Target = r.RunMethod(\"getActiveNetworkInfo\")"; +_r.Target = _r.RunMethod("getActiveNetworkInfo"); + //BA.debugLineNum = 817;BA.debugLine="If r.Target <> Null Then"; +if (_r.Target!= null) { + //BA.debugLineNum = 818;BA.debugLine="Return r.RunMethod(\"isConnectedOrConnecting\")"; +if (true) return BA.ObjectToBoolean(_r.RunMethod("isConnectedOrConnecting")); + }; + //BA.debugLineNum = 820;BA.debugLine="Return False"; +if (true) return __c.False; + //BA.debugLineNum = 821;BA.debugLine="End Sub"; +return false; +} +public String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{ reparto_izca.keymon.lat.dbrequestmanager._dbresult _result = null; Object[] _records = null; String _cat_cl_codigo = ""; @@ -7284,6 +5391,7 @@ String _hvd_num_ticket = ""; String _hvd_num_registro = ""; String _hvd_rechazo = ""; String _hvd_bcredito = ""; +String _hvd_usuario = ""; String _bcajas = ""; String _cantc = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _tc = null; @@ -7303,39 +5411,28 @@ String _k = ""; int _i = 0; anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; String _resta = ""; -RDebugUtils.currentLine=16318464; - //BA.debugLineNum = 16318464;BA.debugLine="Sub JobDone(Job As HttpJob)"; -RDebugUtils.currentLine=16318466; - //BA.debugLineNum = 16318466;BA.debugLine="If Job.Success = False Then"; + //BA.debugLineNum = 1824;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 1826;BA.debugLine="If Job.Success = False Then"; if (_job._success /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=16318467; - //BA.debugLineNum = 16318467;BA.debugLine="LogColor(\"** \" & Job.Tag & \" Error: \" & Job.Erro"; -__c.LogImpl("216318467","** "+BA.ObjectToString(_job._tag /*Object*/ )+" Error: "+_job._errormessage /*String*/ ,__c.Colors.Red); + //BA.debugLineNum = 1827;BA.debugLine="LogColor(\"** \" & Job.Tag & \" Error: \" & Job.Erro"; +__c.LogImpl("015204355","** "+BA.ObjectToString(_job._tag /*Object*/ )+" Error: "+_job._errormessage /*String*/ ,__c.Colors.Red); }else { -RDebugUtils.currentLine=16318470; - //BA.debugLineNum = 16318470;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job"; -__c.LogImpl("216318470","JobDone: '"+BA.ObjectToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); -RDebugUtils.currentLine=16318471; - //BA.debugLineNum = 16318471;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 1830;BA.debugLine="LogColor(\"JobDone: '\" & reqManager.HandleJob(Job"; +__c.LogImpl("015204358","JobDone: '"+BA.ObjectToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Tag /*Object*/ )+"' - Registros: "+BA.NumberToString(_reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job).Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),__c.Colors.Green); + //BA.debugLineNum = 1831;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318472; - //BA.debugLineNum = 16318472;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318473; - //BA.debugLineNum = 16318473;BA.debugLine="If result.Tag = \"kmt_datos\" Then 'query tag"; + //BA.debugLineNum = 1832;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1833;BA.debugLine="If result.Tag = \"kmt_datos\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("kmt_datos"))) { -RDebugUtils.currentLine=16318474; - //BA.debugLineNum = 16318474;BA.debugLine="If reqs.IndexOf(\"kmt_datos\") > -1 Then"; -if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("kmt_datos"))>-1) { -RDebugUtils.currentLine=16318475; - //BA.debugLineNum = 16318475;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"kmt_datos\"))"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("kmt_datos"))); + //BA.debugLineNum = 1834;BA.debugLine="If reqs.IndexOf(\"kmt_datos\") > -1 Then"; +if (_reqs.IndexOf((Object)("kmt_datos"))>-1) { + //BA.debugLineNum = 1835;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"kmt_datos\"))"; +_reqs.RemoveAt(_reqs.IndexOf((Object)("kmt_datos"))); }; -RDebugUtils.currentLine=16318478; - //BA.debugLineNum = 16318478;BA.debugLine="Starter.skmt.BeginTransaction"; + //BA.debugLineNum = 1838;BA.debugLine="Starter.skmt.BeginTransaction"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction(); -RDebugUtils.currentLine=16318480; - //BA.debugLineNum = 16318480;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 1840;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group12 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen12 = group12.getSize() @@ -7343,121 +5440,84 @@ final int groupLen12 = group12.getSize() ; for (; index12 < groupLen12;index12++){ _records = (Object[])(group12.Get(index12)); -RDebugUtils.currentLine=16318481; - //BA.debugLineNum = 16318481;BA.debugLine="Dim CAT_CL_CODIGO As String = records(result."; + //BA.debugLineNum = 1841;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"))))]); -RDebugUtils.currentLine=16318482; - //BA.debugLineNum = 16318482;BA.debugLine="Dim CAT_CL_RUTA As String = records(result.Co"; + //BA.debugLineNum = 1842;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"))))]); -RDebugUtils.currentLine=16318483; - //BA.debugLineNum = 16318483;BA.debugLine="Dim CAT_CL_NOMBRE As String = records(result."; + //BA.debugLineNum = 1843;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"))))]); -RDebugUtils.currentLine=16318484; - //BA.debugLineNum = 16318484;BA.debugLine="Dim CAT_CL_ATIENDE1 As String = records(resul"; + //BA.debugLineNum = 1844;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"))))]); -RDebugUtils.currentLine=16318485; - //BA.debugLineNum = 16318485;BA.debugLine="Dim CAT_CL_ATIENTE2 As String = records(resul"; + //BA.debugLineNum = 1845;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"))))]); -RDebugUtils.currentLine=16318486; - //BA.debugLineNum = 16318486;BA.debugLine="Dim CAT_CL_TELEFONO As String = records(resul"; + //BA.debugLineNum = 1846;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"))))]); -RDebugUtils.currentLine=16318487; - //BA.debugLineNum = 16318487;BA.debugLine="Dim CAT_CL_EMAIL As String = records(result.C"; + //BA.debugLineNum = 1847;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"))))]); -RDebugUtils.currentLine=16318488; - //BA.debugLineNum = 16318488;BA.debugLine="Dim CAT_CL_CALLE As String = records(result.C"; + //BA.debugLineNum = 1848;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"))))]); -RDebugUtils.currentLine=16318489; - //BA.debugLineNum = 16318489;BA.debugLine="Dim CAT_CL_NOEXT As String = records(result.C"; + //BA.debugLineNum = 1849;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"))))]); -RDebugUtils.currentLine=16318490; - //BA.debugLineNum = 16318490;BA.debugLine="Dim CAT_CL_NOINT As String = records(result.C"; + //BA.debugLineNum = 1850;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"))))]); -RDebugUtils.currentLine=16318491; - //BA.debugLineNum = 16318491;BA.debugLine="Dim CAT_CL_CALLE1 As String = records(result."; + //BA.debugLineNum = 1851;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"))))]); -RDebugUtils.currentLine=16318492; - //BA.debugLineNum = 16318492;BA.debugLine="Dim CAT_CL_CALLE2 As String = records(result."; + //BA.debugLineNum = 1852;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"))))]); -RDebugUtils.currentLine=16318493; - //BA.debugLineNum = 16318493;BA.debugLine="Dim CAT_CL_COLONIA As String = records(result"; + //BA.debugLineNum = 1853;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"))))]); -RDebugUtils.currentLine=16318494; - //BA.debugLineNum = 16318494;BA.debugLine="Dim CAT_CL_MUNI As String = records(result.Co"; + //BA.debugLineNum = 1854;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"))))]); -RDebugUtils.currentLine=16318495; - //BA.debugLineNum = 16318495;BA.debugLine="Dim CAT_CL_EDO As String = records(result.Col"; + //BA.debugLineNum = 1855;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"))))]); -RDebugUtils.currentLine=16318496; - //BA.debugLineNum = 16318496;BA.debugLine="Dim CAT_CL_CP As String = records(result.Colu"; + //BA.debugLineNum = 1856;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"))))]); -RDebugUtils.currentLine=16318497; - //BA.debugLineNum = 16318497;BA.debugLine="Dim CAT_CL_LONG As String = records(result.Co"; + //BA.debugLineNum = 1857;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"))))]); -RDebugUtils.currentLine=16318498; - //BA.debugLineNum = 16318498;BA.debugLine="Dim CAT_CL_LAT As String = records(result.Col"; + //BA.debugLineNum = 1858;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"))))]); -RDebugUtils.currentLine=16318499; - //BA.debugLineNum = 16318499;BA.debugLine="Dim CAT_CL_BCREDITO As String = records(resul"; + //BA.debugLineNum = 1859;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"))))]); -RDebugUtils.currentLine=16318502; - //BA.debugLineNum = 16318502;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_i"; + //BA.debugLineNum = 1862;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_i"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_cl_codigo),(Object)(_cat_cl_ruta),(Object)(_cat_cl_nombre),(Object)(_cat_cl_atiende1),(Object)(_cat_cl_atiente2),(Object)(_cat_cl_telefono),(Object)(_cat_cl_email),(Object)(_cat_cl_calle),(Object)(_cat_cl_noext),(Object)(_cat_cl_noint),(Object)(_cat_cl_calle1),(Object)(_cat_cl_calle2),(Object)(_cat_cl_colonia),(Object)(_cat_cl_muni),(Object)(_cat_cl_edo),(Object)(_cat_cl_cp),(Object)(_cat_cl_long),(Object)(_cat_cl_lat),(Object)(_cat_cl_bcredito)})); } }; -RDebugUtils.currentLine=16318504; - //BA.debugLineNum = 16318504;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in"; + //BA.debugLineNum = 1864;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion,SECUENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(63403),(Object)(1000),(Object)("PRODUCTO DAƑADO"),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("-98.8357694"),(Object)("19.6906052"),(Object)("0"),(Object)("1")})); -RDebugUtils.currentLine=16318505; - //BA.debugLineNum = 16318505;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in"; + //BA.debugLineNum = 1865;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO kmt_in"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO kmt_info(CAT_CL_CODIGO,CAT_CL_RUTA,CAT_CL_NOMBRE,CAT_CL_ATIENDE1,CAT_CL_ATIENTE2,CAT_CL_TELEFONO,CAT_CL_EMAIL,CAT_CL_CALLE,CAT_CL_NOEXT,CAT_CL_NOINT,CAT_CL_CALLE1,CAT_CL_CALLE2,CAT_CL_COLONIA,CAT_CL_MUNI,CAT_CL_EDO,CAT_CL_CP,CAT_CL_LONG,CAT_CL_LAT,CAT_CL_BCREDITO, gestion,SECUENCIA) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,0,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(100000),(Object)(1000),(Object)("CLIENTE COMODIN"),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)(""),(Object)("-98.8357694"),(Object)("19.6906052"),(Object)("0"),(Object)("1")})); -RDebugUtils.currentLine=16318507; - //BA.debugLineNum = 16318507;BA.debugLine="Starter.skmt.TransactionSuccessful"; + //BA.debugLineNum = 1867;BA.debugLine="Starter.skmt.TransactionSuccessful"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful(); -RDebugUtils.currentLine=16318508; - //BA.debugLineNum = 16318508;BA.debugLine="Starter.skmt.EndTransaction"; + //BA.debugLineNum = 1868;BA.debugLine="Starter.skmt.EndTransaction"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction(); -RDebugUtils.currentLine=16318509; - //BA.debugLineNum = 16318509;BA.debugLine="Listo1 = 1"; -__ref._listo1 /*String*/ = BA.NumberToString(1); -RDebugUtils.currentLine=16318510; - //BA.debugLineNum = 16318510;BA.debugLine="If Listo1 = 1 And Listo3 = 1 Then"; -if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=16318511; - //BA.debugLineNum = 16318511;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; + //BA.debugLineNum = 1869;BA.debugLine="Listo1 = 1"; +_listo1 = BA.NumberToString(1); + //BA.debugLineNum = 1870;BA.debugLine="If Listo1 = 1 And Listo3 = 1 Then"; +if ((_listo1).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 1871;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; __c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True); -RDebugUtils.currentLine=16318512; - //BA.debugLineNum = 16318512;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=16318513; - //BA.debugLineNum = 16318513;BA.debugLine="img2.Visible = False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16318514; - //BA.debugLineNum = 16318514;BA.debugLine="EJECUTANDO=0"; -__ref._ejecutando /*String*/ = BA.NumberToString(0); + //BA.debugLineNum = 1872;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 1873;BA.debugLine="img2.Visible = False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 1874;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); }; -RDebugUtils.currentLine=16318518; - //BA.debugLineNum = 16318518;BA.debugLine="t8.Initialize(\"t8\", 20000) ' 1000 = 1 second"; -__ref._t8 /*anywheresoftware.b4a.objects.Timer*/ .Initialize(ba,"t8",(long) (20000)); -RDebugUtils.currentLine=16318519; - //BA.debugLineNum = 16318519;BA.debugLine="t8.Enabled = True"; -__ref._t8 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.True); + //BA.debugLineNum = 1878;BA.debugLine="t8.Initialize(\"t8\", 20000) ' 1000 = 1 second"; +_t8.Initialize(ba,"t8",(long) (20000)); + //BA.debugLineNum = 1879;BA.debugLine="t8.Enabled = True"; +_t8.setEnabled(__c.True); }; }; -RDebugUtils.currentLine=16318524; - //BA.debugLineNum = 16318524;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 1884;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318525; - //BA.debugLineNum = 16318525;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318526; - //BA.debugLineNum = 16318526;BA.debugLine="If result.Tag = \"select_abonosp\" Then 'query ta"; + //BA.debugLineNum = 1885;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1886;BA.debugLine="If result.Tag = \"select_abonosp\" Then 'query ta"; if ((_result.Tag /*Object*/ ).equals((Object)("select_abonosp"))) { -RDebugUtils.currentLine=16318527; - //BA.debugLineNum = 16318527;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP"; + //BA.debugLineNum = 1887;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM ABONOSP"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM ABONOSP"); -RDebugUtils.currentLine=16318528; - //BA.debugLineNum = 16318528;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 1888;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group53 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen53 = group53.getSize() @@ -7465,33 +5525,25 @@ final int groupLen53 = group53.getSize() ; for (; index53 < groupLen53;index53++){ _records = (Object[])(group53.Get(index53)); -RDebugUtils.currentLine=16318529; - //BA.debugLineNum = 16318529;BA.debugLine="Dim NOTA As String = records(result.Columns.G"; + //BA.debugLineNum = 1889;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"))))]); -RDebugUtils.currentLine=16318530; - //BA.debugLineNum = 16318530;BA.debugLine="Dim CLIENTE As String = records(result.Column"; + //BA.debugLineNum = 1890;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"))))]); -RDebugUtils.currentLine=16318531; - //BA.debugLineNum = 16318531;BA.debugLine="Dim SALDO_PENDIENTE As String = records(resul"; + //BA.debugLineNum = 1891;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"))))]); -RDebugUtils.currentLine=16318533; - //BA.debugLineNum = 16318533;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO ABONO"; + //BA.debugLineNum = 1893;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO ABONO"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO ABONOSP(NOTA,CLIENTE,SALDO_PENDIENTE) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_nota),(Object)(_cliente),(Object)(_saldo_pendiente)})); } }; }; }; -RDebugUtils.currentLine=16318538; - //BA.debugLineNum = 16318538;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 1898;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318539; - //BA.debugLineNum = 16318539;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318540; - //BA.debugLineNum = 16318540;BA.debugLine="If result.Tag = \"CONTEO_DATOS\" Then 'query tag"; + //BA.debugLineNum = 1899;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1900;BA.debugLine="If result.Tag = \"CONTEO_DATOS\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("CONTEO_DATOS"))) { -RDebugUtils.currentLine=16318541; - //BA.debugLineNum = 16318541;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 1901;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() @@ -7499,87 +5551,63 @@ final int groupLen64 = group64.getSize() ; for (; index64 < groupLen64;index64++){ _records = (Object[])(group64.Get(index64)); -RDebugUtils.currentLine=16318542; - //BA.debugLineNum = 16318542;BA.debugLine="Dim DETALLE As String = records(result.Column"; + //BA.debugLineNum = 1902;BA.debugLine="Dim DETALLE As String = records(result.Column"; _detalle = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("DETALE"))))]); -RDebugUtils.currentLine=16318543; - //BA.debugLineNum = 16318543;BA.debugLine="Dim CONTEO_CAT As String = records(result.Col"; + //BA.debugLineNum = 1903;BA.debugLine="Dim CONTEO_CAT As String = records(result.Col"; _conteo_cat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CONTEO_CAT"))))]); } }; -RDebugUtils.currentLine=16318548; - //BA.debugLineNum = 16318548;BA.debugLine="Dim clientes As Cursor = Starter.skmt.ExecQuer"; + //BA.debugLineNum = 1908;BA.debugLine="Dim clientes As Cursor = Starter.skmt.ExecQuer"; _clientes = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _clientes = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as clientes from kmt_info WHERE CAT_CL_CODIGO NOT IN ('63403','100000') "))); -RDebugUtils.currentLine=16318549; - //BA.debugLineNum = 16318549;BA.debugLine="clientes.Position = 0"; + //BA.debugLineNum = 1909;BA.debugLine="clientes.Position = 0"; _clientes.setPosition((int) (0)); -RDebugUtils.currentLine=16318551; - //BA.debugLineNum = 16318551;BA.debugLine="Dim detalleventa As Cursor = Starter.skmt.Exec"; + //BA.debugLineNum = 1911;BA.debugLine="Dim detalleventa As Cursor = Starter.skmt.Exec"; _detalleventa = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _detalleventa = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as detalle from hist_ventas "))); -RDebugUtils.currentLine=16318552; - //BA.debugLineNum = 16318552;BA.debugLine="detalleventa.Position = 0"; + //BA.debugLineNum = 1912;BA.debugLine="detalleventa.Position = 0"; _detalleventa.setPosition((int) (0)); -RDebugUtils.currentLine=16318554; - //BA.debugLineNum = 16318554;BA.debugLine="Log(CONTEO_CAT)"; -__c.LogImpl("216318554",_conteo_cat,0); -RDebugUtils.currentLine=16318555; - //BA.debugLineNum = 16318555;BA.debugLine="Log(clientes.GetString(\"clientes\"))"; -__c.LogImpl("216318555",_clientes.GetString("clientes"),0); -RDebugUtils.currentLine=16318556; - //BA.debugLineNum = 16318556;BA.debugLine="If clientes.GetString(\"clientes\") = CONTEO_CAT"; + //BA.debugLineNum = 1914;BA.debugLine="Log(CONTEO_CAT)"; +__c.LogImpl("015204442",_conteo_cat,0); + //BA.debugLineNum = 1915;BA.debugLine="Log(clientes.GetString(\"clientes\"))"; +__c.LogImpl("015204443",_clientes.GetString("clientes"),0); + //BA.debugLineNum = 1916;BA.debugLine="If clientes.GetString(\"clientes\") = CONTEO_CAT"; if ((_clientes.GetString("clientes")).equals(_conteo_cat)) { -RDebugUtils.currentLine=16318557; - //BA.debugLineNum = 16318557;BA.debugLine="PB_carga2.Progress = 100"; -__ref._pb_carga2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100)); -RDebugUtils.currentLine=16318558; - //BA.debugLineNum = 16318558;BA.debugLine="l_carga2.Text = \"LISTO\""; -__ref._l_carga2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO")); + //BA.debugLineNum = 1917;BA.debugLine="PB_carga2.Progress = 100"; +_pb_carga2.setProgress((int) (100)); + //BA.debugLineNum = 1918;BA.debugLine="l_carga2.Text = \"LISTO\""; +_l_carga2.setText(BA.ObjectToCharSequence("LISTO")); }else { }; -RDebugUtils.currentLine=16318563; - //BA.debugLineNum = 16318563;BA.debugLine="Log(DETALLE)"; -__c.LogImpl("216318563",_detalle,0); -RDebugUtils.currentLine=16318564; - //BA.debugLineNum = 16318564;BA.debugLine="Log(detalleventa.GetString(\"detalle\"))"; -__c.LogImpl("216318564",_detalleventa.GetString("detalle"),0); -RDebugUtils.currentLine=16318565; - //BA.debugLineNum = 16318565;BA.debugLine="If detalleventa.GetString(\"detalle\") = DETALLE"; + //BA.debugLineNum = 1923;BA.debugLine="Log(DETALLE)"; +__c.LogImpl("015204451",_detalle,0); + //BA.debugLineNum = 1924;BA.debugLine="Log(detalleventa.GetString(\"detalle\"))"; +__c.LogImpl("015204452",_detalleventa.GetString("detalle"),0); + //BA.debugLineNum = 1925;BA.debugLine="If detalleventa.GetString(\"detalle\") = DETALLE"; if ((_detalleventa.GetString("detalle")).equals(_detalle)) { -RDebugUtils.currentLine=16318566; - //BA.debugLineNum = 16318566;BA.debugLine="PB_carga.Progress = 100"; -__ref._pb_carga /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (100)); -RDebugUtils.currentLine=16318567; - //BA.debugLineNum = 16318567;BA.debugLine="L_carga.Text = \"LISTO\""; -__ref._l_carga /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("LISTO")); + //BA.debugLineNum = 1926;BA.debugLine="PB_carga.Progress = 100"; +_pb_carga.setProgress((int) (100)); + //BA.debugLineNum = 1927;BA.debugLine="L_carga.Text = \"LISTO\""; +_l_carga.setText(BA.ObjectToCharSequence("LISTO")); }else { }; -RDebugUtils.currentLine=16318572; - //BA.debugLineNum = 16318572;BA.debugLine="clientes.Close"; + //BA.debugLineNum = 1932;BA.debugLine="clientes.Close"; _clientes.Close(); -RDebugUtils.currentLine=16318573; - //BA.debugLineNum = 16318573;BA.debugLine="detalleventa.Close"; + //BA.debugLineNum = 1933;BA.debugLine="detalleventa.Close"; _detalleventa.Close(); }; }; -RDebugUtils.currentLine=16318578; - //BA.debugLineNum = 16318578;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 1938;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318579; - //BA.debugLineNum = 16318579;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318580; - //BA.debugLineNum = 16318580;BA.debugLine="If result.Tag.As(String).IndexOf(\"PICK_C_\") > -"; + //BA.debugLineNum = 1939;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1940;BA.debugLine="If result.Tag.As(String).IndexOf(\"PICK_C_\") > -"; if ((BA.ObjectToString(_result.Tag /*Object*/ )).indexOf("PICK_C_")>-1) { -RDebugUtils.currentLine=16318582; - //BA.debugLineNum = 16318582;BA.debugLine="Private id As String= result.Tag"; + //BA.debugLineNum = 1942;BA.debugLine="Private id As String= result.Tag"; _id = BA.ObjectToString(_result.Tag /*Object*/ ); -RDebugUtils.currentLine=16318583; - //BA.debugLineNum = 16318583;BA.debugLine="id = id.SubString(id.IndexOf(\"_\")+3)"; + //BA.debugLineNum = 1943;BA.debugLine="id = id.SubString(id.IndexOf(\"_\")+3)"; _id = _id.substring((int) (_id.indexOf("_")+3)); -RDebugUtils.currentLine=16318584; - //BA.debugLineNum = 16318584;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 1944;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group95 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen95 = group95.getSize() @@ -7587,111 +5615,76 @@ final int groupLen95 = group95.getSize() ; for (; index95 < groupLen95;index95++){ _records = (Object[])(group95.Get(index95)); -RDebugUtils.currentLine=16318585; - //BA.debugLineNum = 16318585;BA.debugLine="Dim CUENTA As String = records(result.Columns"; + //BA.debugLineNum = 1945;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"))))]); -RDebugUtils.currentLine=16318586; - //BA.debugLineNum = 16318586;BA.debugLine="Log(CUENTA)"; -__c.LogImpl("216318586",_cuenta,0); -RDebugUtils.currentLine=16318587; - //BA.debugLineNum = 16318587;BA.debugLine="Log(id)"; -__c.LogImpl("216318587",_id,0); -RDebugUtils.currentLine=16318588; - //BA.debugLineNum = 16318588;BA.debugLine="If CUENTA = 0 Then"; + //BA.debugLineNum = 1946;BA.debugLine="Log(CUENTA)"; +__c.LogImpl("015204474",_cuenta,0); + //BA.debugLineNum = 1947;BA.debugLine="Log(id)"; +__c.LogImpl("015204475",_id,0); + //BA.debugLineNum = 1948;BA.debugLine="If CUENTA = 0 Then"; if ((_cuenta).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=16318589; - //BA.debugLineNum = 16318589;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM P"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD = ?",new String[]{_id}))); -RDebugUtils.currentLine=16318590; - //BA.debugLineNum = 16318590;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16318592; - //BA.debugLineNum = 16318592;BA.debugLine="c.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16318593; - //BA.debugLineNum = 16318593;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 1949;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD = ?",new String[]{_id}))); + //BA.debugLineNum = 1950;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1952;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1953;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16318594; - //BA.debugLineNum = 16318594;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16318595; - //BA.debugLineNum = 16318595;BA.debugLine="cmd.Name = \"insert_PICKCIEGO_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "insert_PICKCIEGO_IZCA"; -RDebugUtils.currentLine=16318596; - //BA.debugLineNum = 16318596;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_NOM_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)("REPARTO")}; -RDebugUtils.currentLine=16318597; - //BA.debugLineNum = 16318597;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_PC\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("ins_PC")); + //BA.debugLineNum = 1954;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1955;BA.debugLine="cmd.Name = \"insert_PICKCIEGO_IZCA\""; +_cmd.Name /*String*/ = "insert_PICKCIEGO_IZCA"; + //BA.debugLineNum = 1956;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PC_ID_PROD")),(Object)(_c.GetString("PC_NOM_PROD")),(Object)(_c.GetString("PC_CANT")),(Object)(_c.GetString("PC_ALMACEN")),(Object)(_c.GetString("PC_RUTA")),(Object)(_c.GetString("PC_FECHA")),(Object)("REPARTO")}; + //BA.debugLineNum = 1957;BA.debugLine="reqManager.ExecuteCommand(cmd , \"ins_PC\")"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("ins_PC")); }; -RDebugUtils.currentLine=16318600; - //BA.debugLineNum = 16318600;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }else -{RDebugUtils.currentLine=16318601; - //BA.debugLineNum = 16318601;BA.debugLine="Else if CUENTA > 0 Then"; -if ((double)(Double.parseDouble(_cuenta))>0) { -RDebugUtils.currentLine=16318602; - //BA.debugLineNum = 16318602;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM P"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD= ?",new String[]{_id}))); -RDebugUtils.currentLine=16318603; - //BA.debugLineNum = 16318603;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16318605; - //BA.debugLineNum = 16318605;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16318606; - //BA.debugLineNum = 16318606;BA.debugLine="Dim cmd As DBCommand"; + //BA.debugLineNum = 1960;BA.debugLine="c.Close"; +_c.Close(); + }else if((double)(Double.parseDouble(_cuenta))>0) { + //BA.debugLineNum = 1962;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM P"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PICK_CIEGO WHERE PC_ID_PROD= ?",new String[]{_id}))); + //BA.debugLineNum = 1963;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 1965;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1966;BA.debugLine="Dim cmd As DBCommand"; _cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=16318607; - //BA.debugLineNum = 16318607;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16318608; - //BA.debugLineNum = 16318608;BA.debugLine="cmd.Name = \"update_PICKCIEGO_IZCA\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "update_PICKCIEGO_IZCA"; -RDebugUtils.currentLine=16318609; - //BA.debugLineNum = 16318609;BA.debugLine="Log(\"FECHA\" & c.GetString(\"PC_FECHA\"))"; -__c.LogImpl("216318609","FECHA"+__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA"),0); -RDebugUtils.currentLine=16318610; - //BA.debugLineNum = 16318610;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CANT")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ID_PROD")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_ALMACEN")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_RUTA")),(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_FECHA")),(Object)("REPARTO")}; -RDebugUtils.currentLine=16318611; - //BA.debugLineNum = 16318611;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_PC\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executecommand /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(Object)("update_PC")); + //BA.debugLineNum = 1967;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 1968;BA.debugLine="cmd.Name = \"update_PICKCIEGO_IZCA\""; +_cmd.Name /*String*/ = "update_PICKCIEGO_IZCA"; + //BA.debugLineNum = 1969;BA.debugLine="Log(\"FECHA\" & c.GetString(\"PC_FECHA\"))"; +__c.LogImpl("015204497","FECHA"+_c.GetString("PC_FECHA"),0); + //BA.debugLineNum = 1970;BA.debugLine="cmd.Parameters = Array As Object(c.GetStrin"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_c.GetString("PC_CANT")),(Object)(_c.GetString("PC_ID_PROD")),(Object)(_c.GetString("PC_ALMACEN")),(Object)(_c.GetString("PC_RUTA")),(Object)(_c.GetString("PC_FECHA")),(Object)("REPARTO")}; + //BA.debugLineNum = 1971;BA.debugLine="reqManager.ExecuteCommand(cmd, \"update_PC\")"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("update_PC")); + }; + //BA.debugLineNum = 1974;BA.debugLine="c.Close"; +_c.Close(); }; -RDebugUtils.currentLine=16318614; - //BA.debugLineNum = 16318614;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); - }} -; } }; }; }; -RDebugUtils.currentLine=16318622; - //BA.debugLineNum = 16318622;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 1982;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318623; - //BA.debugLineNum = 16318623;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318624; - //BA.debugLineNum = 16318624;BA.debugLine="If result.Tag = \"gunaprod3\" Then 'query tag"; + //BA.debugLineNum = 1983;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 1984;BA.debugLine="If result.Tag = \"gunaprod3\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod3"))) { -RDebugUtils.currentLine=16318625; - //BA.debugLineNum = 16318625;BA.debugLine="If reqs.IndexOf(\"gunaprod3\") > -1 Then"; -if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod3"))>-1) { -RDebugUtils.currentLine=16318626; - //BA.debugLineNum = 16318626;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprod3\"))"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod3"))); -RDebugUtils.currentLine=16318627; - //BA.debugLineNum = 16318627;BA.debugLine="Log(reqs.Size)"; -__c.LogImpl("216318627",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0); + //BA.debugLineNum = 1985;BA.debugLine="If reqs.IndexOf(\"gunaprod3\") > -1 Then"; +if (_reqs.IndexOf((Object)("gunaprod3"))>-1) { + //BA.debugLineNum = 1986;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprod3\"))"; +_reqs.RemoveAt(_reqs.IndexOf((Object)("gunaprod3"))); + //BA.debugLineNum = 1987;BA.debugLine="Log(reqs.Size)"; +__c.LogImpl("015204515",BA.NumberToString(_reqs.getSize()),0); }; -RDebugUtils.currentLine=16318629; - //BA.debugLineNum = 16318629;BA.debugLine="Starter.skmt.BeginTransaction"; + //BA.debugLineNum = 1989;BA.debugLine="Starter.skmt.BeginTransaction"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction(); -RDebugUtils.currentLine=16318630; - //BA.debugLineNum = 16318630;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 1990;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group134 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen134 = group134.getSize() @@ -7699,110 +5692,77 @@ final int groupLen134 = group134.getSize() ; for (; index134 < groupLen134;index134++){ _records = (Object[])(group134.Get(index134)); -RDebugUtils.currentLine=16318631; - //BA.debugLineNum = 16318631;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu"; + //BA.debugLineNum = 1991;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"))))]); -RDebugUtils.currentLine=16318632; - //BA.debugLineNum = 16318632;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result."; + //BA.debugLineNum = 1992;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"))))]); -RDebugUtils.currentLine=16318633; - //BA.debugLineNum = 16318633;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co"; + //BA.debugLineNum = 1993;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"))))]); -RDebugUtils.currentLine=16318634; - //BA.debugLineNum = 16318634;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co"; + //BA.debugLineNum = 1994;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"))))]); -RDebugUtils.currentLine=16318635; - //BA.debugLineNum = 16318635;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result."; + //BA.debugLineNum = 1995;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"))))]); -RDebugUtils.currentLine=16318636; - //BA.debugLineNum = 16318636;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result."; + //BA.debugLineNum = 1996;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"))))]); -RDebugUtils.currentLine=16318637; - //BA.debugLineNum = 16318637;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col"; + //BA.debugLineNum = 1997;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"))))]); -RDebugUtils.currentLine=16318638; - //BA.debugLineNum = 16318638;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co"; + //BA.debugLineNum = 1998;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"))))]); -RDebugUtils.currentLine=16318639; - //BA.debugLineNum = 16318639;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result"; + //BA.debugLineNum = 1999;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"))))]); -RDebugUtils.currentLine=16318640; - //BA.debugLineNum = 16318640;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col"; + //BA.debugLineNum = 2000;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"))))]); -RDebugUtils.currentLine=16318641; - //BA.debugLineNum = 16318641;BA.debugLine="Dim CAT_GP_ALMACEN As Int = records(result.Co"; + //BA.debugLineNum = 2001;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"))))])); -RDebugUtils.currentLine=16318643; - //BA.debugLineNum = 16318643;BA.debugLine="Dim CAT_GP_TIPOPROD As Int = records(result.C"; + //BA.debugLineNum = 2003;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"))))])); -RDebugUtils.currentLine=16318644; - //BA.debugLineNum = 16318644;BA.debugLine="Dim CAT_GP_INICIATIVA As Int = records(result"; + //BA.debugLineNum = 2004;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"))))])); -RDebugUtils.currentLine=16318645; - //BA.debugLineNum = 16318645;BA.debugLine="Dim CAT_DP_PRECIO4 As Float = records(result."; + //BA.debugLineNum = 2005;BA.debugLine="Dim CAT_DP_PRECIO4 As Float = records(result."; _cat_dp_precio4 = (float)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO4"))))])); -RDebugUtils.currentLine=16318646; - //BA.debugLineNum = 16318646;BA.debugLine="Dim CAT_DP_CONVERSION1 As Int = records(resul"; + //BA.debugLineNum = 2006;BA.debugLine="Dim CAT_DP_CONVERSION1 As Int = records(resul"; _cat_dp_conversion1 = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CONVERSION1"))))])); -RDebugUtils.currentLine=16318650; - //BA.debugLineNum = 16318650;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G"; + //BA.debugLineNum = 2010;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD3(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CAT_GP_TIPOPROD,CAT_GP_INICIATIVA,CAT_DP_PRECIO4,CAT_DP_CONVERSION1) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(_cat_gp_almacen),(Object)(_cat_gp_tipoprod),(Object)(_cat_gp_iniciativa),(Object)(_cat_dp_precio4),(Object)(_cat_dp_conversion1)})); } }; -RDebugUtils.currentLine=16318652; - //BA.debugLineNum = 16318652;BA.debugLine="Starter.skmt.TransactionSuccessful"; + //BA.debugLineNum = 2012;BA.debugLine="Starter.skmt.TransactionSuccessful"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful(); -RDebugUtils.currentLine=16318653; - //BA.debugLineNum = 16318653;BA.debugLine="Starter.skmt.EndTransaction"; + //BA.debugLineNum = 2013;BA.debugLine="Starter.skmt.EndTransaction"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction(); -RDebugUtils.currentLine=16318654; - //BA.debugLineNum = 16318654;BA.debugLine="Listo2=1"; -__ref._listo2 /*String*/ = BA.NumberToString(1); -RDebugUtils.currentLine=16318655; - //BA.debugLineNum = 16318655;BA.debugLine="If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And"; -if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=16318656; - //BA.debugLineNum = 16318656;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; + //BA.debugLineNum = 2014;BA.debugLine="Listo2=1"; +_listo2 = BA.NumberToString(1); + //BA.debugLineNum = 2015;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 = 2016;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; __c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True); -RDebugUtils.currentLine=16318657; - //BA.debugLineNum = 16318657;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=16318658; - //BA.debugLineNum = 16318658;BA.debugLine="img2.Visible = False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16318659; - //BA.debugLineNum = 16318659;BA.debugLine="EJECUTANDO=0"; -__ref._ejecutando /*String*/ = BA.NumberToString(0); + //BA.debugLineNum = 2017;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 2018;BA.debugLine="img2.Visible = False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2019;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); }; }; }; -RDebugUtils.currentLine=16318664; - //BA.debugLineNum = 16318664;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2024;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318665; - //BA.debugLineNum = 16318665;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318666; - //BA.debugLineNum = 16318666;BA.debugLine="If result.Tag = \"gunaprod\" Then 'query tag"; + //BA.debugLineNum = 2025;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2026;BA.debugLine="If result.Tag = \"gunaprod\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("gunaprod"))) { -RDebugUtils.currentLine=16318667; - //BA.debugLineNum = 16318667;BA.debugLine="Log(\"Entramos a GUNA_PROD<--------------------"; -__c.LogImpl("216318667","Entramos a GUNA_PROD<---------------------------------",0); -RDebugUtils.currentLine=16318668; - //BA.debugLineNum = 16318668;BA.debugLine="If reqs.IndexOf(\"gunaprod\") > -1 Then"; -if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod"))>-1) { -RDebugUtils.currentLine=16318669; - //BA.debugLineNum = 16318669;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprod\"))"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprod"))); -RDebugUtils.currentLine=16318670; - //BA.debugLineNum = 16318670;BA.debugLine="Log(reqs.Size)"; -__c.LogImpl("216318670",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0); + //BA.debugLineNum = 2027;BA.debugLine="Log(\"Entramos a GUNA_PROD<--------------------"; +__c.LogImpl("015204555","Entramos a GUNA_PROD<---------------------------------",0); + //BA.debugLineNum = 2028;BA.debugLine="If reqs.IndexOf(\"gunaprod\") > -1 Then"; +if (_reqs.IndexOf((Object)("gunaprod"))>-1) { + //BA.debugLineNum = 2029;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprod\"))"; +_reqs.RemoveAt(_reqs.IndexOf((Object)("gunaprod"))); + //BA.debugLineNum = 2030;BA.debugLine="Log(reqs.Size)"; +__c.LogImpl("015204558",BA.NumberToString(_reqs.getSize()),0); }; -RDebugUtils.currentLine=16318672; - //BA.debugLineNum = 16318672;BA.debugLine="Starter.skmt.BeginTransaction"; + //BA.debugLineNum = 2032;BA.debugLine="Starter.skmt.BeginTransaction"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction(); -RDebugUtils.currentLine=16318673; - //BA.debugLineNum = 16318673;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2033;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group172 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen172 = group172.getSize() @@ -7810,98 +5770,69 @@ final int groupLen172 = group172.getSize() ; for (; index172 < groupLen172;index172++){ _records = (Object[])(group172.Get(index172)); -RDebugUtils.currentLine=16318674; - //BA.debugLineNum = 16318674;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu"; + //BA.debugLineNum = 2034;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu"; _cat_gp_id = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_ID"))))]); -RDebugUtils.currentLine=16318675; - //BA.debugLineNum = 16318675;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result."; + //BA.debugLineNum = 2035;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result."; _cat_gp_nombre = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_NOMBRE"))))]); -RDebugUtils.currentLine=16318676; - //BA.debugLineNum = 16318676;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co"; + //BA.debugLineNum = 2036;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co"; _cat_gp_imp1 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IMP1"))))]); -RDebugUtils.currentLine=16318677; - //BA.debugLineNum = 16318677;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co"; + //BA.debugLineNum = 2037;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co"; _cat_gp_imp2 = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IMP2"))))]); -RDebugUtils.currentLine=16318678; - //BA.debugLineNum = 16318678;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result."; + //BA.debugLineNum = 2038;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result."; _cat_gp_precio = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_PRECIO"))))]); -RDebugUtils.currentLine=16318679; - //BA.debugLineNum = 16318679;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result."; + //BA.debugLineNum = 2039;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result."; _cat_gp_clasif = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_CLASIF"))))]); -RDebugUtils.currentLine=16318680; - //BA.debugLineNum = 16318680;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col"; + //BA.debugLineNum = 2040;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col"; _cat_gp_sts = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_STS"))))]); -RDebugUtils.currentLine=16318681; - //BA.debugLineNum = 16318681;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co"; + //BA.debugLineNum = 2041;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co"; _cat_gp_tipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_TIPO"))))]); -RDebugUtils.currentLine=16318682; - //BA.debugLineNum = 16318682;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result"; + //BA.debugLineNum = 2042;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result"; _cat_gp_subtipo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_SUBTIPO"))))]); -RDebugUtils.currentLine=16318683; - //BA.debugLineNum = 16318683;BA.debugLine="Dim CONVERSION As String = 0'records(result.C"; + //BA.debugLineNum = 2043;BA.debugLine="Dim CONVERSION As String = 0'records(result.C"; _conversion = BA.NumberToString(0); -RDebugUtils.currentLine=16318684; - //BA.debugLineNum = 16318684;BA.debugLine="Dim PRECIOCONVER As String = 0' records(resul"; + //BA.debugLineNum = 2044;BA.debugLine="Dim PRECIOCONVER As String = 0' records(resul"; _precioconver = BA.NumberToString(0); -RDebugUtils.currentLine=16318685; - //BA.debugLineNum = 16318685;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col"; + //BA.debugLineNum = 2045;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col"; _cat_gp_img = (byte[])(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_DP_IMG"))))]); -RDebugUtils.currentLine=16318690; - //BA.debugLineNum = 16318690;BA.debugLine="Log(CAT_GP_NOMBRE & \"<-----------------------"; -__c.LogImpl("216318690",_cat_gp_nombre+"<-------------------------------------",0); -RDebugUtils.currentLine=16318691; - //BA.debugLineNum = 16318691;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G"; + //BA.debugLineNum = 2050;BA.debugLine="Log(CAT_GP_NOMBRE & \"<-----------------------"; +__c.LogImpl("015204578",_cat_gp_nombre+"<-------------------------------------",0); + //BA.debugLineNum = 2051;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN,CONVERSION,PRECIOCONVER) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(0),(Object)(_conversion),(Object)(_precioconver)})); } }; -RDebugUtils.currentLine=16318693; - //BA.debugLineNum = 16318693;BA.debugLine="Starter.skmt.TransactionSuccessful"; + //BA.debugLineNum = 2053;BA.debugLine="Starter.skmt.TransactionSuccessful"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful(); -RDebugUtils.currentLine=16318694; - //BA.debugLineNum = 16318694;BA.debugLine="Starter.skmt.EndTransaction"; + //BA.debugLineNum = 2054;BA.debugLine="Starter.skmt.EndTransaction"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction(); -RDebugUtils.currentLine=16318695; - //BA.debugLineNum = 16318695;BA.debugLine="Listo2=1"; -__ref._listo2 /*String*/ = BA.NumberToString(1); -RDebugUtils.currentLine=16318696; - //BA.debugLineNum = 16318696;BA.debugLine="If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And"; -if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=16318697; - //BA.debugLineNum = 16318697;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; + //BA.debugLineNum = 2055;BA.debugLine="Listo2=1"; +_listo2 = BA.NumberToString(1); + //BA.debugLineNum = 2056;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 = 2057;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; __c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True); -RDebugUtils.currentLine=16318698; - //BA.debugLineNum = 16318698;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=16318699; - //BA.debugLineNum = 16318699;BA.debugLine="img2.Visible = False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16318700; - //BA.debugLineNum = 16318700;BA.debugLine="EJECUTANDO=0"; -__ref._ejecutando /*String*/ = BA.NumberToString(0); + //BA.debugLineNum = 2058;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 2059;BA.debugLine="img2.Visible = False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2060;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); }; }; }; -RDebugUtils.currentLine=16318705; - //BA.debugLineNum = 16318705;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2065;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318706; - //BA.debugLineNum = 16318706;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318707; - //BA.debugLineNum = 16318707;BA.debugLine="If result.Tag = \"gunaprodp\" Then 'query tag"; + //BA.debugLineNum = 2066;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2067;BA.debugLine="If result.Tag = \"gunaprodp\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("gunaprodp"))) { -RDebugUtils.currentLine=16318708; - //BA.debugLineNum = 16318708;BA.debugLine="If reqs.IndexOf(\"gunaprodp\") > -1 Then"; -if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprodp"))>-1) { -RDebugUtils.currentLine=16318709; - //BA.debugLineNum = 16318709;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprodp\"))"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("gunaprodp"))); -RDebugUtils.currentLine=16318710; - //BA.debugLineNum = 16318710;BA.debugLine="Log(reqs.Size)"; -__c.LogImpl("216318710",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0); + //BA.debugLineNum = 2068;BA.debugLine="If reqs.IndexOf(\"gunaprodp\") > -1 Then"; +if (_reqs.IndexOf((Object)("gunaprodp"))>-1) { + //BA.debugLineNum = 2069;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"gunaprodp\"))"; +_reqs.RemoveAt(_reqs.IndexOf((Object)("gunaprodp"))); + //BA.debugLineNum = 2070;BA.debugLine="Log(reqs.Size)"; +__c.LogImpl("015204598",BA.NumberToString(_reqs.getSize()),0); }; -RDebugUtils.currentLine=16318712; - //BA.debugLineNum = 16318712;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2072;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group206 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen206 = group206.getSize() @@ -7909,100 +5840,68 @@ final int groupLen206 = group206.getSize() ; for (; index206 < groupLen206;index206++){ _records = (Object[])(group206.Get(index206)); -RDebugUtils.currentLine=16318713; - //BA.debugLineNum = 16318713;BA.debugLine="Dim CAT_GP_ID As String = records(result.Colu"; + //BA.debugLineNum = 2073;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"))))]); -RDebugUtils.currentLine=16318714; - //BA.debugLineNum = 16318714;BA.debugLine="Dim CAT_GP_NOMBRE As String = records(result."; + //BA.debugLineNum = 2074;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"))))]); -RDebugUtils.currentLine=16318715; - //BA.debugLineNum = 16318715;BA.debugLine="Dim CAT_GP_IMP1 As String = records(result.Co"; + //BA.debugLineNum = 2075;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"))))]); -RDebugUtils.currentLine=16318716; - //BA.debugLineNum = 16318716;BA.debugLine="Dim CAT_GP_IMP2 As String = records(result.Co"; + //BA.debugLineNum = 2076;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"))))]); -RDebugUtils.currentLine=16318717; - //BA.debugLineNum = 16318717;BA.debugLine="Dim CAT_GP_PRECIO As String = records(result."; + //BA.debugLineNum = 2077;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"))))]); -RDebugUtils.currentLine=16318718; - //BA.debugLineNum = 16318718;BA.debugLine="Dim CAT_GP_CLASIF As String = records(result."; + //BA.debugLineNum = 2078;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"))))]); -RDebugUtils.currentLine=16318719; - //BA.debugLineNum = 16318719;BA.debugLine="Dim CAT_GP_STS As String = records(result.Col"; + //BA.debugLineNum = 2079;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"))))]); -RDebugUtils.currentLine=16318720; - //BA.debugLineNum = 16318720;BA.debugLine="Dim CAT_GP_TIPO As String = records(result.Co"; + //BA.debugLineNum = 2080;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"))))]); -RDebugUtils.currentLine=16318721; - //BA.debugLineNum = 16318721;BA.debugLine="Dim CAT_GP_SUBTIPO As String = records(result"; + //BA.debugLineNum = 2081;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"))))]); -RDebugUtils.currentLine=16318722; - //BA.debugLineNum = 16318722;BA.debugLine="Dim CAT_GP_IMG() As Byte = records(result.Col"; + //BA.debugLineNum = 2082;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"))))]); -RDebugUtils.currentLine=16318725; - //BA.debugLineNum = 16318725;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G"; + //BA.debugLineNum = 2085;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_G"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_GUNAPROD(CAT_GP_ID,CAT_GP_NOMBRE,CAT_GP_IMP1,CAT_GP_IMP2,CAT_GP_PRECIO,CAT_GP_CLASIF,CAT_GP_STS,CAT_GP_TIPO,CAT_GP_SUBTIPO,CAT_GP_IMG,CAT_GP_ALMACEN) VALUES (?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_gp_id),(Object)(_cat_gp_nombre),(Object)(_cat_gp_imp1),(Object)(_cat_gp_imp2),(Object)(_cat_gp_precio),(Object)(_cat_gp_clasif),(Object)(_cat_gp_sts),(Object)(_cat_gp_tipo),(Object)(_cat_gp_subtipo),(Object)(_cat_gp_img),(Object)(0)})); } }; -RDebugUtils.currentLine=16318727; - //BA.debugLineNum = 16318727;BA.debugLine="Listo4=1"; -__ref._listo4 /*String*/ = BA.NumberToString(1); -RDebugUtils.currentLine=16318728; - //BA.debugLineNum = 16318728;BA.debugLine="If Listo1 = 1 And Listo2 =1 And Listo3 = 1 And"; -if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=16318729; - //BA.debugLineNum = 16318729;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; + //BA.debugLineNum = 2087;BA.debugLine="Listo4=1"; +_listo4 = BA.NumberToString(1); + //BA.debugLineNum = 2088;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 = 2089;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; __c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True); -RDebugUtils.currentLine=16318730; - //BA.debugLineNum = 16318730;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=16318731; - //BA.debugLineNum = 16318731;BA.debugLine="img2.Visible = False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16318732; - //BA.debugLineNum = 16318732;BA.debugLine="EJECUTANDO=0"; -__ref._ejecutando /*String*/ = BA.NumberToString(0); - }else -{RDebugUtils.currentLine=16318733; - //BA.debugLineNum = 16318733;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1"; -if ((__ref._listo4 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._inve /*String*/ ).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=16318734; - //BA.debugLineNum = 16318734;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; + //BA.debugLineNum = 2090;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 2091;BA.debugLine="img2.Visible = False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2092;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 = 2094;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; __c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True); -RDebugUtils.currentLine=16318735; - //BA.debugLineNum = 16318735;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=16318736; - //BA.debugLineNum = 16318736;BA.debugLine="img2.Visible = False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16318737; - //BA.debugLineNum = 16318737;BA.debugLine="EJECUTANDO=0"; -__ref._ejecutando /*String*/ = BA.NumberToString(0); - }} -; + //BA.debugLineNum = 2095;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 2096;BA.debugLine="img2.Visible = False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2097;BA.debugLine="EJECUTANDO=0"; +_ejecutando = BA.NumberToString(0); }; }; -RDebugUtils.currentLine=16318742; - //BA.debugLineNum = 16318742;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + }; + //BA.debugLineNum = 2102;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318743; - //BA.debugLineNum = 16318743;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318744; - //BA.debugLineNum = 16318744;BA.debugLine="If result.Tag = \"detallepaq\" Then 'query tag"; + //BA.debugLineNum = 2103;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2104;BA.debugLine="If result.Tag = \"detallepaq\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("detallepaq"))) { -RDebugUtils.currentLine=16318745; - //BA.debugLineNum = 16318745;BA.debugLine="If reqs.IndexOf(\"detallepaq\") > -1 Then"; -if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("detallepaq"))>-1) { -RDebugUtils.currentLine=16318746; - //BA.debugLineNum = 16318746;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"detallepaq\"))"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("detallepaq"))); -RDebugUtils.currentLine=16318747; - //BA.debugLineNum = 16318747;BA.debugLine="Log(reqs.Size)"; -__c.LogImpl("216318747",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0); + //BA.debugLineNum = 2105;BA.debugLine="If reqs.IndexOf(\"detallepaq\") > -1 Then"; +if (_reqs.IndexOf((Object)("detallepaq"))>-1) { + //BA.debugLineNum = 2106;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"detallepaq\"))"; +_reqs.RemoveAt(_reqs.IndexOf((Object)("detallepaq"))); + //BA.debugLineNum = 2107;BA.debugLine="Log(reqs.Size)"; +__c.LogImpl("015204635",BA.NumberToString(_reqs.getSize()),0); }; -RDebugUtils.currentLine=16318749; - //BA.debugLineNum = 16318749;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2109;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group240 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen240 = group240.getSize() @@ -8010,93 +5909,63 @@ final int groupLen240 = group240.getSize() ; for (; index240 < groupLen240;index240++){ _records = (Object[])(group240.Get(index240)); -RDebugUtils.currentLine=16318750; - //BA.debugLineNum = 16318750;BA.debugLine="Dim CAT_DP_ALMACEN As String = records(resul"; + //BA.debugLineNum = 2110;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"))))]); -RDebugUtils.currentLine=16318751; - //BA.debugLineNum = 16318751;BA.debugLine="Dim CAT_DP_ID As String = records(result.Colu"; + //BA.debugLineNum = 2111;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"))))]); -RDebugUtils.currentLine=16318752; - //BA.debugLineNum = 16318752;BA.debugLine="Dim CAT_DP_IDPROD As String = records(result."; + //BA.debugLineNum = 2112;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"))))]); -RDebugUtils.currentLine=16318753; - //BA.debugLineNum = 16318753;BA.debugLine="Dim CAT_DP_TIPO As String = records(result.Co"; + //BA.debugLineNum = 2113;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"))))]); -RDebugUtils.currentLine=16318754; - //BA.debugLineNum = 16318754;BA.debugLine="Dim CAT_DP_PZAS As String = records(result.Co"; + //BA.debugLineNum = 2114;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"))))]); -RDebugUtils.currentLine=16318755; - //BA.debugLineNum = 16318755;BA.debugLine="Dim CAT_DP_USUARIO As String = records(resul"; + //BA.debugLineNum = 2115;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"))))]); -RDebugUtils.currentLine=16318756; - //BA.debugLineNum = 16318756;BA.debugLine="Dim CAT_DP_FECHA As String = records(result.C"; + //BA.debugLineNum = 2116;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"))))]); -RDebugUtils.currentLine=16318757; - //BA.debugLineNum = 16318757;BA.debugLine="Dim CAT_DP_REGALO As String = records(result"; + //BA.debugLineNum = 2117;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"))))]); -RDebugUtils.currentLine=16318758; - //BA.debugLineNum = 16318758;BA.debugLine="Dim CAT_DP_CLASIF As String = records(result"; + //BA.debugLineNum = 2118;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"))))]); -RDebugUtils.currentLine=16318759; - //BA.debugLineNum = 16318759;BA.debugLine="Dim CAT_DP_PRECIO As String = records(result."; + //BA.debugLineNum = 2119;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"))))]); -RDebugUtils.currentLine=16318760; - //BA.debugLineNum = 16318760;BA.debugLine="Dim CAT_DP_PRECIO_SIMPTOS As String = records"; + //BA.debugLineNum = 2120;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"))))]); -RDebugUtils.currentLine=16318762; - //BA.debugLineNum = 16318762;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_D"; + //BA.debugLineNum = 2122;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_D"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_DETALLES_PAQ(CAT_DP_ALMACEN,CAT_DP_ID,CAT_DP_IDPROD,CAT_DP_TIPO,CAT_DP_PZAS,CAT_DP_USUARIO,CAT_DP_FECHA,CAT_DP_REGALO,CAT_DP_CLASIF,CAT_DP_PRECIO,CAT_DP_PRECIO_SIMPTOS) VALUES (?,?,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_dp_almacen),(Object)(_cat_dp_id),(Object)(_cat_dp_idprod),(Object)(_cat_dp_tipo),(Object)(_cat_dp_pzas),(Object)(_cat_dp_usuario),(Object)(_cat_dp_fecha),(Object)(_cat_dp_regalo),(Object)(_cat_dp_clasif),(Object)(_cat_dp_precio),(Object)(_cat_dp_precio_simptos)})); } }; -RDebugUtils.currentLine=16318764; - //BA.debugLineNum = 16318764;BA.debugLine="Listo3 =1"; -__ref._listo3 /*String*/ = BA.NumberToString(1); -RDebugUtils.currentLine=16318765; - //BA.debugLineNum = 16318765;BA.debugLine="If Listo1 = 1 And Listo2 = 1 And Listo3 = 1 An"; -if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo2 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo4 /*String*/ ).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=16318766; - //BA.debugLineNum = 16318766;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; + //BA.debugLineNum = 2124;BA.debugLine="Listo3 =1"; +_listo3 = BA.NumberToString(1); + //BA.debugLineNum = 2125;BA.debugLine="If Listo1 = 1 And Listo2 = 1 And Listo3 = 1 An"; +if ((_listo1).equals(BA.NumberToString(1)) && (_listo2).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1)) && (_listo4).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 2126;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; __c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True); -RDebugUtils.currentLine=16318767; - //BA.debugLineNum = 16318767;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=16318768; - //BA.debugLineNum = 16318768;BA.debugLine="img2.Visible=False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16318769; - //BA.debugLineNum = 16318769;BA.debugLine="EJECUTANDO = 0"; -__ref._ejecutando /*String*/ = BA.NumberToString(0); - }else -{RDebugUtils.currentLine=16318770; - //BA.debugLineNum = 16318770;BA.debugLine="Else If Listo4 = 1 And Listo3 = 1 And inve = 1"; -if ((__ref._listo4 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._inve /*String*/ ).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=16318771; - //BA.debugLineNum = 16318771;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; + //BA.debugLineNum = 2127;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 2128;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2129;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 = 2131;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; __c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True); -RDebugUtils.currentLine=16318772; - //BA.debugLineNum = 16318772;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=16318773; - //BA.debugLineNum = 16318773;BA.debugLine="img2.Visible = False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16318774; - //BA.debugLineNum = 16318774;BA.debugLine="EJECUTANDO = 0"; -__ref._ejecutando /*String*/ = BA.NumberToString(0); - }} -; + //BA.debugLineNum = 2132;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 2133;BA.debugLine="img2.Visible = False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2134;BA.debugLine="EJECUTANDO = 0"; +_ejecutando = BA.NumberToString(0); }; }; -RDebugUtils.currentLine=16318779; - //BA.debugLineNum = 16318779;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + }; + //BA.debugLineNum = 2139;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318780; - //BA.debugLineNum = 16318780;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318781; - //BA.debugLineNum = 16318781;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag"; + //BA.debugLineNum = 2140;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2141;BA.debugLine="If result.Tag = \"estatus\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("estatus"))) { -RDebugUtils.currentLine=16318782; - //BA.debugLineNum = 16318782;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2142;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group271 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen271 = group271.getSize() @@ -8104,55 +5973,41 @@ final int groupLen271 = group271.getSize() ; for (; index271 < groupLen271;index271++){ _records = (Object[])(group271.Get(index271)); -RDebugUtils.currentLine=16318783; - //BA.debugLineNum = 16318783;BA.debugLine="Dim hvd_estatus As String = records(result.Co"; + //BA.debugLineNum = 2143;BA.debugLine="Dim hvd_estatus As String = records(result.Co"; _hvd_estatus = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_ESTATUS"))))]); -RDebugUtils.currentLine=16318784; - //BA.debugLineNum = 16318784;BA.debugLine="If hvd_estatus = \"Liquidado\" Then"; + //BA.debugLineNum = 2144;BA.debugLine="If hvd_estatus = \"Liquidado\" Then"; if ((_hvd_estatus).equals("Liquidado")) { -RDebugUtils.currentLine=16318786; - //BA.debugLineNum = 16318786;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate"; + //BA.debugLineNum = 2146;BA.debugLine="MsgboxAsync(\"La venta ya fue liquidada\",\"Ate"; __c.MsgboxAsync(BA.ObjectToCharSequence("La venta ya fue liquidada"),BA.ObjectToCharSequence("Atención"),ba); }else { -RDebugUtils.currentLine=16318788; - //BA.debugLineNum = 16318788;BA.debugLine="envioinfo"; -__ref._envioinfo /*String*/ (null); + //BA.debugLineNum = 2148;BA.debugLine="envioinfo"; +_envioinfo(); }; } }; }; }; -RDebugUtils.currentLine=16318794; - //BA.debugLineNum = 16318794;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2154;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318795; - //BA.debugLineNum = 16318795;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318796; - //BA.debugLineNum = 16318796;BA.debugLine="If result.Tag = \"punteo\" Then 'query tag"; + //BA.debugLineNum = 2155;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2156;BA.debugLine="If result.Tag = \"punteo\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("punteo"))) { -RDebugUtils.currentLine=16318797; - //BA.debugLineNum = 16318797;BA.debugLine="If reqs.IndexOf(\"punteo\") > -1 Then"; -if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo"))>-1) { -RDebugUtils.currentLine=16318798; - //BA.debugLineNum = 16318798;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"punteo\"))"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo"))); + //BA.debugLineNum = 2157;BA.debugLine="If reqs.IndexOf(\"punteo\") > -1 Then"; +if (_reqs.IndexOf((Object)("punteo"))>-1) { + //BA.debugLineNum = 2158;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"punteo\"))"; +_reqs.RemoveAt(_reqs.IndexOf((Object)("punteo"))); }; -RDebugUtils.currentLine=16318801; - //BA.debugLineNum = 16318801;BA.debugLine="If reqs.IndexOf(\"punteo\") > 0 Then"; -if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo"))>0) { -RDebugUtils.currentLine=16318802; - //BA.debugLineNum = 16318802;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"punteo\"))"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("punteo"))); -RDebugUtils.currentLine=16318803; - //BA.debugLineNum = 16318803;BA.debugLine="Log(reqs.Size)"; -__c.LogImpl("216318803",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0); + //BA.debugLineNum = 2161;BA.debugLine="If reqs.IndexOf(\"punteo\") > 0 Then"; +if (_reqs.IndexOf((Object)("punteo"))>0) { + //BA.debugLineNum = 2162;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"punteo\"))"; +_reqs.RemoveAt(_reqs.IndexOf((Object)("punteo"))); + //BA.debugLineNum = 2163;BA.debugLine="Log(reqs.Size)"; +__c.LogImpl("015204691",BA.NumberToString(_reqs.getSize()),0); }; -RDebugUtils.currentLine=16318805; - //BA.debugLineNum = 16318805;BA.debugLine="Starter.skmt.BeginTransaction"; + //BA.debugLineNum = 2165;BA.debugLine="Starter.skmt.BeginTransaction"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction(); -RDebugUtils.currentLine=16318806; - //BA.debugLineNum = 16318806;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2166;BA.debugLine="For Each records() As Object In result.Rows"; { final anywheresoftware.b4a.BA.IterableList group292 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen292 = group292.getSize() @@ -8160,58 +6015,42 @@ final int groupLen292 = group292.getSize() ; for (; index292 < groupLen292;index292++){ _records = (Object[])(group292.Get(index292)); -RDebugUtils.currentLine=16318807; - //BA.debugLineNum = 16318807;BA.debugLine="Dim HV_CLIENTE As String = records(result.Col"; + //BA.debugLineNum = 2167;BA.debugLine="Dim HV_CLIENTE As String = records(result.Col"; _hv_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HV_CLIENTE"))))]); -RDebugUtils.currentLine=16318808; - //BA.debugLineNum = 16318808;BA.debugLine="Dim HV_LONG As String = records(result.Column"; + //BA.debugLineNum = 2168;BA.debugLine="Dim HV_LONG As String = records(result.Column"; _hv_long = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HV_LONG"))))]); -RDebugUtils.currentLine=16318809; - //BA.debugLineNum = 16318809;BA.debugLine="Dim HV_LAT As String = records(result.Columns"; + //BA.debugLineNum = 2169;BA.debugLine="Dim HV_LAT As String = records(result.Columns"; _hv_lat = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HV_LAT"))))]); -RDebugUtils.currentLine=16318811; - //BA.debugLineNum = 16318811;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PUNTE"; + //BA.debugLineNum = 2171;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PUNTE"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PUNTEO_GPS(HV_CLIENTE, HV_LONG, HV_LAT) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hv_cliente),(Object)(_hv_long),(Object)(_hv_lat)})); } }; -RDebugUtils.currentLine=16318813; - //BA.debugLineNum = 16318813;BA.debugLine="Starter.skmt.TransactionSuccessful"; + //BA.debugLineNum = 2173;BA.debugLine="Starter.skmt.TransactionSuccessful"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful(); -RDebugUtils.currentLine=16318814; - //BA.debugLineNum = 16318814;BA.debugLine="Starter.skmt.EndTransaction"; + //BA.debugLineNum = 2174;BA.debugLine="Starter.skmt.EndTransaction"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction(); }; }; -RDebugUtils.currentLine=16318818; - //BA.debugLineNum = 16318818;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2178;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318819; - //BA.debugLineNum = 16318819;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318820; - //BA.debugLineNum = 16318820;BA.debugLine="If result.Tag = \"hist_datos\" Then 'query tag"; + //BA.debugLineNum = 2179;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2180;BA.debugLine="If result.Tag = \"hist_datos\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("hist_datos"))) { -RDebugUtils.currentLine=16318821; - //BA.debugLineNum = 16318821;BA.debugLine="If reqs.IndexOf(\"hist_datos\") > -1 Then"; -if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("hist_datos"))>-1) { -RDebugUtils.currentLine=16318822; - //BA.debugLineNum = 16318822;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"hist_datos\"))"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("hist_datos"))); + //BA.debugLineNum = 2181;BA.debugLine="If reqs.IndexOf(\"hist_datos\") > -1 Then"; +if (_reqs.IndexOf((Object)("hist_datos"))>-1) { + //BA.debugLineNum = 2182;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"hist_datos\"))"; +_reqs.RemoveAt(_reqs.IndexOf((Object)("hist_datos"))); }; -RDebugUtils.currentLine=16318825; - //BA.debugLineNum = 16318825;BA.debugLine="Log(l_ruta.text)"; -__c.LogImpl("216318825",__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText(),0); -RDebugUtils.currentLine=16318826; - //BA.debugLineNum = 16318826;BA.debugLine="Log($\"******** Insertamos HV - ${result.Rows."; -__c.LogImpl("216318826",("******** Insertamos HV - "+__c.SmartStringFormatter("",(Object)(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),0); -RDebugUtils.currentLine=16318827; - //BA.debugLineNum = 16318827;BA.debugLine="Starter.skmt.BeginTransaction"; + //BA.debugLineNum = 2185;BA.debugLine="Log(l_ruta.text)"; +__c.LogImpl("015204713",_l_ruta.getText(),0); + //BA.debugLineNum = 2186;BA.debugLine="Log($\"******** Insertamos HV - ${result.Rows."; +__c.LogImpl("015204714",("******** Insertamos HV - "+__c.SmartStringFormatter("",(Object)(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),0); + //BA.debugLineNum = 2187;BA.debugLine="Starter.skmt.BeginTransaction"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .BeginTransaction(); -RDebugUtils.currentLine=16318828; - //BA.debugLineNum = 16318828;BA.debugLine="Dim consecutivo As Int= 0"; + //BA.debugLineNum = 2188;BA.debugLine="Dim consecutivo As Int= 0"; _consecutivo = (int) (0); -RDebugUtils.currentLine=16318829; - //BA.debugLineNum = 16318829;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2189;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() @@ -8219,1437 +6058,1019 @@ final int groupLen312 = group312.getSize() ; for (; index312 < groupLen312;index312++){ _records = (Object[])(group312.Get(index312)); -RDebugUtils.currentLine=16318830; - //BA.debugLineNum = 16318830;BA.debugLine="Dim HVD_CLIENTE As String = records(result.Co"; + //BA.debugLineNum = 2190;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"))))]); -RDebugUtils.currentLine=16318831; - //BA.debugLineNum = 16318831;BA.debugLine="Dim HVD_PRONOMBRE As String = records(result."; + //BA.debugLineNum = 2191;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"))))]); -RDebugUtils.currentLine=16318832; - //BA.debugLineNum = 16318832;BA.debugLine="Dim HVD_CANT As String = records(result.Colum"; + //BA.debugLineNum = 2192;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"))))]); -RDebugUtils.currentLine=16318833; - //BA.debugLineNum = 16318833;BA.debugLine="Dim HVD_COSTO_TOT As String = records(result."; + //BA.debugLineNum = 2193;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"))))]); -RDebugUtils.currentLine=16318834; - //BA.debugLineNum = 16318834;BA.debugLine="Dim HVD_FECHA As String = records(result.Colu"; + //BA.debugLineNum = 2194;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"))))]); -RDebugUtils.currentLine=16318835; - //BA.debugLineNum = 16318835;BA.debugLine="Dim HVD_CODPROMO As String = records(result.C"; + //BA.debugLineNum = 2195;BA.debugLine="Dim HVD_CODPROMO As String = records(result.C"; _hvd_codpromo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_CODPROMO"))))]); -RDebugUtils.currentLine=16318836; - //BA.debugLineNum = 16318836;BA.debugLine="Dim HVD_PROID As String = records(result.Colu"; + //BA.debugLineNum = 2196;BA.debugLine="Dim HVD_PROID As String = records(result.Colu"; _hvd_proid = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_PROID"))))]); -RDebugUtils.currentLine=16318837; - //BA.debugLineNum = 16318837;BA.debugLine="Dim HVD_NUM_TICKET As String = records(result"; + //BA.debugLineNum = 2197;BA.debugLine="Dim HVD_NUM_TICKET As String = records(result"; _hvd_num_ticket = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_NUM_TICKET"))))]); -RDebugUtils.currentLine=16318838; - //BA.debugLineNum = 16318838;BA.debugLine="Dim HVD_NUM_REGISTRO As String = records(resu"; + //BA.debugLineNum = 2198;BA.debugLine="Dim HVD_NUM_REGISTRO As String = records(resu"; _hvd_num_registro = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_NUM_REGISTRO"))))]); -RDebugUtils.currentLine=16318839; - //BA.debugLineNum = 16318839;BA.debugLine="Dim HVD_RECHAZO As String = records(result.Co"; + //BA.debugLineNum = 2199;BA.debugLine="Dim HVD_RECHAZO As String = records(result.Co"; _hvd_rechazo = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_RECHAZO"))))]); -RDebugUtils.currentLine=16318840; - //BA.debugLineNum = 16318840;BA.debugLine="Dim HVD_BCREDITO As String = records(result.C"; + //BA.debugLineNum = 2200;BA.debugLine="Dim HVD_BCREDITO As String = records(result.C"; _hvd_bcredito = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_BCREDITO"))))]); -RDebugUtils.currentLine=16318842; - //BA.debugLineNum = 16318842;BA.debugLine="Dim bcajas As String = 0 ' records(result.Col"; + //BA.debugLineNum = 2201;BA.debugLine="Dim HVD_USUARIO As String = records(result.Co"; +_hvd_usuario = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("HVD_USUARIO"))))]); + //BA.debugLineNum = 2203;BA.debugLine="Dim bcajas As String = 0 ' records(result.Col"; _bcajas = BA.NumberToString(0); -RDebugUtils.currentLine=16318843; - //BA.debugLineNum = 16318843;BA.debugLine="Dim cantc As String = 0 'records(result.Colum"; + //BA.debugLineNum = 2204;BA.debugLine="Dim cantc As String = 0 'records(result.Colum"; _cantc = BA.NumberToString(0); -RDebugUtils.currentLine=16318845; - //BA.debugLineNum = 16318845;BA.debugLine="consecutivo = consecutivo +1"; + //BA.debugLineNum = 2206;BA.debugLine="consecutivo = consecutivo +1"; _consecutivo = (int) (_consecutivo+1); -RDebugUtils.currentLine=16318846; - //BA.debugLineNum = 16318846;BA.debugLine="Log(HVD_PRONOMBRE & \", \" & HVD_CANT & \", \" &H"; -__c.LogImpl("216318846",_hvd_pronombre+", "+_hvd_cant+", "+_hvd_cliente,0); -RDebugUtils.currentLine=16318847; - //BA.debugLineNum = 16318847;BA.debugLine="If l_ruta.Text = \"0\" Then 'Si no hay ruta car"; -if ((__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { -RDebugUtils.currentLine=16318848; - //BA.debugLineNum = 16318848;BA.debugLine="Log(\"No hay ruta, guardamos todos\")"; -__c.LogImpl("216318848","No hay ruta, guardamos todos",0); -RDebugUtils.currentLine=16318849; - //BA.debugLineNum = 16318849;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc),(Object)(_hvd_bcredito)})); -RDebugUtils.currentLine=16318850; - //BA.debugLineNum = 16318850;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST"; + //BA.debugLineNum = 2207;BA.debugLine="Log(HVD_PRONOMBRE & \", \" & HVD_CANT & \", \" &H"; +__c.LogImpl("015204735",_hvd_pronombre+", "+_hvd_cant+", "+_hvd_cliente,0); + //BA.debugLineNum = 2208;BA.debugLine="If l_ruta.Text = \"0\" Then 'Si no hay ruta car"; +if ((_l_ruta.getText()).equals("0")) { + //BA.debugLineNum = 2209;BA.debugLine="Log(\"No hay ruta, guardamos todos\")"; +__c.LogImpl("015204737","No hay ruta, guardamos todos",0); + //BA.debugLineNum = 2210;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO,HVD_USUARIO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc),(Object)(_hvd_bcredito),(Object)(_hvd_usuario)})); + //BA.debugLineNum = 2211;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo)})); }else { -RDebugUtils.currentLine=16318853; - //BA.debugLineNum = 16318853;BA.debugLine="Private tc As Cursor = Starter.skmt.ExecQuer"; + //BA.debugLineNum = 2214;BA.debugLine="Private tc As Cursor = Starter.skmt.ExecQuer"; _tc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_tc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CLIENTE from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_hvd_cliente))+"' and HVD_PROID = '"+__c.SmartStringFormatter("",(Object)(_hvd_proid))+"' AND HVD_CANT = '"+__c.SmartStringFormatter("",(Object)(_hvd_cant))+"' AND HVD_CODPROMO = '"+__c.SmartStringFormatter("",(Object)(_hvd_codpromo))+"' ")))); -RDebugUtils.currentLine=16318854; - //BA.debugLineNum = 16318854;BA.debugLine="If tc.RowCount = 0 Then"; +_tc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CLIENTE from HIST_VENTAS where HVD_CLIENTE = '"+__c.SmartStringFormatter("",(Object)(_hvd_cliente))+"' and HVD_PROID = '"+__c.SmartStringFormatter("",(Object)(_hvd_proid))+"' AND HVD_CANT = '"+__c.SmartStringFormatter("",(Object)(_hvd_cant))+"' AND HVD_CODPROMO = '"+__c.SmartStringFormatter("",(Object)(_hvd_codpromo))+"' AND HVD_USUARIO = '"+__c.SmartStringFormatter("",(Object)(_hvd_usuario))+"'")))); + //BA.debugLineNum = 2215;BA.debugLine="If tc.RowCount = 0 Then"; if (_tc.getRowCount()==0) { -RDebugUtils.currentLine=16318855; - //BA.debugLineNum = 16318855;BA.debugLine="Log($\"Guardamos ${HVD_CLIENTE}\"$)"; -__c.LogImpl("216318855",("Guardamos "+__c.SmartStringFormatter("",(Object)(_hvd_cliente))+""),0); -RDebugUtils.currentLine=16318856; - //BA.debugLineNum = 16318856;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc),(Object)(_hvd_bcredito)})); -RDebugUtils.currentLine=16318857; - //BA.debugLineNum = 16318857;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS"; + //BA.debugLineNum = 2216;BA.debugLine="Log($\"Guardamos ${HVD_CLIENTE}\"$)"; +__c.LogImpl("015204744",("Guardamos "+__c.SmartStringFormatter("",(Object)(_hvd_cliente))+""),0); + //BA.debugLineNum = 2217;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL, BCAJAS,CANTC,CONSECUTIVO,BCAJAS_OR,CANTC_OR,HVD_BCREDITO,HVD_USUARIO) VALUES (?,?,?,?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo),(Object)(_bcajas),(Object)(_cantc),(Object)(_consecutivo),(Object)(_bcajas),(Object)(_cantc),(Object)(_hvd_bcredito),(Object)(_hvd_usuario)})); + //BA.debugLineNum = 2218;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIS"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_VENTAS2(HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT, HVD_FECHA, HVD_CODPROMO, HVD_PROID,HVD_NUM_TICKET, HVD_NUM_REGISTRO, HVD_RECHAZO, HVD_ESTATUS, HVD_PARCIAL) VALUES (?,?,?,?,?,?,?,?,?,?,0,0)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_hvd_cliente),(Object)(_hvd_pronombre),(Object)(_hvd_cant),(Object)(_hvd_costo_tot),(Object)(_hvd_fecha),(Object)(_hvd_codpromo),(Object)(_hvd_proid),(Object)(_hvd_num_ticket),(Object)(_hvd_num_registro),(Object)(_hvd_rechazo)})); }; }; } }; -RDebugUtils.currentLine=16318861; - //BA.debugLineNum = 16318861;BA.debugLine="Starter.skmt.TransactionSuccessful"; + //BA.debugLineNum = 2222;BA.debugLine="Starter.skmt.TransactionSuccessful"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .TransactionSuccessful(); -RDebugUtils.currentLine=16318862; - //BA.debugLineNum = 16318862;BA.debugLine="Starter.skmt.EndTransaction"; + //BA.debugLineNum = 2223;BA.debugLine="Starter.skmt.EndTransaction"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .EndTransaction(); -RDebugUtils.currentLine=16318863; - //BA.debugLineNum = 16318863;BA.debugLine="Log($\"******** Terminamos HV - ${result.Rows."; -__c.LogImpl("216318863",("******** Terminamos HV - "+__c.SmartStringFormatter("",(Object)(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),0); -RDebugUtils.currentLine=16318877; - //BA.debugLineNum = 16318877;BA.debugLine="Listo3 =1"; -__ref._listo3 /*String*/ = BA.NumberToString(1); -RDebugUtils.currentLine=16318878; - //BA.debugLineNum = 16318878;BA.debugLine="If Listo1 = 1 And Listo3 = 1 Then"; -if ((__ref._listo1 /*String*/ ).equals(BA.NumberToString(1)) && (__ref._listo3 /*String*/ ).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=16318879; - //BA.debugLineNum = 16318879;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; + //BA.debugLineNum = 2224;BA.debugLine="Log($\"******** Terminamos HV - ${result.Rows."; +__c.LogImpl("015204752",("******** Terminamos HV - "+__c.SmartStringFormatter("",(Object)(_result.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()))+""),0); + //BA.debugLineNum = 2238;BA.debugLine="Listo3 =1"; +_listo3 = BA.NumberToString(1); + //BA.debugLineNum = 2239;BA.debugLine="If Listo1 = 1 And Listo3 = 1 Then"; +if ((_listo1).equals(BA.NumberToString(1)) && (_listo3).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 2240;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True"; __c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True); -RDebugUtils.currentLine=16318880; - //BA.debugLineNum = 16318880;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=16318881; - //BA.debugLineNum = 16318881;BA.debugLine="img2.Visible = False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16318882; - //BA.debugLineNum = 16318882;BA.debugLine="EJECUTANDO = 0"; -__ref._ejecutando /*String*/ = BA.NumberToString(0); + //BA.debugLineNum = 2241;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 2242;BA.debugLine="img2.Visible = False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2243;BA.debugLine="EJECUTANDO = 0"; +_ejecutando = BA.NumberToString(0); }; }; }; -RDebugUtils.currentLine=16318888; - //BA.debugLineNum = 16318888;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2249;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318889; - //BA.debugLineNum = 16318889;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318890; - //BA.debugLineNum = 16318890;BA.debugLine="If result.Tag = \"variables\" Then 'query tag"; + //BA.debugLineNum = 2250;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2251;BA.debugLine="If result.Tag = \"variables\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("variables"))) { -RDebugUtils.currentLine=16318891; - //BA.debugLineNum = 16318891;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2252;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group356 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen356 = group356.getSize() -;int index356 = 0; +final anywheresoftware.b4a.BA.IterableList group357 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen357 = group357.getSize() +;int index357 = 0; ; -for (; index356 < groupLen356;index356++){ -_records = (Object[])(group356.Get(index356)); -RDebugUtils.currentLine=16318892; - //BA.debugLineNum = 16318892;BA.debugLine="Dim Cat_Va_Descripcion As String = records(re"; +for (; index357 < groupLen357;index357++){ +_records = (Object[])(group357.Get(index357)); + //BA.debugLineNum = 2253;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"))))]); -RDebugUtils.currentLine=16318893; - //BA.debugLineNum = 16318893;BA.debugLine="Dim Cat_Va_Valor As String = records(result.C"; + //BA.debugLineNum = 2254;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"))))]); -RDebugUtils.currentLine=16318895; - //BA.debugLineNum = 16318895;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V"; + //BA.debugLineNum = 2256;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_va_descripcion),(Object)(_cat_va_valor)})); } }; }; }; -RDebugUtils.currentLine=16318901; - //BA.debugLineNum = 16318901;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2262;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318902; - //BA.debugLineNum = 16318902;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318903; - //BA.debugLineNum = 16318903;BA.debugLine="If result.Tag = \"PAGARES\" Then 'query tag"; + //BA.debugLineNum = 2263;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2264;BA.debugLine="If result.Tag = \"PAGARES\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("PAGARES"))) { -RDebugUtils.currentLine=16318904; - //BA.debugLineNum = 16318904;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2265;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group366 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen366 = group366.getSize() -;int index366 = 0; +final anywheresoftware.b4a.BA.IterableList group367 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen367 = group367.getSize() +;int index367 = 0; ; -for (; index366 < groupLen366;index366++){ -_records = (Object[])(group366.Get(index366)); -RDebugUtils.currentLine=16318906; - //BA.debugLineNum = 16318906;BA.debugLine="Dim TMP_MONTO_PAGARE As String = records(resu"; +for (; index367 < groupLen367;index367++){ +_records = (Object[])(group367.Get(index367)); + //BA.debugLineNum = 2267;BA.debugLine="Dim TMP_MONTO_PAGARE As String = records(resu"; _tmp_monto_pagare = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_MONTO_PAGARE"))))]); -RDebugUtils.currentLine=16318907; - //BA.debugLineNum = 16318907;BA.debugLine="Dim TMP_CLIENTE As String = records(result.Co"; + //BA.debugLineNum = 2268;BA.debugLine="Dim TMP_CLIENTE As String = records(result.Co"; _tmp_cliente = BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("TMP_CLIENTE"))))]); -RDebugUtils.currentLine=16318909; - //BA.debugLineNum = 16318909;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PAGAR"; + //BA.debugLineNum = 2270;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PAGAR"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PAGARES(TMP_MONTO_PAGARE, TMP_CLIENTE) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_tmp_monto_pagare),(Object)(_tmp_cliente)})); } }; }; }; -RDebugUtils.currentLine=16318914; - //BA.debugLineNum = 16318914;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2275;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318915; - //BA.debugLineNum = 16318915;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318916; - //BA.debugLineNum = 16318916;BA.debugLine="If result.Tag = \"valida_pedido\" Then 'query tag"; + //BA.debugLineNum = 2276;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2277;BA.debugLine="If result.Tag = \"valida_pedido\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedido"))) { -RDebugUtils.currentLine=16318917; - //BA.debugLineNum = 16318917;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2278;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group376 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen376 = group376.getSize() -;int index376 = 0; +final anywheresoftware.b4a.BA.IterableList group377 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen377 = group377.getSize() +;int index377 = 0; ; -for (; index376 < groupLen376;index376++){ -_records = (Object[])(group376.Get(index376)); -RDebugUtils.currentLine=16318918; - //BA.debugLineNum = 16318918;BA.debugLine="Dim CUANTOSP As Int = records(result.Columns."; +for (; index377 < groupLen377;index377++){ +_records = (Object[])(group377.Get(index377)); + //BA.debugLineNum = 2279;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"))))])); -RDebugUtils.currentLine=16318919; - //BA.debugLineNum = 16318919;BA.debugLine="If cuantos_pedido = CUANTOSP Then"; -if ((__ref._cuantos_pedido /*String*/ ).equals(BA.NumberToString(_cuantosp))) { -RDebugUtils.currentLine=16318921; - //BA.debugLineNum = 16318921;BA.debugLine="datos_iguales = \"ok\""; -__ref._datos_iguales /*String*/ = "ok"; + //BA.debugLineNum = 2280;BA.debugLine="If cuantos_pedido = CUANTOSP Then"; +if ((_cuantos_pedido).equals(BA.NumberToString(_cuantosp))) { + //BA.debugLineNum = 2282;BA.debugLine="datos_iguales = \"ok\""; +_datos_iguales = "ok"; }else { -RDebugUtils.currentLine=16318923; - //BA.debugLineNum = 16318923;BA.debugLine="ToastMessageShow(\"No se cargo bien la info P"; -__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info P. Sync Nuevamente"+BA.NumberToString(_cuantosp)+" "+__ref._cuantos_pedido /*String*/ ),__c.True); + //BA.debugLineNum = 2284;BA.debugLine="ToastMessageShow(\"No se cargo bien la info P"; +__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info P. Sync Nuevamente"+BA.NumberToString(_cuantosp)+" "+_cuantos_pedido),__c.True); }; } }; }; }; -RDebugUtils.currentLine=16318931; - //BA.debugLineNum = 16318931;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2292;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318932; - //BA.debugLineNum = 16318932;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318933; - //BA.debugLineNum = 16318933;BA.debugLine="If result.Tag = \"valida_pedidoc\" Then 'query ta"; + //BA.debugLineNum = 2293;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2294;BA.debugLine="If result.Tag = \"valida_pedidoc\" Then 'query ta"; if ((_result.Tag /*Object*/ ).equals((Object)("valida_pedidoc"))) { -RDebugUtils.currentLine=16318934; - //BA.debugLineNum = 16318934;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2295;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group389 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen389 = group389.getSize() -;int index389 = 0; +final anywheresoftware.b4a.BA.IterableList group390 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen390 = group390.getSize() +;int index390 = 0; ; -for (; index389 < groupLen389;index389++){ -_records = (Object[])(group389.Get(index389)); -RDebugUtils.currentLine=16318935; - //BA.debugLineNum = 16318935;BA.debugLine="Dim CUANTOSC As Int = records(result.Columns."; +for (; index390 < groupLen390;index390++){ +_records = (Object[])(group390.Get(index390)); + //BA.debugLineNum = 2296;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"))))])); -RDebugUtils.currentLine=16318936; - //BA.debugLineNum = 16318936;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then"; -if ((__ref._cuantos_pedidosc /*String*/ ).equals(BA.NumberToString(_cuantosc))) { -RDebugUtils.currentLine=16318938; - //BA.debugLineNum = 16318938;BA.debugLine="datos_iguales = \"ok\""; -__ref._datos_iguales /*String*/ = "ok"; + //BA.debugLineNum = 2297;BA.debugLine="If cuantos_pedidosc = CUANTOSC Then"; +if ((_cuantos_pedidosc).equals(BA.NumberToString(_cuantosc))) { + //BA.debugLineNum = 2299;BA.debugLine="datos_iguales = \"ok\""; +_datos_iguales = "ok"; }else { -RDebugUtils.currentLine=16318940; - //BA.debugLineNum = 16318940;BA.debugLine="ToastMessageShow(\"No se cargo bien la info C"; -__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info C. Sync Nuevamente"+BA.NumberToString(_cuantosc)+" "+__ref._cuantos_pedidosc /*String*/ ),__c.True); + //BA.debugLineNum = 2301;BA.debugLine="ToastMessageShow(\"No se cargo bien la info C"; +__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info C. Sync Nuevamente"+BA.NumberToString(_cuantosc)+" "+_cuantos_pedidosc),__c.True); }; } }; }; }; -RDebugUtils.currentLine=16318946; - //BA.debugLineNum = 16318946;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2307;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318947; - //BA.debugLineNum = 16318947;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318948; - //BA.debugLineNum = 16318948;BA.debugLine="If result.Tag = \"valida_noventa\" Then 'query ta"; + //BA.debugLineNum = 2308;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2309;BA.debugLine="If result.Tag = \"valida_noventa\" Then 'query ta"; if ((_result.Tag /*Object*/ ).equals((Object)("valida_noventa"))) { -RDebugUtils.currentLine=16318949; - //BA.debugLineNum = 16318949;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2310;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group402 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen402 = group402.getSize() -;int index402 = 0; +final anywheresoftware.b4a.BA.IterableList group403 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen403 = group403.getSize() +;int index403 = 0; ; -for (; index402 < groupLen402;index402++){ -_records = (Object[])(group402.Get(index402)); -RDebugUtils.currentLine=16318950; - //BA.debugLineNum = 16318950;BA.debugLine="Dim CUANTOSN As Int = records(result.Columns."; +for (; index403 < groupLen403;index403++){ +_records = (Object[])(group403.Get(index403)); + //BA.debugLineNum = 2311;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"))))])); -RDebugUtils.currentLine=16318951; - //BA.debugLineNum = 16318951;BA.debugLine="If cuantos_noventa = CUANTOSN Then"; -if ((__ref._cuantos_noventa /*String*/ ).equals(BA.NumberToString(_cuantosn))) { -RDebugUtils.currentLine=16318953; - //BA.debugLineNum = 16318953;BA.debugLine="datos_iguales = \"ok\""; -__ref._datos_iguales /*String*/ = "ok"; + //BA.debugLineNum = 2312;BA.debugLine="If cuantos_noventa = CUANTOSN Then"; +if ((_cuantos_noventa).equals(BA.NumberToString(_cuantosn))) { + //BA.debugLineNum = 2314;BA.debugLine="datos_iguales = \"ok\""; +_datos_iguales = "ok"; }else { -RDebugUtils.currentLine=16318955; - //BA.debugLineNum = 16318955;BA.debugLine="ToastMessageShow(\"No se cargo bien la info N"; -__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info N. Sync Nuevamente"+BA.NumberToString(_cuantosn)+" "+__ref._cuantos_noventa /*String*/ ),__c.True); + //BA.debugLineNum = 2316;BA.debugLine="ToastMessageShow(\"No se cargo bien la info N"; +__c.ToastMessageShow(BA.ObjectToCharSequence("No se cargo bien la info N. Sync Nuevamente"+BA.NumberToString(_cuantosn)+" "+_cuantos_noventa),__c.True); }; } }; }; }; -RDebugUtils.currentLine=16318961; - //BA.debugLineNum = 16318961;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2322;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318962; - //BA.debugLineNum = 16318962;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318963; - //BA.debugLineNum = 16318963;BA.debugLine="If result.Tag = \"insert_pedido\" Then 'query tag"; + //BA.debugLineNum = 2323;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2324;BA.debugLine="If result.Tag = \"insert_pedido\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("insert_pedido"))) { -RDebugUtils.currentLine=16318964; - //BA.debugLineNum = 16318964;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True)"; + //BA.debugLineNum = 2325;BA.debugLine="ToastMessageShow(\"Datos Actualizados.\" , True)"; __c.ToastMessageShow(BA.ObjectToCharSequence("Datos Actualizados."),__c.True); }; }; -RDebugUtils.currentLine=16318968; - //BA.debugLineNum = 16318968;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2329;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318969; - //BA.debugLineNum = 16318969;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318970; - //BA.debugLineNum = 16318970;BA.debugLine="If result.Tag = \"version\" Then 'query tag"; + //BA.debugLineNum = 2330;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2331;BA.debugLine="If result.Tag = \"version\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("version"))) { -RDebugUtils.currentLine=16318971; - //BA.debugLineNum = 16318971;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2332;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; +final anywheresoftware.b4a.BA.IterableList group422 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen422 = group422.getSize() +;int index422 = 0; ; -for (; index421 < groupLen421;index421++){ -_records = (Object[])(group421.Get(index421)); -RDebugUtils.currentLine=16318972; - //BA.debugLineNum = 16318972;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO"; +for (; index422 < groupLen422;index422++){ +_records = (Object[])(group422.Get(index422)); + //BA.debugLineNum = 2333;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from VERSIO"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from VERSION"); -RDebugUtils.currentLine=16318973; - //BA.debugLineNum = 16318973;BA.debugLine="Dim CAT_VE_VERSION As String = records(result"; + //BA.debugLineNum = 2334;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"))))]); -RDebugUtils.currentLine=16318975; - //BA.debugLineNum = 16318975;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSI"; + //BA.debugLineNum = 2336;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO VERSI"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO VERSION(NOVERSION) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_cat_ve_version)})); } }; }; }; -RDebugUtils.currentLine=16318980; - //BA.debugLineNum = 16318980;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2341;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318981; - //BA.debugLineNum = 16318981;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318982; - //BA.debugLineNum = 16318982;BA.debugLine="If result.Tag = \"count_cli\" Then 'query tag"; + //BA.debugLineNum = 2342;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2343;BA.debugLine="If result.Tag = \"count_cli\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("count_cli"))) { -RDebugUtils.currentLine=16318983; - //BA.debugLineNum = 16318983;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2344;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group431 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen431 = group431.getSize() -;int index431 = 0; +final anywheresoftware.b4a.BA.IterableList group432 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen432 = group432.getSize() +;int index432 = 0; ; -for (; index431 < groupLen431;index431++){ -_records = (Object[])(group431.Get(index431)); -RDebugUtils.currentLine=16318984; - //BA.debugLineNum = 16318984;BA.debugLine="COUNT_CLIE = records(result.Columns.Get(\"COUN"; -__ref._count_clie /*int*/ = (int)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("COUNT_CLIE"))))])); +for (; index432 < groupLen432;index432++){ +_records = (Object[])(group432.Get(index432)); + //BA.debugLineNum = 2345;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"))))])); } }; }; }; -RDebugUtils.currentLine=16318989; - //BA.debugLineNum = 16318989;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2350;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16318990; - //BA.debugLineNum = 16318990;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16318991; - //BA.debugLineNum = 16318991;BA.debugLine="If result.Tag = \"ruta\" Then 'query tag"; + //BA.debugLineNum = 2351;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2352;BA.debugLine="If result.Tag = \"ruta\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("ruta"))) { -RDebugUtils.currentLine=16318992; - //BA.debugLineNum = 16318992;BA.debugLine="If reqs.IndexOf(\"ruta\") > -1 Then"; -if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("ruta"))>-1) { -RDebugUtils.currentLine=16318993; - //BA.debugLineNum = 16318993;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"ruta\"))"; -__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .RemoveAt(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .IndexOf((Object)("ruta"))); -RDebugUtils.currentLine=16318994; - //BA.debugLineNum = 16318994;BA.debugLine="Log(reqs.Size)"; -__c.LogImpl("216318994",BA.NumberToString(__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0); + //BA.debugLineNum = 2353;BA.debugLine="If reqs.IndexOf(\"ruta\") > -1 Then"; +if (_reqs.IndexOf((Object)("ruta"))>-1) { + //BA.debugLineNum = 2354;BA.debugLine="reqs.RemoveAt(reqs.IndexOf(\"ruta\"))"; +_reqs.RemoveAt(_reqs.IndexOf((Object)("ruta"))); + //BA.debugLineNum = 2355;BA.debugLine="Log(reqs.Size)"; +__c.LogImpl("015204883",BA.NumberToString(_reqs.getSize()),0); }; -RDebugUtils.currentLine=16318996; - //BA.debugLineNum = 16318996;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2357;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group443 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen443 = group443.getSize() -;int index443 = 0; +final anywheresoftware.b4a.BA.IterableList group444 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen444 = group444.getSize() +;int index444 = 0; ; -for (; index443 < groupLen443;index443++){ -_records = (Object[])(group443.Get(index443)); -RDebugUtils.currentLine=16318997; - //BA.debugLineNum = 16318997;BA.debugLine="Dim VALIDO As String = records(result.Columns"; +for (; index444 < groupLen444;index444++){ +_records = (Object[])(group444.Get(index444)); + //BA.debugLineNum = 2358;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"))))]); -RDebugUtils.currentLine=16318999; - //BA.debugLineNum = 16318999;BA.debugLine="If VALIDO = \"OK\" Then"; + //BA.debugLineNum = 2360;BA.debugLine="If VALIDO = \"OK\" Then"; if ((_valido).equals("OK")) { -RDebugUtils.currentLine=16319000; - //BA.debugLineNum = 16319000;BA.debugLine="If l_ctast.Text = \"0\" Then"; -if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0")) { -RDebugUtils.currentLine=16319001; - //BA.debugLineNum = 16319001;BA.debugLine="Subir.Visible = True"; -__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); - }else -{RDebugUtils.currentLine=16319002; - //BA.debugLineNum = 16319002;BA.debugLine="Else If l_ctast.Text <> \"0\" Then"; -if ((__ref._l_ctast /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText()).equals("0") == false) { -RDebugUtils.currentLine=16319003; - //BA.debugLineNum = 16319003;BA.debugLine="Subir.Visible = False"; -__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); - }} -; -RDebugUtils.currentLine=16319005; - //BA.debugLineNum = 16319005;BA.debugLine="cargar.Visible = True"; -__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=16319006; - //BA.debugLineNum = 16319006;BA.debugLine="If Subs.dameUsuarioDeDB = \"ROOT\" Then"; -if ((_subs._dameusuariodedb /*String*/ (ba)).equals("ROOT")) { -RDebugUtils.currentLine=16319007; - //BA.debugLineNum = 16319007;BA.debugLine="Subir.Visible = True"; -__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.True); + //BA.debugLineNum = 2361;BA.debugLine="If l_ctast.Text = \"0\" Then"; +if ((_l_ctast.getText()).equals("0")) { + //BA.debugLineNum = 2362;BA.debugLine="Subir.Visible = True"; +_subir.setVisible(__c.True); + }else if((_l_ctast.getText()).equals("0") == false) { + //BA.debugLineNum = 2364;BA.debugLine="Subir.Visible = False"; +_subir.setVisible(__c.False); }; -RDebugUtils.currentLine=16319009; - //BA.debugLineNum = 16319009;BA.debugLine="connecta.Visible = False"; -__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16319010; - //BA.debugLineNum = 16319010;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA"; + //BA.debugLineNum = 2366;BA.debugLine="cargar.Visible = True"; +_cargar.setVisible(__c.True); + //BA.debugLineNum = 2367;BA.debugLine="If Subs.dameUsuarioDeDB = \"ROOT\" Then"; +if ((_subs._dameusuariodedb /*String*/ (ba)).equals("ROOT")) { + //BA.debugLineNum = 2368;BA.debugLine="Subir.Visible = True"; +_subir.setVisible(__c.True); + }; + //BA.debugLineNum = 2370;BA.debugLine="connecta.Visible = False"; +_connecta.setVisible(__c.False); + //BA.debugLineNum = 2371;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM RUTAA"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM RUTAA"); -RDebugUtils.currentLine=16319013; - //BA.debugLineNum = 16319013;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTA"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())})); -RDebugUtils.currentLine=16319015; - //BA.debugLineNum = 16319015;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/ = __ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText(); -RDebugUtils.currentLine=16319017; - //BA.debugLineNum = 16319017;BA.debugLine="If conn = \"1\" Then"; -if ((__ref._conn /*String*/ ).equals("1")) { -RDebugUtils.currentLine=16319018; - //BA.debugLineNum = 16319018;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se"; + //BA.debugLineNum = 2374;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO RUTA"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO RUTAA(RUTAA) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_e_ruta.getText())})); + //BA.debugLineNum = 2376;BA.debugLine="B4XPages.MainPage.rutaPreventa = e_ruta.TEXT"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._rutapreventa /*String*/ = _e_ruta.getText(); + //BA.debugLineNum = 2378;BA.debugLine="If conn = \"1\" Then"; +if ((_conn).equals("1")) { + //BA.debugLineNum = 2379;BA.debugLine="ToastMessageShow(\"Existe Conexión con el Se"; __c.ToastMessageShow(BA.ObjectToCharSequence("Existe Conexión con el Servidor."),__c.True); }; }else { -RDebugUtils.currentLine=16319021; - //BA.debugLineNum = 16319021;BA.debugLine="MsgboxAsync(\"La ruta no esta asignada a este"; + //BA.debugLineNum = 2382;BA.debugLine="MsgboxAsync(\"La ruta no esta asignada a este"; __c.MsgboxAsync(BA.ObjectToCharSequence("La ruta no esta asignada a este usuario"),BA.ObjectToCharSequence("Atención"),ba); -RDebugUtils.currentLine=16319022; - //BA.debugLineNum = 16319022;BA.debugLine="cargar.Visible = False"; -__ref._cargar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16319023; - //BA.debugLineNum = 16319023;BA.debugLine="Subir.Visible = False"; -__ref._subir /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16319024; - //BA.debugLineNum = 16319024;BA.debugLine="inv.Visible = False"; -__ref._inv /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16319025; - //BA.debugLineNum = 16319025;BA.debugLine="connecta.Visible = False"; -__ref._connecta /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); + //BA.debugLineNum = 2383;BA.debugLine="cargar.Visible = False"; +_cargar.setVisible(__c.False); + //BA.debugLineNum = 2384;BA.debugLine="Subir.Visible = False"; +_subir.setVisible(__c.False); + //BA.debugLineNum = 2385;BA.debugLine="inv.Visible = False"; +_inv.setVisible(__c.False); + //BA.debugLineNum = 2386;BA.debugLine="connecta.Visible = False"; +_connecta.setVisible(__c.False); }; } }; }; }; -RDebugUtils.currentLine=16319031; - //BA.debugLineNum = 16319031;BA.debugLine="If Job.JobName = \"DBRequest\" Then 'Traemos las c"; + //BA.debugLineNum = 2392;BA.debugLine="If Job.JobName = \"DBRequest\" Then 'Traemos las c"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16319032; - //BA.debugLineNum = 16319032;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16319033; - //BA.debugLineNum = 16319033;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta"; + //BA.debugLineNum = 2393;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2394;BA.debugLine="If result.Tag = \"coords_almacen\" Then 'query ta"; if ((_result.Tag /*Object*/ ).equals((Object)("coords_almacen"))) { -RDebugUtils.currentLine=16319034; - //BA.debugLineNum = 16319034;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2395;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group475 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen475 = group475.getSize() -;int index475 = 0; +final anywheresoftware.b4a.BA.IterableList group476 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen476 = group476.getSize() +;int index476 = 0; ; -for (; index475 < groupLen475;index475++){ -_records = (Object[])(group475.Get(index475)); -RDebugUtils.currentLine=16319035; - //BA.debugLineNum = 16319035;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res"; -__c.LogImpl("216319035","Coordenadas del almacen: "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])+","+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]),0); -RDebugUtils.currentLine=16319036; - //BA.debugLineNum = 16319036;BA.debugLine="Private lat, lon As Double"; +for (; index476 < groupLen476;index476++){ +_records = (Object[])(group476.Get(index476)); + //BA.debugLineNum = 2396;BA.debugLine="Log(\"Coordenadas del almacen: \" & records(res"; +__c.LogImpl("015204924","Coordenadas del almacen: "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])+","+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]),0); + //BA.debugLineNum = 2397;BA.debugLine="Private lat, lon As Double"; _lat = 0; _lon = 0; -RDebugUtils.currentLine=16319037; - //BA.debugLineNum = 16319037;BA.debugLine="lat = 0.0"; + //BA.debugLineNum = 2398;BA.debugLine="lat = 0.0"; _lat = 0.0; -RDebugUtils.currentLine=16319038; - //BA.debugLineNum = 16319038;BA.debugLine="lon = 0.0"; + //BA.debugLineNum = 2399;BA.debugLine="lon = 0.0"; _lon = 0.0; -RDebugUtils.currentLine=16319039; - //BA.debugLineNum = 16319039;BA.debugLine="If IsNumber(records(result.Columns.Get(\"CAT_A"; + //BA.debugLineNum = 2400;BA.debugLine="If IsNumber(records(result.Columns.Get(\"CAT_A"; if (__c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])) && __c.IsNumber(BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))]))) { -RDebugUtils.currentLine=16319040; - //BA.debugLineNum = 16319040;BA.debugLine="lat = records(result.Columns.Get(\"CAT_AL_LAT"; + //BA.debugLineNum = 2401;BA.debugLine="lat = records(result.Columns.Get(\"CAT_AL_LAT"; _lat = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LATITUD"))))])); -RDebugUtils.currentLine=16319041; - //BA.debugLineNum = 16319041;BA.debugLine="lon = records(result.Columns.Get(\"CAT_AL_LON"; + //BA.debugLineNum = 2402;BA.debugLine="lon = records(result.Columns.Get(\"CAT_AL_LON"; _lon = (double)(BA.ObjectToNumber(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)("CAT_AL_LONGITUD"))))])); }; -RDebugUtils.currentLine=16319043; - //BA.debugLineNum = 16319043;BA.debugLine="Starter.cedisLocation.Latitude = lat"; + //BA.debugLineNum = 2404;BA.debugLine="Starter.cedisLocation.Latitude = lat"; _starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLatitude(_lat); -RDebugUtils.currentLine=16319044; - //BA.debugLineNum = 16319044;BA.debugLine="Starter.cedisLocation.Longitude = lon"; + //BA.debugLineNum = 2405;BA.debugLine="Starter.cedisLocation.Longitude = lon"; _starter._cedislocation /*anywheresoftware.b4a.gps.LocationWrapper*/ .setLongitude(_lon); -RDebugUtils.currentLine=16319045; - //BA.debugLineNum = 16319045;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_V"; + //BA.debugLineNum = 2406;BA.debugLine="Starter.skmt.ExecNonQuery2(\"delete from CAT_V"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("delete from CAT_VARIABLES where CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN")})); -RDebugUtils.currentLine=16319046; - //BA.debugLineNum = 16319046;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V"; + //BA.debugLineNum = 2407;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CAT_V"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CAT_VARIABLES(CAT_VA_DESCRIPCION, CAT_VA_VALOR) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("COORDS_ALMACEN"),(Object)(BA.NumberToString(_lon)+","+BA.NumberToString(_lat))})); } }; }; }; -RDebugUtils.currentLine=16319052; - //BA.debugLineNum = 16319052;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2413;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16319053; - //BA.debugLineNum = 16319053;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16319054; - //BA.debugLineNum = 16319054;BA.debugLine="If result.Tag = \"contra\" Then 'query tag"; + //BA.debugLineNum = 2414;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2415;BA.debugLine="If result.Tag = \"contra\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("contra"))) { -RDebugUtils.currentLine=16319055; - //BA.debugLineNum = 16319055;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2416;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group494 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen494 = group494.getSize() -;int index494 = 0; +final anywheresoftware.b4a.BA.IterableList group495 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; +final int groupLen495 = group495.getSize() +;int index495 = 0; ; -for (; index494 < groupLen494;index494++){ -_records = (Object[])(group494.Get(index494)); -RDebugUtils.currentLine=16319056; - //BA.debugLineNum = 16319056;BA.debugLine="Dim name As String = records(result.Columns.G"; +for (; index495 < groupLen495;index495++){ +_records = (Object[])(group495.Get(index495)); + //BA.debugLineNum = 2417;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)("CONTRA"))))]); } }; -RDebugUtils.currentLine=16319059; - //BA.debugLineNum = 16319059;BA.debugLine="paso1 = 1"; -__ref._paso1 /*String*/ = BA.NumberToString(1); + //BA.debugLineNum = 2420;BA.debugLine="paso1 = 1"; +_paso1 = BA.NumberToString(1); }; }; -RDebugUtils.currentLine=16319063; - //BA.debugLineNum = 16319063;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; + //BA.debugLineNum = 2424;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16319064; - //BA.debugLineNum = 16319064;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16319065; - //BA.debugLineNum = 16319065;BA.debugLine="If result.Tag = \"ins_reparto\" Then 'query tag"; + //BA.debugLineNum = 2425;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2426;BA.debugLine="If result.Tag = \"ins_reparto\" Then 'query tag"; if ((_result.Tag /*Object*/ ).equals((Object)("ins_reparto"))) { -RDebugUtils.currentLine=16319066; - //BA.debugLineNum = 16319066;BA.debugLine="For Each records() As Object In result.Rows"; + //BA.debugLineNum = 2427;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group503 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen503 = group503.getSize() -;int index503 = 0; -; -for (; index503 < groupLen503;index503++){ -_records = (Object[])(group503.Get(index503)); -RDebugUtils.currentLine=16319067; - //BA.debugLineNum = 16319067;BA.debugLine="For Each k As String In result.Columns.Keys"; -{ -final anywheresoftware.b4a.BA.IterableList group504 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); +final anywheresoftware.b4a.BA.IterableList group504 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen504 = group504.getSize() ;int index504 = 0; ; for (; index504 < groupLen504;index504++){ -_k = BA.ObjectToString(group504.Get(index504)); -RDebugUtils.currentLine=16319068; - //BA.debugLineNum = 16319068;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)"; -__c.LogImpl("216319068",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); - } -}; - } -}; - }; - }; -RDebugUtils.currentLine=16319074; - //BA.debugLineNum = 16319074;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; -if ((_job._jobname /*String*/ ).equals("DBRequest")) { -RDebugUtils.currentLine=16319075; - //BA.debugLineNum = 16319075;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; -_result = __ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (null,_job); -RDebugUtils.currentLine=16319076; - //BA.debugLineNum = 16319076;BA.debugLine="If result.Tag = \"ins_rechazos\" Then 'query tag"; -if ((_result.Tag /*Object*/ ).equals((Object)("ins_rechazos"))) { -RDebugUtils.currentLine=16319077; - //BA.debugLineNum = 16319077;BA.debugLine="For Each records() As Object In result.Rows"; +_records = (Object[])(group504.Get(index504)); + //BA.debugLineNum = 2428;BA.debugLine="For Each k As String In result.Columns.Keys"; { -final anywheresoftware.b4a.BA.IterableList group513 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; -final int groupLen513 = group513.getSize() -;int index513 = 0; +final anywheresoftware.b4a.BA.IterableList group505 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); +final int groupLen505 = group505.getSize() +;int index505 = 0; ; -for (; index513 < groupLen513;index513++){ -_records = (Object[])(group513.Get(index513)); -RDebugUtils.currentLine=16319078; - //BA.debugLineNum = 16319078;BA.debugLine="For Each k As String In result.Columns.Keys"; +for (; index505 < groupLen505;index505++){ +_k = BA.ObjectToString(group505.Get(index505)); + //BA.debugLineNum = 2429;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)"; +__c.LogImpl("015204957",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); + } +}; + } +}; + }; + }; + //BA.debugLineNum = 2435;BA.debugLine="If Job.JobName = \"DBRequest\" Then"; +if ((_job._jobname /*String*/ ).equals("DBRequest")) { + //BA.debugLineNum = 2436;BA.debugLine="Dim result As DBResult = reqManager.HandleJob(J"; +_result = _reqmanager._handlejob /*reparto_izca.keymon.lat.dbrequestmanager._dbresult*/ (_job); + //BA.debugLineNum = 2437;BA.debugLine="If result.Tag = \"ins_rechazos\" Then 'query tag"; +if ((_result.Tag /*Object*/ ).equals((Object)("ins_rechazos"))) { + //BA.debugLineNum = 2438;BA.debugLine="For Each records() As Object In result.Rows"; { -final anywheresoftware.b4a.BA.IterableList group514 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); +final anywheresoftware.b4a.BA.IterableList group514 = _result.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen514 = group514.getSize() ;int index514 = 0; ; for (; index514 < groupLen514;index514++){ -_k = BA.ObjectToString(group514.Get(index514)); -RDebugUtils.currentLine=16319079; - //BA.debugLineNum = 16319079;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)"; -__c.LogImpl("216319079",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); +_records = (Object[])(group514.Get(index514)); + //BA.debugLineNum = 2439;BA.debugLine="For Each k As String In result.Columns.Keys"; +{ +final anywheresoftware.b4a.BA.IterableList group515 = _result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); +final int groupLen515 = group515.getSize() +;int index515 = 0; +; +for (; index515 < groupLen515;index515++){ +_k = BA.ObjectToString(group515.Get(index515)); + //BA.debugLineNum = 2440;BA.debugLine="Log(k & \": \" & records(result.Columns.Get(k)"; +__c.LogImpl("015204968",_k+": "+BA.ObjectToString(_records[(int)(BA.ObjectToNumber(_result.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Get((Object)(_k))))]),0); } }; } }; }; }; -RDebugUtils.currentLine=16319084; - //BA.debugLineNum = 16319084;BA.debugLine="Job.Release"; -_job._release /*String*/ (null); + //BA.debugLineNum = 2445;BA.debugLine="Job.Release"; +_job._release /*String*/ (); }; -RDebugUtils.currentLine=16319090; - //BA.debugLineNum = 16319090;BA.debugLine="If paso1 = 1 Then"; -if ((__ref._paso1 /*String*/ ).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=16319093; - //BA.debugLineNum = 16319093;BA.debugLine="If name = \"OK\"&et_codigo.Text Then"; -if ((_name).equals("OK"+__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())) { -RDebugUtils.currentLine=16319094; - //BA.debugLineNum = 16319094;BA.debugLine="p_validacion.Visible = False"; -__ref._p_validacion /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16319095; - //BA.debugLineNum = 16319095;BA.debugLine="et_codigo.Text = \"\""; -__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=16319096; - //BA.debugLineNum = 16319096;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; + //BA.debugLineNum = 2451;BA.debugLine="If paso1 = 1 Then"; +if ((_paso1).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 2454;BA.debugLine="If name = \"OK\"&et_codigo.Text Then"; +if ((_name).equals("OK"+_et_codigo.getText())) { + //BA.debugLineNum = 2455;BA.debugLine="p_validacion.Visible = False"; +_p_validacion.setVisible(__c.False); + //BA.debugLineNum = 2456;BA.debugLine="et_codigo.Text = \"\""; +_et_codigo.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2457;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); -RDebugUtils.currentLine=16319097; - //BA.debugLineNum = 16319097;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA"; + //BA.debugLineNum = 2458;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)("63403")})); -RDebugUtils.currentLine=16319099; - //BA.debugLineNum = 16319099;BA.debugLine="Subs.panelVisible(P_CIEGO,0,0)"; -_subs._panelvisible /*String*/ (ba,__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ ,(int) (0),(int) (0)); -RDebugUtils.currentLine=16319100; - //BA.debugLineNum = 16319100;BA.debugLine="P_CIEGO.Width = Root.Width"; -__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setWidth(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=16319101; - //BA.debugLineNum = 16319101;BA.debugLine="P_CIEGO.Height = Root.Height"; -__ref._p_ciego /*anywheresoftware.b4a.objects.PanelWrapper*/ .setHeight(__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=16319103; - //BA.debugLineNum = 16319103;BA.debugLine="CLV_PICK_CIEGO.Clear"; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=16319105; - //BA.debugLineNum = 16319105;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery(\"se"; + //BA.debugLineNum = 2460;BA.debugLine="Subs.panelVisible(P_CIEGO,0,0)"; +_subs._panelvisible /*String*/ (ba,_p_ciego,(int) (0),(int) (0)); + //BA.debugLineNum = 2461;BA.debugLine="P_CIEGO.Width = Root.Width"; +_p_ciego.setWidth(_root.getWidth()); + //BA.debugLineNum = 2462;BA.debugLine="P_CIEGO.Height = Root.Height"; +_p_ciego.setHeight(_root.getHeight()); + //BA.debugLineNum = 2464;BA.debugLine="CLV_PICK_CIEGO.Clear"; +_clv_pick_ciego._clear(); + //BA.debugLineNum = 2466;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 HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID, ifnull(PC_CANT,0) AS PC_CAN from HIST_VENTAS INNER JOIN PICK_CIEGO ON PC_ID_PROD = HVD_PROID WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 and HVD_PRONOMBRE <> 'Cobranza Pendiente' GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=16319106; - //BA.debugLineNum = 16319106;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=16319109; - //BA.debugLineNum = 16319109;BA.debugLine="For i = 0 To c.RowCount - 1"; + //BA.debugLineNum = 2467;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 2470;BA.debugLine="For i = 0 To c.RowCount - 1"; { -final int step534 = 1; -final int limit534 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int step535 = 1; +final int limit535 = (int) (_c.getRowCount()-1); _i = (int) (0) ; -for (;_i <= limit534 ;_i = _i + step534 ) { -RDebugUtils.currentLine=16319110; - //BA.debugLineNum = 16319110;BA.debugLine="c.Position = i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=16319113; - //BA.debugLineNum = 16319113;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\""; +for (;_i <= limit535 ;_i = _i + step535 ) { + //BA.debugLineNum = 2471;BA.debugLine="c.Position = i"; +_c.setPosition(_i); + //BA.debugLineNum = 2474;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\""; _c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); -RDebugUtils.currentLine=16319114; - //BA.debugLineNum = 16319114;BA.debugLine="Private resta As String = 0"; +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); + //BA.debugLineNum = 2475;BA.debugLine="Private resta As String = 0"; _resta = BA.NumberToString(0); -RDebugUtils.currentLine=16319116; - //BA.debugLineNum = 16319116;BA.debugLine="If c3.RowCount > 0 Then"; + //BA.debugLineNum = 2477;BA.debugLine="If c3.RowCount > 0 Then"; if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=16319117; - //BA.debugLineNum = 16319117;BA.debugLine="c3.Position = 0"; + //BA.debugLineNum = 2478;BA.debugLine="c3.Position = 0"; _c3.setPosition((int) (0)); -RDebugUtils.currentLine=16319118; - //BA.debugLineNum = 16319118;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 2479;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; _resta = _c3.GetString("PE_CANT"); }else { -RDebugUtils.currentLine=16319120; - //BA.debugLineNum = 16319120;BA.debugLine="resta = 0"; + //BA.debugLineNum = 2481;BA.debugLine="resta = 0"; _resta = BA.NumberToString(0); }; -RDebugUtils.currentLine=16319122; - //BA.debugLineNum = 16319122;BA.debugLine="If ( c.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { + //BA.debugLineNum = 2483;BA.debugLine="If ( c.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0"; +if ((_c.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { }else { -RDebugUtils.currentLine=16319125; - //BA.debugLineNum = 16319125;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem(c.GetString"; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PC_CAN"),BA.NumberToString((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))).getObject())),(Object)(_i)); + //BA.debugLineNum = 2486;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem(c.GetString"; +_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PROID"),_c.GetString("HVD_PRONOMBRE"),_c.GetString("PC_CAN"),BA.NumberToString((_c.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))).getObject())),(Object)(_i)); }; } }; -RDebugUtils.currentLine=16319131; - //BA.debugLineNum = 16319131;BA.debugLine="d = Starter.skmt.ExecQuery(\"select HVD_PRONOMBR"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 and HVD_PROID NOT IN (SELECT PC_ID_PROD FROM PICK_CIEGO) and HVD_PRONOMBRE <> 'Cobranza Pendiente' GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=16319133; - //BA.debugLineNum = 16319133;BA.debugLine="For i = 0 To d.RowCount - 1"; + //BA.debugLineNum = 2492;BA.debugLine="d = Starter.skmt.ExecQuery(\"select HVD_PRONOMBR"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 and HVD_PROID NOT IN (SELECT PC_ID_PROD FROM PICK_CIEGO) and HVD_PRONOMBRE <> 'Cobranza Pendiente' GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 2494;BA.debugLine="For i = 0 To d.RowCount - 1"; { -final int step550 = 1; -final int limit550 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int step551 = 1; +final int limit551 = (int) (_d.getRowCount()-1); _i = (int) (0) ; -for (;_i <= limit550 ;_i = _i + step550 ) { -RDebugUtils.currentLine=16319134; - //BA.debugLineNum = 16319134;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=16319137; - //BA.debugLineNum = 16319137;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\""; +for (;_i <= limit551 ;_i = _i + step551 ) { + //BA.debugLineNum = 2495;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 2498;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\""; _c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); -RDebugUtils.currentLine=16319138; - //BA.debugLineNum = 16319138;BA.debugLine="Private resta As String = 0"; +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_d.GetString("HVD_PROID")))+"' and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); + //BA.debugLineNum = 2499;BA.debugLine="Private resta As String = 0"; _resta = BA.NumberToString(0); -RDebugUtils.currentLine=16319140; - //BA.debugLineNum = 16319140;BA.debugLine="If c3.RowCount > 0 Then"; + //BA.debugLineNum = 2501;BA.debugLine="If c3.RowCount > 0 Then"; if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=16319141; - //BA.debugLineNum = 16319141;BA.debugLine="c3.Position = 0"; + //BA.debugLineNum = 2502;BA.debugLine="c3.Position = 0"; _c3.setPosition((int) (0)); -RDebugUtils.currentLine=16319142; - //BA.debugLineNum = 16319142;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 2503;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; _resta = _c3.GetString("PE_CANT"); }else { -RDebugUtils.currentLine=16319144; - //BA.debugLineNum = 16319144;BA.debugLine="resta = 0"; + //BA.debugLineNum = 2505;BA.debugLine="resta = 0"; _resta = BA.NumberToString(0); }; -RDebugUtils.currentLine=16319146; - //BA.debugLineNum = 16319146;BA.debugLine="If ( d.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0"; -if ((__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { + //BA.debugLineNum = 2507;BA.debugLine="If ( d.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0"; +if ((_d.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { }else { -RDebugUtils.currentLine=16319149; - //BA.debugLineNum = 16319149;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetStrin"; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),BA.NumberToString((__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))).getObject())),(Object)(_i)); + //BA.debugLineNum = 2510;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetStrin"; +_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_d.GetString("HVD_PROID"),_d.GetString("HVD_PRONOMBRE"),BA.NumberToString((_d.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))).getObject())),(Object)(_i)); }; } }; - }else -{RDebugUtils.currentLine=16319155; - //BA.debugLineNum = 16319155;BA.debugLine="Else If c.RowCount = 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=16319156; - //BA.debugLineNum = 16319156;BA.debugLine="d = Starter.skmt.ExecQuery(\"select HVD_PRONOMBR"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 and HVD_PRONOMBRE <> 'Cobranza Pendiente' GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=16319158; - //BA.debugLineNum = 16319158;BA.debugLine="For i = 0 To d.RowCount - 1"; + }else if(_c.getRowCount()==0) { + //BA.debugLineNum = 2517;BA.debugLine="d = Starter.skmt.ExecQuery(\"select HVD_PRONOMBR"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 and HVD_PRONOMBRE <> 'Cobranza Pendiente' GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 2519;BA.debugLine="For i = 0 To d.RowCount - 1"; { -final int step567 = 1; -final int limit567 = (int) (__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int step568 = 1; +final int limit568 = (int) (_d.getRowCount()-1); _i = (int) (0) ; -for (;_i <= limit567 ;_i = _i + step567 ) { -RDebugUtils.currentLine=16319159; - //BA.debugLineNum = 16319159;BA.debugLine="d.Position = i"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=16319162; - //BA.debugLineNum = 16319162;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\""; +for (;_i <= limit568 ;_i = _i + step568 ) { + //BA.debugLineNum = 2520;BA.debugLine="d.Position = i"; +_d.setPosition(_i); + //BA.debugLineNum = 2523;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\""; _c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); -RDebugUtils.currentLine=16319163; - //BA.debugLineNum = 16319163;BA.debugLine="Private resta As String = 0"; +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_d.GetString("HVD_PROID")))+"'and PE_TIPO NOT IN ('DANADO','FALTANTE','SOBRANTE')")))); + //BA.debugLineNum = 2524;BA.debugLine="Private resta As String = 0"; _resta = BA.NumberToString(0); -RDebugUtils.currentLine=16319165; - //BA.debugLineNum = 16319165;BA.debugLine="If c3.RowCount > 0 Then"; + //BA.debugLineNum = 2526;BA.debugLine="If c3.RowCount > 0 Then"; if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=16319166; - //BA.debugLineNum = 16319166;BA.debugLine="c3.Position = 0"; + //BA.debugLineNum = 2527;BA.debugLine="c3.Position = 0"; _c3.setPosition((int) (0)); -RDebugUtils.currentLine=16319167; - //BA.debugLineNum = 16319167;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 2528;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; _resta = _c3.GetString("PE_CANT"); }else { -RDebugUtils.currentLine=16319169; - //BA.debugLineNum = 16319169;BA.debugLine="resta = 0"; + //BA.debugLineNum = 2530;BA.debugLine="resta = 0"; _resta = BA.NumberToString(0); }; -RDebugUtils.currentLine=16319171; - //BA.debugLineNum = 16319171;BA.debugLine="If ( d.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0"; -if ((__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { + //BA.debugLineNum = 2532;BA.debugLine="If ( d.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0"; +if ((_d.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { }else { -RDebugUtils.currentLine=16319174; - //BA.debugLineNum = 16319174;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetStrin"; -__ref._clv_pick_ciego /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),BA.NumberToString((__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))).getObject())),(Object)(_i)); + //BA.debugLineNum = 2535;BA.debugLine="CLV_PICK_CIEGO.Add(CreateListItem2(d.GetStrin"; +_clv_pick_ciego._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_d.GetString("HVD_PROID"),_d.GetString("HVD_PRONOMBRE"),BA.NumberToString((_d.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta))))).getObject())),(Object)(_i)); }; } }; - }} -; -RDebugUtils.currentLine=16319180; - //BA.debugLineNum = 16319180;BA.debugLine="paso1 = 0"; -__ref._paso1 /*String*/ = BA.NumberToString(0); + }; + //BA.debugLineNum = 2541;BA.debugLine="paso1 = 0"; +_paso1 = BA.NumberToString(0); }else { -RDebugUtils.currentLine=16319182; - //BA.debugLineNum = 16319182;BA.debugLine="et_codigo.Text = \"\""; -__ref._et_codigo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=16319183; - //BA.debugLineNum = 16319183;BA.debugLine="Msgbox(\"Password No valido\",\"Atención\") 'ignore"; + //BA.debugLineNum = 2543;BA.debugLine="et_codigo.Text = \"\""; +_et_codigo.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 2544;BA.debugLine="Msgbox(\"Password No valido\",\"Atención\") 'ignore"; __c.Msgbox(BA.ObjectToCharSequence("Password No valido"),BA.ObjectToCharSequence("Atención"),ba); }; }; -RDebugUtils.currentLine=16319187; - //BA.debugLineNum = 16319187;BA.debugLine="If reqs.Size = 0 Then"; -if (__ref._reqs /*anywheresoftware.b4a.objects.collections.List*/ .getSize()==0) { -RDebugUtils.currentLine=16319193; - //BA.debugLineNum = 16319193;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS C"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS FROM CHECADO_CHECK"))); -RDebugUtils.currentLine=16319194; - //BA.debugLineNum = 16319194;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=16319195; - //BA.debugLineNum = 16319195;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=16319196; - //BA.debugLineNum = 16319196;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into CHECADO"; + //BA.debugLineNum = 2548;BA.debugLine="If reqs.Size = 0 Then"; +if (_reqs.getSize()==0) { + //BA.debugLineNum = 2554;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT COUNT(*) AS C"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT COUNT(*) AS CUANTOS FROM CHECADO_CHECK"))); + //BA.debugLineNum = 2555;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 2556;BA.debugLine="If c.GetString(\"CUANTOS\") = 0 Then"; +if ((_c.GetString("CUANTOS")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 2557;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into CHECADO"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into CHECADO_CHECK (CHECADO) VALUES(?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{"0"})); - }else -{RDebugUtils.currentLine=16319198; - //BA.debugLineNum = 16319198;BA.debugLine="Else If c.GetString(\"CUANTOS\") = 1 Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CUANTOS")).equals(BA.NumberToString(1))) { - }} -; -RDebugUtils.currentLine=16319201; - //BA.debugLineNum = 16319201;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + }else if((_c.GetString("CUANTOS")).equals(BA.NumberToString(1))) { }; -RDebugUtils.currentLine=16319207; - //BA.debugLineNum = 16319207;BA.debugLine="End Sub"; + //BA.debugLineNum = 2562;BA.debugLine="c.Close"; +_c.Close(); + }; + //BA.debugLineNum = 2568;BA.debugLine="End Sub"; return ""; } -public String _listview1_itemclick(reparto_izca.keymon.lat.c_principal __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "listview1_itemclick", false)) - {return ((String) Debug.delegate(ba, "listview1_itemclick", new Object[] {_position,_value}));} +public String _listview1_itemclick(int _position,Object _value) throws Exception{ String[] _clieasing = null; -RDebugUtils.currentLine=17170432; - //BA.debugLineNum = 17170432;BA.debugLine="Private Sub ListView1_ItemClick (Position As Int,"; -RDebugUtils.currentLine=17170433; - //BA.debugLineNum = 17170433;BA.debugLine="Log(Value)"; -__c.LogImpl("217170433",BA.ObjectToString(_value),0); -RDebugUtils.currentLine=17170435; - //BA.debugLineNum = 17170435;BA.debugLine="Dim clieasing() As String = Regex.Split(\" \", Valu"; + //BA.debugLineNum = 2961;BA.debugLine="Private Sub ListView1_ItemClick (Position As Int,"; + //BA.debugLineNum = 2962;BA.debugLine="Log(Value)"; +__c.LogImpl("016056321",BA.ObjectToString(_value),0); + //BA.debugLineNum = 2964;BA.debugLine="Dim clieasing() As String = Regex.Split(\" \", Valu"; _clieasing = __c.Regex.Split(" ",BA.ObjectToString(_value)); -RDebugUtils.currentLine=17170436; - //BA.debugLineNum = 17170436;BA.debugLine="Log(clieasing(0))"; -__c.LogImpl("217170436",_clieasing[(int) (0)],0); -RDebugUtils.currentLine=17170438; - //BA.debugLineNum = 17170438;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; + //BA.debugLineNum = 2965;BA.debugLine="Log(clieasing(0))"; +__c.LogImpl("016056324",_clieasing[(int) (0)],0); + //BA.debugLineNum = 2967;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); -RDebugUtils.currentLine=17170439; - //BA.debugLineNum = 17170439;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V"; + //BA.debugLineNum = 2968;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_clieasing[(int) (0)])})); -RDebugUtils.currentLine=17170440; - //BA.debugLineNum = 17170440;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; + //BA.debugLineNum = 2969;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; _b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=17170441; - //BA.debugLineNum = 17170441;BA.debugLine="Panel1.Visible = False"; -__ref._panel1 /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=17170442; - //BA.debugLineNum = 17170442;BA.debugLine="End Sub"; + //BA.debugLineNum = 2970;BA.debugLine="Panel1.Visible = False"; +_panel1.setVisible(__c.False); + //BA.debugLineNum = 2971;BA.debugLine="End Sub"; return ""; } -public String _p_carga_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "p_carga_click", false)) - {return ((String) Debug.delegate(ba, "p_carga_click", null));} -RDebugUtils.currentLine=17563648; - //BA.debugLineNum = 17563648;BA.debugLine="Private Sub P_carga_Click"; -RDebugUtils.currentLine=17563650; - //BA.debugLineNum = 17563650;BA.debugLine="End Sub"; +public String _p_carga_click() throws Exception{ + //BA.debugLineNum = 3085;BA.debugLine="Private Sub P_carga_Click"; + //BA.debugLineNum = 3087;BA.debugLine="End Sub"; return ""; } -public String _p_ciego_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "p_ciego_click", false)) - {return ((String) Debug.delegate(ba, "p_ciego_click", null));} -RDebugUtils.currentLine=18219008; - //BA.debugLineNum = 18219008;BA.debugLine="Private Sub P_CIEGO_Click"; -RDebugUtils.currentLine=18219010; - //BA.debugLineNum = 18219010;BA.debugLine="End Sub"; +public String _p_ciego_click() throws Exception{ + //BA.debugLineNum = 3838;BA.debugLine="Private Sub P_CIEGO_Click"; + //BA.debugLineNum = 3840;BA.debugLine="End Sub"; return ""; } -public String _p_prod_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "p_prod_click", false)) - {return ((String) Debug.delegate(ba, "p_prod_click", null));} -RDebugUtils.currentLine=17367040; - //BA.debugLineNum = 17367040;BA.debugLine="Private Sub p_prod_Click"; -RDebugUtils.currentLine=17367042; - //BA.debugLineNum = 17367042;BA.debugLine="End Sub"; +public String _p_prod_click() throws Exception{ + //BA.debugLineNum = 3033;BA.debugLine="Private Sub p_prod_Click"; + //BA.debugLineNum = 3035;BA.debugLine="End Sub"; return ""; } -public String _p_validacion_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "p_validacion_click", false)) - {return ((String) Debug.delegate(ba, "p_validacion_click", null));} -RDebugUtils.currentLine=18677760; - //BA.debugLineNum = 18677760;BA.debugLine="Private Sub p_validacion_Click"; -RDebugUtils.currentLine=18677762; - //BA.debugLineNum = 18677762;BA.debugLine="End Sub"; +public String _p_validacion_click() throws Exception{ + //BA.debugLineNum = 3902;BA.debugLine="Private Sub p_validacion_Click"; + //BA.debugLineNum = 3904;BA.debugLine="End Sub"; return ""; } -public String _printer_connected(reparto_izca.keymon.lat.c_principal __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "printer_connected", false)) - {return ((String) Debug.delegate(ba, "printer_connected", new Object[] {_success}));} -RDebugUtils.currentLine=17825792; - //BA.debugLineNum = 17825792;BA.debugLine="Sub Printer_Connected (Success As Boolean)"; -RDebugUtils.currentLine=17825793; - //BA.debugLineNum = 17825793;BA.debugLine="If Success Then"; +public String _printer_connected(boolean _success) throws Exception{ + //BA.debugLineNum = 3226;BA.debugLine="Sub Printer_Connected (Success As Boolean)"; + //BA.debugLineNum = 3227;BA.debugLine="If Success Then"; if (_success) { -RDebugUtils.currentLine=17825795; - //BA.debugLineNum = 17825795;BA.debugLine="PASA_IMP = \"1\""; -__ref._pasa_imp /*String*/ = "1"; + //BA.debugLineNum = 3229;BA.debugLine="PASA_IMP = \"1\""; +_pasa_imp = "1"; }else { -RDebugUtils.currentLine=17825798; - //BA.debugLineNum = 17825798;BA.debugLine="If Msgbox2(\"\", \"Printer Error\",\"Reprint\",\"Cancel"; + //BA.debugLineNum = 3232;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) { -RDebugUtils.currentLine=17825799; - //BA.debugLineNum = 17825799;BA.debugLine="StartPrinter"; -__ref._startprinter /*String*/ (null); + //BA.debugLineNum = 3233;BA.debugLine="StartPrinter"; +_startprinter(); }; }; -RDebugUtils.currentLine=17825802; - //BA.debugLineNum = 17825802;BA.debugLine="End Sub"; + //BA.debugLineNum = 3236;BA.debugLine="End Sub"; return ""; } -public String _startprinter(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "startprinter", false)) - {return ((String) Debug.delegate(ba, "startprinter", null));} +public String _printer1_connected(boolean _success) throws Exception{ + //BA.debugLineNum = 3201;BA.debugLine="Sub Printer1_Connected (Success As Boolean)"; + //BA.debugLineNum = 3203;BA.debugLine="If Success Then"; +if (_success) { + //BA.debugLineNum = 3204;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)"; +__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False); + //BA.debugLineNum = 3205;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 = 3206;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 = 3209;BA.debugLine="impresoraConectada = True"; +_impresoraconectada = __c.True; + }else { + //BA.debugLineNum = 3213;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors"; +__c.LogImpl("016580620","Error conectando la impresora",__c.Colors.Red); + //BA.debugLineNum = 3214;BA.debugLine="errorImpresora = errorImpresora + 1"; +_errorimpresora = (int) (_errorimpresora+1); + //BA.debugLineNum = 3215;BA.debugLine="If errorImpresora > 1 Then"; +if (_errorimpresora>1) { + //BA.debugLineNum = 3216;BA.debugLine="Starter.MAC_IMPRESORA = \"0\""; +_starter._mac_impresora /*String*/ = "0"; + //BA.debugLineNum = 3217;BA.debugLine="errorImpresora = 0"; +_errorimpresora = (int) (0); + }; + }; + //BA.debugLineNum = 3220;BA.debugLine="End Sub"; +return ""; +} +public String _printer1_error() throws Exception{ + //BA.debugLineNum = 3222;BA.debugLine="Sub Printer1_Error"; + //BA.debugLineNum = 3223;BA.debugLine="Log(\"error printer\")"; +__c.LogImpl("016646145","error printer",0); + //BA.debugLineNum = 3224;BA.debugLine="End Sub"; +return ""; +} +public String _startprinter() throws Exception{ anywheresoftware.b4a.objects.collections.Map _paireddevices = null; anywheresoftware.b4a.objects.collections.List _l1 = null; int _resimp = 0; int _i = 0; -RDebugUtils.currentLine=17891328; - //BA.debugLineNum = 17891328;BA.debugLine="Sub StartPrinter"; -RDebugUtils.currentLine=17891329; - //BA.debugLineNum = 17891329;BA.debugLine="Dim PairedDevices As Map"; + //BA.debugLineNum = 3238;BA.debugLine="Sub StartPrinter"; + //BA.debugLineNum = 3239;BA.debugLine="Dim PairedDevices As Map"; _paireddevices = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=17891330; - //BA.debugLineNum = 17891330;BA.debugLine="Dim L1 As List"; + //BA.debugLineNum = 3240;BA.debugLine="Dim L1 As List"; _l1 = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=17891331; - //BA.debugLineNum = 17891331;BA.debugLine="Dim resimp As Int"; + //BA.debugLineNum = 3241;BA.debugLine="Dim resimp As Int"; _resimp = 0; -RDebugUtils.currentLine=17891332; - //BA.debugLineNum = 17891332;BA.debugLine="ToastMessageShow(\"Printing.....\",True)"; + //BA.debugLineNum = 3242;BA.debugLine="ToastMessageShow(\"Printing.....\",True)"; __c.ToastMessageShow(BA.ObjectToCharSequence("Printing....."),__c.True); -RDebugUtils.currentLine=17891333; - //BA.debugLineNum = 17891333;BA.debugLine="PairedDevices.Initialize"; + //BA.debugLineNum = 3243;BA.debugLine="PairedDevices.Initialize"; _paireddevices.Initialize(); -RDebugUtils.currentLine=17891334; - //BA.debugLineNum = 17891334;BA.debugLine="Try"; -try {RDebugUtils.currentLine=17891335; - //BA.debugLineNum = 17891335;BA.debugLine="PairedDevices = cmp20.GetPairedDevices"; -_paireddevices = __ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .GetPairedDevices(); + //BA.debugLineNum = 3244;BA.debugLine="Try"; +try { //BA.debugLineNum = 3245;BA.debugLine="PairedDevices = cmp20.GetPairedDevices"; +_paireddevices = _cmp20.GetPairedDevices(); } catch (Exception e9) { - ba.setLastException(e9);RDebugUtils.currentLine=17891337; - //BA.debugLineNum = 17891337;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")"; + ba.setLastException(e9); //BA.debugLineNum = 3247;BA.debugLine="Msgbox(\"Getting Paired Devices\",\"Printer Error\")"; __c.Msgbox(BA.ObjectToCharSequence("Getting Paired Devices"),BA.ObjectToCharSequence("Printer Error"),ba); -RDebugUtils.currentLine=17891338; - //BA.debugLineNum = 17891338;BA.debugLine="printer.Close"; -__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close(); -RDebugUtils.currentLine=17891339; - //BA.debugLineNum = 17891339;BA.debugLine="cmp20.Disconnect"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect(); + //BA.debugLineNum = 3248;BA.debugLine="printer.Close"; +_printer.Close(); + //BA.debugLineNum = 3249;BA.debugLine="cmp20.Disconnect"; +_cmp20.Disconnect(); }; -RDebugUtils.currentLine=17891342; - //BA.debugLineNum = 17891342;BA.debugLine="If PairedDevices.Size = 0 Then"; + //BA.debugLineNum = 3252;BA.debugLine="If PairedDevices.Size = 0 Then"; if (_paireddevices.getSize()==0) { -RDebugUtils.currentLine=17891343; - //BA.debugLineNum = 17891343;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No"; + //BA.debugLineNum = 3253;BA.debugLine="Msgbox(\"Error Connecting to Printer - Printer No"; __c.Msgbox(BA.ObjectToCharSequence("Error Connecting to Printer - Printer Not Found"),BA.ObjectToCharSequence(""),ba); -RDebugUtils.currentLine=17891344; - //BA.debugLineNum = 17891344;BA.debugLine="Return"; + //BA.debugLineNum = 3254;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=17891347; - //BA.debugLineNum = 17891347;BA.debugLine="If PairedDevices.Size = 1 Then"; + //BA.debugLineNum = 3257;BA.debugLine="If PairedDevices.Size = 1 Then"; if (_paireddevices.getSize()==1) { -RDebugUtils.currentLine=17891348; - //BA.debugLineNum = 17891348;BA.debugLine="Try"; -try {RDebugUtils.currentLine=17891349; - //BA.debugLineNum = 17891349;BA.debugLine="cmp20.Connect(PairedDevices.Get(PairedDevices.G"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(_paireddevices.Get(_paireddevices.GetKeyAt((int) (0))))); + //BA.debugLineNum = 3258;BA.debugLine="Try"; +try { //BA.debugLineNum = 3259;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);RDebugUtils.currentLine=17891351; - //BA.debugLineNum = 17891351;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore"; + ba.setLastException(e21); //BA.debugLineNum = 3261;BA.debugLine="Msgbox(\"Connecting\",\"Printer Error\") 'ignore"; __c.Msgbox(BA.ObjectToCharSequence("Connecting"),BA.ObjectToCharSequence("Printer Error"),ba); -RDebugUtils.currentLine=17891352; - //BA.debugLineNum = 17891352;BA.debugLine="printer.Close"; -__ref._printer /*anywheresoftware.b4a.objects.streams.File.TextWriterWrapper*/ .Close(); -RDebugUtils.currentLine=17891353; - //BA.debugLineNum = 17891353;BA.debugLine="cmp20.Disconnect"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect(); + //BA.debugLineNum = 3262;BA.debugLine="printer.Close"; +_printer.Close(); + //BA.debugLineNum = 3263;BA.debugLine="cmp20.Disconnect"; +_cmp20.Disconnect(); }; }else { -RDebugUtils.currentLine=17891356; - //BA.debugLineNum = 17891356;BA.debugLine="L1.Initialize"; + //BA.debugLineNum = 3266;BA.debugLine="L1.Initialize"; _l1.Initialize(); -RDebugUtils.currentLine=17891357; - //BA.debugLineNum = 17891357;BA.debugLine="For i = 0 To PairedDevices.Size - 1"; + //BA.debugLineNum = 3267;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 ) { -RDebugUtils.currentLine=17891358; - //BA.debugLineNum = 17891358;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))"; + //BA.debugLineNum = 3268;BA.debugLine="L1.Add(PairedDevices.GetKeyAt(i))"; _l1.Add(_paireddevices.GetKeyAt(_i)); } }; -RDebugUtils.currentLine=17891360; - //BA.debugLineNum = 17891360;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign"; + //BA.debugLineNum = 3270;BA.debugLine="resimp = InputList(L1, \"Choose device\", -1) 'ign"; _resimp = __c.InputList(_l1,BA.ObjectToCharSequence("Choose device"),(int) (-1),ba); -RDebugUtils.currentLine=17891361; - //BA.debugLineNum = 17891361;BA.debugLine="If resimp <> DialogResponse.CANCEL Then"; + //BA.debugLineNum = 3271;BA.debugLine="If resimp <> DialogResponse.CANCEL Then"; if (_resimp!=__c.DialogResponse.CANCEL) { -RDebugUtils.currentLine=17891362; - //BA.debugLineNum = 17891362;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))"; -__ref._cmp20 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp)))); + //BA.debugLineNum = 3272;BA.debugLine="cmp20.Connect(PairedDevices.Get(L1.Get(resimp))"; +_cmp20.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l1.Get(_resimp)))); }; }; -RDebugUtils.currentLine=17891365; - //BA.debugLineNum = 17891365;BA.debugLine="End Sub"; + //BA.debugLineNum = 3275;BA.debugLine="End Sub"; return ""; } -public String _printer1_connected(reparto_izca.keymon.lat.c_principal __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "printer1_connected", false)) - {return ((String) Debug.delegate(ba, "printer1_connected", new Object[] {_success}));} -RDebugUtils.currentLine=17694720; - //BA.debugLineNum = 17694720;BA.debugLine="Sub Printer1_Connected (Success As Boolean)"; -RDebugUtils.currentLine=17694722; - //BA.debugLineNum = 17694722;BA.debugLine="If Success Then"; -if (_success) { -RDebugUtils.currentLine=17694723; - //BA.debugLineNum = 17694723;BA.debugLine="ToastMessageShow(\"Impresora conectada\", False)"; -__c.ToastMessageShow(BA.ObjectToCharSequence("Impresora conectada"),__c.False); -RDebugUtils.currentLine=17694724; - //BA.debugLineNum = 17694724;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")})); -RDebugUtils.currentLine=17694725; - //BA.debugLineNum = 17694725;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*/ )})); -RDebugUtils.currentLine=17694728; - //BA.debugLineNum = 17694728;BA.debugLine="impresoraConectada = True"; -__ref._impresoraconectada /*boolean*/ = __c.True; - }else { -RDebugUtils.currentLine=17694732; - //BA.debugLineNum = 17694732;BA.debugLine="LogColor(\"Error conectando la impresora\", Colors"; -__c.LogImpl("217694732","Error conectando la impresora",__c.Colors.Red); -RDebugUtils.currentLine=17694733; - //BA.debugLineNum = 17694733;BA.debugLine="errorImpresora = errorImpresora + 1"; -__ref._errorimpresora /*int*/ = (int) (__ref._errorimpresora /*int*/ +1); -RDebugUtils.currentLine=17694734; - //BA.debugLineNum = 17694734;BA.debugLine="If errorImpresora > 1 Then"; -if (__ref._errorimpresora /*int*/ >1) { -RDebugUtils.currentLine=17694735; - //BA.debugLineNum = 17694735;BA.debugLine="Starter.MAC_IMPRESORA = \"0\""; -_starter._mac_impresora /*String*/ = "0"; -RDebugUtils.currentLine=17694736; - //BA.debugLineNum = 17694736;BA.debugLine="errorImpresora = 0"; -__ref._errorimpresora /*int*/ = (int) (0); - }; - }; -RDebugUtils.currentLine=17694739; - //BA.debugLineNum = 17694739;BA.debugLine="End Sub"; -return ""; -} -public String _printer1_error(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "printer1_error", false)) - {return ((String) Debug.delegate(ba, "printer1_error", null));} -RDebugUtils.currentLine=17760256; - //BA.debugLineNum = 17760256;BA.debugLine="Sub Printer1_Error"; -RDebugUtils.currentLine=17760257; - //BA.debugLineNum = 17760257;BA.debugLine="Log(\"error printer\")"; -__c.LogImpl("217760257","error printer",0); -RDebugUtils.currentLine=17760258; - //BA.debugLineNum = 17760258;BA.debugLine="End Sub"; -return ""; -} -public String _subir_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "subir_click", false)) - {return ((String) Debug.delegate(ba, "subir_click", null));} +public String _subir_click() throws Exception{ anywheresoftware.b4a.sql.SQL.CursorWrapper _cg = null; int _banderarechazo = 0; int _i = 0; anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; String _resta = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _pickciego = null; -RDebugUtils.currentLine=15990784; - //BA.debugLineNum = 15990784;BA.debugLine="Sub Subir_Click"; -RDebugUtils.currentLine=15990786; - //BA.debugLineNum = 15990786;BA.debugLine="Private cg As Cursor = Starter.skmt.ExecQuery(\"se"; + //BA.debugLineNum = 845;BA.debugLine="Sub Subir_Click"; + //BA.debugLineNum = 847;BA.debugLine="Private cg As Cursor = Starter.skmt.ExecQuery(\"se"; _cg = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _cg = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_PRONOMBRE, IFNULL(SUM(HVD_RECHAZOCANT), 0) AS HVD_RECHAZOCANT, HVD_PROID from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 and HVD_PRONOMBRE <> 'Cobranza Pendiente' GROUP BY HVD_PROID order by HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=15990789; - //BA.debugLineNum = 15990789;BA.debugLine="If cg.RowCount > 0 Then"; + //BA.debugLineNum = 850;BA.debugLine="If cg.RowCount > 0 Then"; if (_cg.getRowCount()>0) { -RDebugUtils.currentLine=15990790; - //BA.debugLineNum = 15990790;BA.debugLine="Dim banderarechazo As Int = 0"; + //BA.debugLineNum = 851;BA.debugLine="Dim banderarechazo As Int = 0"; _banderarechazo = (int) (0); -RDebugUtils.currentLine=15990792; - //BA.debugLineNum = 15990792;BA.debugLine="For i = 0 To cg.RowCount - 1"; + //BA.debugLineNum = 853;BA.debugLine="For i = 0 To cg.RowCount - 1"; { final int step4 = 1; final int limit4 = (int) (_cg.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit4 ;_i = _i + step4 ) { -RDebugUtils.currentLine=15990793; - //BA.debugLineNum = 15990793;BA.debugLine="cg.Position = i"; + //BA.debugLineNum = 854;BA.debugLine="cg.Position = i"; _cg.setPosition(_i); -RDebugUtils.currentLine=15990796; - //BA.debugLineNum = 15990796;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s"; + //BA.debugLineNum = 857;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery($\"s"; _c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_cg.GetString("HVD_PROID")))+"' ")))); -RDebugUtils.currentLine=15990797; - //BA.debugLineNum = 15990797;BA.debugLine="Private resta As String = 0"; + //BA.debugLineNum = 858;BA.debugLine="Private resta As String = 0"; _resta = BA.NumberToString(0); -RDebugUtils.currentLine=15990799; - //BA.debugLineNum = 15990799;BA.debugLine="If c3.RowCount > 0 Then"; + //BA.debugLineNum = 860;BA.debugLine="If c3.RowCount > 0 Then"; if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=15990800; - //BA.debugLineNum = 15990800;BA.debugLine="c3.Position = 0"; + //BA.debugLineNum = 861;BA.debugLine="c3.Position = 0"; _c3.setPosition((int) (0)); -RDebugUtils.currentLine=15990801; - //BA.debugLineNum = 15990801;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 862;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; _resta = _c3.GetString("PE_CANT"); }else { -RDebugUtils.currentLine=15990803; - //BA.debugLineNum = 15990803;BA.debugLine="resta = 0"; + //BA.debugLineNum = 864;BA.debugLine="resta = 0"; _resta = BA.NumberToString(0); }; -RDebugUtils.currentLine=15990806; - //BA.debugLineNum = 15990806;BA.debugLine="If ( cg.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0"; + //BA.debugLineNum = 867;BA.debugLine="If ( cg.GetInt(\"HVD_RECHAZOCANT\") - resta) <= 0"; if ((_cg.GetInt("HVD_RECHAZOCANT")-(double)(Double.parseDouble(_resta)))<=0) { }else { -RDebugUtils.currentLine=15990809; - //BA.debugLineNum = 15990809;BA.debugLine="banderarechazo = banderarechazo + 1"; + //BA.debugLineNum = 870;BA.debugLine="banderarechazo = banderarechazo + 1"; _banderarechazo = (int) (_banderarechazo+1); }; } }; -RDebugUtils.currentLine=15990813; - //BA.debugLineNum = 15990813;BA.debugLine="If banderarechazo = 0 Then"; + //BA.debugLineNum = 874;BA.debugLine="If banderarechazo = 0 Then"; if (_banderarechazo==0) { -RDebugUtils.currentLine=15990814; - //BA.debugLineNum = 15990814;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync("; -if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { + //BA.debugLineNum = 875;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync("; +if (__c.Not(_isconnectedtointernet())) { __c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);}; -RDebugUtils.currentLine=15990815; - //BA.debugLineNum = 15990815;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from u"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=15990816; - //BA.debugLineNum = 15990816;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15990817; - //BA.debugLineNum = 15990817;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=15990818; - //BA.debugLineNum = 15990818;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15990820; - //BA.debugLineNum = 15990820;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM BLOCK"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM BLOCKENVIO"))); -RDebugUtils.currentLine=15990821; - //BA.debugLineNum = 15990821;BA.debugLine="If c.RowCount = 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=15990822; - //BA.debugLineNum = 15990822;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO BLOCKE"; + //BA.debugLineNum = 876;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from u"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 877;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 878;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 879;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 881;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM BLOCK"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM BLOCKENVIO"))); + //BA.debugLineNum = 882;BA.debugLine="If c.RowCount = 0 Then"; +if (_c.getRowCount()==0) { + //BA.debugLineNum = 883;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO BLOCKE"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO BLOCKENVIO(ENVIADO) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)})); -RDebugUtils.currentLine=15990823; - //BA.debugLineNum = 15990823;BA.debugLine="envioinfo"; -__ref._envioinfo /*String*/ (null); + //BA.debugLineNum = 884;BA.debugLine="envioinfo"; +_envioinfo(); }else { -RDebugUtils.currentLine=15990825; - //BA.debugLineNum = 15990825;BA.debugLine="envioinfo"; -__ref._envioinfo /*String*/ (null); + //BA.debugLineNum = 886;BA.debugLine="envioinfo"; +_envioinfo(); }; -RDebugUtils.currentLine=15990827; - //BA.debugLineNum = 15990827;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 888;BA.debugLine="c.Close"; +_c.Close(); }else { -RDebugUtils.currentLine=15990829; - //BA.debugLineNum = 15990829;BA.debugLine="Dim pickciego As Cursor = Starter.skmt.ExecQuer"; + //BA.debugLineNum = 890;BA.debugLine="Dim pickciego As Cursor = Starter.skmt.ExecQuer"; _pickciego = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _pickciego = (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 PICK_CIEGO"))); -RDebugUtils.currentLine=15990830; - //BA.debugLineNum = 15990830;BA.debugLine="If pickciego.RowCount > 0 Then"; + //BA.debugLineNum = 891;BA.debugLine="If pickciego.RowCount > 0 Then"; if (_pickciego.getRowCount()>0) { -RDebugUtils.currentLine=15990831; - //BA.debugLineNum = 15990831;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync"; -if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { + //BA.debugLineNum = 892;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync"; +if (__c.Not(_isconnectedtointernet())) { __c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);}; -RDebugUtils.currentLine=15990832; - //BA.debugLineNum = 15990832;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=15990833; - //BA.debugLineNum = 15990833;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15990834; - //BA.debugLineNum = 15990834;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=15990835; - //BA.debugLineNum = 15990835;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15990837; - //BA.debugLineNum = 15990837;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM BLOC"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM BLOCKENVIO"))); -RDebugUtils.currentLine=15990838; - //BA.debugLineNum = 15990838;BA.debugLine="If c.RowCount = 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=15990839; - //BA.debugLineNum = 15990839;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO BLOCK"; + //BA.debugLineNum = 893;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 894;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 895;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 896;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 898;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM BLOC"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM BLOCKENVIO"))); + //BA.debugLineNum = 899;BA.debugLine="If c.RowCount = 0 Then"; +if (_c.getRowCount()==0) { + //BA.debugLineNum = 900;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO BLOCK"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO BLOCKENVIO(ENVIADO) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)})); -RDebugUtils.currentLine=15990840; - //BA.debugLineNum = 15990840;BA.debugLine="envioinfo"; -__ref._envioinfo /*String*/ (null); + //BA.debugLineNum = 901;BA.debugLine="envioinfo"; +_envioinfo(); }else { -RDebugUtils.currentLine=15990842; - //BA.debugLineNum = 15990842;BA.debugLine="envioinfo"; -__ref._envioinfo /*String*/ (null); + //BA.debugLineNum = 903;BA.debugLine="envioinfo"; +_envioinfo(); }; -RDebugUtils.currentLine=15990844; - //BA.debugLineNum = 15990844;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 905;BA.debugLine="c.Close"; +_c.Close(); }else { -RDebugUtils.currentLine=15990846; - //BA.debugLineNum = 15990846;BA.debugLine="MsgboxAsync(\"Para realizar el envio se necesit"; + //BA.debugLineNum = 907;BA.debugLine="MsgboxAsync(\"Para realizar el envio se necesit"; __c.MsgboxAsync(BA.ObjectToCharSequence("Para realizar el envio se necesita realizar la incidencia de recibo."),BA.ObjectToCharSequence("Atención"),ba); }; }; }else { -RDebugUtils.currentLine=15990851; - //BA.debugLineNum = 15990851;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync("; -if (__c.Not(__ref._isconnectedtointernet /*boolean*/ (null))) { + //BA.debugLineNum = 912;BA.debugLine="If Not(IsConnectedToInternet) Then MsgboxAsync("; +if (__c.Not(_isconnectedtointernet())) { __c.MsgboxAsync(BA.ObjectToCharSequence("No hay conexión a conexión a Internet"),BA.ObjectToCharSequence("Revisa tu conexión"),ba);}; -RDebugUtils.currentLine=15990852; - //BA.debugLineNum = 15990852;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from u"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (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"))); -RDebugUtils.currentLine=15990853; - //BA.debugLineNum = 15990853;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=15990854; - //BA.debugLineNum = 15990854;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; -__ref._usuario /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("USUARIO"); -RDebugUtils.currentLine=15990855; - //BA.debugLineNum = 15990855;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15990857; - //BA.debugLineNum = 15990857;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM BLOCK"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM BLOCKENVIO"))); -RDebugUtils.currentLine=15990858; - //BA.debugLineNum = 15990858;BA.debugLine="If c.RowCount = 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=15990859; - //BA.debugLineNum = 15990859;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO BLOCKE"; + //BA.debugLineNum = 913;BA.debugLine="c=Starter.skmt.ExecQuery(\"select usuario from u"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select usuario from usuarioa"))); + //BA.debugLineNum = 914;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 915;BA.debugLine="usuario = c.GetString(\"USUARIO\")"; +_usuario = _c.GetString("USUARIO"); + //BA.debugLineNum = 916;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 918;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT * FROM BLOCK"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT * FROM BLOCKENVIO"))); + //BA.debugLineNum = 919;BA.debugLine="If c.RowCount = 0 Then"; +if (_c.getRowCount()==0) { + //BA.debugLineNum = 920;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO BLOCKE"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO BLOCKENVIO(ENVIADO) VALUES (?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(1)})); -RDebugUtils.currentLine=15990860; - //BA.debugLineNum = 15990860;BA.debugLine="envioinfo"; -__ref._envioinfo /*String*/ (null); + //BA.debugLineNum = 921;BA.debugLine="envioinfo"; +_envioinfo(); }else { -RDebugUtils.currentLine=15990862; - //BA.debugLineNum = 15990862;BA.debugLine="envioinfo"; -__ref._envioinfo /*String*/ (null); + //BA.debugLineNum = 923;BA.debugLine="envioinfo"; +_envioinfo(); }; -RDebugUtils.currentLine=15990864; - //BA.debugLineNum = 15990864;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); + //BA.debugLineNum = 925;BA.debugLine="c.Close"; +_c.Close(); }; -RDebugUtils.currentLine=15990866; - //BA.debugLineNum = 15990866;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=15990870; - //BA.debugLineNum = 15990870;BA.debugLine="End Sub"; + //BA.debugLineNum = 927;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 931;BA.debugLine="End Sub"; return ""; } -public String _t1_tick(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "t1_tick", false)) - {return ((String) Debug.delegate(ba, "t1_tick", null));} -RDebugUtils.currentLine=16777216; - //BA.debugLineNum = 16777216;BA.debugLine="Sub t1_tick"; -RDebugUtils.currentLine=16777217; - //BA.debugLineNum = 16777217;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16777218; - //BA.debugLineNum = 16777218;BA.debugLine="cmd.Name = \"select_cuantos_pedido\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_cuantos_pedido"; -RDebugUtils.currentLine=16777219; - //BA.debugLineNum = 16777219;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())}; -RDebugUtils.currentLine=16777220; - //BA.debugLineNum = 16777220;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedido\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedido")); -RDebugUtils.currentLine=16777222; - //BA.debugLineNum = 16777222;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16777223; - //BA.debugLineNum = 16777223;BA.debugLine="cmd.Name = \"select_cuantos_noventa_mards\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_cuantos_noventa_mards"; -RDebugUtils.currentLine=16777224; - //BA.debugLineNum = 16777224;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())}; -RDebugUtils.currentLine=16777225; - //BA.debugLineNum = 16777225;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_noventa\""; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_noventa")); -RDebugUtils.currentLine=16777227; - //BA.debugLineNum = 16777227;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=16777228; - //BA.debugLineNum = 16777228;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_cuantos_pedidoc"; -RDebugUtils.currentLine=16777229; - //BA.debugLineNum = 16777229;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._almacen /*String*/ ),(Object)(__ref._l_ruta /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())}; -RDebugUtils.currentLine=16777230; - //BA.debugLineNum = 16777230;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedidoc\""; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("valida_pedidoc")); -RDebugUtils.currentLine=16777231; - //BA.debugLineNum = 16777231;BA.debugLine="img2.Visible=False"; -__ref._img2 /*anywheresoftware.b4a.objects.ImageViewWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=16777232; - //BA.debugLineNum = 16777232;BA.debugLine="t1.Enabled = False"; -__ref._t1 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False); -RDebugUtils.currentLine=16777233; - //BA.debugLineNum = 16777233;BA.debugLine="End Sub"; +public String _t1_tick() throws Exception{ + //BA.debugLineNum = 2665;BA.debugLine="Sub t1_tick"; + //BA.debugLineNum = 2666;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2667;BA.debugLine="cmd.Name = \"select_cuantos_pedido\""; +_cmd.Name /*String*/ = "select_cuantos_pedido"; + //BA.debugLineNum = 2668;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())}; + //BA.debugLineNum = 2669;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedido\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_pedido")); + //BA.debugLineNum = 2671;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2672;BA.debugLine="cmd.Name = \"select_cuantos_noventa_mards\""; +_cmd.Name /*String*/ = "select_cuantos_noventa_mards"; + //BA.debugLineNum = 2673;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())}; + //BA.debugLineNum = 2674;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_noventa\""; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_noventa")); + //BA.debugLineNum = 2676;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 2677;BA.debugLine="cmd.Name = \"select_cuantos_pedidoc\""; +_cmd.Name /*String*/ = "select_cuantos_pedidoc"; + //BA.debugLineNum = 2678;BA.debugLine="cmd.Parameters = Array As Object(ALMACEN,l_ruta.t"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_almacen),(Object)(_l_ruta.getText())}; + //BA.debugLineNum = 2679;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"valida_pedidoc\""; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("valida_pedidoc")); + //BA.debugLineNum = 2680;BA.debugLine="img2.Visible=False"; +_img2.setVisible(__c.False); + //BA.debugLineNum = 2681;BA.debugLine="t1.Enabled = False"; +_t1.setEnabled(__c.False); + //BA.debugLineNum = 2682;BA.debugLine="End Sub"; return ""; } -public String _t8_tick(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "t8_tick", false)) - {return ((String) Debug.delegate(ba, "t8_tick", null));} -RDebugUtils.currentLine=17498112; - //BA.debugLineNum = 17498112;BA.debugLine="Sub t8_tick"; -RDebugUtils.currentLine=17498113; - //BA.debugLineNum = 17498113;BA.debugLine="cmd.Initialize"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Initialize(); -RDebugUtils.currentLine=17498114; - //BA.debugLineNum = 17498114;BA.debugLine="cmd.Name = \"select_conteo_izca2\""; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Name /*String*/ = "select_conteo_izca2"; -RDebugUtils.currentLine=17498115; - //BA.debugLineNum = 17498115;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM"; -__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ .Parameters /*Object[]*/ = new Object[]{(Object)(__ref._e_ruta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._almacen /*String*/ )}; -RDebugUtils.currentLine=17498116; - //BA.debugLineNum = 17498116;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"CONTEO_DATOS\")"; -__ref._reqmanager /*reparto_izca.keymon.lat.dbrequestmanager*/ ._executequery /*String*/ (null,__ref._cmd /*reparto_izca.keymon.lat.dbrequestmanager._dbcommand*/ ,(int) (0),(Object)("CONTEO_DATOS")); -RDebugUtils.currentLine=17498117; - //BA.debugLineNum = 17498117;BA.debugLine="l_carga2.Text = \"VALIDANDO\""; -__ref._l_carga2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("VALIDANDO")); -RDebugUtils.currentLine=17498118; - //BA.debugLineNum = 17498118;BA.debugLine="L_carga.Text = \"VALIDANDO\""; -__ref._l_carga /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("VALIDANDO")); -RDebugUtils.currentLine=17498119; - //BA.debugLineNum = 17498119;BA.debugLine="PB_carga.Progress = 50"; -__ref._pb_carga /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (50)); -RDebugUtils.currentLine=17498120; - //BA.debugLineNum = 17498120;BA.debugLine="PB_carga2.Progress = 50"; -__ref._pb_carga2 /*anywheresoftware.b4a.objects.ProgressBarWrapper*/ .setProgress((int) (50)); -RDebugUtils.currentLine=17498121; - //BA.debugLineNum = 17498121;BA.debugLine="t8.Enabled = False"; -__ref._t8 /*anywheresoftware.b4a.objects.Timer*/ .setEnabled(__c.False); -RDebugUtils.currentLine=17498122; - //BA.debugLineNum = 17498122;BA.debugLine="End Sub"; +public String _t8_tick() throws Exception{ + //BA.debugLineNum = 3073;BA.debugLine="Sub t8_tick"; + //BA.debugLineNum = 3074;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 3075;BA.debugLine="cmd.Name = \"select_conteo_izca2\""; +_cmd.Name /*String*/ = "select_conteo_izca2"; + //BA.debugLineNum = 3076;BA.debugLine="cmd.Parameters = Array As Object(e_ruta.text, ALM"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(_e_ruta.getText()),(Object)(_almacen)}; + //BA.debugLineNum = 3077;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"CONTEO_DATOS\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("CONTEO_DATOS")); + //BA.debugLineNum = 3078;BA.debugLine="l_carga2.Text = \"VALIDANDO\""; +_l_carga2.setText(BA.ObjectToCharSequence("VALIDANDO")); + //BA.debugLineNum = 3079;BA.debugLine="L_carga.Text = \"VALIDANDO\""; +_l_carga.setText(BA.ObjectToCharSequence("VALIDANDO")); + //BA.debugLineNum = 3080;BA.debugLine="PB_carga.Progress = 50"; +_pb_carga.setProgress((int) (50)); + //BA.debugLineNum = 3081;BA.debugLine="PB_carga2.Progress = 50"; +_pb_carga2.setProgress((int) (50)); + //BA.debugLineNum = 3082;BA.debugLine="t8.Enabled = False"; +_t8.setEnabled(__c.False); + //BA.debugLineNum = 3083;BA.debugLine="End Sub"; return ""; } -public String _to_number_vb(reparto_izca.keymon.lat.c_principal __ref,Object _valor) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "to_number_vb", false)) - {return ((String) Debug.delegate(ba, "to_number_vb", new Object[] {_valor}));} +public String _to_number_vb(Object _valor) throws Exception{ int _valstring = 0; String _valstring2 = ""; -RDebugUtils.currentLine=15859712; - //BA.debugLineNum = 15859712;BA.debugLine="Sub to_number_vb (valor As Object) As String"; -RDebugUtils.currentLine=15859713; - //BA.debugLineNum = 15859713;BA.debugLine="Dim valstring As Int"; + //BA.debugLineNum = 823;BA.debugLine="Sub to_number_vb (valor As Object) As String"; + //BA.debugLineNum = 824;BA.debugLine="Dim valstring As Int"; _valstring = 0; -RDebugUtils.currentLine=15859714; - //BA.debugLineNum = 15859714;BA.debugLine="Dim valstring2 As String = valor"; + //BA.debugLineNum = 825;BA.debugLine="Dim valstring2 As String = valor"; _valstring2 = BA.ObjectToString(_valor); -RDebugUtils.currentLine=15859715; - //BA.debugLineNum = 15859715;BA.debugLine="valstring2.Replace(\":\",\"\")"; + //BA.debugLineNum = 826;BA.debugLine="valstring2.Replace(\":\",\"\")"; _valstring2.replace(":",""); -RDebugUtils.currentLine=15859716; - //BA.debugLineNum = 15859716;BA.debugLine="Try"; -try {RDebugUtils.currentLine=15859717; - //BA.debugLineNum = 15859717;BA.debugLine="valstring =valstring2.Replace(\":\",\"\")"; + //BA.debugLineNum = 827;BA.debugLine="Try"; +try { //BA.debugLineNum = 828;BA.debugLine="valstring =valstring2.Replace(\":\",\"\")"; _valstring = (int)(Double.parseDouble(_valstring2.replace(":",""))); -RDebugUtils.currentLine=15859718; - //BA.debugLineNum = 15859718;BA.debugLine="Return valstring"; + //BA.debugLineNum = 829;BA.debugLine="Return valstring"; if (true) return BA.NumberToString(_valstring); } catch (Exception e8) { - ba.setLastException(e8);RDebugUtils.currentLine=15859720; - //BA.debugLineNum = 15859720;BA.debugLine="Return 0"; + ba.setLastException(e8); //BA.debugLineNum = 831;BA.debugLine="Return 0"; if (true) return BA.NumberToString(0); }; -RDebugUtils.currentLine=15859722; - //BA.debugLineNum = 15859722;BA.debugLine="End Sub"; + //BA.debugLineNum = 833;BA.debugLine="End Sub"; return ""; } -public String _trabajar_click(reparto_izca.keymon.lat.c_principal __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_principal"; -if (Debug.shouldDelegate(ba, "trabajar_click", false)) - {return ((String) Debug.delegate(ba, "trabajar_click", null));} -RDebugUtils.currentLine=15925248; - //BA.debugLineNum = 15925248;BA.debugLine="Sub trabajar_Click"; -RDebugUtils.currentLine=15925249; - //BA.debugLineNum = 15925249;BA.debugLine="If b_check.Visible = True Then"; -if (__ref._b_check /*anywheresoftware.b4a.objects.ButtonWrapper*/ .getVisible()==__c.True) { -RDebugUtils.currentLine=15925250; - //BA.debugLineNum = 15925250;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Atenc"; +public String _trabajar_click() throws Exception{ + //BA.debugLineNum = 835;BA.debugLine="Sub trabajar_Click"; + //BA.debugLineNum = 836;BA.debugLine="If b_check.Visible = True Then"; +if (_b_check.getVisible()==__c.True) { + //BA.debugLineNum = 837;BA.debugLine="MsgboxAsync(\"Favor de hacer el checklist.\",\"Atenc"; __c.MsgboxAsync(BA.ObjectToCharSequence("Favor de hacer el checklist."),BA.ObjectToCharSequence("Atención"),ba); }else { -RDebugUtils.currentLine=15925253; - //BA.debugLineNum = 15925253;BA.debugLine="B4XPages.ShowPage(\"Clientes\")"; + //BA.debugLineNum = 840;BA.debugLine="B4XPages.ShowPage(\"Clientes\")"; _b4xpages._showpage /*String*/ (ba,"Clientes"); }; -RDebugUtils.currentLine=15925256; - //BA.debugLineNum = 15925256;BA.debugLine="End Sub"; + //BA.debugLineNum = 843;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +if (BA.fastSubCompare(sub, "JOBDONE")) + return _jobdone((reparto_izca.keymon.lat.httpjob) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_productos.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_productos.java index 6e04afa..920d80f 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_productos.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_productos.java @@ -10,7 +10,7 @@ public class c_productos extends B4AClass.ImplB4AClass implements BA.SubDelegato private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_productos"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_productos"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_productos extends B4AClass.ImplB4AClass implements BA.SubDelegato ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -93,37 +86,12 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_productos __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=14155776; - //BA.debugLineNum = 14155776;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=14155777; - //BA.debugLineNum = 14155777;BA.debugLine="Return Me"; -if (true) return this; -RDebugUtils.currentLine=14155778; - //BA.debugLineNum = 14155778;BA.debugLine="End Sub"; -return null; -} -public String _b_guardar_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "b_guardar_click", false)) - {return ((String) Debug.delegate(ba, "b_guardar_click", null));} -RDebugUtils.currentLine=15269888; - //BA.debugLineNum = 15269888;BA.debugLine="Private Sub b_guardar_Click"; -RDebugUtils.currentLine=15269890; - //BA.debugLineNum = 15269890;BA.debugLine="End Sub"; +public String _b_guardar_click() throws Exception{ + //BA.debugLineNum = 1107;BA.debugLine="Private Sub b_guardar_Click"; + //BA.debugLineNum = 1109;BA.debugLine="End Sub"; return ""; } -public String _b_prodmas_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "b_prodmas_click", false)) - {return ((String) Debug.delegate(ba, "b_prodmas_click", null));} +public String _b_prodmas_click() throws Exception{ int _index = 0; anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; @@ -139,312 +107,515 @@ String _pup = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _precioreg = null; String _precioregalo = ""; String _esregalo = ""; -RDebugUtils.currentLine=14876672; - //BA.debugLineNum = 14876672;BA.debugLine="Sub b_prodMas_Click"; -RDebugUtils.currentLine=14876673; - //BA.debugLineNum = 14876673;BA.debugLine="etCantHasFocus = False"; -__ref._etcanthasfocus /*boolean*/ = __c.False; -RDebugUtils.currentLine=14876674; - //BA.debugLineNum = 14876674;BA.debugLine="Dim sDate, sTime As String"; + //BA.debugLineNum = 672;BA.debugLine="Sub b_prodMas_Click"; + //BA.debugLineNum = 673;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 674;BA.debugLine="Dim sDate, sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=14876675; - //BA.debugLineNum = 14876675;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; + //BA.debugLineNum = 675;BA.debugLine="DateTime.DateFormat = \"dd/MM/yyyy\""; __c.DateTime.setDateFormat("dd/MM/yyyy"); -RDebugUtils.currentLine=14876676; - //BA.debugLineNum = 14876676;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; + //BA.debugLineNum = 676;BA.debugLine="DateTime.TimeFormat = \"HH:mm:ss\""; __c.DateTime.setTimeFormat("HH:mm:ss"); -RDebugUtils.currentLine=14876677; - //BA.debugLineNum = 14876677;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; -__ref._sdate /*String*/ = __c.DateTime.Date(__c.DateTime.getNow()); -RDebugUtils.currentLine=14876678; - //BA.debugLineNum = 14876678;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; -__ref._stime /*String*/ = __c.DateTime.Time(__c.DateTime.getNow()); -RDebugUtils.currentLine=14876680; - //BA.debugLineNum = 14876680;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)"; -__c.LogImpl("214876680","b_prodMas_Click",__c.Colors.Magenta); -RDebugUtils.currentLine=14876681; - //BA.debugLineNum = 14876681;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; -_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=14876682; - //BA.debugLineNum = 14876682;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; + //BA.debugLineNum = 677;BA.debugLine="sDate = DateTime.Date(DateTime.Now)"; +_sdate = __c.DateTime.Date(__c.DateTime.getNow()); + //BA.debugLineNum = 678;BA.debugLine="sTime = DateTime.Time(DateTime.Now)"; +_stime = __c.DateTime.Time(__c.DateTime.getNow()); + //BA.debugLineNum = 680;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)"; +__c.LogImpl("021102600","b_prodMas_Click",__c.Colors.Magenta); + //BA.debugLineNum = 681;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; +_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 682;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; _pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index); -RDebugUtils.currentLine=14876683; - //BA.debugLineNum = 14876683;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl0 = _clv_pedido._getpanel(_index); + //BA.debugLineNum = 683;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; _pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); _pnl = _pnl0.GetView((int) (0)); -RDebugUtils.currentLine=14876684; - //BA.debugLineNum = 14876684;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; + //BA.debugLineNum = 684;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; _lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); _lacant = _pnl.GetView((int) (2)).GetView((int) (3)); -RDebugUtils.currentLine=14876688; - //BA.debugLineNum = 14876688;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; + //BA.debugLineNum = 688;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; _estetag = new anywheresoftware.b4a.objects.collections.List(); _estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))); -RDebugUtils.currentLine=14876689; - //BA.debugLineNum = 14876689;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&"; -__c.LogImpl("214876689","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=14876690; - //BA.debugLineNum = 14876690;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; + //BA.debugLineNum = 689;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|LC_TAG:\"&laCant.Tag&"; +__c.LogImpl("021102609","LC_TEXT:"+_lacant.getText()+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 690;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; if ((_lacant.getText()).equals("")) { _lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=14876692; - //BA.debugLineNum = 14876692;BA.debugLine="Private maxProds = esteTag.Get(1) + esteTag.Get(4"; + //BA.debugLineNum = 692;BA.debugLine="Private maxProds = esteTag.Get(1) + esteTag.Get(4"; _maxprods = BA.NumberToString((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4))))); -RDebugUtils.currentLine=14876694; - //BA.debugLineNum = 14876694;BA.debugLine="Private minimoadesc As String"; + //BA.debugLineNum = 694;BA.debugLine="Private minimoadesc As String"; _minimoadesc = ""; -RDebugUtils.currentLine=14876695; - //BA.debugLineNum = 14876695;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\""; + //BA.debugLineNum = 695;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\""; _minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=14876696; - //BA.debugLineNum = 14876696;BA.debugLine="If minimos.RowCount > 0 Then"; + //BA.debugLineNum = 696;BA.debugLine="If minimos.RowCount > 0 Then"; if (_minimos.getRowCount()>0) { -RDebugUtils.currentLine=14876697; - //BA.debugLineNum = 14876697;BA.debugLine="minimos.Position = 0"; + //BA.debugLineNum = 697;BA.debugLine="minimos.Position = 0"; _minimos.setPosition((int) (0)); -RDebugUtils.currentLine=14876698; - //BA.debugLineNum = 14876698;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN"; + //BA.debugLineNum = 698;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN"; _minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA"); }else { -RDebugUtils.currentLine=14876700; - //BA.debugLineNum = 14876700;BA.debugLine="minimoadesc = \"1\""; + //BA.debugLineNum = 700;BA.debugLine="minimoadesc = \"1\""; _minimoadesc = "1"; }; -RDebugUtils.currentLine=14876702; - //BA.debugLineNum = 14876702;BA.debugLine="minimos.Close"; + //BA.debugLineNum = 702;BA.debugLine="minimos.Close"; _minimos.Close(); -RDebugUtils.currentLine=14876703; - //BA.debugLineNum = 14876703;BA.debugLine="minimoadesc = \"1\""; + //BA.debugLineNum = 703;BA.debugLine="minimoadesc = \"1\""; _minimoadesc = "1"; -RDebugUtils.currentLine=14876706; - //BA.debugLineNum = 14876706;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag"; -__c.LogImpl("214876706",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green); -RDebugUtils.currentLine=14876707; - //BA.debugLineNum = 14876707;BA.debugLine="Log(esteTag.get(4))"; -__c.LogImpl("214876707",BA.ObjectToString(_estetag.Get((int) (4))),0); -RDebugUtils.currentLine=14876708; - //BA.debugLineNum = 14876708;BA.debugLine="If esteTag.Get(4) = \"0\" Then"; + //BA.debugLineNum = 706;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag"; +__c.LogImpl("021102626",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green); + //BA.debugLineNum = 707;BA.debugLine="Log(esteTag.get(4))"; +__c.LogImpl("021102627",BA.ObjectToString(_estetag.Get((int) (4))),0); + //BA.debugLineNum = 708;BA.debugLine="If esteTag.Get(4) = \"0\" Then"; if ((_estetag.Get((int) (4))).equals((Object)("0"))) { }else { -RDebugUtils.currentLine=14876711; - //BA.debugLineNum = 14876711;BA.debugLine="If laCant.Text + 1 <= maxProds Then"; + //BA.debugLineNum = 711;BA.debugLine="If laCant.Text + 1 <= maxProds Then"; if ((double)(Double.parseDouble(_lacant.getText()))+1<=(double)(Double.parseDouble(_maxprods))) { -RDebugUtils.currentLine=14876712; - //BA.debugLineNum = 14876712;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)"; -__c.LogImpl("214876712",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0); -RDebugUtils.currentLine=14876713; - //BA.debugLineNum = 14876713;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$"; + //BA.debugLineNum = 712;BA.debugLine="Log($\"NuevaCant = ${laCant.Text + 1}\"$)"; +__c.LogImpl("021102632",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""),0); + //BA.debugLineNum = 713;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text + 1}\"$"; _lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))+1))+""))); -RDebugUtils.currentLine=14876714; - //BA.debugLineNum = 14876714;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod"; + //BA.debugLineNum = 714;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen - 1 where cat_gp_id = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2)))})); -RDebugUtils.currentLine=14876715; - //BA.debugLineNum = 14876715;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); -RDebugUtils.currentLine=14876716; - //BA.debugLineNum = 14876716;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=14876717; - //BA.debugLineNum = 14876717;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; + //BA.debugLineNum = 715;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); + //BA.debugLineNum = 716;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 717;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; _c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); -RDebugUtils.currentLine=14876718; - //BA.debugLineNum = 14876718;BA.debugLine="If c2.RowCount > 0 Then"; + //BA.debugLineNum = 718;BA.debugLine="If c2.RowCount > 0 Then"; if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=14876719; - //BA.debugLineNum = 14876719;BA.debugLine="c2.Position = 0"; + //BA.debugLineNum = 719;BA.debugLine="c2.Position = 0"; _c2.setPosition((int) (0)); -RDebugUtils.currentLine=14876721; - //BA.debugLineNum = 14876721;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu"; + //BA.debugLineNum = 721;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu"; _preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c2.GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=14876722; - //BA.debugLineNum = 14876722;BA.debugLine="If preciocat.RowCount > 0 Then"; + //BA.debugLineNum = 722;BA.debugLine="If preciocat.RowCount > 0 Then"; if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=14876723; - //BA.debugLineNum = 14876723;BA.debugLine="preciocat.Position = 0"; + //BA.debugLineNum = 723;BA.debugLine="preciocat.Position = 0"; _preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=14876724; - //BA.debugLineNum = 14876724;BA.debugLine="Dim preciofull As String = preciocat.GetStri"; + //BA.debugLineNum = 724;BA.debugLine="Dim preciofull As String = preciocat.GetStri"; _preciofull = _preciocat.GetString("CAT_GP_PRECIO"); }; -RDebugUtils.currentLine=14876726; - //BA.debugLineNum = 14876726;BA.debugLine="preciocat.Close"; + //BA.debugLineNum = 726;BA.debugLine="preciocat.Close"; _preciocat.Close(); -RDebugUtils.currentLine=14876728; - //BA.debugLineNum = 14876728;BA.debugLine="If c2.GetString(\"HVD_CODPROMO\") = Subs.traeAl"; + //BA.debugLineNum = 728;BA.debugLine="If c2.GetString(\"HVD_CODPROMO\") = Subs.traeAl"; if ((_c2.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) { -RDebugUtils.currentLine=14876729; - //BA.debugLineNum = 14876729;BA.debugLine="Private pup As String = c2.GetString(\"HVD_CO"; + //BA.debugLineNum = 729;BA.debugLine="Private pup As String = c2.GetString(\"HVD_CO"; _pup = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("HVD_CANT")))); -RDebugUtils.currentLine=14876731; - //BA.debugLineNum = 14876731;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; + //BA.debugLineNum = 731;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_pup))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); }else { -RDebugUtils.currentLine=14876733; - //BA.debugLineNum = 14876733;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; + //BA.debugLineNum = 733;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO se"; _starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0)+(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_preciofull))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); }; }; }else { -RDebugUtils.currentLine=14876738; - //BA.debugLineNum = 14876738;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; + //BA.debugLineNum = 738;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; _c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); -RDebugUtils.currentLine=14876739; - //BA.debugLineNum = 14876739;BA.debugLine="If c2.RowCount > 0 Then"; + //BA.debugLineNum = 739;BA.debugLine="If c2.RowCount > 0 Then"; if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=14876740; - //BA.debugLineNum = 14876740;BA.debugLine="c2.Position = 0"; + //BA.debugLineNum = 740;BA.debugLine="c2.Position = 0"; _c2.setPosition((int) (0)); -RDebugUtils.currentLine=14876742; - //BA.debugLineNum = 14876742;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu"; + //BA.debugLineNum = 742;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQu"; _preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c2.GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=14876743; - //BA.debugLineNum = 14876743;BA.debugLine="If preciocat.RowCount > 0 Then"; + //BA.debugLineNum = 743;BA.debugLine="If preciocat.RowCount > 0 Then"; if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=14876744; - //BA.debugLineNum = 14876744;BA.debugLine="preciocat.Position = 0"; + //BA.debugLineNum = 744;BA.debugLine="preciocat.Position = 0"; _preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=14876745; - //BA.debugLineNum = 14876745;BA.debugLine="Dim preciofull As String = preciocat.GetStri"; + //BA.debugLineNum = 745;BA.debugLine="Dim preciofull As String = preciocat.GetStri"; _preciofull = _preciocat.GetString("CAT_GP_PRECIO"); }; -RDebugUtils.currentLine=14876747; - //BA.debugLineNum = 14876747;BA.debugLine="preciocat.Close"; + //BA.debugLineNum = 747;BA.debugLine="preciocat.Close"; _preciocat.Close(); -RDebugUtils.currentLine=14876749; - //BA.debugLineNum = 14876749;BA.debugLine="Dim precioreg As Cursor = Starter.skmt.ExecQu"; + //BA.debugLineNum = 749;BA.debugLine="Dim precioreg As Cursor = Starter.skmt.ExecQu"; _precioreg = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _precioreg = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(HVD_COSTO_TOT,0) AS HVD_COSTO_TOT, HVD_CANT from HIST_VENTAS WHERE HVD_PROID = '"+__c.SmartStringFormatter("",(Object)(_c2.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")))); -RDebugUtils.currentLine=14876750; - //BA.debugLineNum = 14876750;BA.debugLine="If precioreg.RowCount > 0 Then"; + //BA.debugLineNum = 750;BA.debugLine="If precioreg.RowCount > 0 Then"; if (_precioreg.getRowCount()>0) { -RDebugUtils.currentLine=14876751; - //BA.debugLineNum = 14876751;BA.debugLine="precioreg.Position = 0"; + //BA.debugLineNum = 751;BA.debugLine="precioreg.Position = 0"; _precioreg.setPosition((int) (0)); -RDebugUtils.currentLine=14876752; - //BA.debugLineNum = 14876752;BA.debugLine="Dim precioregalo As String = precioreg.GetSt"; + //BA.debugLineNum = 752;BA.debugLine="Dim precioregalo As String = precioreg.GetSt"; _precioregalo = BA.NumberToString((double)(Double.parseDouble(_precioreg.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_precioreg.GetString("HVD_CANT")))); -RDebugUtils.currentLine=14876753; - //BA.debugLineNum = 14876753;BA.debugLine="If precioregalo < 1 Then"; + //BA.debugLineNum = 753;BA.debugLine="If precioregalo < 1 Then"; if ((double)(Double.parseDouble(_precioregalo))<1) { -RDebugUtils.currentLine=14876754; - //BA.debugLineNum = 14876754;BA.debugLine="Dim esregalo As String = 1"; + //BA.debugLineNum = 754;BA.debugLine="Dim esregalo As String = 1"; _esregalo = BA.NumberToString(1); }else { -RDebugUtils.currentLine=14876756; - //BA.debugLineNum = 14876756;BA.debugLine="Dim esregalo As String = 0"; + //BA.debugLineNum = 756;BA.debugLine="Dim esregalo As String = 0"; _esregalo = BA.NumberToString(0); }; }; -RDebugUtils.currentLine=14876759; - //BA.debugLineNum = 14876759;BA.debugLine="precioreg.Close"; + //BA.debugLineNum = 759;BA.debugLine="precioreg.Close"; _precioreg.Close(); -RDebugUtils.currentLine=14876761; - //BA.debugLineNum = 14876761;BA.debugLine="If c2.GetString(\"HVD_CODPROMO\") = Subs.traeAl"; + //BA.debugLineNum = 761;BA.debugLine="If c2.GetString(\"HVD_CODPROMO\") = Subs.traeAl"; if ((_c2.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) { -RDebugUtils.currentLine=14876762; - //BA.debugLineNum = 14876762;BA.debugLine="Private pup As String = c2.GetString(\"HVD_CO"; + //BA.debugLineNum = 762;BA.debugLine="Private pup As String = c2.GetString(\"HVD_CO"; _pup = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("HVD_CANT")))); -RDebugUtils.currentLine=14876765; - //BA.debugLineNum = 14876765;BA.debugLine="Log(\"algo1\")"; -__c.LogImpl("214876765","algo1",0); -RDebugUtils.currentLine=14876766; - //BA.debugLineNum = 14876766;BA.debugLine="If Subs.traeCliente = \"63403\" Then"; + //BA.debugLineNum = 765;BA.debugLine="Log(\"algo1\")"; +__c.LogImpl("021102685","algo1",0); + //BA.debugLineNum = 766;BA.debugLine="If Subs.traeCliente = \"63403\" Then"; if ((_subs._traecliente /*String*/ (ba)).equals("63403")) { -RDebugUtils.currentLine=14876767; - //BA.debugLineNum = 14876767;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"DANADO",_subs._traealmacen /*String*/ (ba),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo})); + //BA.debugLineNum = 767;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"DANADO",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo})); }else { -RDebugUtils.currentLine=14876769; - //BA.debugLineNum = 14876769;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo})); + //BA.debugLineNum = 769;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_pup))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo})); }; }else { -RDebugUtils.currentLine=14876772; - //BA.debugLineNum = 14876772;BA.debugLine="Log(\"|\" & preciofull& \"|\")"; -__c.LogImpl("214876772","|"+_preciofull+"|",0); -RDebugUtils.currentLine=14876773; - //BA.debugLineNum = 14876773;BA.debugLine="Log(\"|\" & minimoadesc& \"|\")"; -__c.LogImpl("214876773","|"+_minimoadesc+"|",0); -RDebugUtils.currentLine=14876777; - //BA.debugLineNum = 14876777;BA.debugLine="Log(esteTag.Get(2))"; -__c.LogImpl("214876777",BA.ObjectToString(_estetag.Get((int) (2))),0); -RDebugUtils.currentLine=14876778; - //BA.debugLineNum = 14876778;BA.debugLine="Log(c2.GetString(\"HVD_PRONOMBRE\"))"; -__c.LogImpl("214876778",_c2.GetString("HVD_PRONOMBRE"),0); -RDebugUtils.currentLine=14876779; - //BA.debugLineNum = 14876779;BA.debugLine="Log((1*minimoadesc))"; -__c.LogImpl("214876779",BA.NumberToString((1*(double)(Double.parseDouble(_minimoadesc)))),0); -RDebugUtils.currentLine=14876780; - //BA.debugLineNum = 14876780;BA.debugLine="Log(esteTag.Get(5))"; -__c.LogImpl("214876780",BA.ObjectToString(_estetag.Get((int) (5))),0); -RDebugUtils.currentLine=14876781; - //BA.debugLineNum = 14876781;BA.debugLine="Log(Subs.traeCliente)"; -__c.LogImpl("214876781",_subs._traecliente /*String*/ (ba),0); -RDebugUtils.currentLine=14876782; - //BA.debugLineNum = 14876782;BA.debugLine="Log((preciofull*minimoadesc))"; -__c.LogImpl("214876782",BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),0); -RDebugUtils.currentLine=14876783; - //BA.debugLineNum = 14876783;BA.debugLine="Log(esteTag.Get(6))"; -__c.LogImpl("214876783",BA.ObjectToString(_estetag.Get((int) (6))),0); -RDebugUtils.currentLine=14876784; - //BA.debugLineNum = 14876784;BA.debugLine="Log(Subs.traerUTAPREV)"; -__c.LogImpl("214876784",_subs._traerutaprev /*String*/ (ba),0); -RDebugUtils.currentLine=14876785; - //BA.debugLineNum = 14876785;BA.debugLine="Log(Subs.traeAlmacen)"; -__c.LogImpl("214876785",_subs._traealmacen /*String*/ (ba),0); -RDebugUtils.currentLine=14876786; - //BA.debugLineNum = 14876786;BA.debugLine="Log(sDate & \" \" & sTime)"; -__c.LogImpl("214876786",__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,0); -RDebugUtils.currentLine=14876787; - //BA.debugLineNum = 14876787;BA.debugLine="Log(Subs.traeUsuario)"; -__c.LogImpl("214876787",_subs._traeusuario /*String*/ (ba),0); -RDebugUtils.currentLine=14876788; - //BA.debugLineNum = 14876788;BA.debugLine="Log(Subs.traefECHAPREV)"; -__c.LogImpl("214876788",_subs._traefechaprev /*String*/ (ba),0); -RDebugUtils.currentLine=14876789; - //BA.debugLineNum = 14876789;BA.debugLine="Log(Subs.traeRutaReparto)"; -__c.LogImpl("214876789",_subs._traerutareparto /*String*/ (ba),0); -RDebugUtils.currentLine=14876790; - //BA.debugLineNum = 14876790;BA.debugLine="Log(esregalo)"; -__c.LogImpl("214876790",_esregalo,0); -RDebugUtils.currentLine=14876793; - //BA.debugLineNum = 14876793;BA.debugLine="If Subs.traeCliente = \"63403\" Then"; + //BA.debugLineNum = 772;BA.debugLine="Log(\"|\" & preciofull& \"|\")"; +__c.LogImpl("021102692","|"+_preciofull+"|",0); + //BA.debugLineNum = 773;BA.debugLine="Log(\"|\" & minimoadesc& \"|\")"; +__c.LogImpl("021102693","|"+_minimoadesc+"|",0); + //BA.debugLineNum = 777;BA.debugLine="Log(esteTag.Get(2))"; +__c.LogImpl("021102697",BA.ObjectToString(_estetag.Get((int) (2))),0); + //BA.debugLineNum = 778;BA.debugLine="Log(c2.GetString(\"HVD_PRONOMBRE\"))"; +__c.LogImpl("021102698",_c2.GetString("HVD_PRONOMBRE"),0); + //BA.debugLineNum = 779;BA.debugLine="Log((1*minimoadesc))"; +__c.LogImpl("021102699",BA.NumberToString((1*(double)(Double.parseDouble(_minimoadesc)))),0); + //BA.debugLineNum = 780;BA.debugLine="Log(esteTag.Get(5))"; +__c.LogImpl("021102700",BA.ObjectToString(_estetag.Get((int) (5))),0); + //BA.debugLineNum = 781;BA.debugLine="Log(Subs.traeCliente)"; +__c.LogImpl("021102701",_subs._traecliente /*String*/ (ba),0); + //BA.debugLineNum = 782;BA.debugLine="Log((preciofull*minimoadesc))"; +__c.LogImpl("021102702",BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),0); + //BA.debugLineNum = 783;BA.debugLine="Log(esteTag.Get(6))"; +__c.LogImpl("021102703",BA.ObjectToString(_estetag.Get((int) (6))),0); + //BA.debugLineNum = 784;BA.debugLine="Log(Subs.traerUTAPREV)"; +__c.LogImpl("021102704",_subs._traerutaprev /*String*/ (ba),0); + //BA.debugLineNum = 785;BA.debugLine="Log(Subs.traeAlmacen)"; +__c.LogImpl("021102705",_subs._traealmacen /*String*/ (ba),0); + //BA.debugLineNum = 786;BA.debugLine="Log(sDate & \" \" & sTime)"; +__c.LogImpl("021102706",_sdate+" "+_stime,0); + //BA.debugLineNum = 787;BA.debugLine="Log(Subs.traeUsuario)"; +__c.LogImpl("021102707",_subs._traeusuario /*String*/ (ba),0); + //BA.debugLineNum = 788;BA.debugLine="Log(Subs.traefECHAPREV)"; +__c.LogImpl("021102708",_subs._traefechaprev /*String*/ (ba),0); + //BA.debugLineNum = 789;BA.debugLine="Log(Subs.traeRutaReparto)"; +__c.LogImpl("021102709",_subs._traerutareparto /*String*/ (ba),0); + //BA.debugLineNum = 790;BA.debugLine="Log(esregalo)"; +__c.LogImpl("021102710",_esregalo,0); + //BA.debugLineNum = 793;BA.debugLine="If Subs.traeCliente = \"63403\" Then"; if ((_subs._traecliente /*String*/ (ba)).equals("63403")) { -RDebugUtils.currentLine=14876794; - //BA.debugLineNum = 14876794;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"DANADO",_subs._traealmacen /*String*/ (ba),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo})); + //BA.debugLineNum = 794;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"DANADO",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo})); }else { -RDebugUtils.currentLine=14876796; - //BA.debugLineNum = 14876796;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo})); + //BA.debugLineNum = 796;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PED"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,0,0,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),BA.NumberToString(1*(double)(Double.parseDouble(_minimoadesc))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.NumberToString(((double)(Double.parseDouble(_preciofull))*(double)(Double.parseDouble(_minimoadesc)))),BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),_esregalo})); }; }; }; }; -RDebugUtils.currentLine=14876804; - //BA.debugLineNum = 14876804;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))"; + //BA.debugLineNum = 804;BA.debugLine="Subs.prodVenta(esteTag.Get(5), esteTag.Get(2))"; _subs._prodventa /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (5))),BA.ObjectToString(_estetag.Get((int) (2)))); -RDebugUtils.currentLine=14876809; - //BA.debugLineNum = 14876809;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); + //BA.debugLineNum = 809;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); }; }; -RDebugUtils.currentLine=14876826; - //BA.debugLineNum = 14876826;BA.debugLine="End Sub"; + //BA.debugLineNum = 826;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} +public String _b_prodmasc_click() throws Exception{ +int _index = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; +anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null; +anywheresoftware.b4a.objects.collections.List _estetag = null; +String _maxprods = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; +String _puc = ""; + //BA.debugLineNum = 829;BA.debugLine="Private Sub b_prodMasC_Click"; + //BA.debugLineNum = 830;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 832;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)"; +__c.LogImpl("021168131","b_prodMas_Click",__c.Colors.Magenta); + //BA.debugLineNum = 833;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; +_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 834;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_pedido._getpanel(_index); + //BA.debugLineNum = 835;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 836;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3"; +_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacantc = _pnl.GetView((int) (3)).GetView((int) (3)); + //BA.debugLineNum = 837;BA.debugLine="LogColor(laCantc.Text&\"--------------------------"; +__c.LogImpl("021168136",_lacantc.getText()+"-----------------------------",__c.Colors.Blue); + //BA.debugLineNum = 841;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T"; +_estetag = new anywheresoftware.b4a.objects.collections.List(); +_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag()))); + //BA.debugLineNum = 842;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta"; +__c.LogImpl("021168141","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 843;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; +if ((_lacantc.getText()).equals("")) { +_lacantc.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 845;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es"; +_maxprods = BA.NumberToString(((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4)))))); + //BA.debugLineNum = 846;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)"; +__c.LogImpl("021168145",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red); + //BA.debugLineNum = 847;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)"; +__c.LogImpl("021168146",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red); + //BA.debugLineNum = 848;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag"; +__c.LogImpl("021168147",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green); + //BA.debugLineNum = 850;BA.debugLine="Log(maxProds)"; +__c.LogImpl("021168149",_maxprods,0); + //BA.debugLineNum = 853;BA.debugLine="Log(esteTag.Get(4))"; +__c.LogImpl("021168152",BA.ObjectToString(_estetag.Get((int) (4))),0); + //BA.debugLineNum = 854;BA.debugLine="If esteTag.Get(4) = \"0\" Then"; +if ((_estetag.Get((int) (4))).equals((Object)("0"))) { + }else { + //BA.debugLineNum = 857;BA.debugLine="If laCantc.Text + 1 <= maxProds Then"; +if ((double)(Double.parseDouble(_lacantc.getText()))+1<=(double)(Double.parseDouble(_maxprods))) { + //BA.debugLineNum = 858;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)"; +__c.LogImpl("021168157",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0); + //BA.debugLineNum = 860;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$"; +_lacantc.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""))); + //BA.debugLineNum = 861;BA.debugLine="LogColor(esteTag,Colors.Magenta)"; +__c.LogImpl("021168160",BA.ObjectToString(_estetag),__c.Colors.Magenta); + //BA.debugLineNum = 863;BA.debugLine="LogColor(laCantc.Text,Colors.Red)"; +__c.LogImpl("021168162",_lacantc.getText(),__c.Colors.Red); + //BA.debugLineNum = 866;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); + //BA.debugLineNum = 867;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 868;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); + //BA.debugLineNum = 869;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 870;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 871;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS"; +_puc = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("CANTC")))); + //BA.debugLineNum = 873;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)+(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= (IFNULL(PE_CAJAS,0)+1)*'"+__c.SmartStringFormatter("",(Object)(_puc))+"', PE_CAJAS= IFNULL(PE_CAJAS,0) + 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); + //BA.debugLineNum = 874;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 875;BA.debugLine="Log(\"aqui2\")"; +__c.LogImpl("021168174","aqui2",0); + }; + }else { + //BA.debugLineNum = 878;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); + //BA.debugLineNum = 879;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 880;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 881;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS"; +_puc = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("CANTC")))); + //BA.debugLineNum = 882;BA.debugLine="Log(puc)"; +__c.LogImpl("021168181",_puc,0); + //BA.debugLineNum = 885;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDID"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,1,1,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2)))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),_puc,_puc,BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),_sdate+" "+_stime,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); + //BA.debugLineNum = 886;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + }; + }; + }; + //BA.debugLineNum = 892;BA.debugLine="End Sub"; +return ""; +} +public String _b_prodmenos_click() throws Exception{ +int _index = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; +anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null; +anywheresoftware.b4a.objects.collections.List _estetag = null; +String _minimoadesc = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; +float _preciou = 0f; + //BA.debugLineNum = 566;BA.debugLine="Sub b_prodMenos_Click"; + //BA.debugLineNum = 567;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 568;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)"; +__c.LogImpl("021037058","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0); + //BA.debugLineNum = 569;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)"; +__c.LogImpl("021037059","b_prodMenos_Click",__c.Colors.Magenta); + //BA.debugLineNum = 570;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; +_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 571;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_pedido._getpanel(_index); + //BA.debugLineNum = 572;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 573;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; +_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacant = _pnl.GetView((int) (2)).GetView((int) (3)); + //BA.debugLineNum = 575;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; +_estetag = new anywheresoftware.b4a.objects.collections.List(); +_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))); + //BA.debugLineNum = 576;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get("; +__c.LogImpl("021037066","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 578;BA.debugLine="Private minimoadesc As String"; +_minimoadesc = ""; + //BA.debugLineNum = 579;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\""; +_minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); + //BA.debugLineNum = 580;BA.debugLine="If minimos.RowCount > 0 Then"; +if (_minimos.getRowCount()>0) { + //BA.debugLineNum = 581;BA.debugLine="minimos.Position = 0"; +_minimos.setPosition((int) (0)); + //BA.debugLineNum = 582;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN"; +_minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA"); + }else { + //BA.debugLineNum = 584;BA.debugLine="minimoadesc = \"1\""; +_minimoadesc = "1"; + }; + //BA.debugLineNum = 586;BA.debugLine="minimos.Close"; +_minimos.Close(); + //BA.debugLineNum = 588;BA.debugLine="minimoadesc = \"1\""; +_minimoadesc = "1"; + //BA.debugLineNum = 589;BA.debugLine="If laCant.Text > 0 Then"; +if ((double)(Double.parseDouble(_lacant.getText()))>0) { + //BA.debugLineNum = 624;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; +if ((_lacant.getText()).equals("")) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 625;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-(1*minimoadesc)"; +_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-(1*(double)(Double.parseDouble(_minimoadesc)))))+""))); + //BA.debugLineNum = 626;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; +if ((double)(Double.parseDouble(_lacant.getText()))<0) { +_lacant.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 627;BA.debugLine="Log(\"NO ES promo\")"; +__c.LogImpl("021037117","NO ES promo",0); + //BA.debugLineNum = 632;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\""; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); + //BA.debugLineNum = 633;BA.debugLine="If c3.RowCount > 0 Then"; +if (_c3.getRowCount()>0) { + //BA.debugLineNum = 634;BA.debugLine="c3.Position = 0"; +_c3.setPosition((int) (0)); + //BA.debugLineNum = 635;BA.debugLine="If c3.GetString(\"PE_CANT\")> minimoadesc Then"; +if ((double)(Double.parseDouble(_c3.GetString("PE_CANT")))>(double)(Double.parseDouble(_minimoadesc))) { + //BA.debugLineNum = 636;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); + //BA.debugLineNum = 637;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 638;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 640;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); + }; + }else if((_c3.GetString("PE_CANT")).equals(_minimoadesc)) { + //BA.debugLineNum = 643;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); + //BA.debugLineNum = 644;BA.debugLine="If c2.RowCount > 0 Then"; +if (_c2.getRowCount()>0) { + //BA.debugLineNum = 645;BA.debugLine="c2.Position = 0"; +_c2.setPosition((int) (0)); + //BA.debugLineNum = 648;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); + }; + }; + }; + //BA.debugLineNum = 655;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }; + //BA.debugLineNum = 658;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get"; +_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))); + //BA.debugLineNum = 659;BA.debugLine="Log(\"PU: \" & preciou)"; +__c.LogImpl("021037149","PU: "+BA.NumberToString(_preciou),0); + //BA.debugLineNum = 670;BA.debugLine="End Sub"; +return ""; +} +public String _b_prodmenosc_click() throws Exception{ +int _index = 0; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; +anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; +anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null; +anywheresoftware.b4a.objects.collections.List _estetag = null; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; +float _preciou = 0f; + //BA.debugLineNum = 894;BA.debugLine="Private Sub b_prodMenosC_Click"; + //BA.debugLineNum = 895;BA.debugLine="etCantHasFocus = False"; +_etcanthasfocus = __c.False; + //BA.debugLineNum = 896;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)"; +__c.LogImpl("021233666","etCantHasFocus="+BA.ObjectToString(_etcanthasfocus),0); + //BA.debugLineNum = 897;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)"; +__c.LogImpl("021233667","b_prodMenos_Click",__c.Colors.Magenta); + //BA.debugLineNum = 898;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; +_index = _clv_pedido._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); + //BA.debugLineNum = 899;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; +_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl0 = _clv_pedido._getpanel(_index); + //BA.debugLineNum = 900;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; +_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_pnl = _pnl0.GetView((int) (0)); + //BA.debugLineNum = 901;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3"; +_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_lacantc = _pnl.GetView((int) (3)).GetView((int) (3)); + //BA.debugLineNum = 903;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T"; +_estetag = new anywheresoftware.b4a.objects.collections.List(); +_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag()))); + //BA.debugLineNum = 904;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get"; +__c.LogImpl("021233674","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); + //BA.debugLineNum = 908;BA.debugLine="If laCantc.Text > 0 Then"; +if ((double)(Double.parseDouble(_lacantc.getText()))>0) { + //BA.debugLineNum = 911;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\""; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); + //BA.debugLineNum = 912;BA.debugLine="If c3.RowCount > 0 Then"; +if (_c3.getRowCount()>0) { + //BA.debugLineNum = 913;BA.debugLine="c3.Position = 0"; +_c3.setPosition((int) (0)); + //BA.debugLineNum = 914;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then"; +if ((double)(Double.parseDouble(_c3.GetString("PE_CAJAS")))>1) { + //BA.debugLineNum = 915;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"+__c.SmartStringFormatter("",(Object)(_subs._traeprecioc /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); + }else if((_c3.GetString("PE_CAJAS")).equals(BA.NumberToString(1))) { + //BA.debugLineNum = 917;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); + }; + }; + //BA.debugLineNum = 920;BA.debugLine="Log(\"entre al if o algo asi \")"; +__c.LogImpl("021233690","entre al if o algo asi ",0); + //BA.debugLineNum = 921;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; +if ((_lacantc.getText()).equals("")) { +_lacantc.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 922;BA.debugLine="laCantc.Text = laCantc.Text - 1"; +_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1)); + //BA.debugLineNum = 923;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0"; +if ((double)(Double.parseDouble(_lacantc.getText()))<0) { +_lacantc.setText(BA.ObjectToCharSequence(0));}; + //BA.debugLineNum = 924;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + }else if((_lacantc.getText()).equals(BA.NumberToString(0))) { + }; + //BA.debugLineNum = 930;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get"; +_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))); + //BA.debugLineNum = 931;BA.debugLine="Log(\"PU: \" & preciou)"; +__c.LogImpl("021233701","PU: "+BA.NumberToString(_preciou),0); + //BA.debugLineNum = 932;BA.debugLine="End Sub"; +return ""; +} +public String _b_regresar_click() throws Exception{ + //BA.debugLineNum = 375;BA.debugLine="Sub b_regresar_Click"; + //BA.debugLineNum = 376;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +_b4xpages._showpage /*String*/ (ba,"Cliente"); + //BA.debugLineNum = 377;BA.debugLine="End Sub"; +return ""; +} +public String _b_revversar_click() throws Exception{ + //BA.debugLineNum = 938;BA.debugLine="Private Sub b_revversar_Click"; + //BA.debugLineNum = 939;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS se"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0 WHERE HVD_cliente in (Select CUENTA from cuentaa)")); + //BA.debugLineNum = 940;BA.debugLine="B4XPage_Appear"; +_b4xpage_appear(); + //BA.debugLineNum = 941;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_appear() throws Exception{ int _i = 0; anywheresoftware.b4a.objects.LabelWrapper _label1 = null; int _bgcolor = 0; @@ -459,1094 +630,340 @@ String _preciofull = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _oc = null; int _cant2 = 0; String _puc = ""; -RDebugUtils.currentLine=14286848; - //BA.debugLineNum = 14286848;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=14286849; - //BA.debugLineNum = 14286849;BA.debugLine="Label2.Visible = False"; -__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=14286850; - //BA.debugLineNum = 14286850;BA.debugLine="Label3.Visible = False"; -__ref._label3 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=14286851; - //BA.debugLineNum = 14286851;BA.debugLine="L_TOTAL.Visible = False"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=14286852; - //BA.debugLineNum = 14286852;BA.debugLine="L_CANT.Visible = False"; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=14286853; - //BA.debugLineNum = 14286853;BA.debugLine="b_revversar.Visible = False"; -__ref._b_revversar /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=14286854; - //BA.debugLineNum = 14286854;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; -_subs._centrapanel /*String*/ (ba,__ref._p_principal /*anywheresoftware.b4a.objects.PanelWrapper*/ ,__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()); -RDebugUtils.currentLine=14286858; - //BA.debugLineNum = 14286858;BA.debugLine="L_CANT.Text =\"\""; -__ref._l_cant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=14286859; - //BA.debugLineNum = 14286859;BA.debugLine="L_TOTAL.Text=\"\""; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=14286860; - //BA.debugLineNum = 14286860;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 "))); -RDebugUtils.currentLine=14286861; - //BA.debugLineNum = 14286861;BA.debugLine="C.Position=0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=14286862; - //BA.debugLineNum = 14286862;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; -__ref._existe /*String*/ = __ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("EXISTE"); -RDebugUtils.currentLine=14286863; - //BA.debugLineNum = 14286863;BA.debugLine="C.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=14286867; - //BA.debugLineNum = 14286867;BA.debugLine="c=Starter.skmt.ExecQuery(\"select * from HIST_VENT"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 and HVD_PRONOMBRE <> 'Cobranza Pendiente' AND HVD_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) order by HVD_CODPROMO desc, HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=14286870; - //BA.debugLineNum = 14286870;BA.debugLine="ListView1.Clear"; -__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .Clear(); -RDebugUtils.currentLine=14286871; - //BA.debugLineNum = 14286871;BA.debugLine="clv_pedido.Clear"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._clear(); -RDebugUtils.currentLine=14286872; - //BA.debugLineNum = 14286872;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; -_subs._setdivider /*String*/ (ba,__ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ ,__c.Colors.LightGray,(int) (2)); -RDebugUtils.currentLine=14286873; - //BA.debugLineNum = 14286873;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().SetLayoutAnimated((int) (100),__c.DipToCurrent((int) (0)),__c.DipToCurrent((int) (60)),(int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()-50),(int) (__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()*0.62)); -RDebugUtils.currentLine=14286874; - //BA.debugLineNum = 14286874;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,"; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._base_resize(__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().getWidth(),__ref._clv_pedido /*b4a.example3.customlistview*/ ._getbase().getHeight()); -RDebugUtils.currentLine=14286876; - //BA.debugLineNum = 14286876;BA.debugLine="If c.RowCount>0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=14286879; - //BA.debugLineNum = 14286879;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 74;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 75;BA.debugLine="Label2.Visible = False"; +_label2.setVisible(__c.False); + //BA.debugLineNum = 76;BA.debugLine="Label3.Visible = False"; +_label3.setVisible(__c.False); + //BA.debugLineNum = 77;BA.debugLine="L_TOTAL.Visible = False"; +_l_total.setVisible(__c.False); + //BA.debugLineNum = 78;BA.debugLine="L_CANT.Visible = False"; +_l_cant.setVisible(__c.False); + //BA.debugLineNum = 79;BA.debugLine="b_revversar.Visible = False"; +_b_revversar.setVisible(__c.False); + //BA.debugLineNum = 80;BA.debugLine="Subs.centraPanel(p_principal, Root.Width)"; +_subs._centrapanel /*String*/ (ba,_p_principal,_root.getWidth()); + //BA.debugLineNum = 84;BA.debugLine="L_CANT.Text =\"\""; +_l_cant.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 85;BA.debugLine="L_TOTAL.Text=\"\""; +_l_total.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 86;BA.debugLine="c=Starter.skmt.ExecQuery(\"select count(*) as EXIS"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select count(*) as EXISTE from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and HVD_RECHAZO = 0 "))); + //BA.debugLineNum = 87;BA.debugLine="C.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 88;BA.debugLine="Existe = C.GetString(\"EXISTE\")"; +_existe = _c.GetString("EXISTE"); + //BA.debugLineNum = 89;BA.debugLine="C.Close"; +_c.Close(); + //BA.debugLineNum = 93;BA.debugLine="c=Starter.skmt.ExecQuery(\"select * from HIST_VENT"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select * from HIST_VENTAS WHERE hvd_rechazo <> 2 and HVD_RECHAZOCANT > 0 and HVD_PRONOMBRE <> 'Cobranza Pendiente' AND HVD_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) order by HVD_CODPROMO desc, HVD_PRONOMBRE asc"))); + //BA.debugLineNum = 96;BA.debugLine="ListView1.Clear"; +_listview1.Clear(); + //BA.debugLineNum = 97;BA.debugLine="clv_pedido.Clear"; +_clv_pedido._clear(); + //BA.debugLineNum = 98;BA.debugLine="Subs.SetDivider(ListView1, Colors.LightGray, 2)"; +_subs._setdivider /*String*/ (ba,_listview1,__c.Colors.LightGray,(int) (2)); + //BA.debugLineNum = 99;BA.debugLine="clv_pedido.GetBase.SetLayoutAnimated(100, 0dip, 6"; +_clv_pedido._getbase().SetLayoutAnimated((int) (100),__c.DipToCurrent((int) (0)),__c.DipToCurrent((int) (60)),(int) (_root.getWidth()-50),(int) (_root.getHeight()*0.62)); + //BA.debugLineNum = 100;BA.debugLine="clv_pedido.Base_Resize(clv_pedido.GetBase.Width,"; +_clv_pedido._base_resize(_clv_pedido._getbase().getWidth(),_clv_pedido._getbase().getHeight()); + //BA.debugLineNum = 102;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 105;BA.debugLine="For i=0 To c.RowCount -1"; { final int step20 = 1; -final int limit20 = (int) (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()-1); +final int limit20 = (int) (_c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit20 ;_i = _i + step20 ) { -RDebugUtils.currentLine=14286880; - //BA.debugLineNum = 14286880;BA.debugLine="c.Position=i"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition(_i); -RDebugUtils.currentLine=14286882; - //BA.debugLineNum = 14286882;BA.debugLine="If c.GetString(\"BCAJAS\") = \"0\" Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("BCAJAS")).equals("0")) { -RDebugUtils.currentLine=14286893; - //BA.debugLineNum = 14286893;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 106;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 108;BA.debugLine="If c.GetString(\"BCAJAS\") = \"0\" Then"; +if ((_c.GetString("BCAJAS")).equals("0")) { + //BA.debugLineNum = 119;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14286894; - //BA.debugLineNum = 14286894;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=14286895; - //BA.debugLineNum = 14286895;BA.debugLine="label1.TextSize = 12"; + //BA.debugLineNum = 120;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 121;BA.debugLine="label1.TextSize = 12"; _label1.setTextSize((float) (12)); -RDebugUtils.currentLine=14286896; - //BA.debugLineNum = 14286896;BA.debugLine="label1.TextColor = Colors.black"; + //BA.debugLineNum = 122;BA.debugLine="label1.TextColor = Colors.black"; _label1.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=14286897; - //BA.debugLineNum = 14286897;BA.debugLine="Dim Label2 As Label"; + //BA.debugLineNum = 123;BA.debugLine="Dim Label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14286898; - //BA.debugLineNum = 14286898;BA.debugLine="Label2 = ListView1.TwoLinesLayout.SecondLabel"; -__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=14286899; - //BA.debugLineNum = 14286899;BA.debugLine="Label2.TextSize = 12"; -__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12)); -RDebugUtils.currentLine=14286900; - //BA.debugLineNum = 14286900;BA.debugLine="Label2.TextColor = Colors.black"; -__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=14286901; - //BA.debugLineNum = 14286901;BA.debugLine="Private bgColor, textColor As Int"; + //BA.debugLineNum = 124;BA.debugLine="Label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 125;BA.debugLine="Label2.TextSize = 12"; +_label2.setTextSize((float) (12)); + //BA.debugLineNum = 126;BA.debugLine="Label2.TextColor = Colors.black"; +_label2.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 127;BA.debugLine="Private bgColor, textColor As Int"; _bgcolor = 0; _textcolor = 0; -RDebugUtils.currentLine=14286902; - //BA.debugLineNum = 14286902;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; + //BA.debugLineNum = 128;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; _bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249)); -RDebugUtils.currentLine=14286903; - //BA.debugLineNum = 14286903;BA.debugLine="textColor = Colors.black"; + //BA.debugLineNum = 129;BA.debugLine="textColor = Colors.black"; _textcolor = __c.Colors.Black; -RDebugUtils.currentLine=14286904; - //BA.debugLineNum = 14286904;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) { -RDebugUtils.currentLine=14286906; - //BA.debugLineNum = 14286906;BA.debugLine="bgColor = Colors.White"; + //BA.debugLineNum = 130;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; +if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) { + //BA.debugLineNum = 132;BA.debugLine="bgColor = Colors.White"; _bgcolor = __c.Colors.White; }; -RDebugUtils.currentLine=14286912; - //BA.debugLineNum = 14286912;BA.debugLine="Private c2 As Cursor=Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 138;BA.debugLine="Private c2 As Cursor=Starter.skmt.ExecQuery($\""; _c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(PE_CANT,0) AS PE_CANT, CONSECUTIVO, PE_BCAJAS from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'")))); -RDebugUtils.currentLine=14286915; - //BA.debugLineNum = 14286915;BA.debugLine="Private d5 As Cursor = Starter.skmt.ExecQuery"; +_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(PE_CANT,0) AS PE_CANT, CONSECUTIVO, PE_BCAJAS from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'")))); + //BA.debugLineNum = 141;BA.debugLine="Private d5 As Cursor = Starter.skmt.ExecQuery"; _d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'")))); -RDebugUtils.currentLine=14286916; - //BA.debugLineNum = 14286916;BA.debugLine="d5.Position = 0"; +_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'")))); + //BA.debugLineNum = 142;BA.debugLine="d5.Position = 0"; _d5.setPosition((int) (0)); -RDebugUtils.currentLine=14286917; - //BA.debugLineNum = 14286917;BA.debugLine="Private restacant As String = d5.GetString(\"PE"; + //BA.debugLineNum = 143;BA.debugLine="Private restacant As String = d5.GetString(\"PE"; _restacant = _d5.GetString("PE_CANT"); -RDebugUtils.currentLine=14286918; - //BA.debugLineNum = 14286918;BA.debugLine="d5.Close"; + //BA.debugLineNum = 144;BA.debugLine="d5.Close"; _d5.Close(); -RDebugUtils.currentLine=14286920; - //BA.debugLineNum = 14286920;BA.debugLine="If (c.GetString(\"HVD_RECHAZOCANT\")-restacant)"; -if (((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))!=(double)(Double.parseDouble("0"))) { -RDebugUtils.currentLine=14286921; - //BA.debugLineNum = 14286921;BA.debugLine="If c2.RowCount > 0 Then"; + //BA.debugLineNum = 146;BA.debugLine="If (c.GetString(\"HVD_RECHAZOCANT\")-restacant)"; +if (((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))!=(double)(Double.parseDouble("0"))) { + //BA.debugLineNum = 147;BA.debugLine="If c2.RowCount > 0 Then"; if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=14286922; - //BA.debugLineNum = 14286922;BA.debugLine="c2.Position = 0"; + //BA.debugLineNum = 148;BA.debugLine="c2.Position = 0"; _c2.setPosition((int) (0)); -RDebugUtils.currentLine=14286924; - //BA.debugLineNum = 14286924;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery("; + //BA.debugLineNum = 150;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery("; _c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'")))); -RDebugUtils.currentLine=14286925; - //BA.debugLineNum = 14286925;BA.debugLine="Private resta As String = 0"; +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'")))); + //BA.debugLineNum = 151;BA.debugLine="Private resta As String = 0"; _resta = BA.NumberToString(0); -RDebugUtils.currentLine=14286927; - //BA.debugLineNum = 14286927;BA.debugLine="If c3.RowCount > 0 Then"; + //BA.debugLineNum = 153;BA.debugLine="If c3.RowCount > 0 Then"; if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=14286929; - //BA.debugLineNum = 14286929;BA.debugLine="Log(1)"; -__c.LogImpl("214286929",BA.NumberToString(1),0); -RDebugUtils.currentLine=14286930; - //BA.debugLineNum = 14286930;BA.debugLine="c3.Position = 0"; + //BA.debugLineNum = 155;BA.debugLine="Log(1)"; +__c.LogImpl("020512849",BA.NumberToString(1),0); + //BA.debugLineNum = 156;BA.debugLine="c3.Position = 0"; _c3.setPosition((int) (0)); -RDebugUtils.currentLine=14286931; - //BA.debugLineNum = 14286931;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 157;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; _resta = _c3.GetString("PE_CANT"); }else { -RDebugUtils.currentLine=14286934; - //BA.debugLineNum = 14286934;BA.debugLine="Log(2)"; -__c.LogImpl("214286934",BA.NumberToString(2),0); -RDebugUtils.currentLine=14286935; - //BA.debugLineNum = 14286935;BA.debugLine="resta = 0"; + //BA.debugLineNum = 160;BA.debugLine="Log(2)"; +__c.LogImpl("020512854",BA.NumberToString(2),0); + //BA.debugLineNum = 161;BA.debugLine="resta = 0"; _resta = BA.NumberToString(0); }; -RDebugUtils.currentLine=14286938; - //BA.debugLineNum = 14286938;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; + //BA.debugLineNum = 164;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; _preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=14286939; - //BA.debugLineNum = 14286939;BA.debugLine="If preciocat.RowCount > 0 Then"; +_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"'")))); + //BA.debugLineNum = 165;BA.debugLine="If preciocat.RowCount > 0 Then"; if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=14286940; - //BA.debugLineNum = 14286940;BA.debugLine="preciocat.Position = 0"; + //BA.debugLineNum = 166;BA.debugLine="preciocat.Position = 0"; _preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=14286941; - //BA.debugLineNum = 14286941;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; + //BA.debugLineNum = 167;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; _preciofull = _preciocat.GetString("CAT_GP_PRECIO"); }; -RDebugUtils.currentLine=14286943; - //BA.debugLineNum = 14286943;BA.debugLine="preciocat.Close"; + //BA.debugLineNum = 169;BA.debugLine="preciocat.Close"; _preciocat.Close(); -RDebugUtils.currentLine=14286944; - //BA.debugLineNum = 14286944;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))"; -__c.LogImpl("214286944",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),0); -RDebugUtils.currentLine=14286945; - //BA.debugLineNum = 14286945;BA.debugLine="Log(Subs.traeAlmacen)"; -__c.LogImpl("214286945",_subs._traealmacen /*String*/ (ba),0); -RDebugUtils.currentLine=14286948; - //BA.debugLineNum = 14286948;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) { -RDebugUtils.currentLine=14286949; - //BA.debugLineNum = 14286949;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\""; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")),(int)(Double.parseDouble(_c2.GetString("PE_CANT"))),(int) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_c2.GetString("PE_CANT")))-(double)(Double.parseDouble(_resta))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + //BA.debugLineNum = 170;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))"; +__c.LogImpl("020512864",_c.GetString("HVD_CODPROMO"),0); + //BA.debugLineNum = 171;BA.debugLine="Log(Subs.traeAlmacen)"; +__c.LogImpl("020512865",_subs._traealmacen /*String*/ (ba),0); + //BA.debugLineNum = 174;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl"; +if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) { + //BA.debugLineNum = 175;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\""; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,_c.GetString("HVD_PROID"),_c.GetString("HVD_CODPROMO"),_c.GetString("CONSECUTIVO")),(int)(Double.parseDouble(_c2.GetString("PE_CANT"))),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_c2.GetString("PE_CANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); }else { -RDebugUtils.currentLine=14286951; - //BA.debugLineNum = 14286951;BA.debugLine="Log(\"aqui arriba\")"; -__c.LogImpl("214286951","aqui arriba",0); -RDebugUtils.currentLine=14286952; - //BA.debugLineNum = 14286952;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\""; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_preciofull,(int)(Double.parseDouble(_c2.GetString("PE_CANT"))),(int) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_c2.GetString("PE_CANT")))-(double)(Double.parseDouble(_resta))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + //BA.debugLineNum = 177;BA.debugLine="Log(\"aqui arriba\")"; +__c.LogImpl("020512871","aqui arriba",0); + //BA.debugLineNum = 178;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\""; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_preciofull,(int)(Double.parseDouble(_c2.GetString("PE_CANT"))),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_c2.GetString("PE_CANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); }; - }else -{RDebugUtils.currentLine=14286956; - //BA.debugLineNum = 14286956;BA.debugLine="Else iF c2.RowCount = 0 Then"; -if (_c2.getRowCount()==0) { -RDebugUtils.currentLine=14286957; - //BA.debugLineNum = 14286957;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery("; + }else if(_c2.getRowCount()==0) { + //BA.debugLineNum = 183;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery("; _c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'")))); -RDebugUtils.currentLine=14286958; - //BA.debugLineNum = 14286958;BA.debugLine="Private resta As String = 0"; +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'")))); + //BA.debugLineNum = 184;BA.debugLine="Private resta As String = 0"; _resta = BA.NumberToString(0); -RDebugUtils.currentLine=14286960; - //BA.debugLineNum = 14286960;BA.debugLine="If c3.RowCount > 0 Then"; + //BA.debugLineNum = 186;BA.debugLine="If c3.RowCount > 0 Then"; if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=14286962; - //BA.debugLineNum = 14286962;BA.debugLine="Log(3)"; -__c.LogImpl("214286962",BA.NumberToString(3),0); -RDebugUtils.currentLine=14286963; - //BA.debugLineNum = 14286963;BA.debugLine="c3.Position = 0"; + //BA.debugLineNum = 188;BA.debugLine="Log(3)"; +__c.LogImpl("020512882",BA.NumberToString(3),0); + //BA.debugLineNum = 189;BA.debugLine="c3.Position = 0"; _c3.setPosition((int) (0)); -RDebugUtils.currentLine=14286964; - //BA.debugLineNum = 14286964;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 190;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; _resta = _c3.GetString("PE_CANT"); }else { -RDebugUtils.currentLine=14286967; - //BA.debugLineNum = 14286967;BA.debugLine="Log(4)"; -__c.LogImpl("214286967",BA.NumberToString(4),0); -RDebugUtils.currentLine=14286968; - //BA.debugLineNum = 14286968;BA.debugLine="resta = 0"; + //BA.debugLineNum = 193;BA.debugLine="Log(4)"; +__c.LogImpl("020512887",BA.NumberToString(4),0); + //BA.debugLineNum = 194;BA.debugLine="resta = 0"; _resta = BA.NumberToString(0); }; -RDebugUtils.currentLine=14286972; - //BA.debugLineNum = 14286972;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; + //BA.debugLineNum = 198;BA.debugLine="Dim preciocat As Cursor = Starter.skmt.ExecQ"; _preciocat = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"'")))); -RDebugUtils.currentLine=14286973; - //BA.debugLineNum = 14286973;BA.debugLine="If preciocat.RowCount > 0 Then"; +_preciocat = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select IFNULL(CAT_GP_PRECIO,0) AS CAT_GP_PRECIO from CAT_GUNAPROD WHERE CAT_GP_ID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"'")))); + //BA.debugLineNum = 199;BA.debugLine="If preciocat.RowCount > 0 Then"; if (_preciocat.getRowCount()>0) { -RDebugUtils.currentLine=14286974; - //BA.debugLineNum = 14286974;BA.debugLine="preciocat.Position = 0"; + //BA.debugLineNum = 200;BA.debugLine="preciocat.Position = 0"; _preciocat.setPosition((int) (0)); -RDebugUtils.currentLine=14286975; - //BA.debugLineNum = 14286975;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; + //BA.debugLineNum = 201;BA.debugLine="Dim preciofull As String = preciocat.GetStr"; _preciofull = _preciocat.GetString("CAT_GP_PRECIO"); }; -RDebugUtils.currentLine=14286977; - //BA.debugLineNum = 14286977;BA.debugLine="preciocat.Close"; + //BA.debugLineNum = 203;BA.debugLine="preciocat.Close"; _preciocat.Close(); -RDebugUtils.currentLine=14286978; - //BA.debugLineNum = 14286978;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))"; -__c.LogImpl("214286978",__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),0); -RDebugUtils.currentLine=14286979; - //BA.debugLineNum = 14286979;BA.debugLine="Log(Subs.traeAlmacen)"; -__c.LogImpl("214286979",_subs._traealmacen /*String*/ (ba),0); -RDebugUtils.currentLine=14286981; - //BA.debugLineNum = 14286981;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) { -RDebugUtils.currentLine=14286982; - //BA.debugLineNum = 14286982;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\""; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")),(int) (0),(int) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + //BA.debugLineNum = 204;BA.debugLine="Log(c.GetString(\"HVD_CODPROMO\"))"; +__c.LogImpl("020512898",_c.GetString("HVD_CODPROMO"),0); + //BA.debugLineNum = 205;BA.debugLine="Log(Subs.traeAlmacen)"; +__c.LogImpl("020512899",_subs._traealmacen /*String*/ (ba),0); + //BA.debugLineNum = 207;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") = Subs.traeAl"; +if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba))) { + //BA.debugLineNum = 208;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\""; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_subs._traeprecio2 /*String*/ (ba,_c.GetString("HVD_PROID"),_c.GetString("HVD_CODPROMO"),_c.GetString("CONSECUTIVO")),(int) (0),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); }else { -RDebugUtils.currentLine=14286984; - //BA.debugLineNum = 14286984;BA.debugLine="Log(\"aqui abajo\")"; -__c.LogImpl("214286984","aqui abajo",0); -RDebugUtils.currentLine=14286985; - //BA.debugLineNum = 14286985;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\""; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_preciofull,(int) (0),(int) ((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + //BA.debugLineNum = 210;BA.debugLine="Log(\"aqui abajo\")"; +__c.LogImpl("020512904","aqui abajo",0); + //BA.debugLineNum = 211;BA.debugLine="clv_pedido.Add(CreateListItem(c.GetString(\""; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem(_c.GetString("HVD_PRONOMBRE"),_preciofull,(int) (0),(int) ((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); }; - }} -; }; -RDebugUtils.currentLine=14286992; - //BA.debugLineNum = 14286992;BA.debugLine="c2.Close"; + }; + //BA.debugLineNum = 218;BA.debugLine="c2.Close"; _c2.Close(); - }else -{RDebugUtils.currentLine=14286995; - //BA.debugLineNum = 14286995;BA.debugLine="Else If c.GetString(\"BCAJAS\") = \"1\" Then"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("BCAJAS")).equals("1")) { -RDebugUtils.currentLine=14286996; - //BA.debugLineNum = 14286996;BA.debugLine="Log(\"AQUI1\")"; -__c.LogImpl("214286996","AQUI1",0); -RDebugUtils.currentLine=14286999; - //BA.debugLineNum = 14286999;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery("; + }else if((_c.GetString("BCAJAS")).equals("1")) { + //BA.debugLineNum = 222;BA.debugLine="Log(\"AQUI1\")"; +__c.LogImpl("020512916","AQUI1",0); + //BA.debugLineNum = 225;BA.debugLine="Private oc As Cursor = Starter.skmt.ExecQuery("; _oc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_NUM_REGISTRO")))+"'")))); -RDebugUtils.currentLine=14287000; - //BA.debugLineNum = 14287000;BA.debugLine="Private cant2 As Int = 0"; +_oc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) and hvd_proid = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' and HVD_NUM_REGISTRO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_NUM_REGISTRO")))+"'")))); + //BA.debugLineNum = 226;BA.debugLine="Private cant2 As Int = 0"; _cant2 = (int) (0); -RDebugUtils.currentLine=14287001; - //BA.debugLineNum = 14287001;BA.debugLine="If oc.RowCount > 0 Then"; + //BA.debugLineNum = 227;BA.debugLine="If oc.RowCount > 0 Then"; if (_oc.getRowCount()>0) { -RDebugUtils.currentLine=14287002; - //BA.debugLineNum = 14287002;BA.debugLine="oc.Position = 0"; + //BA.debugLineNum = 228;BA.debugLine="oc.Position = 0"; _oc.setPosition((int) (0)); -RDebugUtils.currentLine=14287003; - //BA.debugLineNum = 14287003;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")"; + //BA.debugLineNum = 229;BA.debugLine="cant2 = oc.GetString(\"HVD_CANT\")"; _cant2 = (int)(Double.parseDouble(_oc.GetString("HVD_CANT"))); }; -RDebugUtils.currentLine=14287005; - //BA.debugLineNum = 14287005;BA.debugLine="oc.Close"; + //BA.debugLineNum = 231;BA.debugLine="oc.Close"; _oc.Close(); -RDebugUtils.currentLine=14287006; - //BA.debugLineNum = 14287006;BA.debugLine="Dim label1 As Label"; + //BA.debugLineNum = 232;BA.debugLine="Dim label1 As Label"; _label1 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14287007; - //BA.debugLineNum = 14287007;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; -_label1 = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().Label; -RDebugUtils.currentLine=14287008; - //BA.debugLineNum = 14287008;BA.debugLine="label1.TextSize = 12"; + //BA.debugLineNum = 233;BA.debugLine="label1 = ListView1.TwoLinesLayout.Label"; +_label1 = _listview1.getTwoLinesLayout().Label; + //BA.debugLineNum = 234;BA.debugLine="label1.TextSize = 12"; _label1.setTextSize((float) (12)); -RDebugUtils.currentLine=14287009; - //BA.debugLineNum = 14287009;BA.debugLine="label1.TextColor = Colors.black"; + //BA.debugLineNum = 235;BA.debugLine="label1.TextColor = Colors.black"; _label1.setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=14287010; - //BA.debugLineNum = 14287010;BA.debugLine="Dim Label2 As Label"; + //BA.debugLineNum = 236;BA.debugLine="Dim Label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14287011; - //BA.debugLineNum = 14287011;BA.debugLine="Label2 = ListView1.TwoLinesLayout.SecondLabel"; -__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ = __ref._listview1 /*anywheresoftware.b4a.objects.ListViewWrapper*/ .getTwoLinesLayout().SecondLabel; -RDebugUtils.currentLine=14287012; - //BA.debugLineNum = 14287012;BA.debugLine="Label2.TextSize = 12"; -__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextSize((float) (12)); -RDebugUtils.currentLine=14287013; - //BA.debugLineNum = 14287013;BA.debugLine="Label2.TextColor = Colors.black"; -__ref._label2 /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(__c.Colors.Black); -RDebugUtils.currentLine=14287014; - //BA.debugLineNum = 14287014;BA.debugLine="Private bgColor, textColor As Int"; + //BA.debugLineNum = 237;BA.debugLine="Label2 = ListView1.TwoLinesLayout.SecondLabel"; +_label2 = _listview1.getTwoLinesLayout().SecondLabel; + //BA.debugLineNum = 238;BA.debugLine="Label2.TextSize = 12"; +_label2.setTextSize((float) (12)); + //BA.debugLineNum = 239;BA.debugLine="Label2.TextColor = Colors.black"; +_label2.setTextColor(__c.Colors.Black); + //BA.debugLineNum = 240;BA.debugLine="Private bgColor, textColor As Int"; _bgcolor = 0; _textcolor = 0; -RDebugUtils.currentLine=14287015; - //BA.debugLineNum = 14287015;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; + //BA.debugLineNum = 241;BA.debugLine="bgColor = Colors.RGB(177, 200, 249)'azul"; _bgcolor = __c.Colors.RGB((int) (177),(int) (200),(int) (249)); -RDebugUtils.currentLine=14287016; - //BA.debugLineNum = 14287016;BA.debugLine="textColor = Colors.black"; + //BA.debugLineNum = 242;BA.debugLine="textColor = Colors.black"; _textcolor = __c.Colors.Black; -RDebugUtils.currentLine=14287017; - //BA.debugLineNum = 14287017;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; -if ((__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) { -RDebugUtils.currentLine=14287019; - //BA.debugLineNum = 14287019;BA.debugLine="bgColor = Colors.White"; + //BA.debugLineNum = 243;BA.debugLine="If c.GetString(\"HVD_CODPROMO\") <> Subs.traeAlm"; +if ((_c.GetString("HVD_CODPROMO")).equals(_subs._traealmacen /*String*/ (ba)) == false) { + //BA.debugLineNum = 245;BA.debugLine="bgColor = Colors.White"; _bgcolor = __c.Colors.White; }; -RDebugUtils.currentLine=14287024; - //BA.debugLineNum = 14287024;BA.debugLine="Private c2 As Cursor=Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 250;BA.debugLine="Private c2 As Cursor=Starter.skmt.ExecQuery($\""; _c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select * from PEDIDO WHERE PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA)")))); -RDebugUtils.currentLine=14287026; - //BA.debugLineNum = 14287026;BA.debugLine="Private d5 As Cursor = Starter.skmt.ExecQuery"; + //BA.debugLineNum = 252;BA.debugLine="Private d5 As Cursor = Starter.skmt.ExecQuery"; _d5 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'")))); -RDebugUtils.currentLine=14287027; - //BA.debugLineNum = 14287027;BA.debugLine="d5.Position = 0"; +_d5 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT IFNULL(Sum(PE_CANT),0) AS PE_CANT FROM PEDIDO WHERE PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'")))); + //BA.debugLineNum = 253;BA.debugLine="d5.Position = 0"; _d5.setPosition((int) (0)); -RDebugUtils.currentLine=14287028; - //BA.debugLineNum = 14287028;BA.debugLine="Private restacant As String = d5.GetString(\"PE"; + //BA.debugLineNum = 254;BA.debugLine="Private restacant As String = d5.GetString(\"PE"; _restacant = _d5.GetString("PE_CANT"); -RDebugUtils.currentLine=14287029; - //BA.debugLineNum = 14287029;BA.debugLine="d5.Close"; + //BA.debugLineNum = 255;BA.debugLine="d5.Close"; _d5.Close(); -RDebugUtils.currentLine=14287031; - //BA.debugLineNum = 14287031;BA.debugLine="If (c.GetString(\"HVD_RECHAZOCANT\")-restacant)"; -if (((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))!=(double)(Double.parseDouble("0"))) { -RDebugUtils.currentLine=14287032; - //BA.debugLineNum = 14287032;BA.debugLine="If c2.RowCount > 0 Then"; + //BA.debugLineNum = 257;BA.debugLine="If (c.GetString(\"HVD_RECHAZOCANT\")-restacant)"; +if (((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant)))!=(double)(Double.parseDouble("0"))) { + //BA.debugLineNum = 258;BA.debugLine="If c2.RowCount > 0 Then"; if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=14287033; - //BA.debugLineNum = 14287033;BA.debugLine="c2.Position = 0"; + //BA.debugLineNum = 259;BA.debugLine="c2.Position = 0"; _c2.setPosition((int) (0)); -RDebugUtils.currentLine=14287034; - //BA.debugLineNum = 14287034;BA.debugLine="Log(\"SI ENTRO A PONER CAJAS BIEN \")"; -__c.LogImpl("214287034","SI ENTRO A PONER CAJAS BIEN ",0); -RDebugUtils.currentLine=14287035; - //BA.debugLineNum = 14287035;BA.debugLine="Log(c2.GetString(\"PE_CAJAS\"))"; -__c.LogImpl("214287035",_c2.GetString("PE_CAJAS"),0); -RDebugUtils.currentLine=14287036; - //BA.debugLineNum = 14287036;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery("; + //BA.debugLineNum = 260;BA.debugLine="Log(\"SI ENTRO A PONER CAJAS BIEN \")"; +__c.LogImpl("020512954","SI ENTRO A PONER CAJAS BIEN ",0); + //BA.debugLineNum = 261;BA.debugLine="Log(c2.GetString(\"PE_CAJAS\"))"; +__c.LogImpl("020512955",_c2.GetString("PE_CAJAS"),0); + //BA.debugLineNum = 262;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery("; _c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'")))); -RDebugUtils.currentLine=14287037; - //BA.debugLineNum = 14287037;BA.debugLine="Private resta As String = 0"; +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'")))); + //BA.debugLineNum = 263;BA.debugLine="Private resta As String = 0"; _resta = BA.NumberToString(0); -RDebugUtils.currentLine=14287039; - //BA.debugLineNum = 14287039;BA.debugLine="If c3.RowCount > 0 Then"; + //BA.debugLineNum = 265;BA.debugLine="If c3.RowCount > 0 Then"; if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=14287041; - //BA.debugLineNum = 14287041;BA.debugLine="Log(5)"; -__c.LogImpl("214287041",BA.NumberToString(5),0); -RDebugUtils.currentLine=14287042; - //BA.debugLineNum = 14287042;BA.debugLine="c3.Position = 0"; + //BA.debugLineNum = 267;BA.debugLine="Log(5)"; +__c.LogImpl("020512961",BA.NumberToString(5),0); + //BA.debugLineNum = 268;BA.debugLine="c3.Position = 0"; _c3.setPosition((int) (0)); -RDebugUtils.currentLine=14287043; - //BA.debugLineNum = 14287043;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 269;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; _resta = _c3.GetString("PE_CANT"); }else { -RDebugUtils.currentLine=14287046; - //BA.debugLineNum = 14287046;BA.debugLine="Log(6)"; -__c.LogImpl("214287046",BA.NumberToString(6),0); -RDebugUtils.currentLine=14287047; - //BA.debugLineNum = 14287047;BA.debugLine="resta = 0"; + //BA.debugLineNum = 272;BA.debugLine="Log(6)"; +__c.LogImpl("020512966",BA.NumberToString(6),0); + //BA.debugLineNum = 273;BA.debugLine="resta = 0"; _resta = BA.NumberToString(0); }; -RDebugUtils.currentLine=14287049; - //BA.debugLineNum = 14287049;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS"; -_puc = BA.NumberToString((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANTC")))); -RDebugUtils.currentLine=14287050; - //BA.debugLineNum = 14287050;BA.debugLine="LogColor((restacant/Subs.traeConversion(c.Ge"; -__c.LogImpl("214287050",BA.NumberToString(((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))))),__c.Colors.Green); -RDebugUtils.currentLine=14287051; - //BA.debugLineNum = 14287051;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\""; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_puc,(int) (((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))))),(int) ((((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant))-(double)(Double.parseDouble(_resta)))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + //BA.debugLineNum = 275;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS"; +_puc = BA.NumberToString((double)(Double.parseDouble(_c.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c.GetString("CANTC")))); + //BA.debugLineNum = 276;BA.debugLine="LogColor((restacant/Subs.traeConversion(c.Ge"; +__c.LogImpl("020512970",BA.NumberToString(((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),__c.Colors.Green); + //BA.debugLineNum = 277;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\""; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_c.GetString("HVD_PRONOMBRE"),_puc,(int) (((double)(Double.parseDouble(_restacant))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),(int) ((((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_restacant))-(double)(Double.parseDouble(_resta)))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); }else { -RDebugUtils.currentLine=14287053; - //BA.debugLineNum = 14287053;BA.debugLine="Log(\"NO ENTRO A PONER CAJAS BIEN \")"; -__c.LogImpl("214287053","NO ENTRO A PONER CAJAS BIEN ",0); -RDebugUtils.currentLine=14287054; - //BA.debugLineNum = 14287054;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery("; + //BA.debugLineNum = 279;BA.debugLine="Log(\"NO ENTRO A PONER CAJAS BIEN \")"; +__c.LogImpl("020512973","NO ENTRO A PONER CAJAS BIEN ",0); + //BA.debugLineNum = 280;BA.debugLine="Private c3 As Cursor=Starter.skmt.ExecQuery("; _c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))+"'")))); -RDebugUtils.currentLine=14287055; - //BA.debugLineNum = 14287055;BA.debugLine="Private resta As String = 0"; +_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select Ifnull(sum(PE_CANT),0) AS PE_CANT from PEDIDO WHERE PE_CLIENTE NOT IN (SELECT CUENTA FROM CUENTAA) AND PE_CLIENTEOR = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_CLIENTE")))+"' AND PE_PROID ='"+__c.SmartStringFormatter("",(Object)(_c.GetString("HVD_PROID")))+"' AND CONSECUTIVO = '"+__c.SmartStringFormatter("",(Object)(_c.GetString("CONSECUTIVO")))+"'")))); + //BA.debugLineNum = 281;BA.debugLine="Private resta As String = 0"; _resta = BA.NumberToString(0); -RDebugUtils.currentLine=14287057; - //BA.debugLineNum = 14287057;BA.debugLine="If c3.RowCount > 0 Then"; + //BA.debugLineNum = 283;BA.debugLine="If c3.RowCount > 0 Then"; if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=14287059; - //BA.debugLineNum = 14287059;BA.debugLine="Log(7)"; -__c.LogImpl("214287059",BA.NumberToString(7),0); -RDebugUtils.currentLine=14287060; - //BA.debugLineNum = 14287060;BA.debugLine="c3.Position = 0"; + //BA.debugLineNum = 285;BA.debugLine="Log(7)"; +__c.LogImpl("020512979",BA.NumberToString(7),0); + //BA.debugLineNum = 286;BA.debugLine="c3.Position = 0"; _c3.setPosition((int) (0)); -RDebugUtils.currentLine=14287061; - //BA.debugLineNum = 14287061;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; + //BA.debugLineNum = 287;BA.debugLine="resta = c3.GetString(\"PE_CANT\")"; _resta = _c3.GetString("PE_CANT"); }else { -RDebugUtils.currentLine=14287064; - //BA.debugLineNum = 14287064;BA.debugLine="Log(1)"; -__c.LogImpl("214287064",BA.NumberToString(1),0); -RDebugUtils.currentLine=14287065; - //BA.debugLineNum = 14287065;BA.debugLine="resta = 0"; + //BA.debugLineNum = 290;BA.debugLine="Log(1)"; +__c.LogImpl("020512984",BA.NumberToString(1),0); + //BA.debugLineNum = 291;BA.debugLine="resta = 0"; _resta = BA.NumberToString(0); }; -RDebugUtils.currentLine=14287067; - //BA.debugLineNum = 14287067;BA.debugLine="LogColor(resta,Colors.Green)"; -__c.LogImpl("214287067",_resta,__c.Colors.Green); -RDebugUtils.currentLine=14287068; - //BA.debugLineNum = 14287068;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS"; -_puc = BA.NumberToString((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CANTC")))); -RDebugUtils.currentLine=14287070; - //BA.debugLineNum = 14287070;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\""; -__ref._clv_pedido /*b4a.example3.customlistview*/ ._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__ref._createlistitem2 /*anywheresoftware.b4a.objects.PanelWrapper*/ (null,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PRONOMBRE"),_puc,(int) (0),(int) ((((double)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta)))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID")))))),__ref._clv_pedido /*b4a.example3.customlistview*/ ._asview().getWidth(),__c.DipToCurrent((int) (118)),__ref._bmp /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ ,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_PROID"),_bgcolor,_textcolor,__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CODPROMO"),__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("HVD_CLIENTE"),(int)(Double.parseDouble(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); + //BA.debugLineNum = 293;BA.debugLine="LogColor(resta,Colors.Green)"; +__c.LogImpl("020512987",_resta,__c.Colors.Green); + //BA.debugLineNum = 294;BA.debugLine="Private puc As String = c.GetString(\"HVD_COS"; +_puc = BA.NumberToString((double)(Double.parseDouble(_c.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c.GetString("CANTC")))); + //BA.debugLineNum = 296;BA.debugLine="clv_pedido.Add(CreateListItem2(c.GetString(\""; +_clv_pedido._add((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_createlistitem2(_c.GetString("HVD_PRONOMBRE"),_puc,(int) (0),(int) ((((double)(Double.parseDouble(_c.GetString("HVD_RECHAZOCANT")))-(double)(Double.parseDouble(_resta)))/(double)(double)(Double.parseDouble(_subs._traeconversion /*String*/ (ba,_c.GetString("HVD_PROID")))))),_clv_pedido._asview().getWidth(),__c.DipToCurrent((int) (118)),_bmp,_c.GetString("HVD_PROID"),_bgcolor,_textcolor,_c.GetString("HVD_CODPROMO"),_c.GetString("HVD_CLIENTE"),(int)(Double.parseDouble(_c.GetString("CONSECUTIVO")))).getObject())),(Object)(_i)); }; }; -RDebugUtils.currentLine=14287073; - //BA.debugLineNum = 14287073;BA.debugLine="c2.Close"; + //BA.debugLineNum = 299;BA.debugLine="c2.Close"; _c2.Close(); - }} -; + }; } }; }; -RDebugUtils.currentLine=14287142; - //BA.debugLineNum = 14287142;BA.debugLine="End Sub"; + //BA.debugLineNum = 368;BA.debugLine="End Sub"; return ""; } -public String _b_prodmasc_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "b_prodmasc_click", false)) - {return ((String) Debug.delegate(ba, "b_prodmasc_click", null));} -int _index = 0; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; -anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null; -anywheresoftware.b4a.objects.collections.List _estetag = null; -String _maxprods = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; -String _puc = ""; -RDebugUtils.currentLine=14942208; - //BA.debugLineNum = 14942208;BA.debugLine="Private Sub b_prodMasC_Click"; -RDebugUtils.currentLine=14942209; - //BA.debugLineNum = 14942209;BA.debugLine="etCantHasFocus = False"; -__ref._etcanthasfocus /*boolean*/ = __c.False; -RDebugUtils.currentLine=14942211; - //BA.debugLineNum = 14942211;BA.debugLine="LogColor(\"b_prodMas_Click\", Colors.Magenta)"; -__c.LogImpl("214942211","b_prodMas_Click",__c.Colors.Magenta); -RDebugUtils.currentLine=14942212; - //BA.debugLineNum = 14942212;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; -_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=14942213; - //BA.debugLineNum = 14942213;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; -_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index); -RDebugUtils.currentLine=14942214; - //BA.debugLineNum = 14942214;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; -_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl = _pnl0.GetView((int) (0)); -RDebugUtils.currentLine=14942215; - //BA.debugLineNum = 14942215;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3"; -_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_lacantc = _pnl.GetView((int) (3)).GetView((int) (3)); -RDebugUtils.currentLine=14942216; - //BA.debugLineNum = 14942216;BA.debugLine="LogColor(laCantc.Text&\"--------------------------"; -__c.LogImpl("214942216",_lacantc.getText()+"-----------------------------",__c.Colors.Blue); -RDebugUtils.currentLine=14942220; - //BA.debugLineNum = 14942220;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T"; -_estetag = new anywheresoftware.b4a.objects.collections.List(); -_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag()))); -RDebugUtils.currentLine=14942221; - //BA.debugLineNum = 14942221;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|LC_TAG:\"&laCantc.Ta"; -__c.LogImpl("214942221","LC_TEXT:"+_lacantc.getText()+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=14942222; - //BA.debugLineNum = 14942222;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; -if ((_lacantc.getText()).equals("")) { -_lacantc.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=14942224; - //BA.debugLineNum = 14942224;BA.debugLine="Private maxProds As String = (esteTag.Get(1) + es"; -_maxprods = BA.NumberToString(((double)(BA.ObjectToNumber(_estetag.Get((int) (1))))+(double)(BA.ObjectToNumber(_estetag.Get((int) (4)))))); -RDebugUtils.currentLine=14942225; - //BA.debugLineNum = 14942225;BA.debugLine="LogColor(esteTag.Get(1),Colors.Red)"; -__c.LogImpl("214942225",BA.ObjectToString(_estetag.Get((int) (1))),__c.Colors.Red); -RDebugUtils.currentLine=14942226; - //BA.debugLineNum = 14942226;BA.debugLine="LogColor(esteTag.Get(4),Colors.Red)"; -__c.LogImpl("214942226",BA.ObjectToString(_estetag.Get((int) (4))),__c.Colors.Red); -RDebugUtils.currentLine=14942227; - //BA.debugLineNum = 14942227;BA.debugLine="LogColor($\"++++++++++++++++++++++++++ ${esteTag"; -__c.LogImpl("214942227",("++++++++++++++++++++++++++ "+__c.SmartStringFormatter("",(Object)(_estetag.getObject()))+""),__c.Colors.Green); -RDebugUtils.currentLine=14942229; - //BA.debugLineNum = 14942229;BA.debugLine="Log(maxProds)"; -__c.LogImpl("214942229",_maxprods,0); -RDebugUtils.currentLine=14942232; - //BA.debugLineNum = 14942232;BA.debugLine="Log(esteTag.Get(4))"; -__c.LogImpl("214942232",BA.ObjectToString(_estetag.Get((int) (4))),0); -RDebugUtils.currentLine=14942233; - //BA.debugLineNum = 14942233;BA.debugLine="If esteTag.Get(4) = \"0\" Then"; -if ((_estetag.Get((int) (4))).equals((Object)("0"))) { - }else { -RDebugUtils.currentLine=14942236; - //BA.debugLineNum = 14942236;BA.debugLine="If laCantc.Text + 1 <= maxProds Then"; -if ((double)(Double.parseDouble(_lacantc.getText()))+1<=(double)(Double.parseDouble(_maxprods))) { -RDebugUtils.currentLine=14942237; - //BA.debugLineNum = 14942237;BA.debugLine="Log($\"NuevaCant = ${laCantc.Text + 1}\"$)"; -__c.LogImpl("214942237",("NuevaCant = "+__c.SmartStringFormatter("",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""),0); -RDebugUtils.currentLine=14942239; - //BA.debugLineNum = 14942239;BA.debugLine="laCantc.Text = $\"$1.0{laCantc.Text + 1}\"$"; -_lacantc.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacantc.getText()))+1))+""))); -RDebugUtils.currentLine=14942240; - //BA.debugLineNum = 14942240;BA.debugLine="LogColor(esteTag,Colors.Magenta)"; -__c.LogImpl("214942240",BA.ObjectToString(_estetag),__c.Colors.Magenta); -RDebugUtils.currentLine=14942242; - //BA.debugLineNum = 14942242;BA.debugLine="LogColor(laCantc.Text,Colors.Red)"; -__c.LogImpl("214942242",_lacantc.getText(),__c.Colors.Red); -RDebugUtils.currentLine=14942245; - //BA.debugLineNum = 14942245;BA.debugLine="c = Starter.skmt.ExecQuery2(\"SELECT * FROM PEDI"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM PEDIDO WHERE PE_PROID = ? and PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); -RDebugUtils.currentLine=14942246; - //BA.debugLineNum = 14942246;BA.debugLine="If c.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=14942247; - //BA.debugLineNum = 14942247;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; -_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); -RDebugUtils.currentLine=14942248; - //BA.debugLineNum = 14942248;BA.debugLine="If c2.RowCount > 0 Then"; -if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=14942249; - //BA.debugLineNum = 14942249;BA.debugLine="c2.Position = 0"; -_c2.setPosition((int) (0)); -RDebugUtils.currentLine=14942250; - //BA.debugLineNum = 14942250;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS"; -_puc = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("CANTC")))); -RDebugUtils.currentLine=14942252; - //BA.debugLineNum = 14942252;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)+(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= (IFNULL(PE_CAJAS,0)+1)*'"+__c.SmartStringFormatter("",(Object)(_puc))+"', PE_CAJAS= IFNULL(PE_CAJAS,0) + 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); -RDebugUtils.currentLine=14942253; - //BA.debugLineNum = 14942253;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=14942254; - //BA.debugLineNum = 14942254;BA.debugLine="Log(\"aqui2\")"; -__c.LogImpl("214942254","aqui2",0); - }; - }else { -RDebugUtils.currentLine=14942257; - //BA.debugLineNum = 14942257;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; -_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM HIST_VENTAS WHERE HVD_PROID = ? AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); -RDebugUtils.currentLine=14942258; - //BA.debugLineNum = 14942258;BA.debugLine="If c2.RowCount > 0 Then"; -if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=14942259; - //BA.debugLineNum = 14942259;BA.debugLine="c2.Position = 0"; -_c2.setPosition((int) (0)); -RDebugUtils.currentLine=14942260; - //BA.debugLineNum = 14942260;BA.debugLine="Private puc As String = c2.GetString(\"HVD_COS"; -_puc = BA.NumberToString((double)(Double.parseDouble(_c2.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_c2.GetString("CANTC")))); -RDebugUtils.currentLine=14942261; - //BA.debugLineNum = 14942261;BA.debugLine="Log(puc)"; -__c.LogImpl("214942261",_puc,0); -RDebugUtils.currentLine=14942264; - //BA.debugLineNum = 14942264;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO PEDID"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO PEDIDO(PE_PROID,PE_PRONOMBRE,PE_CANT,PE_CLIENTEOR,PE_CLIENTE,PE_COSTOU,PE_COSTO_TOT,PE_CAJAS,PE_BCAJAS,CONSECUTIVO,PE_RUTA, PE_TIPO,PE_CEDIS,PE_FECHA,PE_USUARIO,FECHA_PREV,RUTA_REP,PE_REGALO) VALUES (?,?,?,?,?,?,?,1,1,?,?,?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{BA.ObjectToString(_estetag.Get((int) (2))),_c2.GetString("HVD_PRONOMBRE"),_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2)))),BA.ObjectToString(_estetag.Get((int) (5))),_subs._traecliente /*String*/ (ba),_puc,_puc,BA.ObjectToString(_estetag.Get((int) (6))),_subs._traerutaprev /*String*/ (ba),"PREVENTA",_subs._traealmacen /*String*/ (ba),__ref._sdate /*String*/ +" "+__ref._stime /*String*/ ,_subs._traeusuario /*String*/ (ba),_subs._traefechaprev /*String*/ (ba),_subs._traerutareparto /*String*/ (ba),BA.NumberToString(0)})); -RDebugUtils.currentLine=14942265; - //BA.debugLineNum = 14942265;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }; - }; - }; - }; -RDebugUtils.currentLine=14942271; - //BA.debugLineNum = 14942271;BA.debugLine="End Sub"; -return ""; -} -public String _b_prodmenos_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "b_prodmenos_click", false)) - {return ((String) Debug.delegate(ba, "b_prodmenos_click", null));} -int _index = 0; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; -anywheresoftware.b4a.objects.B4XViewWrapper _lacant = null; -anywheresoftware.b4a.objects.collections.List _estetag = null; -String _minimoadesc = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _minimos = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c2 = null; -float _preciou = 0f; -RDebugUtils.currentLine=14811136; - //BA.debugLineNum = 14811136;BA.debugLine="Sub b_prodMenos_Click"; -RDebugUtils.currentLine=14811137; - //BA.debugLineNum = 14811137;BA.debugLine="etCantHasFocus = False"; -__ref._etcanthasfocus /*boolean*/ = __c.False; -RDebugUtils.currentLine=14811138; - //BA.debugLineNum = 14811138;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)"; -__c.LogImpl("214811138","etCantHasFocus="+BA.ObjectToString(__ref._etcanthasfocus /*boolean*/ ),0); -RDebugUtils.currentLine=14811139; - //BA.debugLineNum = 14811139;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)"; -__c.LogImpl("214811139","b_prodMenos_Click",__c.Colors.Magenta); -RDebugUtils.currentLine=14811140; - //BA.debugLineNum = 14811140;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; -_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=14811141; - //BA.debugLineNum = 14811141;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; -_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index); -RDebugUtils.currentLine=14811142; - //BA.debugLineNum = 14811142;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; -_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl = _pnl0.GetView((int) (0)); -RDebugUtils.currentLine=14811143; - //BA.debugLineNum = 14811143;BA.debugLine="Dim laCant As B4XView = pnl.GetView(2).GetView(3)"; -_lacant = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_lacant = _pnl.GetView((int) (2)).GetView((int) (3)); -RDebugUtils.currentLine=14811145; - //BA.debugLineNum = 14811145;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCant.Ta"; -_estetag = new anywheresoftware.b4a.objects.collections.List(); -_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacant.getTag()))); -RDebugUtils.currentLine=14811146; - //BA.debugLineNum = 14811146;BA.debugLine="Log(\"LC_TEXT:\"&laCant.Text&\"|PROMO:\"&esteTag.Get("; -__c.LogImpl("214811146","LC_TEXT:"+_lacant.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacant.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=14811148; - //BA.debugLineNum = 14811148;BA.debugLine="Private minimoadesc As String"; -_minimoadesc = ""; -RDebugUtils.currentLine=14811149; - //BA.debugLineNum = 14811149;BA.debugLine="Dim minimos As Cursor = Starter.skmt.ExecQuery2(\""; -_minimos = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_minimos = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD3 WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=14811150; - //BA.debugLineNum = 14811150;BA.debugLine="If minimos.RowCount > 0 Then"; -if (_minimos.getRowCount()>0) { -RDebugUtils.currentLine=14811151; - //BA.debugLineNum = 14811151;BA.debugLine="minimos.Position = 0"; -_minimos.setPosition((int) (0)); -RDebugUtils.currentLine=14811152; - //BA.debugLineNum = 14811152;BA.debugLine="minimoadesc = minimos.GetString(\"CAT_DP_CANT_MIN"; -_minimoadesc = _minimos.GetString("CAT_DP_CANT_MIN_VENTA"); - }else { -RDebugUtils.currentLine=14811154; - //BA.debugLineNum = 14811154;BA.debugLine="minimoadesc = \"1\""; -_minimoadesc = "1"; - }; -RDebugUtils.currentLine=14811156; - //BA.debugLineNum = 14811156;BA.debugLine="minimos.Close"; -_minimos.Close(); -RDebugUtils.currentLine=14811158; - //BA.debugLineNum = 14811158;BA.debugLine="minimoadesc = \"1\""; -_minimoadesc = "1"; -RDebugUtils.currentLine=14811159; - //BA.debugLineNum = 14811159;BA.debugLine="If laCant.Text > 0 Then"; -if ((double)(Double.parseDouble(_lacant.getText()))>0) { -RDebugUtils.currentLine=14811194; - //BA.debugLineNum = 14811194;BA.debugLine="If laCant.Text = \"\" Then laCant.Text = 0"; -if ((_lacant.getText()).equals("")) { -_lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=14811195; - //BA.debugLineNum = 14811195;BA.debugLine="laCant.Text = $\"$1.0{laCant.Text-(1*minimoadesc)"; -_lacant.setText(BA.ObjectToCharSequence((""+__c.SmartStringFormatter("1.0",(Object)((double)(Double.parseDouble(_lacant.getText()))-(1*(double)(Double.parseDouble(_minimoadesc)))))+""))); -RDebugUtils.currentLine=14811196; - //BA.debugLineNum = 14811196;BA.debugLine="If laCant.Text < 0 Then laCant.Text = 0"; -if ((double)(Double.parseDouble(_lacant.getText()))<0) { -_lacant.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=14811197; - //BA.debugLineNum = 14811197;BA.debugLine="Log(\"NO ES promo\")"; -__c.LogImpl("214811197","NO ES promo",0); -RDebugUtils.currentLine=14811202; - //BA.debugLineNum = 14811202;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\""; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CANT FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); -RDebugUtils.currentLine=14811203; - //BA.debugLineNum = 14811203;BA.debugLine="If c3.RowCount > 0 Then"; -if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=14811204; - //BA.debugLineNum = 14811204;BA.debugLine="c3.Position = 0"; -_c3.setPosition((int) (0)); -RDebugUtils.currentLine=14811205; - //BA.debugLineNum = 14811205;BA.debugLine="If c3.GetString(\"PE_CANT\")> minimoadesc Then"; -if ((double)(Double.parseDouble(_c3.GetString("PE_CANT")))>(double)(Double.parseDouble(_minimoadesc))) { -RDebugUtils.currentLine=14811206; - //BA.debugLineNum = 14811206;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; -_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=14811207; - //BA.debugLineNum = 14811207;BA.debugLine="If c2.RowCount > 0 Then"; -if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=14811208; - //BA.debugLineNum = 14811208;BA.debugLine="c2.Position = 0"; -_c2.setPosition((int) (0)); -RDebugUtils.currentLine=14811210; - //BA.debugLineNum = 14811210;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = IFNULL(PE_CANT,0)-(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'), PE_COSTO_TOT= ((IFNULL(PE_CANT,0) -(1*'"+__c.SmartStringFormatter("",(Object)(_minimoadesc))+"'))*'"+__c.SmartStringFormatter("",(Object)(_c2.GetString("CAT_GP_PRECIO")))+"') WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); - }; - }else -{RDebugUtils.currentLine=14811212; - //BA.debugLineNum = 14811212;BA.debugLine="Else If c3.GetString(\"PE_CANT\") = minimoadesc T"; -if ((_c3.GetString("PE_CANT")).equals(_minimoadesc)) { -RDebugUtils.currentLine=14811213; - //BA.debugLineNum = 14811213;BA.debugLine="Private c2 As Cursor = Starter.skmt.ExecQuery2"; -_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT * FROM CAT_GUNAPROD WHERE CAT_GP_ID = ?",new String[]{BA.ObjectToString(_estetag.Get((int) (2)))}))); -RDebugUtils.currentLine=14811214; - //BA.debugLineNum = 14811214;BA.debugLine="If c2.RowCount > 0 Then"; -if (_c2.getRowCount()>0) { -RDebugUtils.currentLine=14811215; - //BA.debugLineNum = 14811215;BA.debugLine="c2.Position = 0"; -_c2.setPosition((int) (0)); -RDebugUtils.currentLine=14811218; - //BA.debugLineNum = 14811218;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDID"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); - }; - }} -; - }; -RDebugUtils.currentLine=14811225; - //BA.debugLineNum = 14811225;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }; -RDebugUtils.currentLine=14811228; - //BA.debugLineNum = 14811228;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get"; -_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))); -RDebugUtils.currentLine=14811229; - //BA.debugLineNum = 14811229;BA.debugLine="Log(\"PU: \" & preciou)"; -__c.LogImpl("214811229","PU: "+BA.NumberToString(_preciou),0); -RDebugUtils.currentLine=14811240; - //BA.debugLineNum = 14811240;BA.debugLine="End Sub"; -return ""; -} -public String _b_prodmenosc_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "b_prodmenosc_click", false)) - {return ((String) Debug.delegate(ba, "b_prodmenosc_click", null));} -int _index = 0; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl0 = null; -anywheresoftware.b4a.objects.B4XViewWrapper _pnl = null; -anywheresoftware.b4a.objects.B4XViewWrapper _lacantc = null; -anywheresoftware.b4a.objects.collections.List _estetag = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c3 = null; -float _preciou = 0f; -RDebugUtils.currentLine=15007744; - //BA.debugLineNum = 15007744;BA.debugLine="Private Sub b_prodMenosC_Click"; -RDebugUtils.currentLine=15007745; - //BA.debugLineNum = 15007745;BA.debugLine="etCantHasFocus = False"; -__ref._etcanthasfocus /*boolean*/ = __c.False; -RDebugUtils.currentLine=15007746; - //BA.debugLineNum = 15007746;BA.debugLine="Log(\"etCantHasFocus=\" & etCantHasFocus)"; -__c.LogImpl("215007746","etCantHasFocus="+BA.ObjectToString(__ref._etcanthasfocus /*boolean*/ ),0); -RDebugUtils.currentLine=15007747; - //BA.debugLineNum = 15007747;BA.debugLine="LogColor(\"b_prodMenos_Click\", Colors.Magenta)"; -__c.LogImpl("215007747","b_prodMenos_Click",__c.Colors.Magenta); -RDebugUtils.currentLine=15007748; - //BA.debugLineNum = 15007748;BA.debugLine="Dim index As Int = clv_pedido.GetItemFromView(Sen"; -_index = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getitemfromview((anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(__c.Sender(ba)))); -RDebugUtils.currentLine=15007749; - //BA.debugLineNum = 15007749;BA.debugLine="Dim pnl0 As B4XView = clv_pedido.GetPanel(index)"; -_pnl0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl0 = __ref._clv_pedido /*b4a.example3.customlistview*/ ._getpanel(_index); -RDebugUtils.currentLine=15007750; - //BA.debugLineNum = 15007750;BA.debugLine="Dim pnl As B4XView = pnl0.GetView(0)"; -_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_pnl = _pnl0.GetView((int) (0)); -RDebugUtils.currentLine=15007751; - //BA.debugLineNum = 15007751;BA.debugLine="Dim laCantc As B4XView = pnl.GetView(3).GetView(3"; -_lacantc = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_lacantc = _pnl.GetView((int) (3)).GetView((int) (3)); -RDebugUtils.currentLine=15007753; - //BA.debugLineNum = 15007753;BA.debugLine="Dim esteTag As List = Regex.Split(\"\\|\", laCantc.T"; -_estetag = new anywheresoftware.b4a.objects.collections.List(); -_estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(__c.Regex.Split("\\|",BA.ObjectToString(_lacantc.getTag()))); -RDebugUtils.currentLine=15007754; - //BA.debugLineNum = 15007754;BA.debugLine="Log(\"LC_TEXT:\"&laCantc.Text&\"|PROMO:\"&esteTag.Get"; -__c.LogImpl("215007754","LC_TEXT:"+_lacantc.getText()+"|PROMO:"+BA.ObjectToString(_estetag.Get((int) (3)))+"|LC_TAG:"+BA.ObjectToString(_lacantc.getTag())+"|ET:"+BA.ObjectToString(_estetag),0); -RDebugUtils.currentLine=15007758; - //BA.debugLineNum = 15007758;BA.debugLine="If laCantc.Text > 0 Then"; -if ((double)(Double.parseDouble(_lacantc.getText()))>0) { -RDebugUtils.currentLine=15007761; - //BA.debugLineNum = 15007761;BA.debugLine="Private c3 As Cursor = Starter.skmt.ExecQuery2(\""; -_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery2("SELECT PE_CAJAS FROM PEDIDO WHERE PE_PROID = ? AND PE_CLIENTE IN (SELECT CUENTA FROM CUENTAA) AND CONSECUTIVO = ? ",new String[]{BA.ObjectToString(_estetag.Get((int) (2))),BA.ObjectToString(_estetag.Get((int) (6)))}))); -RDebugUtils.currentLine=15007762; - //BA.debugLineNum = 15007762;BA.debugLine="If c3.RowCount > 0 Then"; -if (_c3.getRowCount()>0) { -RDebugUtils.currentLine=15007763; - //BA.debugLineNum = 15007763;BA.debugLine="c3.Position = 0"; -_c3.setPosition((int) (0)); -RDebugUtils.currentLine=15007764; - //BA.debugLineNum = 15007764;BA.debugLine="If c3.GetString(\"PE_CAJAS\") > 1 Then"; -if ((double)(Double.parseDouble(_c3.GetString("PE_CAJAS")))>1) { -RDebugUtils.currentLine=15007765; - //BA.debugLineNum = 15007765;BA.debugLine="Starter.skmt.ExecNonQuery($\"update PEDIDO set"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update PEDIDO set PE_CANT = (IFNULL(PE_CANT,0)-(1 * '"+__c.SmartStringFormatter("",(Object)(_subs._traeconversion /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"')), PE_COSTO_TOT= ((IFNULL(PE_CAJAS,0)-1) *'"+__c.SmartStringFormatter("",(Object)(_subs._traeprecioc /*String*/ (ba,BA.ObjectToString(_estetag.Get((int) (2))))))+"'), PE_CAJAS = IFNULL(PE_CAJAS,0) - 1 WHERE PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); - }else -{RDebugUtils.currentLine=15007766; - //BA.debugLineNum = 15007766;BA.debugLine="Else If c3.GetString(\"PE_CAJAS\") = 1 Then"; -if ((_c3.GetString("PE_CAJAS")).equals(BA.NumberToString(1))) { -RDebugUtils.currentLine=15007767; - //BA.debugLineNum = 15007767;BA.debugLine="Starter.skmt.ExecNonQuery($\"delete from PEDIDO"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("delete from PEDIDO where PE_PROID = '"+__c.SmartStringFormatter("",_estetag.Get((int) (2)))+"' and PE_CLIENTE in (Select CUENTA from cuentaa) AND CONSECUTIVO = '"+__c.SmartStringFormatter("",_estetag.Get((int) (6)))+"'")); - }} -; - }; -RDebugUtils.currentLine=15007770; - //BA.debugLineNum = 15007770;BA.debugLine="Log(\"entre al if o algo asi \")"; -__c.LogImpl("215007770","entre al if o algo asi ",0); -RDebugUtils.currentLine=15007771; - //BA.debugLineNum = 15007771;BA.debugLine="If laCantc.Text = \"\" Then laCantc.Text = 0"; -if ((_lacantc.getText()).equals("")) { -_lacantc.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=15007772; - //BA.debugLineNum = 15007772;BA.debugLine="laCantc.Text = laCantc.Text - 1"; -_lacantc.setText(BA.ObjectToCharSequence((double)(Double.parseDouble(_lacantc.getText()))-1)); -RDebugUtils.currentLine=15007773; - //BA.debugLineNum = 15007773;BA.debugLine="If laCantc.Text < 0 Then laCantc.Text = 0"; -if ((double)(Double.parseDouble(_lacantc.getText()))<0) { -_lacantc.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=15007774; - //BA.debugLineNum = 15007774;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); - }else -{RDebugUtils.currentLine=15007776; - //BA.debugLineNum = 15007776;BA.debugLine="Else If laCantc.Text = 0 Then"; -if ((_lacantc.getText()).equals(BA.NumberToString(0))) { - }} -; -RDebugUtils.currentLine=15007780; - //BA.debugLineNum = 15007780;BA.debugLine="Dim preciou As Float = esteTag.Get(0)/esteTag.Get"; -_preciou = (float) ((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))/(double)(double)(BA.ObjectToNumber(_estetag.Get((int) (1))))); -RDebugUtils.currentLine=15007781; - //BA.debugLineNum = 15007781;BA.debugLine="Log(\"PU: \" & preciou)"; -__c.LogImpl("215007781","PU: "+BA.NumberToString(_preciou),0); -RDebugUtils.currentLine=15007782; - //BA.debugLineNum = 15007782;BA.debugLine="End Sub"; -return ""; -} -public String _b_regresar_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "b_regresar_click", false)) - {return ((String) Debug.delegate(ba, "b_regresar_click", null));} -RDebugUtils.currentLine=14417920; - //BA.debugLineNum = 14417920;BA.debugLine="Sub b_regresar_Click"; -RDebugUtils.currentLine=14417921; - //BA.debugLineNum = 14417921;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; -_b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=14417922; - //BA.debugLineNum = 14417922;BA.debugLine="End Sub"; -return ""; -} -public String _b_revversar_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "b_revversar_click", false)) - {return ((String) Debug.delegate(ba, "b_revversar_click", null));} -RDebugUtils.currentLine=15138816; - //BA.debugLineNum = 15138816;BA.debugLine="Private Sub b_revversar_Click"; -RDebugUtils.currentLine=15138817; - //BA.debugLineNum = 15138817;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS se"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_RECHAZO = 0, HVD_RECHAZOCANT = 0 WHERE HVD_cliente in (Select CUENTA from cuentaa)")); -RDebugUtils.currentLine=15138818; - //BA.debugLineNum = 15138818;BA.debugLine="B4XPage_Appear"; -__ref._b4xpage_appear /*String*/ (null); -RDebugUtils.currentLine=15138819; - //BA.debugLineNum = 15138819;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(reparto_izca.keymon.lat.c_productos __ref,String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,int _consecutivo) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "createlistitem", false)) - {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem", new Object[] {_text,_preciou,_inv,_inv2,_width,_height,_img,_prodid,_bc,_tc,_promo,_cliente_original,_consecutivo}));} -anywheresoftware.b4a.objects.B4XViewWrapper _p = null; -anywheresoftware.b4a.objects.CSBuilder _cs = null; -RDebugUtils.currentLine=14680064; - //BA.debugLineNum = 14680064;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri"; -RDebugUtils.currentLine=14680065; - //BA.debugLineNum = 14680065;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; -_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=14680066; - //BA.debugLineNum = 14680066;BA.debugLine="Private cs As CSBuilder"; -_cs = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=14680067; - //BA.debugLineNum = 14680067;BA.debugLine="cs.Initialize"; -_cs.Initialize(); -RDebugUtils.currentLine=14680068; - //BA.debugLineNum = 14680068;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; -_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=14680069; - //BA.debugLineNum = 14680069;BA.debugLine="p.LoadLayout(\"prodItem2\")"; -_p.LoadLayout("prodItem2",ba); -RDebugUtils.currentLine=14680070; - //BA.debugLineNum = 14680070;BA.debugLine="p_prods.Color = bc"; -__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(_bc); -RDebugUtils.currentLine=14680071; - //BA.debugLineNum = 14680071;BA.debugLine="l_prodX.TextColor = tc"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(_tc); -RDebugUtils.currentLine=14680072; - //BA.debugLineNum = 14680072;BA.debugLine="precioU = $\"$1.2{precioU}\"$"; -_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""); -RDebugUtils.currentLine=14680073; - //BA.debugLineNum = 14680073;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\""; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)); -RDebugUtils.currentLine=14680074; - //BA.debugLineNum = 14680074;BA.debugLine="If promo <> \"1\" And precioU = 0 Then"; -if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=14680075; - //BA.debugLineNum = 14680075;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject())); - }; -RDebugUtils.currentLine=14680077; - //BA.debugLineNum = 14680077;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs"))); -RDebugUtils.currentLine=14680080; - //BA.debugLineNum = 14680080;BA.debugLine="l_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&\""; -__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo))); -RDebugUtils.currentLine=14680081; - //BA.debugLineNum = 14680081;BA.debugLine="et_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&"; -__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo))); -RDebugUtils.currentLine=14680082; - //BA.debugLineNum = 14680082;BA.debugLine="p_prods.Tag = l_pCant.tag"; -__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTag(__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .getTag()); -RDebugUtils.currentLine=14680084; - //BA.debugLineNum = 14680084;BA.debugLine="l_pCant.Text = inv"; -__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_inv)); -RDebugUtils.currentLine=14680088; - //BA.debugLineNum = 14680088;BA.debugLine="l_pCant.BringToFront"; -__ref._l_pcant /*anywheresoftware.b4a.objects.LabelWrapper*/ .BringToFront(); -RDebugUtils.currentLine=14680089; - //BA.debugLineNum = 14680089;BA.debugLine="et_pCant.SendToBack"; -__ref._et_pcant /*anywheresoftware.b4a.objects.EditTextWrapper*/ .SendToBack(); -RDebugUtils.currentLine=14680090; - //BA.debugLineNum = 14680090;BA.debugLine="p_botMasMenC.Visible = False"; -__ref._p_botmasmenc /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=14680091; - //BA.debugLineNum = 14680091;BA.debugLine="l_cajas.Visible = False"; -__ref._l_cajas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=14680093; - //BA.debugLineNum = 14680093;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())); -RDebugUtils.currentLine=14680094; - //BA.debugLineNum = 14680094;BA.debugLine="End Sub"; -return null; -} -public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(reparto_izca.keymon.lat.c_productos __ref,String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,int _consecutivo) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "createlistitem2", false)) - {return ((anywheresoftware.b4a.objects.PanelWrapper) Debug.delegate(ba, "createlistitem2", new Object[] {_text,_preciou,_inv,_inv2,_width,_height,_img,_prodid,_bc,_tc,_promo,_cliente_original,_consecutivo}));} -anywheresoftware.b4a.objects.B4XViewWrapper _p = null; -anywheresoftware.b4a.objects.CSBuilder _cs = null; -RDebugUtils.currentLine=14745600; - //BA.debugLineNum = 14745600;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str"; -RDebugUtils.currentLine=14745601; - //BA.debugLineNum = 14745601;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; -_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=14745602; - //BA.debugLineNum = 14745602;BA.debugLine="Private cs As CSBuilder"; -_cs = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=14745603; - //BA.debugLineNum = 14745603;BA.debugLine="cs.Initialize"; -_cs.Initialize(); -RDebugUtils.currentLine=14745604; - //BA.debugLineNum = 14745604;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; -_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); -RDebugUtils.currentLine=14745605; - //BA.debugLineNum = 14745605;BA.debugLine="p.LoadLayout(\"prodItem2\")"; -_p.LoadLayout("prodItem2",ba); -RDebugUtils.currentLine=14745606; - //BA.debugLineNum = 14745606;BA.debugLine="p_prods.Color = bc"; -__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setColor(_bc); -RDebugUtils.currentLine=14745607; - //BA.debugLineNum = 14745607;BA.debugLine="l_prodX.TextColor = tc"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTextColor(_tc); -RDebugUtils.currentLine=14745608; - //BA.debugLineNum = 14745608;BA.debugLine="precioU = $\"$1.2{precioU}\"$"; -_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""); -RDebugUtils.currentLine=14745609; - //BA.debugLineNum = 14745609;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\""; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)); -RDebugUtils.currentLine=14745610; - //BA.debugLineNum = 14745610;BA.debugLine="If promo <> \"1\" And precioU = 0 Then"; -if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=14745611; - //BA.debugLineNum = 14745611;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject())); - }; -RDebugUtils.currentLine=14745614; - //BA.debugLineNum = 14745614;BA.debugLine="Log(inv&\" inventario 1\")"; -__c.LogImpl("214745614",BA.NumberToString(_inv)+" inventario 1",0); -RDebugUtils.currentLine=14745615; - //BA.debugLineNum = 14745615;BA.debugLine="Log(inv2&\" inventario 2\")"; -__c.LogImpl("214745615",BA.NumberToString(_inv2)+" inventario 2",0); -RDebugUtils.currentLine=14745616; - //BA.debugLineNum = 14745616;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF"; -__ref._l_prodx /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs"))); -RDebugUtils.currentLine=14745618; - //BA.debugLineNum = 14745618;BA.debugLine="l_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)&"; -__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo))); -RDebugUtils.currentLine=14745619; - //BA.debugLineNum = 14745619;BA.debugLine="et_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)"; -__ref._et_pcantc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo))); -RDebugUtils.currentLine=14745620; - //BA.debugLineNum = 14745620;BA.debugLine="p_prods.Tag = l_pCantC.tag"; -__ref._p_prods /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTag(__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .getTag()); -RDebugUtils.currentLine=14745622; - //BA.debugLineNum = 14745622;BA.debugLine="l_pCantC.Text = NumberFormat2(inv,0,0,0,False)"; -__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.NumberFormat2(_inv,(int) (0),(int) (0),(int) (0),__c.False))); -RDebugUtils.currentLine=14745626; - //BA.debugLineNum = 14745626;BA.debugLine="l_pCantC.BringToFront"; -__ref._l_pcantc /*anywheresoftware.b4a.objects.LabelWrapper*/ .BringToFront(); -RDebugUtils.currentLine=14745627; - //BA.debugLineNum = 14745627;BA.debugLine="et_pCantC.SendToBack"; -__ref._et_pcantc /*anywheresoftware.b4a.objects.EditTextWrapper*/ .SendToBack(); -RDebugUtils.currentLine=14745628; - //BA.debugLineNum = 14745628;BA.debugLine="p_botMasMen.Visible = False"; -__ref._p_botmasmen /*anywheresoftware.b4a.objects.PanelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=14745629; - //BA.debugLineNum = 14745629;BA.debugLine="l_piezas.Visible = False"; -__ref._l_piezas /*anywheresoftware.b4a.objects.LabelWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=14745631; - //BA.debugLineNum = 14745631;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())); -RDebugUtils.currentLine=14745632; - //BA.debugLineNum = 14745632;BA.debugLine="End Sub"; -return null; -} -public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "b4xpage_closerequest", false)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "b4xpage_closerequest", null));} -ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this,__ref); +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _b4xpage_closerequest() throws Exception{ +ResumableSub_B4XPage_CloseRequest rsub = new ResumableSub_B4XPage_CloseRequest(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_B4XPage_CloseRequest extends BA.ResumableSub { -public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_productos parent,reparto_izca.keymon.lat.c_productos __ref) { +public ResumableSub_B4XPage_CloseRequest(reparto_izca.keymon.lat.c_productos parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_productos __ref; reparto_izca.keymon.lat.c_productos parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_productos"; while (true) { switch (state) { @@ -1556,285 +973,296 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = -1; -RDebugUtils.currentLine=14483459; - //BA.debugLineNum = 14483459;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; + //BA.debugLineNum = 382;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; parent._b4xpages._showpage /*String*/ (ba,"Cliente"); -RDebugUtils.currentLine=14483461; - //BA.debugLineNum = 14483461;BA.debugLine="Return False"; + //BA.debugLineNum = 384;BA.debugLine="Return False"; if (true) { parent.__c.ReturnFromResumableSub(this,(Object)(parent.__c.False));return;}; -RDebugUtils.currentLine=14483462; - //BA.debugLineNum = 14483462;BA.debugLine="End Sub"; + //BA.debugLineNum = 385;BA.debugLine="End Sub"; if (true) break; } } } } -public String _b4xpage_created(reparto_izca.keymon.lat.c_productos __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=14221312; - //BA.debugLineNum = 14221312;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=14221313; - //BA.debugLineNum = 14221313;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=14221314; - //BA.debugLineNum = 14221314;BA.debugLine="B4XPages.SetTitle(Me, \"Productos\")"; +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 62;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 63;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 64;BA.debugLine="B4XPages.SetTitle(Me, \"Productos\")"; _b4xpages._settitle /*String*/ (ba,this,(Object)("Productos")); -RDebugUtils.currentLine=14221316; - //BA.debugLineNum = 14221316;BA.debugLine="g.Initialize(\"GPS\")"; -__ref._g /*anywheresoftware.b4a.gps.GPS*/ .Initialize("GPS"); -RDebugUtils.currentLine=14221317; - //BA.debugLineNum = 14221317;BA.debugLine="Root.LoadLayout(\"detalleVenta\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("detalleVenta",ba); -RDebugUtils.currentLine=14221318; - //BA.debugLineNum = 14221318;BA.debugLine="b_borra.Visible = False"; -__ref._b_borra /*anywheresoftware.b4a.objects.ButtonWrapper*/ .setVisible(__c.False); -RDebugUtils.currentLine=14221319; - //BA.debugLineNum = 14221319;BA.debugLine="Titulo.Text = \"Pedido\""; -__ref._titulo /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("Pedido")); -RDebugUtils.currentLine=14221320; - //BA.debugLineNum = 14221320;BA.debugLine="End Sub"; + //BA.debugLineNum = 66;BA.debugLine="g.Initialize(\"GPS\")"; +_g.Initialize("GPS"); + //BA.debugLineNum = 67;BA.debugLine="Root.LoadLayout(\"detalleVenta\")"; +_root.LoadLayout("detalleVenta",ba); + //BA.debugLineNum = 68;BA.debugLine="b_borra.Visible = False"; +_b_borra.setVisible(__c.False); + //BA.debugLineNum = 69;BA.debugLine="Titulo.Text = \"Pedido\""; +_titulo.setText(BA.ObjectToCharSequence("Pedido")); + //BA.debugLineNum = 70;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -RDebugUtils.currentLine=14090240; - //BA.debugLineNum = 14090240;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=14090241; - //BA.debugLineNum = 14090241;BA.debugLine="Private Root As B4XView 'ignore"; +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(); -RDebugUtils.currentLine=14090242; - //BA.debugLineNum = 14090242;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=14090243; - //BA.debugLineNum = 14090243;BA.debugLine="Dim g As GPS"; + //BA.debugLineNum = 4;BA.debugLine="Dim g As GPS"; _g = new anywheresoftware.b4a.gps.GPS(); -RDebugUtils.currentLine=14090244; - //BA.debugLineNum = 14090244;BA.debugLine="Dim clie_id As String"; + //BA.debugLineNum = 5;BA.debugLine="Dim clie_id As String"; _clie_id = ""; -RDebugUtils.currentLine=14090245; - //BA.debugLineNum = 14090245;BA.debugLine="Dim sDate,sTime As String"; + //BA.debugLineNum = 6;BA.debugLine="Dim sDate,sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=14090246; - //BA.debugLineNum = 14090246;BA.debugLine="Dim usuario As String"; + //BA.debugLineNum = 7;BA.debugLine="Dim usuario As String"; _usuario = ""; -RDebugUtils.currentLine=14090247; - //BA.debugLineNum = 14090247;BA.debugLine="Dim c As Cursor"; + //BA.debugLineNum = 8;BA.debugLine="Dim c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=14090249; - //BA.debugLineNum = 14090249;BA.debugLine="Dim b_regresar As Button"; + //BA.debugLineNum = 10;BA.debugLine="Dim b_regresar As Button"; _b_regresar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=14090250; - //BA.debugLineNum = 14090250;BA.debugLine="Dim ListView1 As ListView"; + //BA.debugLineNum = 11;BA.debugLine="Dim ListView1 As ListView"; _listview1 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=14090251; - //BA.debugLineNum = 14090251;BA.debugLine="Dim L_CANT As Label"; + //BA.debugLineNum = 12;BA.debugLine="Dim L_CANT As Label"; _l_cant = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090252; - //BA.debugLineNum = 14090252;BA.debugLine="Dim L_TOTAL As Label"; + //BA.debugLineNum = 13;BA.debugLine="Dim L_TOTAL As Label"; _l_total = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090253; - //BA.debugLineNum = 14090253;BA.debugLine="Dim b_borra As Button"; + //BA.debugLineNum = 14;BA.debugLine="Dim b_borra As Button"; _b_borra = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=14090254; - //BA.debugLineNum = 14090254;BA.debugLine="Dim Existe As String"; + //BA.debugLineNum = 15;BA.debugLine="Dim Existe As String"; _existe = ""; -RDebugUtils.currentLine=14090255; - //BA.debugLineNum = 14090255;BA.debugLine="Dim result As String"; + //BA.debugLineNum = 16;BA.debugLine="Dim result As String"; _result = ""; -RDebugUtils.currentLine=14090257; - //BA.debugLineNum = 14090257;BA.debugLine="Dim cuantos As String"; + //BA.debugLineNum = 18;BA.debugLine="Dim cuantos As String"; _cuantos = ""; -RDebugUtils.currentLine=14090258; - //BA.debugLineNum = 14090258;BA.debugLine="Dim nombre_prod As String"; + //BA.debugLineNum = 19;BA.debugLine="Dim nombre_prod As String"; _nombre_prod = ""; -RDebugUtils.currentLine=14090259; - //BA.debugLineNum = 14090259;BA.debugLine="Dim cuantos_pedido As String"; + //BA.debugLineNum = 20;BA.debugLine="Dim cuantos_pedido As String"; _cuantos_pedido = ""; -RDebugUtils.currentLine=14090260; - //BA.debugLineNum = 14090260;BA.debugLine="Private Titulo As Label"; + //BA.debugLineNum = 21;BA.debugLine="Private Titulo As Label"; _titulo = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090261; - //BA.debugLineNum = 14090261;BA.debugLine="Private P1 As Panel"; + //BA.debugLineNum = 22;BA.debugLine="Private P1 As Panel"; _p1 = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=14090262; - //BA.debugLineNum = 14090262;BA.debugLine="Private lv2 As ListView"; + //BA.debugLineNum = 23;BA.debugLine="Private lv2 As ListView"; _lv2 = new anywheresoftware.b4a.objects.ListViewWrapper(); -RDebugUtils.currentLine=14090263; - //BA.debugLineNum = 14090263;BA.debugLine="Private p_principal As Panel"; + //BA.debugLineNum = 24;BA.debugLine="Private p_principal As Panel"; _p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=14090264; - //BA.debugLineNum = 14090264;BA.debugLine="Dim clv_pedido As CustomListView"; + //BA.debugLineNum = 25;BA.debugLine="Dim clv_pedido As CustomListView"; _clv_pedido = new b4a.example3.customlistview(); -RDebugUtils.currentLine=14090265; - //BA.debugLineNum = 14090265;BA.debugLine="Private p_prods As Panel"; + //BA.debugLineNum = 26;BA.debugLine="Private p_prods As Panel"; _p_prods = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=14090266; - //BA.debugLineNum = 14090266;BA.debugLine="Private l_prodX As Label"; + //BA.debugLineNum = 27;BA.debugLine="Private l_prodX As Label"; _l_prodx = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090267; - //BA.debugLineNum = 14090267;BA.debugLine="Private l_pCant As Label"; + //BA.debugLineNum = 28;BA.debugLine="Private l_pCant As Label"; _l_pcant = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090268; - //BA.debugLineNum = 14090268;BA.debugLine="Private et_pCant As EditText"; + //BA.debugLineNum = 29;BA.debugLine="Private et_pCant As EditText"; _et_pcant = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=14090269; - //BA.debugLineNum = 14090269;BA.debugLine="Dim bmp As Bitmap"; + //BA.debugLineNum = 30;BA.debugLine="Dim bmp As Bitmap"; _bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); -RDebugUtils.currentLine=14090270; - //BA.debugLineNum = 14090270;BA.debugLine="Dim etCantHasFocus As Boolean = False"; + //BA.debugLineNum = 31;BA.debugLine="Dim etCantHasFocus As Boolean = False"; _etcanthasfocus = __c.False; -RDebugUtils.currentLine=14090271; - //BA.debugLineNum = 14090271;BA.debugLine="Dim totalProds As Int = 0"; + //BA.debugLineNum = 32;BA.debugLine="Dim totalProds As Int = 0"; _totalprods = (int) (0); -RDebugUtils.currentLine=14090272; - //BA.debugLineNum = 14090272;BA.debugLine="Dim totalCompra As Int = 0"; + //BA.debugLineNum = 33;BA.debugLine="Dim totalCompra As Int = 0"; _totalcompra = (int) (0); -RDebugUtils.currentLine=14090273; - //BA.debugLineNum = 14090273;BA.debugLine="Dim prodsMap As Map"; + //BA.debugLineNum = 34;BA.debugLine="Dim prodsMap As Map"; _prodsmap = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=14090274; - //BA.debugLineNum = 14090274;BA.debugLine="Dim reconstruirPedido As Boolean = False"; + //BA.debugLineNum = 35;BA.debugLine="Dim reconstruirPedido As Boolean = False"; _reconstruirpedido = __c.False; -RDebugUtils.currentLine=14090275; - //BA.debugLineNum = 14090275;BA.debugLine="Dim promoABorrar As String"; + //BA.debugLineNum = 36;BA.debugLine="Dim promoABorrar As String"; _promoaborrar = ""; -RDebugUtils.currentLine=14090276; - //BA.debugLineNum = 14090276;BA.debugLine="Private b_guardar As Button"; + //BA.debugLineNum = 37;BA.debugLine="Private b_guardar As Button"; _b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=14090277; - //BA.debugLineNum = 14090277;BA.debugLine="Private b_prodMas As Button"; + //BA.debugLineNum = 38;BA.debugLine="Private b_prodMas As Button"; _b_prodmas = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=14090278; - //BA.debugLineNum = 14090278;BA.debugLine="Private b_prodMenos As Button"; + //BA.debugLineNum = 39;BA.debugLine="Private b_prodMenos As Button"; _b_prodmenos = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=14090279; - //BA.debugLineNum = 14090279;BA.debugLine="Private b_prodMenosC As Button"; + //BA.debugLineNum = 40;BA.debugLine="Private b_prodMenosC As Button"; _b_prodmenosc = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=14090280; - //BA.debugLineNum = 14090280;BA.debugLine="Private l_pCantC As Label"; + //BA.debugLineNum = 41;BA.debugLine="Private l_pCantC As Label"; _l_pcantc = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090281; - //BA.debugLineNum = 14090281;BA.debugLine="Private et_pCantC As EditText"; + //BA.debugLineNum = 42;BA.debugLine="Private et_pCantC As EditText"; _et_pcantc = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=14090282; - //BA.debugLineNum = 14090282;BA.debugLine="Private b_prodMasC As Button"; + //BA.debugLineNum = 43;BA.debugLine="Private b_prodMasC As Button"; _b_prodmasc = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=14090283; - //BA.debugLineNum = 14090283;BA.debugLine="Private p_botMasMenC As Panel"; + //BA.debugLineNum = 44;BA.debugLine="Private p_botMasMenC As Panel"; _p_botmasmenc = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=14090284; - //BA.debugLineNum = 14090284;BA.debugLine="Private p_botMasMen As Panel"; + //BA.debugLineNum = 45;BA.debugLine="Private p_botMasMen As Panel"; _p_botmasmen = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=14090285; - //BA.debugLineNum = 14090285;BA.debugLine="Private b_revversar As Button"; + //BA.debugLineNum = 46;BA.debugLine="Private b_revversar As Button"; _b_revversar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=14090286; - //BA.debugLineNum = 14090286;BA.debugLine="Private Label2 As Label"; + //BA.debugLineNum = 47;BA.debugLine="Private Label2 As Label"; _label2 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090287; - //BA.debugLineNum = 14090287;BA.debugLine="Private Label3 As Label"; + //BA.debugLineNum = 48;BA.debugLine="Private Label3 As Label"; _label3 = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090288; - //BA.debugLineNum = 14090288;BA.debugLine="Private l_piezas As Label"; + //BA.debugLineNum = 49;BA.debugLine="Private l_piezas As Label"; _l_piezas = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090289; - //BA.debugLineNum = 14090289;BA.debugLine="Private l_cajas As Label"; + //BA.debugLineNum = 50;BA.debugLine="Private l_cajas As Label"; _l_cajas = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090291; - //BA.debugLineNum = 14090291;BA.debugLine="Private l_cajas As Label"; + //BA.debugLineNum = 52;BA.debugLine="Private l_cajas As Label"; _l_cajas = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090292; - //BA.debugLineNum = 14090292;BA.debugLine="Private l_piezas As Label"; + //BA.debugLineNum = 53;BA.debugLine="Private l_piezas As Label"; _l_piezas = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=14090293; - //BA.debugLineNum = 14090293;BA.debugLine="End Sub"; + //BA.debugLineNum = 54;BA.debugLine="End Sub"; return ""; } -public String _cuentaprods(reparto_izca.keymon.lat.c_productos __ref,String _accion) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "cuentaprods", false)) - {return ((String) Debug.delegate(ba, "cuentaprods", new Object[] {_accion}));} -RDebugUtils.currentLine=15204352; - //BA.debugLineNum = 15204352;BA.debugLine="Sub cuentaProds(accion As String)"; -RDebugUtils.currentLine=15204514; - //BA.debugLineNum = 15204514;BA.debugLine="End Sub"; +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem(String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,int _consecutivo) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; + //BA.debugLineNum = 500;BA.debugLine="Sub CreateListItem(Text As String, precioU As Stri"; + //BA.debugLineNum = 501;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 502;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 503;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 504;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; +_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); + //BA.debugLineNum = 505;BA.debugLine="p.LoadLayout(\"prodItem2\")"; +_p.LoadLayout("prodItem2",ba); + //BA.debugLineNum = 506;BA.debugLine="p_prods.Color = bc"; +_p_prods.setColor(_bc); + //BA.debugLineNum = 507;BA.debugLine="l_prodX.TextColor = tc"; +_l_prodx.setTextColor(_tc); + //BA.debugLineNum = 508;BA.debugLine="precioU = $\"$1.2{precioU}\"$"; +_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""); + //BA.debugLineNum = 509;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\""; +_l_prodx.setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)); + //BA.debugLineNum = 510;BA.debugLine="If promo <> \"1\" And precioU = 0 Then"; +if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 511;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app"; +_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject())); + }; + //BA.debugLineNum = 513;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF"; +_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs"))); + //BA.debugLineNum = 516;BA.debugLine="l_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&\""; +_l_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo))); + //BA.debugLineNum = 517;BA.debugLine="et_pCant.Tag = Round2(precioU.Replace(\",\",\"\"),2)&"; +_et_pcant.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo))); + //BA.debugLineNum = 518;BA.debugLine="p_prods.Tag = l_pCant.tag"; +_p_prods.setTag(_l_pcant.getTag()); + //BA.debugLineNum = 520;BA.debugLine="l_pCant.Text = inv"; +_l_pcant.setText(BA.ObjectToCharSequence(_inv)); + //BA.debugLineNum = 524;BA.debugLine="l_pCant.BringToFront"; +_l_pcant.BringToFront(); + //BA.debugLineNum = 525;BA.debugLine="et_pCant.SendToBack"; +_et_pcant.SendToBack(); + //BA.debugLineNum = 526;BA.debugLine="p_botMasMenC.Visible = False"; +_p_botmasmenc.setVisible(__c.False); + //BA.debugLineNum = 527;BA.debugLine="l_cajas.Visible = False"; +_l_cajas.setVisible(__c.False); + //BA.debugLineNum = 529;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 = 530;BA.debugLine="End Sub"; +return null; +} +public anywheresoftware.b4a.objects.PanelWrapper _createlistitem2(String _text,String _preciou,int _inv,int _inv2,int _width,int _height,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _img,String _prodid,int _bc,int _tc,String _promo,String _cliente_original,int _consecutivo) throws Exception{ +anywheresoftware.b4a.objects.B4XViewWrapper _p = null; +anywheresoftware.b4a.objects.CSBuilder _cs = null; + //BA.debugLineNum = 532;BA.debugLine="Sub CreateListItem2(Text As String, precioU As Str"; + //BA.debugLineNum = 533;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; +_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); +_p = _xui.CreatePanel(ba,""); + //BA.debugLineNum = 534;BA.debugLine="Private cs As CSBuilder"; +_cs = new anywheresoftware.b4a.objects.CSBuilder(); + //BA.debugLineNum = 535;BA.debugLine="cs.Initialize"; +_cs.Initialize(); + //BA.debugLineNum = 536;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, Width, Height)"; +_p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_width,_height); + //BA.debugLineNum = 537;BA.debugLine="p.LoadLayout(\"prodItem2\")"; +_p.LoadLayout("prodItem2",ba); + //BA.debugLineNum = 538;BA.debugLine="p_prods.Color = bc"; +_p_prods.setColor(_bc); + //BA.debugLineNum = 539;BA.debugLine="l_prodX.TextColor = tc"; +_l_prodx.setTextColor(_tc); + //BA.debugLineNum = 540;BA.debugLine="precioU = $\"$1.2{precioU}\"$"; +_preciou = (""+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""); + //BA.debugLineNum = 541;BA.debugLine="l_prodX.Text = Text&CRLF&\"Cant: \" & inv2 & \" $\""; +_l_prodx.setText(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)); + //BA.debugLineNum = 542;BA.debugLine="If promo <> \"1\" And precioU = 0 Then"; +if ((_promo).equals("1") == false && (_preciou).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 543;BA.debugLine="l_prodX.Text = cs.Color(Colors.RGB(123,0,0)).app"; +_l_prodx.setText(BA.ObjectToCharSequence(_cs.Color(__c.Colors.RGB((int) (123),(int) (0),(int) (0))).Append(BA.ObjectToCharSequence(_text+__c.CRLF+"Cant: "+BA.NumberToString(_inv2)+" $"+_preciou)).PopAll().getObject())); + }; + //BA.debugLineNum = 546;BA.debugLine="Log(inv&\" inventario 1\")"; +__c.LogImpl("020971534",BA.NumberToString(_inv)+" inventario 1",0); + //BA.debugLineNum = 547;BA.debugLine="Log(inv2&\" inventario 2\")"; +__c.LogImpl("020971535",BA.NumberToString(_inv2)+" inventario 2",0); + //BA.debugLineNum = 548;BA.debugLine="l_prodX.Tag = $\"ID: ${prodId}${CRLF}${Text}${CRLF"; +_l_prodx.setTag((Object)(("ID: "+__c.SmartStringFormatter("",(Object)(_prodid))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+""+__c.SmartStringFormatter("",(Object)(_text))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Precio: $"+__c.SmartStringFormatter("1.2",(Object)(_preciou))+""+__c.SmartStringFormatter("",(Object)(__c.CRLF))+"Inv: "+__c.SmartStringFormatter("",(Object)(_inv))+" pzs"))); + //BA.debugLineNum = 550;BA.debugLine="l_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)&"; +_l_pcantc.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo))); + //BA.debugLineNum = 551;BA.debugLine="et_pCantC.Tag = Round2(precioU.Replace(\",\",\"\"),2)"; +_et_pcantc.setTag((Object)(BA.NumberToString(__c.Round2((double)(Double.parseDouble(_preciou.replace(",",""))),(int) (2)))+"|"+BA.NumberToString(_inv)+"|"+_prodid+"|"+_promo+"|"+BA.NumberToString(_inv2)+"|"+_cliente_original+"|"+BA.NumberToString(_consecutivo))); + //BA.debugLineNum = 552;BA.debugLine="p_prods.Tag = l_pCantC.tag"; +_p_prods.setTag(_l_pcantc.getTag()); + //BA.debugLineNum = 554;BA.debugLine="l_pCantC.Text = NumberFormat2(inv,0,0,0,False)"; +_l_pcantc.setText(BA.ObjectToCharSequence(__c.NumberFormat2(_inv,(int) (0),(int) (0),(int) (0),__c.False))); + //BA.debugLineNum = 558;BA.debugLine="l_pCantC.BringToFront"; +_l_pcantc.BringToFront(); + //BA.debugLineNum = 559;BA.debugLine="et_pCantC.SendToBack"; +_et_pcantc.SendToBack(); + //BA.debugLineNum = 560;BA.debugLine="p_botMasMen.Visible = False"; +_p_botmasmen.setVisible(__c.False); + //BA.debugLineNum = 561;BA.debugLine="l_piezas.Visible = False"; +_l_piezas.setVisible(__c.False); + //BA.debugLineNum = 563;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 = 564;BA.debugLine="End Sub"; +return null; +} +public String _cuentaprods(String _accion) throws Exception{ + //BA.debugLineNum = 943;BA.debugLine="Sub cuentaProds(accion As String)"; + //BA.debugLineNum = 1105;BA.debugLine="End Sub"; return ""; } -public String _gps_locationchanged(reparto_izca.keymon.lat.c_productos __ref,anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "gps_locationchanged", false)) - {return ((String) Debug.delegate(ba, "gps_locationchanged", new Object[] {_location1}));} -RDebugUtils.currentLine=14352384; - //BA.debugLineNum = 14352384;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; -RDebugUtils.currentLine=14352387; - //BA.debugLineNum = 14352387;BA.debugLine="End Sub"; +public String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ + //BA.debugLineNum = 370;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 373;BA.debugLine="End Sub"; return ""; } -public String _l_pcant_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "l_pcant_click", false)) - {return ((String) Debug.delegate(ba, "l_pcant_click", null));} -RDebugUtils.currentLine=15335424; - //BA.debugLineNum = 15335424;BA.debugLine="Private Sub l_pCant_Click"; -RDebugUtils.currentLine=15335426; - //BA.debugLineNum = 15335426;BA.debugLine="End Sub"; +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 57;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 58;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 59;BA.debugLine="End Sub"; +return null; +} +public String _l_pcant_click() throws Exception{ + //BA.debugLineNum = 1112;BA.debugLine="Private Sub l_pCant_Click"; + //BA.debugLineNum = 1114;BA.debugLine="End Sub"; return ""; } -public String _l_pcantc_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "l_pcantc_click", false)) - {return ((String) Debug.delegate(ba, "l_pcantc_click", null));} -RDebugUtils.currentLine=15073280; - //BA.debugLineNum = 15073280;BA.debugLine="Private Sub l_pCantC_Click"; -RDebugUtils.currentLine=15073282; - //BA.debugLineNum = 15073282;BA.debugLine="End Sub"; +public String _l_pcantc_click() throws Exception{ + //BA.debugLineNum = 934;BA.debugLine="Private Sub l_pCantC_Click"; + //BA.debugLineNum = 936;BA.debugLine="End Sub"; return ""; } -public String _listview1_itemlongclick(reparto_izca.keymon.lat.c_productos __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "listview1_itemlongclick", false)) - {return ((String) Debug.delegate(ba, "listview1_itemlongclick", new Object[] {_position,_value}));} -RDebugUtils.currentLine=14548992; - //BA.debugLineNum = 14548992;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; -RDebugUtils.currentLine=14549036; - //BA.debugLineNum = 14549036;BA.debugLine="End Sub"; +public String _listview1_itemlongclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 387;BA.debugLine="Sub ListView1_ItemLongClick (Position As Int, Valu"; + //BA.debugLineNum = 431;BA.debugLine="End Sub"; return ""; } -public String _lv2_itemclick(reparto_izca.keymon.lat.c_productos __ref,int _position,Object _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "lv2_itemclick", false)) - {return ((String) Debug.delegate(ba, "lv2_itemclick", new Object[] {_position,_value}));} -RDebugUtils.currentLine=14614528; - //BA.debugLineNum = 14614528;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec"; -RDebugUtils.currentLine=14614589; - //BA.debugLineNum = 14614589;BA.debugLine="End Sub"; +public String _lv2_itemclick(int _position,Object _value) throws Exception{ + //BA.debugLineNum = 433;BA.debugLine="Sub lv2_ItemClick (Position As Int, Value As Objec"; + //BA.debugLineNum = 494;BA.debugLine="End Sub"; return ""; } -public String _p_prods_click(reparto_izca.keymon.lat.c_productos __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_productos"; -if (Debug.shouldDelegate(ba, "p_prods_click", false)) - {return ((String) Debug.delegate(ba, "p_prods_click", null));} -RDebugUtils.currentLine=15400960; - //BA.debugLineNum = 15400960;BA.debugLine="Sub p_prods_Click"; -RDebugUtils.currentLine=15400961; - //BA.debugLineNum = 15400961;BA.debugLine="Log(Sender.As(Panel).tag)"; -__c.LogImpl("215400961",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0); -RDebugUtils.currentLine=15400962; - //BA.debugLineNum = 15400962;BA.debugLine="End Sub"; +public String _p_prods_click() throws Exception{ + //BA.debugLineNum = 1116;BA.debugLine="Sub p_prods_Click"; + //BA.debugLineNum = 1117;BA.debugLine="Log(Sender.As(Panel).tag)"; +__c.LogImpl("021626881",BA.ObjectToString(((anywheresoftware.b4a.objects.PanelWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.PanelWrapper(), (android.view.ViewGroup)(__c.Sender(ba)))).getTag()),0); + //BA.debugLineNum = 1118;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +if (BA.fastSubCompare(sub, "B4XPAGE_CREATED")) + return _b4xpage_created((anywheresoftware.b4a.objects.B4XViewWrapper) args[0]); +if (BA.fastSubCompare(sub, "GPS_LOCATIONCHANGED")) + return _gps_locationchanged((anywheresoftware.b4a.gps.LocationWrapper) args[0]); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_tabulador.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_tabulador.java index b5c8fd2..6851b95 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_tabulador.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_tabulador.java @@ -10,7 +10,7 @@ public class c_tabulador extends B4AClass.ImplB4AClass implements BA.SubDelegato private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_tabulador"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_tabulador"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_tabulador extends B4AClass.ImplB4AClass implements BA.SubDelegato ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public anywheresoftware.b4a.objects.B4XViewWrapper _root = null; public anywheresoftware.b4a.objects.B4XViewWrapper.XUI _xui = null; public anywheresoftware.b4a.objects.EditTextWrapper _et_mil = null; @@ -67,369 +60,243 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_tabulador __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public String _b_calcular_click() throws Exception{ + //BA.debugLineNum = 87;BA.debugLine="Private Sub b_calcular_Click"; + //BA.debugLineNum = 88;BA.debugLine="If et_mil.Text = \"\" Then"; +if ((_et_mil.getText()).equals("")) { + //BA.debugLineNum = 89;BA.debugLine="et_mil.Text = 0"; +_et_mil.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 91;BA.debugLine="If et_quinientos.Text = \"\" Then"; +if ((_et_quinientos.getText()).equals("")) { + //BA.debugLineNum = 92;BA.debugLine="et_quinientos.Text = 0"; +_et_quinientos.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 94;BA.debugLine="If et_docientos.Text = \"\" Then"; +if ((_et_docientos.getText()).equals("")) { + //BA.debugLineNum = 95;BA.debugLine="et_docientos.Text = 0"; +_et_docientos.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 97;BA.debugLine="If et_cien.Text = \"\" Then"; +if ((_et_cien.getText()).equals("")) { + //BA.debugLineNum = 98;BA.debugLine="et_cien.Text = 0"; +_et_cien.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 100;BA.debugLine="If et_cincuenta.Text = \"\" Then"; +if ((_et_cincuenta.getText()).equals("")) { + //BA.debugLineNum = 101;BA.debugLine="et_cincuenta.Text = 0"; +_et_cincuenta.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 103;BA.debugLine="If et_veinte.Text = \"\" Then"; +if ((_et_veinte.getText()).equals("")) { + //BA.debugLineNum = 104;BA.debugLine="et_veinte.Text = 0"; +_et_veinte.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 106;BA.debugLine="If et_m_veinte.Text = \"\" Then"; +if ((_et_m_veinte.getText()).equals("")) { + //BA.debugLineNum = 107;BA.debugLine="et_m_veinte.Text = 0"; +_et_m_veinte.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 109;BA.debugLine="If et_m_diez.Text = \"\" Then"; +if ((_et_m_diez.getText()).equals("")) { + //BA.debugLineNum = 110;BA.debugLine="et_m_diez.Text = 0"; +_et_m_diez.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 112;BA.debugLine="If et_m_cinco.Text = \"\" Then"; +if ((_et_m_cinco.getText()).equals("")) { + //BA.debugLineNum = 113;BA.debugLine="et_m_cinco.Text = 0"; +_et_m_cinco.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 115;BA.debugLine="If et_m_dos.Text = \"\" Then"; +if ((_et_m_dos.getText()).equals("")) { + //BA.debugLineNum = 116;BA.debugLine="et_m_dos.Text = 0"; +_et_m_dos.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 118;BA.debugLine="If et_m_peso.Text = \"\" Then"; +if ((_et_m_peso.getText()).equals("")) { + //BA.debugLineNum = 119;BA.debugLine="et_m_peso.Text = 0"; +_et_m_peso.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 121;BA.debugLine="If et_m_centavo.Text = \"\" Then"; +if ((_et_m_centavo.getText()).equals("")) { + //BA.debugLineNum = 122;BA.debugLine="et_m_centavo.Text = 0"; +_et_m_centavo.setText(BA.ObjectToCharSequence(0)); + }; + //BA.debugLineNum = 124;BA.debugLine="sum_billetes = (et_mil.Text * 1000) + (et_quinien"; +_sum_billetes = (int) (((double)(Double.parseDouble(_et_mil.getText()))*1000)+((double)(Double.parseDouble(_et_quinientos.getText()))*500)+((double)(Double.parseDouble(_et_docientos.getText()))*200)+((double)(Double.parseDouble(_et_cien.getText()))*100)+((double)(Double.parseDouble(_et_cincuenta.getText()))*50)+((double)(Double.parseDouble(_et_veinte.getText()))*20)); + //BA.debugLineNum = 125;BA.debugLine="sum_monedas = (et_m_veinte.Text * 20) + ( et_m_di"; +_sum_monedas = (float) (((double)(Double.parseDouble(_et_m_veinte.getText()))*20)+((double)(Double.parseDouble(_et_m_diez.getText()))*10)+((double)(Double.parseDouble(_et_m_cinco.getText()))*5)+((double)(Double.parseDouble(_et_m_dos.getText()))*2)+((double)(Double.parseDouble(_et_m_peso.getText()))*1)+((double)(Double.parseDouble(_et_m_centavo.getText()))*0.50)); + //BA.debugLineNum = 126;BA.debugLine="total = sum_billetes + sum_monedas"; +_total = (float) (_sum_billetes+_sum_monedas); + //BA.debugLineNum = 127;BA.debugLine="l_total.Text = Round2(total, 2)"; +_l_total.setText(BA.ObjectToCharSequence(__c.Round2(_total,(int) (2)))); + //BA.debugLineNum = 128;BA.debugLine="End Sub"; +return ""; +} +public String _b_guardar_click() throws Exception{ + //BA.debugLineNum = 78;BA.debugLine="Private Sub b_guardar_Click"; + //BA.debugLineNum = 79;BA.debugLine="b_calcular_Click"; +_b_calcular_click(); + //BA.debugLineNum = 80;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADOR_"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS"); + //BA.debugLineNum = 81;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADOR_"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES"); + //BA.debugLineNum = 82;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO TABULADOR"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO TABULADOR_BILLETES (MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_et_mil.getText()),(Object)(_et_quinientos.getText()),(Object)(_et_docientos.getText()),(Object)(_et_cien.getText()),(Object)(_et_cincuenta.getText()),(Object)(_et_veinte.getText())})); + //BA.debugLineNum = 83;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO TABULADOR"; +_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO TABULADOR_MONEDAS (VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_et_m_veinte.getText()),(Object)(_et_m_diez.getText()),(Object)(_et_m_cinco.getText()),(Object)(_et_m_dos.getText()),(Object)(_et_m_peso.getText()),(Object)(_et_m_centavo.getText()),(Object)(_l_total.getText())})); + //BA.debugLineNum = 84;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; +_b4xpages._showpage /*String*/ (ba,"Principal"); + //BA.debugLineNum = 85;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_appear() throws Exception{ + //BA.debugLineNum = 38;BA.debugLine="Sub B4XPage_Appear"; + //BA.debugLineNum = 39;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT VEINTE, DIEZ,"; +_d = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS"))); + //BA.debugLineNum = 40;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT MIL, QUINIENTO"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES"))); + //BA.debugLineNum = 41;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 42;BA.debugLine="d.Position = 0"; +_d.setPosition((int) (0)); + //BA.debugLineNum = 43;BA.debugLine="If c.RowCount > 0 And d.RowCount > 0 Then"; +if (_c.getRowCount()>0 && _d.getRowCount()>0) { + //BA.debugLineNum = 44;BA.debugLine="Log(\"TABULADR CON RESUKTADO\")"; +__c.LogImpl("021889030","TABULADR CON RESUKTADO",0); + //BA.debugLineNum = 45;BA.debugLine="et_mil.Text = c.GetString(\"MIL\")"; +_et_mil.setText(BA.ObjectToCharSequence(_c.GetString("MIL"))); + //BA.debugLineNum = 46;BA.debugLine="et_quinientos.Text = c.GetString(\"QUINIENTOS\")"; +_et_quinientos.setText(BA.ObjectToCharSequence(_c.GetString("QUINIENTOS"))); + //BA.debugLineNum = 47;BA.debugLine="et_docientos.Text = c.GetString(\"DOCIENTOS\")"; +_et_docientos.setText(BA.ObjectToCharSequence(_c.GetString("DOCIENTOS"))); + //BA.debugLineNum = 48;BA.debugLine="et_cien.Text = c.GetString(\"CIEN\")"; +_et_cien.setText(BA.ObjectToCharSequence(_c.GetString("CIEN"))); + //BA.debugLineNum = 49;BA.debugLine="et_cincuenta.Text = c.GetString(\"CINCUENTA\")"; +_et_cincuenta.setText(BA.ObjectToCharSequence(_c.GetString("CINCUENTA"))); + //BA.debugLineNum = 50;BA.debugLine="et_veinte.Text = c.GetString(\"VEINTE\")"; +_et_veinte.setText(BA.ObjectToCharSequence(_c.GetString("VEINTE"))); + //BA.debugLineNum = 51;BA.debugLine="et_m_veinte.Text = d.GetString(\"VEINTE\")"; +_et_m_veinte.setText(BA.ObjectToCharSequence(_d.GetString("VEINTE"))); + //BA.debugLineNum = 52;BA.debugLine="et_m_diez.Text = d.GetString(\"DIEZ\")"; +_et_m_diez.setText(BA.ObjectToCharSequence(_d.GetString("DIEZ"))); + //BA.debugLineNum = 53;BA.debugLine="et_m_cinco.Text = d.GetString(\"CINCO\")"; +_et_m_cinco.setText(BA.ObjectToCharSequence(_d.GetString("CINCO"))); + //BA.debugLineNum = 54;BA.debugLine="et_m_dos.Text = d.GetString(\"DOS\")"; +_et_m_dos.setText(BA.ObjectToCharSequence(_d.GetString("DOS"))); + //BA.debugLineNum = 55;BA.debugLine="et_m_peso.Text = d.GetString(\"PESO\")"; +_et_m_peso.setText(BA.ObjectToCharSequence(_d.GetString("PESO"))); + //BA.debugLineNum = 56;BA.debugLine="et_m_centavo.Text = d.GetString(\"CENTAVO\")"; +_et_m_centavo.setText(BA.ObjectToCharSequence(_d.GetString("CENTAVO"))); + //BA.debugLineNum = 57;BA.debugLine="l_total.Text = d.GetString(\"TOTAL\")"; +_l_total.setText(BA.ObjectToCharSequence(_d.GetString("TOTAL"))); + }else if(_c.getRowCount()==0 && _d.getRowCount()==0) { + //BA.debugLineNum = 59;BA.debugLine="Log(\"TABULADR SIN RESUKTADO\")"; +__c.LogImpl("021889045","TABULADR SIN RESUKTADO",0); + //BA.debugLineNum = 60;BA.debugLine="et_mil.Text = \"\""; +_et_mil.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 61;BA.debugLine="et_quinientos.Text = \"\""; +_et_quinientos.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 62;BA.debugLine="et_docientos.Text = \"\""; +_et_docientos.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 63;BA.debugLine="et_cien.Text = \"\""; +_et_cien.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 64;BA.debugLine="et_cincuenta.Text = \"\""; +_et_cincuenta.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 65;BA.debugLine="et_veinte.Text = \"\""; +_et_veinte.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 66;BA.debugLine="et_m_veinte.Text = \"\""; +_et_m_veinte.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 67;BA.debugLine="et_m_diez.Text = \"\""; +_et_m_diez.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 68;BA.debugLine="et_m_cinco.Text = \"\""; +_et_m_cinco.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 69;BA.debugLine="et_m_dos.Text = \"\""; +_et_m_dos.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 70;BA.debugLine="et_m_peso.Text = \"\""; +_et_m_peso.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 71;BA.debugLine="et_m_centavo.Text = \"\""; +_et_m_centavo.setText(BA.ObjectToCharSequence("")); + //BA.debugLineNum = 72;BA.debugLine="l_total.Text = \"\""; +_l_total.setText(BA.ObjectToCharSequence("")); + }; + //BA.debugLineNum = 74;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 75;BA.debugLine="d.Close"; +_d.Close(); + //BA.debugLineNum = 76;BA.debugLine="End Sub"; +return ""; +} +public String _b4xpage_created(anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ + //BA.debugLineNum = 32;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; + //BA.debugLineNum = 33;BA.debugLine="Root = Root1"; +_root = _root1; + //BA.debugLineNum = 35;BA.debugLine="Root.LoadLayout(\"tabulador\")"; +_root.LoadLayout("tabulador",ba); + //BA.debugLineNum = 36;BA.debugLine="End Sub"; +return ""; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore"; +_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 4;BA.debugLine="Private et_mil As EditText"; +_et_mil = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 5;BA.debugLine="Private et_quinientos As EditText"; +_et_quinientos = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 6;BA.debugLine="Private et_docientos As EditText"; +_et_docientos = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 7;BA.debugLine="Private et_cien As EditText"; +_et_cien = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 8;BA.debugLine="Private et_cincuenta As EditText"; +_et_cincuenta = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 9;BA.debugLine="Private et_veinte As EditText"; +_et_veinte = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 10;BA.debugLine="Private et_m_veinte As EditText"; +_et_m_veinte = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Private et_m_diez As EditText"; +_et_m_diez = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 12;BA.debugLine="Private et_m_cinco As EditText"; +_et_m_cinco = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 13;BA.debugLine="Private et_m_dos As EditText"; +_et_m_dos = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 14;BA.debugLine="Private et_m_peso As EditText"; +_et_m_peso = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 15;BA.debugLine="Private et_m_centavo As EditText"; +_et_m_centavo = new anywheresoftware.b4a.objects.EditTextWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Private b_calcular As Button"; +_b_calcular = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 17;BA.debugLine="Private b_guardar As Button"; +_b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 18;BA.debugLine="Private l_total As Label"; +_l_total = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Dim sum_billetes As Int"; +_sum_billetes = 0; + //BA.debugLineNum = 20;BA.debugLine="Dim sum_monedas As Float"; +_sum_monedas = 0f; + //BA.debugLineNum = 21;BA.debugLine="Dim total As Float"; +_total = 0f; + //BA.debugLineNum = 22;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 23;BA.debugLine="Dim d As Cursor"; +_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 24;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="c_tabulador"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=21495808; - //BA.debugLineNum = 21495808;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=21495809; - //BA.debugLineNum = 21495809;BA.debugLine="Return Me"; + //BA.debugLineNum = 27;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 28;BA.debugLine="Return Me"; if (true) return this; -RDebugUtils.currentLine=21495810; - //BA.debugLineNum = 21495810;BA.debugLine="End Sub"; + //BA.debugLineNum = 29;BA.debugLine="End Sub"; return null; } -public String _b_calcular_click(reparto_izca.keymon.lat.c_tabulador __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_tabulador"; -if (Debug.shouldDelegate(ba, "b_calcular_click", false)) - {return ((String) Debug.delegate(ba, "b_calcular_click", null));} -RDebugUtils.currentLine=21757952; - //BA.debugLineNum = 21757952;BA.debugLine="Private Sub b_calcular_Click"; -RDebugUtils.currentLine=21757953; - //BA.debugLineNum = 21757953;BA.debugLine="If et_mil.Text = \"\" Then"; -if ((__ref._et_mil /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757954; - //BA.debugLineNum = 21757954;BA.debugLine="et_mil.Text = 0"; -__ref._et_mil /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757956; - //BA.debugLineNum = 21757956;BA.debugLine="If et_quinientos.Text = \"\" Then"; -if ((__ref._et_quinientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757957; - //BA.debugLineNum = 21757957;BA.debugLine="et_quinientos.Text = 0"; -__ref._et_quinientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757959; - //BA.debugLineNum = 21757959;BA.debugLine="If et_docientos.Text = \"\" Then"; -if ((__ref._et_docientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757960; - //BA.debugLineNum = 21757960;BA.debugLine="et_docientos.Text = 0"; -__ref._et_docientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757962; - //BA.debugLineNum = 21757962;BA.debugLine="If et_cien.Text = \"\" Then"; -if ((__ref._et_cien /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757963; - //BA.debugLineNum = 21757963;BA.debugLine="et_cien.Text = 0"; -__ref._et_cien /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757965; - //BA.debugLineNum = 21757965;BA.debugLine="If et_cincuenta.Text = \"\" Then"; -if ((__ref._et_cincuenta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757966; - //BA.debugLineNum = 21757966;BA.debugLine="et_cincuenta.Text = 0"; -__ref._et_cincuenta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757968; - //BA.debugLineNum = 21757968;BA.debugLine="If et_veinte.Text = \"\" Then"; -if ((__ref._et_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757969; - //BA.debugLineNum = 21757969;BA.debugLine="et_veinte.Text = 0"; -__ref._et_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757971; - //BA.debugLineNum = 21757971;BA.debugLine="If et_m_veinte.Text = \"\" Then"; -if ((__ref._et_m_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757972; - //BA.debugLineNum = 21757972;BA.debugLine="et_m_veinte.Text = 0"; -__ref._et_m_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757974; - //BA.debugLineNum = 21757974;BA.debugLine="If et_m_diez.Text = \"\" Then"; -if ((__ref._et_m_diez /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757975; - //BA.debugLineNum = 21757975;BA.debugLine="et_m_diez.Text = 0"; -__ref._et_m_diez /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757977; - //BA.debugLineNum = 21757977;BA.debugLine="If et_m_cinco.Text = \"\" Then"; -if ((__ref._et_m_cinco /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757978; - //BA.debugLineNum = 21757978;BA.debugLine="et_m_cinco.Text = 0"; -__ref._et_m_cinco /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757980; - //BA.debugLineNum = 21757980;BA.debugLine="If et_m_dos.Text = \"\" Then"; -if ((__ref._et_m_dos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757981; - //BA.debugLineNum = 21757981;BA.debugLine="et_m_dos.Text = 0"; -__ref._et_m_dos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757983; - //BA.debugLineNum = 21757983;BA.debugLine="If et_m_peso.Text = \"\" Then"; -if ((__ref._et_m_peso /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757984; - //BA.debugLineNum = 21757984;BA.debugLine="et_m_peso.Text = 0"; -__ref._et_m_peso /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757986; - //BA.debugLineNum = 21757986;BA.debugLine="If et_m_centavo.Text = \"\" Then"; -if ((__ref._et_m_centavo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()).equals("")) { -RDebugUtils.currentLine=21757987; - //BA.debugLineNum = 21757987;BA.debugLine="et_m_centavo.Text = 0"; -__ref._et_m_centavo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(0)); - }; -RDebugUtils.currentLine=21757989; - //BA.debugLineNum = 21757989;BA.debugLine="sum_billetes = (et_mil.Text * 1000) + (et_quinien"; -__ref._sum_billetes /*int*/ = (int) (((double)(Double.parseDouble(__ref._et_mil /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*1000)+((double)(Double.parseDouble(__ref._et_quinientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*500)+((double)(Double.parseDouble(__ref._et_docientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*200)+((double)(Double.parseDouble(__ref._et_cien /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*100)+((double)(Double.parseDouble(__ref._et_cincuenta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*50)+((double)(Double.parseDouble(__ref._et_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*20)); -RDebugUtils.currentLine=21757990; - //BA.debugLineNum = 21757990;BA.debugLine="sum_monedas = (et_m_veinte.Text * 20) + ( et_m_di"; -__ref._sum_monedas /*float*/ = (float) (((double)(Double.parseDouble(__ref._et_m_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*20)+((double)(Double.parseDouble(__ref._et_m_diez /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*10)+((double)(Double.parseDouble(__ref._et_m_cinco /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*5)+((double)(Double.parseDouble(__ref._et_m_dos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*2)+((double)(Double.parseDouble(__ref._et_m_peso /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*1)+((double)(Double.parseDouble(__ref._et_m_centavo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()))*0.50)); -RDebugUtils.currentLine=21757991; - //BA.debugLineNum = 21757991;BA.debugLine="total = sum_billetes + sum_monedas"; -__ref._total /*float*/ = (float) (__ref._sum_billetes /*int*/ +__ref._sum_monedas /*float*/ ); -RDebugUtils.currentLine=21757992; - //BA.debugLineNum = 21757992;BA.debugLine="l_total.Text = Round2(total, 2)"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__c.Round2(__ref._total /*float*/ ,(int) (2)))); -RDebugUtils.currentLine=21757993; - //BA.debugLineNum = 21757993;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; } -public String _b_guardar_click(reparto_izca.keymon.lat.c_tabulador __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_tabulador"; -if (Debug.shouldDelegate(ba, "b_guardar_click", false)) - {return ((String) Debug.delegate(ba, "b_guardar_click", null));} -RDebugUtils.currentLine=21692416; - //BA.debugLineNum = 21692416;BA.debugLine="Private Sub b_guardar_Click"; -RDebugUtils.currentLine=21692417; - //BA.debugLineNum = 21692417;BA.debugLine="b_calcular_Click"; -__ref._b_calcular_click /*String*/ (null); -RDebugUtils.currentLine=21692418; - //BA.debugLineNum = 21692418;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADOR_"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_MONEDAS"); -RDebugUtils.currentLine=21692419; - //BA.debugLineNum = 21692419;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM TABULADOR_"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM TABULADOR_BILLETES"); -RDebugUtils.currentLine=21692420; - //BA.debugLineNum = 21692420;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO TABULADOR"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO TABULADOR_BILLETES (MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE) VALUES (?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._et_mil /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_quinientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_docientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_cien /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_cincuenta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText())})); -RDebugUtils.currentLine=21692421; - //BA.debugLineNum = 21692421;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO TABULADOR"; -_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO TABULADOR_MONEDAS (VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL) VALUES (?,?,?,?,?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(__ref._et_m_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_m_diez /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_m_cinco /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_m_dos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_m_peso /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._et_m_centavo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .getText()),(Object)(__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .getText())})); -RDebugUtils.currentLine=21692422; - //BA.debugLineNum = 21692422;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; -_b4xpages._showpage /*String*/ (ba,"Principal"); -RDebugUtils.currentLine=21692423; - //BA.debugLineNum = 21692423;BA.debugLine="End Sub"; -return ""; } -public String _b4xpage_appear(reparto_izca.keymon.lat.c_tabulador __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_tabulador"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {return ((String) Debug.delegate(ba, "b4xpage_appear", null));} -RDebugUtils.currentLine=21626880; - //BA.debugLineNum = 21626880;BA.debugLine="Sub B4XPage_Appear"; -RDebugUtils.currentLine=21626881; - //BA.debugLineNum = 21626881;BA.debugLine="d = Starter.skmt.ExecQuery(\"SELECT VEINTE, DIEZ,"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT VEINTE, DIEZ, CINCO, DOS, PESO, CENTAVO, TOTAL FROM TABULADOR_MONEDAS"))); -RDebugUtils.currentLine=21626882; - //BA.debugLineNum = 21626882;BA.debugLine="c = Starter.skmt.ExecQuery(\"SELECT MIL, QUINIENTO"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("SELECT MIL, QUINIENTOS, DOCIENTOS, CIEN, CINCUENTA, VEINTE FROM TABULADOR_BILLETES"))); -RDebugUtils.currentLine=21626883; - //BA.debugLineNum = 21626883;BA.debugLine="c.Position = 0"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=21626884; - //BA.debugLineNum = 21626884;BA.debugLine="d.Position = 0"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .setPosition((int) (0)); -RDebugUtils.currentLine=21626885; - //BA.debugLineNum = 21626885;BA.debugLine="If c.RowCount > 0 And d.RowCount > 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0 && __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()>0) { -RDebugUtils.currentLine=21626886; - //BA.debugLineNum = 21626886;BA.debugLine="Log(\"TABULADR CON RESUKTADO\")"; -__c.LogImpl("221626886","TABULADR CON RESUKTADO",0); -RDebugUtils.currentLine=21626887; - //BA.debugLineNum = 21626887;BA.debugLine="et_mil.Text = c.GetString(\"MIL\")"; -__ref._et_mil /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("MIL"))); -RDebugUtils.currentLine=21626888; - //BA.debugLineNum = 21626888;BA.debugLine="et_quinientos.Text = c.GetString(\"QUINIENTOS\")"; -__ref._et_quinientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("QUINIENTOS"))); -RDebugUtils.currentLine=21626889; - //BA.debugLineNum = 21626889;BA.debugLine="et_docientos.Text = c.GetString(\"DOCIENTOS\")"; -__ref._et_docientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("DOCIENTOS"))); -RDebugUtils.currentLine=21626890; - //BA.debugLineNum = 21626890;BA.debugLine="et_cien.Text = c.GetString(\"CIEN\")"; -__ref._et_cien /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CIEN"))); -RDebugUtils.currentLine=21626891; - //BA.debugLineNum = 21626891;BA.debugLine="et_cincuenta.Text = c.GetString(\"CINCUENTA\")"; -__ref._et_cincuenta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CINCUENTA"))); -RDebugUtils.currentLine=21626892; - //BA.debugLineNum = 21626892;BA.debugLine="et_veinte.Text = c.GetString(\"VEINTE\")"; -__ref._et_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("VEINTE"))); -RDebugUtils.currentLine=21626893; - //BA.debugLineNum = 21626893;BA.debugLine="et_m_veinte.Text = d.GetString(\"VEINTE\")"; -__ref._et_m_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("VEINTE"))); -RDebugUtils.currentLine=21626894; - //BA.debugLineNum = 21626894;BA.debugLine="et_m_diez.Text = d.GetString(\"DIEZ\")"; -__ref._et_m_diez /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("DIEZ"))); -RDebugUtils.currentLine=21626895; - //BA.debugLineNum = 21626895;BA.debugLine="et_m_cinco.Text = d.GetString(\"CINCO\")"; -__ref._et_m_cinco /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CINCO"))); -RDebugUtils.currentLine=21626896; - //BA.debugLineNum = 21626896;BA.debugLine="et_m_dos.Text = d.GetString(\"DOS\")"; -__ref._et_m_dos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("DOS"))); -RDebugUtils.currentLine=21626897; - //BA.debugLineNum = 21626897;BA.debugLine="et_m_peso.Text = d.GetString(\"PESO\")"; -__ref._et_m_peso /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("PESO"))); -RDebugUtils.currentLine=21626898; - //BA.debugLineNum = 21626898;BA.debugLine="et_m_centavo.Text = d.GetString(\"CENTAVO\")"; -__ref._et_m_centavo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("CENTAVO"))); -RDebugUtils.currentLine=21626899; - //BA.debugLineNum = 21626899;BA.debugLine="l_total.Text = d.GetString(\"TOTAL\")"; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence(__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .GetString("TOTAL"))); - }else -{RDebugUtils.currentLine=21626900; - //BA.debugLineNum = 21626900;BA.debugLine="else If c.RowCount = 0 And d.RowCount = 0 Then"; -if (__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0 && __ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .getRowCount()==0) { -RDebugUtils.currentLine=21626901; - //BA.debugLineNum = 21626901;BA.debugLine="Log(\"TABULADR SIN RESUKTADO\")"; -__c.LogImpl("221626901","TABULADR SIN RESUKTADO",0); -RDebugUtils.currentLine=21626902; - //BA.debugLineNum = 21626902;BA.debugLine="et_mil.Text = \"\""; -__ref._et_mil /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626903; - //BA.debugLineNum = 21626903;BA.debugLine="et_quinientos.Text = \"\""; -__ref._et_quinientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626904; - //BA.debugLineNum = 21626904;BA.debugLine="et_docientos.Text = \"\""; -__ref._et_docientos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626905; - //BA.debugLineNum = 21626905;BA.debugLine="et_cien.Text = \"\""; -__ref._et_cien /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626906; - //BA.debugLineNum = 21626906;BA.debugLine="et_cincuenta.Text = \"\""; -__ref._et_cincuenta /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626907; - //BA.debugLineNum = 21626907;BA.debugLine="et_veinte.Text = \"\""; -__ref._et_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626908; - //BA.debugLineNum = 21626908;BA.debugLine="et_m_veinte.Text = \"\""; -__ref._et_m_veinte /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626909; - //BA.debugLineNum = 21626909;BA.debugLine="et_m_diez.Text = \"\""; -__ref._et_m_diez /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626910; - //BA.debugLineNum = 21626910;BA.debugLine="et_m_cinco.Text = \"\""; -__ref._et_m_cinco /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626911; - //BA.debugLineNum = 21626911;BA.debugLine="et_m_dos.Text = \"\""; -__ref._et_m_dos /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626912; - //BA.debugLineNum = 21626912;BA.debugLine="et_m_peso.Text = \"\""; -__ref._et_m_peso /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626913; - //BA.debugLineNum = 21626913;BA.debugLine="et_m_centavo.Text = \"\""; -__ref._et_m_centavo /*anywheresoftware.b4a.objects.EditTextWrapper*/ .setText(BA.ObjectToCharSequence("")); -RDebugUtils.currentLine=21626914; - //BA.debugLineNum = 21626914;BA.debugLine="l_total.Text = \"\""; -__ref._l_total /*anywheresoftware.b4a.objects.LabelWrapper*/ .setText(BA.ObjectToCharSequence("")); - }} -; -RDebugUtils.currentLine=21626916; - //BA.debugLineNum = 21626916;BA.debugLine="c.Close"; -__ref._c /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=21626917; - //BA.debugLineNum = 21626917;BA.debugLine="d.Close"; -__ref._d /*anywheresoftware.b4a.sql.SQL.CursorWrapper*/ .Close(); -RDebugUtils.currentLine=21626918; - //BA.debugLineNum = 21626918;BA.debugLine="End Sub"; -return ""; -} -public String _b4xpage_created(reparto_izca.keymon.lat.c_tabulador __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_tabulador"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=21561344; - //BA.debugLineNum = 21561344;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=21561345; - //BA.debugLineNum = 21561345;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=21561347; - //BA.debugLineNum = 21561347;BA.debugLine="Root.LoadLayout(\"tabulador\")"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .LoadLayout("tabulador",ba); -RDebugUtils.currentLine=21561348; - //BA.debugLineNum = 21561348;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.c_tabulador __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_tabulador"; -RDebugUtils.currentLine=21430272; - //BA.debugLineNum = 21430272;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=21430273; - //BA.debugLineNum = 21430273;BA.debugLine="Private Root As B4XView 'ignore"; -_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=21430274; - //BA.debugLineNum = 21430274;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=21430275; - //BA.debugLineNum = 21430275;BA.debugLine="Private et_mil As EditText"; -_et_mil = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430276; - //BA.debugLineNum = 21430276;BA.debugLine="Private et_quinientos As EditText"; -_et_quinientos = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430277; - //BA.debugLineNum = 21430277;BA.debugLine="Private et_docientos As EditText"; -_et_docientos = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430278; - //BA.debugLineNum = 21430278;BA.debugLine="Private et_cien As EditText"; -_et_cien = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430279; - //BA.debugLineNum = 21430279;BA.debugLine="Private et_cincuenta As EditText"; -_et_cincuenta = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430280; - //BA.debugLineNum = 21430280;BA.debugLine="Private et_veinte As EditText"; -_et_veinte = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430281; - //BA.debugLineNum = 21430281;BA.debugLine="Private et_m_veinte As EditText"; -_et_m_veinte = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430282; - //BA.debugLineNum = 21430282;BA.debugLine="Private et_m_diez As EditText"; -_et_m_diez = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430283; - //BA.debugLineNum = 21430283;BA.debugLine="Private et_m_cinco As EditText"; -_et_m_cinco = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430284; - //BA.debugLineNum = 21430284;BA.debugLine="Private et_m_dos As EditText"; -_et_m_dos = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430285; - //BA.debugLineNum = 21430285;BA.debugLine="Private et_m_peso As EditText"; -_et_m_peso = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430286; - //BA.debugLineNum = 21430286;BA.debugLine="Private et_m_centavo As EditText"; -_et_m_centavo = new anywheresoftware.b4a.objects.EditTextWrapper(); -RDebugUtils.currentLine=21430287; - //BA.debugLineNum = 21430287;BA.debugLine="Private b_calcular As Button"; -_b_calcular = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=21430288; - //BA.debugLineNum = 21430288;BA.debugLine="Private b_guardar As Button"; -_b_guardar = new anywheresoftware.b4a.objects.ButtonWrapper(); -RDebugUtils.currentLine=21430289; - //BA.debugLineNum = 21430289;BA.debugLine="Private l_total As Label"; -_l_total = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=21430290; - //BA.debugLineNum = 21430290;BA.debugLine="Dim sum_billetes As Int"; -_sum_billetes = 0; -RDebugUtils.currentLine=21430291; - //BA.debugLineNum = 21430291;BA.debugLine="Dim sum_monedas As Float"; -_sum_monedas = 0f; -RDebugUtils.currentLine=21430292; - //BA.debugLineNum = 21430292;BA.debugLine="Dim total As Float"; -_total = 0f; -RDebugUtils.currentLine=21430293; - //BA.debugLineNum = 21430293;BA.debugLine="Dim c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=21430294; - //BA.debugLineNum = 21430294;BA.debugLine="Dim d As Cursor"; -_d = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=21430295; - //BA.debugLineNum = 21430295;BA.debugLine="End Sub"; -return ""; -} -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_ticketsdia.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_ticketsdia.java index c1f1f17..49c1be0 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_ticketsdia.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_ticketsdia.java @@ -10,7 +10,7 @@ public class c_ticketsdia extends B4AClass.ImplB4AClass implements BA.SubDelegat private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_ticketsdia"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_ticketsdia"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_ticketsdia extends B4AClass.ImplB4AClass implements BA.SubDelegat ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -47,48 +40,34 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_ticketsdia __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +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); -RDebugUtils.currentModule="c_ticketsdia"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=21889024; - //BA.debugLineNum = 21889024;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=21889025; - //BA.debugLineNum = 21889025;BA.debugLine="Return Me"; + //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 8;BA.debugLine="Return Me"; if (true) return this; -RDebugUtils.currentLine=21889026; - //BA.debugLineNum = 21889026;BA.debugLine="End Sub"; + //BA.debugLineNum = 9;BA.debugLine="End Sub"; return null; } -public String _b4xpage_created(reparto_izca.keymon.lat.c_ticketsdia __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_ticketsdia"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=21954560; - //BA.debugLineNum = 21954560;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=21954561; - //BA.debugLineNum = 21954561;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=21954564; - //BA.debugLineNum = 21954564;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; } -public String _class_globals(reparto_izca.keymon.lat.c_ticketsdia __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_ticketsdia"; -RDebugUtils.currentLine=21823488; - //BA.debugLineNum = 21823488;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=21823489; - //BA.debugLineNum = 21823489;BA.debugLine="Private Root As B4XView 'ignore"; -_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=21823490; - //BA.debugLineNum = 21823490;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=21823491; - //BA.debugLineNum = 21823491;BA.debugLine="End Sub"; -return ""; } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/c_updateavailable.java b/B4A/Objects/src/reparto_izca/keymon/lat/c_updateavailable.java index fac452a..25651d6 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/c_updateavailable.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/c_updateavailable.java @@ -10,7 +10,7 @@ public class c_updateavailable extends B4AClass.ImplB4AClass implements BA.SubDe private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_updateavailable"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.c_updateavailable"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class c_updateavailable extends B4AClass.ImplB4AClass implements BA.SubDe ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + 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; @@ -47,42 +40,20 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _initialize(reparto_izca.keymon.lat.c_updateavailable __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="c_updateavailable"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((Object) Debug.delegate(ba, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=22085632; - //BA.debugLineNum = 22085632;BA.debugLine="Public Sub Initialize As Object"; -RDebugUtils.currentLine=22085633; - //BA.debugLineNum = 22085633;BA.debugLine="Return Me"; -if (true) return this; -RDebugUtils.currentLine=22085634; - //BA.debugLineNum = 22085634;BA.debugLine="End Sub"; -return null; -} -public void _b4xpage_appear(reparto_izca.keymon.lat.c_updateavailable __ref) throws Exception{ -RDebugUtils.currentModule="c_updateavailable"; -if (Debug.shouldDelegate(ba, "b4xpage_appear", false)) - {Debug.delegate(ba, "b4xpage_appear", null); return;} -ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this,__ref); +public void _b4xpage_appear() throws Exception{ +ResumableSub_B4XPage_Appear rsub = new ResumableSub_B4XPage_Appear(this); rsub.resume(ba, null); } public static class ResumableSub_B4XPage_Appear extends BA.ResumableSub { -public ResumableSub_B4XPage_Appear(reparto_izca.keymon.lat.c_updateavailable parent,reparto_izca.keymon.lat.c_updateavailable __ref) { +public ResumableSub_B4XPage_Appear(reparto_izca.keymon.lat.c_updateavailable parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.c_updateavailable __ref; reparto_izca.keymon.lat.c_updateavailable parent; int _result = 0; anywheresoftware.b4a.objects.IntentWrapper _in = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="c_updateavailable"; while (true) { try { @@ -94,8 +65,7 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=22216705; - //BA.debugLineNum = 22216705;BA.debugLine="Try"; + //BA.debugLineNum = 19;BA.debugLine="Try"; if (true) break; case 1: @@ -109,14 +79,13 @@ case 3: //C this.state = 4; this.catchState = 9; -RDebugUtils.currentLine=22216706; - //BA.debugLineNum = 22216706;BA.debugLine="Do While Not(CanRequestPackageInstalls)"; + //BA.debugLineNum = 20;BA.debugLine="Do While Not(CanRequestPackageInstalls)"; if (true) break; case 4: //do while this.state = 7; -while (parent.__c.Not(__ref._canrequestpackageinstalls /*boolean*/ (null))) { +while (parent.__c.Not(parent._canrequestpackageinstalls())) { this.state = 6; if (true) break; } @@ -125,27 +94,22 @@ if (true) break; case 6: //C this.state = 4; -RDebugUtils.currentLine=22216707; - //BA.debugLineNum = 22216707;BA.debugLine="MsgboxAsync($\"Por favor permita que ${Applicati"; + //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); -RDebugUtils.currentLine=22216708; - //BA.debugLineNum = 22216708;BA.debugLine="Wait For Msgbox_Result(Result As Int)"; -parent.__c.WaitFor("msgbox_result", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "c_updateavailable", "b4xpage_appear"), null); + //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[1]; +_result = (Integer) result[0]; ; -RDebugUtils.currentLine=22216709; - //BA.debugLineNum = 22216709;BA.debugLine="Dim in As Intent"; + //BA.debugLineNum = 23;BA.debugLine="Dim in As Intent"; _in = new anywheresoftware.b4a.objects.IntentWrapper(); -RDebugUtils.currentLine=22216710; - //BA.debugLineNum = 22216710;BA.debugLine="in.Initialize(\"android.settings.MANAGE_UNKNOWN_"; + //BA.debugLineNum = 24;BA.debugLine="in.Initialize(\"android.settings.MANAGE_UNKNOWN_"; _in.Initialize("android.settings.MANAGE_UNKNOWN_APP_SOURCES","package:"+parent.__c.Application.getPackageName()); -RDebugUtils.currentLine=22216711; - //BA.debugLineNum = 22216711;BA.debugLine="StartActivity(in)"; + //BA.debugLineNum = 25;BA.debugLine="StartActivity(in)"; parent.__c.StartActivity(ba,(Object)(_in.getObject())); if (true) break; @@ -159,14 +123,12 @@ case 9: //C this.state = 10; this.catchState = 0; -RDebugUtils.currentLine=22216714; - //BA.debugLineNum = 22216714;BA.debugLine="Log(\"updateAvailable() Error - \" & LastException"; -parent.__c.LogImpl("222216714","updateAvailable() Error - "+parent.__c.LastException(ba).getMessage(),0); + //BA.debugLineNum = 28;BA.debugLine="Log(\"updateAvailable() Error - \" & LastException"; +parent.__c.LogImpl("022478858","updateAvailable() Error - "+parent.__c.LastException(ba).getMessage(),0); if (true) break; if (true) break; ; -RDebugUtils.currentLine=22216716; - //BA.debugLineNum = 22216716;BA.debugLine="If appUpdater.newApp.update Then"; + //BA.debugLineNum = 30;BA.debugLine="If appUpdater.newApp.update Then"; case 10: //if @@ -181,25 +143,22 @@ this.state = 14; case 12: //C this.state = 15; -RDebugUtils.currentLine=22216717; - //BA.debugLineNum = 22216717;BA.debugLine="ofreceActualizacion"; -__ref._ofreceactualizacion /*String*/ (null); + //BA.debugLineNum = 31;BA.debugLine="ofreceActualizacion"; +parent._ofreceactualizacion(); if (true) break; case 14: //C this.state = 15; -RDebugUtils.currentLine=22216719; - //BA.debugLineNum = 22216719;BA.debugLine="sinActualizacion"; -__ref._sinactualizacion /*String*/ (null); + //BA.debugLineNum = 33;BA.debugLine="sinActualizacion"; +parent._sinactualizacion(); if (true) break; case 15: //C this.state = -1; ; -RDebugUtils.currentLine=22216721; - //BA.debugLineNum = 22216721;BA.debugLine="End Sub"; + //BA.debugLineNum = 35;BA.debugLine="End Sub"; if (true) break; }} catch (Exception e0) { @@ -213,109 +172,81 @@ ba.setLastException(e0);} } } } -public boolean _canrequestpackageinstalls(reparto_izca.keymon.lat.c_updateavailable __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_updateavailable"; -if (Debug.shouldDelegate(ba, "canrequestpackageinstalls", false)) - {return ((Boolean) Debug.delegate(ba, "canrequestpackageinstalls", null));} +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; -RDebugUtils.currentLine=22282240; - //BA.debugLineNum = 22282240;BA.debugLine="public Sub CanRequestPackageInstalls As Boolean"; -RDebugUtils.currentLine=22282242; - //BA.debugLineNum = 22282242;BA.debugLine="Dim ctxt As JavaObject"; + //BA.debugLineNum = 43;BA.debugLine="public Sub CanRequestPackageInstalls As Boolean"; + //BA.debugLineNum = 45;BA.debugLine="Dim ctxt As JavaObject"; _ctxt = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=22282243; - //BA.debugLineNum = 22282243;BA.debugLine="ctxt.InitializeContext"; + //BA.debugLineNum = 46;BA.debugLine="ctxt.InitializeContext"; _ctxt.InitializeContext(ba); -RDebugUtils.currentLine=22282244; - //BA.debugLineNum = 22282244;BA.debugLine="Dim PackageManager As JavaObject = ctxt.RunMethod"; + //BA.debugLineNum = 47;BA.debugLine="Dim PackageManager As JavaObject = ctxt.RunMethod"; _packagemanager = new anywheresoftware.b4j.object.JavaObject(); _packagemanager = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_ctxt.RunMethod("getPackageManager",(Object[])(__c.Null)))); -RDebugUtils.currentLine=22282245; - //BA.debugLineNum = 22282245;BA.debugLine="Return PackageManager.RunMethod(\"canRequestPackag"; + //BA.debugLineNum = 48;BA.debugLine="Return PackageManager.RunMethod(\"canRequestPackag"; if (true) return BA.ObjectToBoolean(_packagemanager.RunMethod("canRequestPackageInstalls",(Object[])(__c.Null))); -RDebugUtils.currentLine=22282246; - //BA.debugLineNum = 22282246;BA.debugLine="End Sub"; + //BA.debugLineNum = 49;BA.debugLine="End Sub"; return false; } -public String _ofreceactualizacion(reparto_izca.keymon.lat.c_updateavailable __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_updateavailable"; -if (Debug.shouldDelegate(ba, "ofreceactualizacion", false)) - {return ((String) Debug.delegate(ba, "ofreceactualizacion", null));} -RDebugUtils.currentLine=22347776; - //BA.debugLineNum = 22347776;BA.debugLine="Sub ofreceActualizacion"; -RDebugUtils.currentLine=22347777; - //BA.debugLineNum = 22347777;BA.debugLine="If Msgbox2(appUpdater.newApp.newMsg,\"Actualizació"; +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 2;BA.debugLine="Private Root As B4XView 'ignore"; +_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); + //BA.debugLineNum = 3;BA.debugLine="Private xui As XUI 'ignore"; +_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); + //BA.debugLineNum = 4;BA.debugLine="End Sub"; +return ""; +} +public Object _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 7;BA.debugLine="Public Sub Initialize As Object"; + //BA.debugLineNum = 8;BA.debugLine="Return Me"; +if (true) return this; + //BA.debugLineNum = 9;BA.debugLine="End Sub"; +return null; +} +public String _ofreceactualizacion() throws Exception{ + //BA.debugLineNum = 51;BA.debugLine="Sub ofreceActualizacion"; + //BA.debugLineNum = 52;BA.debugLine="If Msgbox2(appUpdater.newApp.newMsg,\"Actualizació"; if (__c.Msgbox2(BA.ObjectToCharSequence(_appupdater._newapp /*reparto_izca.keymon.lat.appupdater._mnewversion*/ .newMsg /*String*/ ),BA.ObjectToCharSequence("Actualización disponible"),"Si","","No",(android.graphics.Bitmap)(__c.Null),ba)==__c.DialogResponse.POSITIVE) { -RDebugUtils.currentLine=22347779; - //BA.debugLineNum = 22347779;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")"; + //BA.debugLineNum = 54;BA.debugLine="CallSubDelayed(appUpdater, \"download_newApk\")"; __c.CallSubDelayed(ba,(Object)(_appupdater.getObject()),"download_newApk"); }; -RDebugUtils.currentLine=22347782; - //BA.debugLineNum = 22347782;BA.debugLine="B4XPages.MainPage.ocultaProgreso"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ (null); -RDebugUtils.currentLine=22347783; - //BA.debugLineNum = 22347783;BA.debugLine="StartActivity(Main)"; + //BA.debugLineNum = 57;BA.debugLine="B4XPages.MainPage.ocultaProgreso"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ (); + //BA.debugLineNum = 58;BA.debugLine="StartActivity(Main)"; __c.StartActivity(ba,(Object)(_main.getObject())); -RDebugUtils.currentLine=22347785; - //BA.debugLineNum = 22347785;BA.debugLine="B4XPages.ShowPage(\"Login\")"; + //BA.debugLineNum = 60;BA.debugLine="B4XPages.ShowPage(\"Login\")"; _b4xpages._showpage /*String*/ (ba,"Login"); -RDebugUtils.currentLine=22347786; - //BA.debugLineNum = 22347786;BA.debugLine="End Sub"; + //BA.debugLineNum = 61;BA.debugLine="End Sub"; return ""; } -public String _sinactualizacion(reparto_izca.keymon.lat.c_updateavailable __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_updateavailable"; -if (Debug.shouldDelegate(ba, "sinactualizacion", false)) - {return ((String) Debug.delegate(ba, "sinactualizacion", null));} -RDebugUtils.currentLine=22413312; - //BA.debugLineNum = 22413312;BA.debugLine="Sub sinActualizacion"; -RDebugUtils.currentLine=22413313; - //BA.debugLineNum = 22413313;BA.debugLine="Msgbox(appUpdater.newApp.okMsg, \"Aplicación al co"; +public String _sinactualizacion() throws Exception{ + //BA.debugLineNum = 63;BA.debugLine="Sub sinActualizacion"; + //BA.debugLineNum = 64;BA.debugLine="Msgbox(appUpdater.newApp.okMsg, \"Aplicación al co"; __c.Msgbox(BA.ObjectToCharSequence(_appupdater._newapp /*reparto_izca.keymon.lat.appupdater._mnewversion*/ .okMsg /*String*/ ),BA.ObjectToCharSequence("Aplicación al corriente"),ba); -RDebugUtils.currentLine=22413315; - //BA.debugLineNum = 22413315;BA.debugLine="B4XPages.MainPage.ocultaProgreso"; -_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ (null); -RDebugUtils.currentLine=22413316; - //BA.debugLineNum = 22413316;BA.debugLine="B4XPages.ShowPage(\"Login\")"; + //BA.debugLineNum = 66;BA.debugLine="B4XPages.MainPage.ocultaProgreso"; +_b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (ba)._ocultaprogreso /*String*/ (); + //BA.debugLineNum = 67;BA.debugLine="B4XPages.ShowPage(\"Login\")"; _b4xpages._showpage /*String*/ (ba,"Login"); -RDebugUtils.currentLine=22413317; - //BA.debugLineNum = 22413317;BA.debugLine="End Sub"; + //BA.debugLineNum = 68;BA.debugLine="End Sub"; return ""; } -public String _b4xpage_created(reparto_izca.keymon.lat.c_updateavailable __ref,anywheresoftware.b4a.objects.B4XViewWrapper _root1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_updateavailable"; -if (Debug.shouldDelegate(ba, "b4xpage_created", false)) - {return ((String) Debug.delegate(ba, "b4xpage_created", new Object[] {_root1}));} -RDebugUtils.currentLine=22151168; - //BA.debugLineNum = 22151168;BA.debugLine="Private Sub B4XPage_Created (Root1 As B4XView)"; -RDebugUtils.currentLine=22151169; - //BA.debugLineNum = 22151169;BA.debugLine="Root = Root1"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = _root1; -RDebugUtils.currentLine=22151171; - //BA.debugLineNum = 22151171;BA.debugLine="Root.Color = Colors.Transparent"; -__ref._root /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setColor(__c.Colors.Transparent); -RDebugUtils.currentLine=22151172; - //BA.debugLineNum = 22151172;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; } -public String _class_globals(reparto_izca.keymon.lat.c_updateavailable __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="c_updateavailable"; -RDebugUtils.currentLine=22020096; - //BA.debugLineNum = 22020096;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=22020097; - //BA.debugLineNum = 22020097;BA.debugLine="Private Root As B4XView 'ignore"; -_root = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=22020098; - //BA.debugLineNum = 22020098;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=22020099; - //BA.debugLineNum = 22020099;BA.debugLine="End Sub"; -return ""; } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/cameraexclass.java b/B4A/Objects/src/reparto_izca/keymon/lat/cameraexclass.java index 1b54cc2..b4b6db3 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/cameraexclass.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/cameraexclass.java @@ -10,7 +10,7 @@ public class cameraexclass extends B4AClass.ImplB4AClass implements BA.SubDelega private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.cameraexclass"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.cameraexclass"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,13 +23,28 @@ public class cameraexclass extends B4AClass.ImplB4AClass implements BA.SubDelega ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } + public anywheresoftware.b4a.keywords.Common __c = null; +public Object _nativecam = null; +public anywheresoftware.b4a.objects.CameraW _cam = null; +public anywheresoftware.b4a.agraham.reflection.Reflection _r = null; +public Object _target = null; +public String _event = ""; +public boolean _front = false; +public Object _parameters = null; +public b4a.example.dateutils _dateutils = null; +public reparto_izca.keymon.lat.main _main = null; +public reparto_izca.keymon.lat.appupdater _appupdater = null; +public reparto_izca.keymon.lat.foto _foto = null; +public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null; +public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null; +public reparto_izca.keymon.lat.starter _starter = null; +public reparto_izca.keymon.lat.subs _subs = null; +public reparto_izca.keymon.lat.tracker _tracker = null; +public reparto_izca.keymon.lat.newinst2 _newinst2 = null; +public reparto_izca.keymon.lat.b4xpages _b4xpages = null; +public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; +public reparto_izca.keymon.lat.httputils2service _httputils2service = null; +public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; public static class _camerainfoandid{ public boolean IsInitialized; public Object CameraInfo; @@ -56,407 +71,281 @@ Height = 0; public String toString() { return BA.TypeToString(this, false); }} -public anywheresoftware.b4a.keywords.Common __c = null; -public Object _nativecam = null; -public anywheresoftware.b4a.objects.CameraW _cam = null; -public anywheresoftware.b4a.agraham.reflection.Reflection _r = null; -public Object _target = null; -public String _event = ""; -public boolean _front = false; -public Object _parameters = null; -public b4a.example.dateutils _dateutils = null; -public reparto_izca.keymon.lat.main _main = null; -public reparto_izca.keymon.lat.appupdater _appupdater = null; -public reparto_izca.keymon.lat.foto _foto = null; -public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null; -public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null; -public reparto_izca.keymon.lat.starter _starter = null; -public reparto_izca.keymon.lat.subs _subs = null; -public reparto_izca.keymon.lat.tracker _tracker = null; -public reparto_izca.keymon.lat.newinst2 _newinst2 = null; -public reparto_izca.keymon.lat.b4xpages _b4xpages = null; -public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; -public reparto_izca.keymon.lat.httputils2service _httputils2service = null; -public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _takepicture(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "takepicture", false)) - {return ((String) Debug.delegate(ba, "takepicture", null));} -RDebugUtils.currentLine=22872064; - //BA.debugLineNum = 22872064;BA.debugLine="Public Sub TakePicture"; -RDebugUtils.currentLine=22872065; - //BA.debugLineNum = 22872065;BA.debugLine="cam.TakePicture"; -__ref._cam /*anywheresoftware.b4a.objects.CameraW*/ .TakePicture(); -RDebugUtils.currentLine=22872066; - //BA.debugLineNum = 22872066;BA.debugLine="End Sub"; -return ""; -} -public String _savepicturetofile(reparto_izca.keymon.lat.cameraexclass __ref,byte[] _data,String _dir,String _filename) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "savepicturetofile", false)) - {return ((String) Debug.delegate(ba, "savepicturetofile", new Object[] {_data,_dir,_filename}));} -anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; -RDebugUtils.currentLine=23199744; - //BA.debugLineNum = 23199744;BA.debugLine="Public Sub SavePictureToFile(Data() As Byte, Dir A"; -RDebugUtils.currentLine=23199745; - //BA.debugLineNum = 23199745;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); -RDebugUtils.currentLine=23199746; - //BA.debugLineNum = 23199746;BA.debugLine="out.WriteBytes(Data, 0, Data.Length)"; -_out.WriteBytes(_data,(int) (0),_data.length); -RDebugUtils.currentLine=23199747; - //BA.debugLineNum = 23199747;BA.debugLine="out.Close"; -_out.Close(); -RDebugUtils.currentLine=23199748; - //BA.debugLineNum = 23199748;BA.debugLine="End Sub"; -return ""; -} -public String _startpreview(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "startpreview", false)) - {return ((String) Debug.delegate(ba, "startpreview", null));} -RDebugUtils.currentLine=23003136; - //BA.debugLineNum = 23003136;BA.debugLine="Public Sub StartPreview"; -RDebugUtils.currentLine=23003137; - //BA.debugLineNum = 23003137;BA.debugLine="cam.StartPreview"; -__ref._cam /*anywheresoftware.b4a.objects.CameraW*/ .StartPreview(); -RDebugUtils.currentLine=23003138; - //BA.debugLineNum = 23003138;BA.debugLine="End Sub"; -return ""; -} -public String _setjpegquality(reparto_izca.keymon.lat.cameraexclass __ref,int _quality) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "setjpegquality", false)) - {return ((String) Debug.delegate(ba, "setjpegquality", new Object[] {_quality}));} -RDebugUtils.currentLine=23724032; - //BA.debugLineNum = 23724032;BA.debugLine="Public Sub SetJpegQuality(Quality As Int)"; -RDebugUtils.currentLine=23724033; - //BA.debugLineNum = 23724033;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=23724034; - //BA.debugLineNum = 23724034;BA.debugLine="r.RunMethod2(\"setJpegQuality\", Quality, \"java.lan"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod2("setJpegQuality",BA.NumberToString(_quality),"java.lang.int"); -RDebugUtils.currentLine=23724035; - //BA.debugLineNum = 23724035;BA.debugLine="End Sub"; -return ""; -} -public String _setcontinuousautofocus(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "setcontinuousautofocus", false)) - {return ((String) Debug.delegate(ba, "setcontinuousautofocus", null));} -anywheresoftware.b4a.objects.collections.List _modes = null; -RDebugUtils.currentLine=24313856; - //BA.debugLineNum = 24313856;BA.debugLine="Public Sub SetContinuousAutoFocus"; -RDebugUtils.currentLine=24313857; - //BA.debugLineNum = 24313857;BA.debugLine="Dim modes As List = GetSupportedFocusModes"; -_modes = new anywheresoftware.b4a.objects.collections.List(); -_modes = __ref._getsupportedfocusmodes /*anywheresoftware.b4a.objects.collections.List*/ (null); -RDebugUtils.currentLine=24313858; - //BA.debugLineNum = 24313858;BA.debugLine="If modes.IndexOf(\"continuous-picture\") > -1 Th"; -if (_modes.IndexOf((Object)("continuous-picture"))>-1) { -RDebugUtils.currentLine=24313859; - //BA.debugLineNum = 24313859;BA.debugLine="SetFocusMode(\"continuous-picture\")"; -__ref._setfocusmode /*String*/ (null,"continuous-picture"); - }else -{RDebugUtils.currentLine=24313860; - //BA.debugLineNum = 24313860;BA.debugLine="Else If modes.IndexOf(\"continuous-video\") > -1"; -if (_modes.IndexOf((Object)("continuous-video"))>-1) { -RDebugUtils.currentLine=24313861; - //BA.debugLineNum = 24313861;BA.debugLine="SetFocusMode(\"continuous-video\")"; -__ref._setfocusmode /*String*/ (null,"continuous-video"); +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 { -RDebugUtils.currentLine=24313863; - //BA.debugLineNum = 24313863;BA.debugLine="Log(\"Continuous focus mode is not availabl"; -__c.LogImpl("224313863","Continuous focus mode is not available",0); - }} -; -RDebugUtils.currentLine=24313865; - //BA.debugLineNum = 24313865;BA.debugLine="End Sub"; + //BA.debugLineNum = 279;BA.debugLine="Log(\"AutoFocus error.\")"; +__c.LogImpl("024903684","AutoFocus error.",0); + }; + //BA.debugLineNum = 281;BA.debugLine="End Sub"; return ""; } -public String _commitparameters(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "commitparameters", false)) - {return ((String) Debug.delegate(ba, "commitparameters", null));} -RDebugUtils.currentLine=23396352; - //BA.debugLineNum = 23396352;BA.debugLine="Public Sub CommitParameters"; -RDebugUtils.currentLine=23396353; - //BA.debugLineNum = 23396353;BA.debugLine="Try"; -try {RDebugUtils.currentLine=23396354; - //BA.debugLineNum = 23396354;BA.debugLine="r.target = nativeCam"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._nativecam /*Object*/ ; -RDebugUtils.currentLine=23396355; - //BA.debugLineNum = 23396355;BA.debugLine="r.RunMethod4(\"setParameters\", Array As Object(pa"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod4("setParameters",new Object[]{__ref._parameters /*Object*/ },new String[]{"android.hardware.Camera$Parameters"}); +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("023003144","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);RDebugUtils.currentLine=23396357; - //BA.debugLineNum = 23396357;BA.debugLine="ToastMessageShow(\"Error setting parameters.\", Tr"; + ba.setLastException(e5); //BA.debugLineNum = 142;BA.debugLine="ToastMessageShow(\"Error setting parameters.\", Tr"; __c.ToastMessageShow(BA.ObjectToCharSequence("Error setting parameters."),__c.True); -RDebugUtils.currentLine=23396358; - //BA.debugLineNum = 23396358;BA.debugLine="Log(LastException)"; -__c.LogImpl("223396358",BA.ObjectToString(__c.LastException(ba)),0); + //BA.debugLineNum = 143;BA.debugLine="Log(LastException)"; +__c.LogImpl("023658502",BA.ObjectToString(__c.LastException(ba)),0); }; -RDebugUtils.currentLine=23396360; - //BA.debugLineNum = 23396360;BA.debugLine="End Sub"; + //BA.debugLineNum = 145;BA.debugLine="End Sub"; return ""; } -public reparto_izca.keymon.lat.cameraexclass._camerasize _getpreviewsize(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "getpreviewsize", false)) - {return ((reparto_izca.keymon.lat.cameraexclass._camerasize) Debug.delegate(ba, "getpreviewsize", null));} -reparto_izca.keymon.lat.cameraexclass._camerasize _cs = null; -RDebugUtils.currentLine=24051712; - //BA.debugLineNum = 24051712;BA.debugLine="Public Sub GetPreviewSize As CameraSize"; -RDebugUtils.currentLine=24051713; - //BA.debugLineNum = 24051713;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=24051714; - //BA.debugLineNum = 24051714;BA.debugLine="r.target = r.RunMethod(\"getPreviewSize\")"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getPreviewSize"); -RDebugUtils.currentLine=24051715; - //BA.debugLineNum = 24051715;BA.debugLine="Dim cs As CameraSize"; -_cs = new reparto_izca.keymon.lat.cameraexclass._camerasize(); -RDebugUtils.currentLine=24051716; - //BA.debugLineNum = 24051716;BA.debugLine="cs.Width = r.GetField(\"width\")"; -_cs.Width /*int*/ = (int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("width"))); -RDebugUtils.currentLine=24051717; - //BA.debugLineNum = 24051717;BA.debugLine="cs.Height = r.GetField(\"height\")"; -_cs.Height /*int*/ = (int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("height"))); -RDebugUtils.currentLine=24051718; - //BA.debugLineNum = 24051718;BA.debugLine="Return cs"; -if (true) return _cs; -RDebugUtils.currentLine=24051719; - //BA.debugLineNum = 24051719;BA.debugLine="End Sub"; +public reparto_izca.keymon.lat.cameraexclass._camerainfoandid _findcamera(boolean _frontcamera) throws Exception{ +reparto_izca.keymon.lat.cameraexclass._camerainfoandid _ci = null; +Object _camerainfo = null; +int _cameravalue = 0; +int _numberofcameras = 0; +int _i = 0; + //BA.debugLineNum = 36;BA.debugLine="Private Sub FindCamera (frontCamera As Boolean) As"; + //BA.debugLineNum = 37;BA.debugLine="Dim ci As CameraInfoAndId"; +_ci = new reparto_izca.keymon.lat.cameraexclass._camerainfoandid(); + //BA.debugLineNum = 38;BA.debugLine="Dim cameraInfo As Object"; +_camerainfo = new Object(); + //BA.debugLineNum = 39;BA.debugLine="Dim cameraValue As Int"; +_cameravalue = 0; + //BA.debugLineNum = 40;BA.debugLine="If frontCamera Then cameraValue = 1 Else cameraVa"; +if (_frontcamera) { +_cameravalue = (int) (1);} +else { +_cameravalue = (int) (0);}; + //BA.debugLineNum = 41;BA.debugLine="cameraInfo = r.CreateObject(\"android.hardware.Cam"; +_camerainfo = _r.CreateObject("android.hardware.Camera$CameraInfo"); + //BA.debugLineNum = 42;BA.debugLine="Dim numberOfCameras As Int = r.RunStaticMethod(\"a"; +_numberofcameras = (int)(BA.ObjectToNumber(_r.RunStaticMethod("android.hardware.Camera","getNumberOfCameras",(Object[])(__c.Null),(String[])(__c.Null)))); + //BA.debugLineNum = 43;BA.debugLine="For i = 0 To numberOfCameras - 1"; +{ +final int step7 = 1; +final int limit7 = (int) (_numberofcameras-1); +_i = (int) (0) ; +for (;_i <= limit7 ;_i = _i + step7 ) { + //BA.debugLineNum = 44;BA.debugLine="r.RunStaticMethod(\"android.hardware.Camera\", \"ge"; +_r.RunStaticMethod("android.hardware.Camera","getCameraInfo",new Object[]{(Object)(_i),_camerainfo},new String[]{"java.lang.int","android.hardware.Camera$CameraInfo"}); + //BA.debugLineNum = 46;BA.debugLine="r.target = cameraInfo"; +_r.Target = _camerainfo; + //BA.debugLineNum = 47;BA.debugLine="If r.GetField(\"facing\") = cameraValue Then"; +if ((_r.GetField("facing")).equals((Object)(_cameravalue))) { + //BA.debugLineNum = 48;BA.debugLine="ci.cameraInfo = r.target"; +_ci.CameraInfo /*Object*/ = _r.Target; + //BA.debugLineNum = 49;BA.debugLine="ci.Id = i"; +_ci.Id /*int*/ = _i; + //BA.debugLineNum = 50;BA.debugLine="Return ci"; +if (true) return _ci; + }; + } +}; + //BA.debugLineNum = 53;BA.debugLine="ci.id = -1"; +_ci.Id /*int*/ = (int) (-1); + //BA.debugLineNum = 54;BA.debugLine="Return ci"; +if (true) return _ci; + //BA.debugLineNum = 55;BA.debugLine="End Sub"; return null; } -public String _initialize(reparto_izca.keymon.lat.cameraexclass __ref,anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.PanelWrapper _panel1,boolean _frontcamera,Object _targetmodule,String _eventname) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_panel1,_frontcamera,_targetmodule,_eventname}));} -int _id = 0; -RDebugUtils.currentLine=22544384; - //BA.debugLineNum = 22544384;BA.debugLine="Public Sub Initialize (Panel1 As Panel, FrontCamer"; -RDebugUtils.currentLine=22544385; - //BA.debugLineNum = 22544385;BA.debugLine="target = TargetModule"; -__ref._target /*Object*/ = _targetmodule; -RDebugUtils.currentLine=22544386; - //BA.debugLineNum = 22544386;BA.debugLine="event = EventName"; -__ref._event /*String*/ = _eventname; -RDebugUtils.currentLine=22544387; - //BA.debugLineNum = 22544387;BA.debugLine="Front = FrontCamera"; -__ref._front /*boolean*/ = _frontcamera; -RDebugUtils.currentLine=22544388; - //BA.debugLineNum = 22544388;BA.debugLine="Dim id As Int"; -_id = 0; -RDebugUtils.currentLine=22544389; - //BA.debugLineNum = 22544389;BA.debugLine="id = FindCamera(Front).id"; -_id = __ref._findcamera /*reparto_izca.keymon.lat.cameraexclass._camerainfoandid*/ (null,__ref._front /*boolean*/ ).Id /*int*/ ; -RDebugUtils.currentLine=22544390; - //BA.debugLineNum = 22544390;BA.debugLine="If id = -1 Then"; -if (_id==-1) { -RDebugUtils.currentLine=22544391; - //BA.debugLineNum = 22544391;BA.debugLine="Front = Not(Front) 'try different camera"; -__ref._front /*boolean*/ = __c.Not(__ref._front /*boolean*/ ); -RDebugUtils.currentLine=22544392; - //BA.debugLineNum = 22544392;BA.debugLine="id = FindCamera(Front).id"; -_id = __ref._findcamera /*reparto_izca.keymon.lat.cameraexclass._camerainfoandid*/ (null,__ref._front /*boolean*/ ).Id /*int*/ ; -RDebugUtils.currentLine=22544393; - //BA.debugLineNum = 22544393;BA.debugLine="If id = -1 Then"; -if (_id==-1) { -RDebugUtils.currentLine=22544394; - //BA.debugLineNum = 22544394;BA.debugLine="ToastMessageShow(\"No camera found.\", True)"; -__c.ToastMessageShow(BA.ObjectToCharSequence("No camera found."),__c.True); -RDebugUtils.currentLine=22544395; - //BA.debugLineNum = 22544395;BA.debugLine="Return"; -if (true) return ""; - }; - }; -RDebugUtils.currentLine=22544398; - //BA.debugLineNum = 22544398;BA.debugLine="cam.Initialize2(Panel1, \"camera\", id)"; -__ref._cam /*anywheresoftware.b4a.objects.CameraW*/ .Initialize2(ba,(android.view.ViewGroup)(_panel1.getObject()),"camera",_id); -RDebugUtils.currentLine=22544399; - //BA.debugLineNum = 22544399;BA.debugLine="End Sub"; +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 _release(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "release", false)) - {return ((String) Debug.delegate(ba, "release", null));} -RDebugUtils.currentLine=23134208; - //BA.debugLineNum = 23134208;BA.debugLine="Public Sub Release"; -RDebugUtils.currentLine=23134209; - //BA.debugLineNum = 23134209;BA.debugLine="cam.Release"; -__ref._cam /*anywheresoftware.b4a.objects.CameraW*/ .Release(); -RDebugUtils.currentLine=23134210; - //BA.debugLineNum = 23134210;BA.debugLine="End Sub"; +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 anywheresoftware.b4a.objects.collections.List _getsupportedcoloreffects(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "getsupportedcoloreffects", false)) - {return ((anywheresoftware.b4a.objects.collections.List) Debug.delegate(ba, "getsupportedcoloreffects", null));} -RDebugUtils.currentLine=23986176; - //BA.debugLineNum = 23986176;BA.debugLine="Public Sub GetSupportedColorEffects As List"; -RDebugUtils.currentLine=23986177; - //BA.debugLineNum = 23986177;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=23986178; - //BA.debugLineNum = 23986178;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)(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getSupportedColorEffects"))); -RDebugUtils.currentLine=23986179; - //BA.debugLineNum = 23986179;BA.debugLine="End Sub"; -return null; -} -public String _getcoloreffect(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "getcoloreffect", false)) - {return ((String) Debug.delegate(ba, "getcoloreffect", null));} -RDebugUtils.currentLine=23461888; - //BA.debugLineNum = 23461888;BA.debugLine="Public Sub GetColorEffect As String"; -RDebugUtils.currentLine=23461889; - //BA.debugLineNum = 23461889;BA.debugLine="Return GetParameter(\"effect\")"; -if (true) return __ref._getparameter /*String*/ (null,"effect"); -RDebugUtils.currentLine=23461890; - //BA.debugLineNum = 23461890;BA.debugLine="End Sub"; +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 String _setcoloreffect(reparto_izca.keymon.lat.cameraexclass __ref,String _effect) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "setcoloreffect", false)) - {return ((String) Debug.delegate(ba, "setcoloreffect", new Object[] {_effect}));} -RDebugUtils.currentLine=23527424; - //BA.debugLineNum = 23527424;BA.debugLine="Public Sub SetColorEffect(Effect As String)"; -RDebugUtils.currentLine=23527425; - //BA.debugLineNum = 23527425;BA.debugLine="SetParameter(\"effect\", Effect)"; -__ref._setparameter /*String*/ (null,"effect",_effect); -RDebugUtils.currentLine=23527426; - //BA.debugLineNum = 23527426;BA.debugLine="End Sub"; -return ""; -} -public float[] _getfocusdistances(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "getfocusdistances", false)) - {return ((float[]) Debug.delegate(ba, "getfocusdistances", null));} +public float[] _getfocusdistances() throws Exception{ float[] _f = null; -RDebugUtils.currentLine=24444928; - //BA.debugLineNum = 24444928;BA.debugLine="Public Sub GetFocusDistances As Float()"; -RDebugUtils.currentLine=24444929; - //BA.debugLineNum = 24444929;BA.debugLine="Dim F(3) As Float"; + //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)]; ; -RDebugUtils.currentLine=24444930; - //BA.debugLineNum = 24444930;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=24444931; - //BA.debugLineNum = 24444931;BA.debugLine="r.RunMethod4(\"getFocusDistances\", Array As Object"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod4("getFocusDistances",new Object[]{(Object)(_f)},new String[]{"[F"}); -RDebugUtils.currentLine=24444932; - //BA.debugLineNum = 24444932;BA.debugLine="Return F"; + //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; -RDebugUtils.currentLine=24444933; - //BA.debugLineNum = 24444933;BA.debugLine="End Sub"; + //BA.debugLineNum = 263;BA.debugLine="End Sub"; return null; } -public anywheresoftware.b4a.objects.collections.List _getsupportedflashmodes(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "getsupportedflashmodes", false)) - {return ((anywheresoftware.b4a.objects.collections.List) Debug.delegate(ba, "getsupportedflashmodes", null));} -RDebugUtils.currentLine=23920640; - //BA.debugLineNum = 23920640;BA.debugLine="Public Sub GetSupportedFlashModes As List"; -RDebugUtils.currentLine=23920641; - //BA.debugLineNum = 23920641;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=23920642; - //BA.debugLineNum = 23920642;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)(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getSupportedFlashModes"))); -RDebugUtils.currentLine=23920643; - //BA.debugLineNum = 23920643;BA.debugLine="End Sub"; +public String _getparameter(String _key) throws Exception{ + //BA.debugLineNum = 132;BA.debugLine="Public Sub GetParameter(Key As String) As String"; + //BA.debugLineNum = 133;BA.debugLine="r.target = parameters"; +_r.Target = _parameters; + //BA.debugLineNum = 134;BA.debugLine="Return r.RunMethod2(\"get\", Key, \"java.lang.String"; +if (true) return BA.ObjectToString(_r.RunMethod2("get",_key,"java.lang.String")); + //BA.debugLineNum = 135;BA.debugLine="End Sub"; +return ""; +} +public reparto_izca.keymon.lat.cameraexclass._camerasize _getpicturesize() throws Exception{ +reparto_izca.keymon.lat.cameraexclass._camerasize _cs = null; + //BA.debugLineNum = 206;BA.debugLine="Public Sub GetPictureSize As CameraSize"; + //BA.debugLineNum = 207;BA.debugLine="r.target = parameters"; +_r.Target = _parameters; + //BA.debugLineNum = 208;BA.debugLine="r.target = r.RunMethod(\"getPictureSize\")"; +_r.Target = _r.RunMethod("getPictureSize"); + //BA.debugLineNum = 209;BA.debugLine="Dim cs As CameraSize"; +_cs = new reparto_izca.keymon.lat.cameraexclass._camerasize(); + //BA.debugLineNum = 210;BA.debugLine="cs.Width = r.GetField(\"width\")"; +_cs.Width /*int*/ = (int)(BA.ObjectToNumber(_r.GetField("width"))); + //BA.debugLineNum = 211;BA.debugLine="cs.Height = r.GetField(\"height\")"; +_cs.Height /*int*/ = (int)(BA.ObjectToNumber(_r.GetField("height"))); + //BA.debugLineNum = 212;BA.debugLine="Return cs"; +if (true) return _cs; + //BA.debugLineNum = 213;BA.debugLine="End Sub"; return null; } -public String _getflashmode(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "getflashmode", false)) - {return ((String) Debug.delegate(ba, "getflashmode", null));} -RDebugUtils.currentLine=23855104; - //BA.debugLineNum = 23855104;BA.debugLine="Public Sub GetFlashMode As String"; -RDebugUtils.currentLine=23855105; - //BA.debugLineNum = 23855105;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=23855106; - //BA.debugLineNum = 23855106;BA.debugLine="Return r.RunMethod(\"getFlashMode\")"; -if (true) return BA.ObjectToString(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getFlashMode")); -RDebugUtils.currentLine=23855107; - //BA.debugLineNum = 23855107;BA.debugLine="End Sub"; -return ""; +public reparto_izca.keymon.lat.cameraexclass._camerasize _getpreviewsize() throws Exception{ +reparto_izca.keymon.lat.cameraexclass._camerasize _cs = null; + //BA.debugLineNum = 197;BA.debugLine="Public Sub GetPreviewSize As CameraSize"; + //BA.debugLineNum = 198;BA.debugLine="r.target = parameters"; +_r.Target = _parameters; + //BA.debugLineNum = 199;BA.debugLine="r.target = r.RunMethod(\"getPreviewSize\")"; +_r.Target = _r.RunMethod("getPreviewSize"); + //BA.debugLineNum = 200;BA.debugLine="Dim cs As CameraSize"; +_cs = new reparto_izca.keymon.lat.cameraexclass._camerasize(); + //BA.debugLineNum = 201;BA.debugLine="cs.Width = r.GetField(\"width\")"; +_cs.Width /*int*/ = (int)(BA.ObjectToNumber(_r.GetField("width"))); + //BA.debugLineNum = 202;BA.debugLine="cs.Height = r.GetField(\"height\")"; +_cs.Height /*int*/ = (int)(BA.ObjectToNumber(_r.GetField("height"))); + //BA.debugLineNum = 203;BA.debugLine="Return cs"; +if (true) return _cs; + //BA.debugLineNum = 204;BA.debugLine="End Sub"; +return null; } -public String _setflashmode(reparto_izca.keymon.lat.cameraexclass __ref,String _mode) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "setflashmode", false)) - {return ((String) Debug.delegate(ba, "setflashmode", new Object[] {_mode}));} -RDebugUtils.currentLine=23789568; - //BA.debugLineNum = 23789568;BA.debugLine="Public Sub SetFlashMode(Mode As String)"; -RDebugUtils.currentLine=23789569; - //BA.debugLineNum = 23789569;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=23789570; - //BA.debugLineNum = 23789570;BA.debugLine="r.RunMethod2(\"setFlashMode\", Mode, \"java.lang.Str"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod2("setFlashMode",_mode,"java.lang.String"); -RDebugUtils.currentLine=23789571; - //BA.debugLineNum = 23789571;BA.debugLine="End Sub"; -return ""; +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 String _focusandtakepicture(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "focusandtakepicture", false)) - {return ((String) Debug.delegate(ba, "focusandtakepicture", null));} -RDebugUtils.currentLine=24576000; - //BA.debugLineNum = 24576000;BA.debugLine="Public Sub FocusAndTakePicture"; -RDebugUtils.currentLine=24576001; - //BA.debugLineNum = 24576001;BA.debugLine="cam.AutoFocus"; -__ref._cam /*anywheresoftware.b4a.objects.CameraW*/ .AutoFocus(); -RDebugUtils.currentLine=24576002; - //BA.debugLineNum = 24576002;BA.debugLine="End Sub"; -return ""; +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 reparto_izca.keymon.lat.cameraexclass._camerasize[] _getsupportedpicturessizes(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "getsupportedpicturessizes", false)) - {return ((reparto_izca.keymon.lat.cameraexclass._camerasize[]) Debug.delegate(ba, "getsupportedpicturessizes", null));} +public anywheresoftware.b4a.objects.collections.List _getsupportedfocusmodes() throws Exception{ + //BA.debugLineNum = 237;BA.debugLine="Public Sub GetSupportedFocusModes As List"; + //BA.debugLineNum = 238;BA.debugLine="r.target = parameters"; +_r.Target = _parameters; + //BA.debugLineNum = 239;BA.debugLine="Return r.RunMethod(\"getSupportedFocusModes\")"; +if (true) return (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_r.RunMethod("getSupportedFocusModes"))); + //BA.debugLineNum = 240;BA.debugLine="End Sub"; +return null; +} +public reparto_izca.keymon.lat.cameraexclass._camerasize[] _getsupportedpicturessizes() throws Exception{ anywheresoftware.b4a.objects.collections.List _list1 = null; reparto_izca.keymon.lat.cameraexclass._camerasize[] _cs = null; int _i = 0; -RDebugUtils.currentLine=23592960; - //BA.debugLineNum = 23592960;BA.debugLine="Public Sub GetSupportedPicturesSizes As CameraSize"; -RDebugUtils.currentLine=23592961; - //BA.debugLineNum = 23592961;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=23592962; - //BA.debugLineNum = 23592962;BA.debugLine="Dim list1 As List = r.RunMethod(\"getSupportedPict"; + //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)(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getSupportedPictureSizes"))); -RDebugUtils.currentLine=23592963; - //BA.debugLineNum = 23592963;BA.debugLine="Dim cs(list1.Size) As CameraSize"; +_list1 = (anywheresoftware.b4a.objects.collections.List) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.collections.List(), (java.util.List)(_r.RunMethod("getSupportedPictureSizes"))); + //BA.debugLineNum = 158;BA.debugLine="Dim cs(list1.Size) As CameraSize"; _cs = new reparto_izca.keymon.lat.cameraexclass._camerasize[_list1.getSize()]; { int d0 = _cs.length; @@ -465,415 +354,59 @@ _cs[i0] = new reparto_izca.keymon.lat.cameraexclass._camerasize(); } } ; -RDebugUtils.currentLine=23592964; - //BA.debugLineNum = 23592964;BA.debugLine="For i = 0 To list1.Size - 1"; + //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 ) { -RDebugUtils.currentLine=23592965; - //BA.debugLineNum = 23592965;BA.debugLine="r.target = list1.Get(i)"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = _list1.Get(_i); -RDebugUtils.currentLine=23592966; - //BA.debugLineNum = 23592966;BA.debugLine="cs(i).Width = r.GetField(\"width\")"; -_cs[_i].Width /*int*/ = (int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("width"))); -RDebugUtils.currentLine=23592967; - //BA.debugLineNum = 23592967;BA.debugLine="cs(i).Height = r.GetField(\"height\")"; -_cs[_i].Height /*int*/ = (int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("height"))); + //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"))); } }; -RDebugUtils.currentLine=23592969; - //BA.debugLineNum = 23592969;BA.debugLine="Return cs"; + //BA.debugLineNum = 164;BA.debugLine="Return cs"; if (true) return _cs; -RDebugUtils.currentLine=23592970; - //BA.debugLineNum = 23592970;BA.debugLine="End Sub"; + //BA.debugLineNum = 165;BA.debugLine="End Sub"; return null; } -public reparto_izca.keymon.lat.cameraexclass._camerasize _getpicturesize(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "getpicturesize", false)) - {return ((reparto_izca.keymon.lat.cameraexclass._camerasize) Debug.delegate(ba, "getpicturesize", null));} -reparto_izca.keymon.lat.cameraexclass._camerasize _cs = null; -RDebugUtils.currentLine=24117248; - //BA.debugLineNum = 24117248;BA.debugLine="Public Sub GetPictureSize As CameraSize"; -RDebugUtils.currentLine=24117249; - //BA.debugLineNum = 24117249;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=24117250; - //BA.debugLineNum = 24117250;BA.debugLine="r.target = r.RunMethod(\"getPictureSize\")"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getPictureSize"); -RDebugUtils.currentLine=24117251; - //BA.debugLineNum = 24117251;BA.debugLine="Dim cs As CameraSize"; -_cs = new reparto_izca.keymon.lat.cameraexclass._camerasize(); -RDebugUtils.currentLine=24117252; - //BA.debugLineNum = 24117252;BA.debugLine="cs.Width = r.GetField(\"width\")"; -_cs.Width /*int*/ = (int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("width"))); -RDebugUtils.currentLine=24117253; - //BA.debugLineNum = 24117253;BA.debugLine="cs.Height = r.GetField(\"height\")"; -_cs.Height /*int*/ = (int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("height"))); -RDebugUtils.currentLine=24117254; - //BA.debugLineNum = 24117254;BA.debugLine="Return cs"; -if (true) return _cs; -RDebugUtils.currentLine=24117255; - //BA.debugLineNum = 24117255;BA.debugLine="End Sub"; -return null; -} -public String _setpicturesize(reparto_izca.keymon.lat.cameraexclass __ref,int _width,int _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "setpicturesize", false)) - {return ((String) Debug.delegate(ba, "setpicturesize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=23658496; - //BA.debugLineNum = 23658496;BA.debugLine="Public Sub SetPictureSize(Width As Int, Height As"; -RDebugUtils.currentLine=23658497; - //BA.debugLineNum = 23658497;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=23658498; - //BA.debugLineNum = 23658498;BA.debugLine="r.RunMethod3(\"setPictureSize\", Width, \"java.lang."; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod3("setPictureSize",BA.NumberToString(_width),"java.lang.int",BA.NumberToString(_height),"java.lang.int"); -RDebugUtils.currentLine=23658499; - //BA.debugLineNum = 23658499;BA.debugLine="End Sub"; -return ""; -} -public String _camera_focusdone(reparto_izca.keymon.lat.cameraexclass __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "camera_focusdone", false)) - {return ((String) Debug.delegate(ba, "camera_focusdone", new Object[] {_success}));} -RDebugUtils.currentLine=24641536; - //BA.debugLineNum = 24641536;BA.debugLine="Private Sub Camera_FocusDone (Success As Boolean)"; -RDebugUtils.currentLine=24641537; - //BA.debugLineNum = 24641537;BA.debugLine="If Success Then"; -if (_success) { -RDebugUtils.currentLine=24641538; - //BA.debugLineNum = 24641538;BA.debugLine="TakePicture"; -__ref._takepicture /*String*/ (null); - }else { -RDebugUtils.currentLine=24641540; - //BA.debugLineNum = 24641540;BA.debugLine="Log(\"AutoFocus error.\")"; -__c.LogImpl("224641540","AutoFocus error.",0); +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 ""; }; -RDebugUtils.currentLine=24641542; - //BA.debugLineNum = 24641542;BA.debugLine="End Sub"; -return ""; -} -public String _camera_picturetaken(reparto_izca.keymon.lat.cameraexclass __ref,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "camera_picturetaken", false)) - {return ((String) Debug.delegate(ba, "camera_picturetaken", new Object[] {_data}));} -RDebugUtils.currentLine=22937600; - //BA.debugLineNum = 22937600;BA.debugLine="Private Sub Camera_PictureTaken (Data() As Byte)"; -RDebugUtils.currentLine=22937601; - //BA.debugLineNum = 22937601;BA.debugLine="CallSub2(target, event & \"_PictureTaken\", Data)"; -__c.CallSubNew2(ba,__ref._target /*Object*/ ,__ref._event /*String*/ +"_PictureTaken",(Object)(_data)); -RDebugUtils.currentLine=22937602; - //BA.debugLineNum = 22937602;BA.debugLine="End Sub"; -return ""; -} -public String _camera_preview(reparto_izca.keymon.lat.cameraexclass __ref,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "camera_preview", false)) - {return ((String) Debug.delegate(ba, "camera_preview", new Object[] {_data}));} -RDebugUtils.currentLine=22806528; - //BA.debugLineNum = 22806528;BA.debugLine="Sub Camera_Preview (Data() As Byte)"; -RDebugUtils.currentLine=22806529; - //BA.debugLineNum = 22806529;BA.debugLine="If SubExists(target, event & \"_preview\") Then"; -if (__c.SubExists(ba,__ref._target /*Object*/ ,__ref._event /*String*/ +"_preview")) { -RDebugUtils.currentLine=22806530; - //BA.debugLineNum = 22806530;BA.debugLine="CallSub2(target, event & \"_preview\", Data)"; -__c.CallSubNew2(ba,__ref._target /*Object*/ ,__ref._event /*String*/ +"_preview",(Object)(_data)); }; -RDebugUtils.currentLine=22806532; - //BA.debugLineNum = 22806532;BA.debugLine="End Sub"; + //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 String _camera_ready(reparto_izca.keymon.lat.cameraexclass __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "camera_ready", false)) - {return ((String) Debug.delegate(ba, "camera_ready", new Object[] {_success}));} -RDebugUtils.currentLine=22740992; - //BA.debugLineNum = 22740992;BA.debugLine="Private Sub Camera_Ready (Success As Boolean)"; -RDebugUtils.currentLine=22740993; - //BA.debugLineNum = 22740993;BA.debugLine="If Success Then"; -if (_success) { -RDebugUtils.currentLine=22740994; - //BA.debugLineNum = 22740994;BA.debugLine="r.target = cam"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = (Object)(__ref._cam /*anywheresoftware.b4a.objects.CameraW*/ ); -RDebugUtils.currentLine=22740995; - //BA.debugLineNum = 22740995;BA.debugLine="nativeCam = r.GetField(\"camera\")"; -__ref._nativecam /*Object*/ = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("camera"); -RDebugUtils.currentLine=22740996; - //BA.debugLineNum = 22740996;BA.debugLine="r.target = nativeCam"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._nativecam /*Object*/ ; -RDebugUtils.currentLine=22740997; - //BA.debugLineNum = 22740997;BA.debugLine="parameters = r.RunMethod(\"getParameters\")"; -__ref._parameters /*Object*/ = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getParameters"); -RDebugUtils.currentLine=22740998; - //BA.debugLineNum = 22740998;BA.debugLine="SetDisplayOrientation"; -__ref._setdisplayorientation /*String*/ (null); - }else { -RDebugUtils.currentLine=22741000; - //BA.debugLineNum = 22741000;BA.debugLine="Log(\"success = false, \" & LastException)"; -__c.LogImpl("222741000","success = false, "+BA.ObjectToString(__c.LastException(ba)),0); - }; -RDebugUtils.currentLine=22741002; - //BA.debugLineNum = 22741002;BA.debugLine="CallSub2(target, event & \"_ready\", Success)"; -__c.CallSubNew2(ba,__ref._target /*Object*/ ,__ref._event /*String*/ +"_ready",(Object)(_success)); -RDebugUtils.currentLine=22741003; - //BA.debugLineNum = 22741003;BA.debugLine="End Sub"; -return ""; -} -public String _setdisplayorientation(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "setdisplayorientation", false)) - {return ((String) Debug.delegate(ba, "setdisplayorientation", null));} -int _previewresult = 0; -int _result = 0; -int _degrees = 0; -reparto_izca.keymon.lat.cameraexclass._camerainfoandid _ci = null; -int _orientation = 0; -RDebugUtils.currentLine=22675456; - //BA.debugLineNum = 22675456;BA.debugLine="Private Sub SetDisplayOrientation"; -RDebugUtils.currentLine=22675457; - //BA.debugLineNum = 22675457;BA.debugLine="r.target = r.GetActivity"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = (Object)(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetActivity(ba)); -RDebugUtils.currentLine=22675458; - //BA.debugLineNum = 22675458;BA.debugLine="r.target = r.RunMethod(\"getWindowManager\")"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getWindowManager"); -RDebugUtils.currentLine=22675459; - //BA.debugLineNum = 22675459;BA.debugLine="r.target = r.RunMethod(\"getDefaultDisplay\")"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getDefaultDisplay"); -RDebugUtils.currentLine=22675460; - //BA.debugLineNum = 22675460;BA.debugLine="r.target = r.RunMethod(\"getRotation\")"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getRotation"); -RDebugUtils.currentLine=22675461; - //BA.debugLineNum = 22675461;BA.debugLine="Dim previewResult, result, degrees As Int = r.tar"; -_previewresult = 0; -_result = 0; -_degrees = (int) ((double)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target))*90); -RDebugUtils.currentLine=22675462; - //BA.debugLineNum = 22675462;BA.debugLine="Dim ci As CameraInfoAndId = FindCamera(Front)"; -_ci = __ref._findcamera /*reparto_izca.keymon.lat.cameraexclass._camerainfoandid*/ (null,__ref._front /*boolean*/ ); -RDebugUtils.currentLine=22675463; - //BA.debugLineNum = 22675463;BA.debugLine="r.target = ci.CameraInfo"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = _ci.CameraInfo /*Object*/ ; -RDebugUtils.currentLine=22675464; - //BA.debugLineNum = 22675464;BA.debugLine="Dim orientation As Int = r.GetField(\"orientation\""; -_orientation = (int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("orientation"))); -RDebugUtils.currentLine=22675465; - //BA.debugLineNum = 22675465;BA.debugLine="If Front Then"; -if (__ref._front /*boolean*/ ) { -RDebugUtils.currentLine=22675466; - //BA.debugLineNum = 22675466;BA.debugLine="previewResult = (orientation + degrees) Mod 360"; -_previewresult = (int) ((_orientation+_degrees)%360); -RDebugUtils.currentLine=22675467; - //BA.debugLineNum = 22675467;BA.debugLine="result = previewResult"; -_result = _previewresult; -RDebugUtils.currentLine=22675468; - //BA.debugLineNum = 22675468;BA.debugLine="previewResult = (360 - previewResult) Mod 360"; -_previewresult = (int) ((360-_previewresult)%360); - }else { -RDebugUtils.currentLine=22675470; - //BA.debugLineNum = 22675470;BA.debugLine="previewResult = (orientation - degrees + 360) Mo"; -_previewresult = (int) ((_orientation-_degrees+360)%360); -RDebugUtils.currentLine=22675471; - //BA.debugLineNum = 22675471;BA.debugLine="result = previewResult"; -_result = _previewresult; -RDebugUtils.currentLine=22675472; - //BA.debugLineNum = 22675472;BA.debugLine="Log(previewResult)"; -__c.LogImpl("222675472",BA.NumberToString(_previewresult),0); - }; -RDebugUtils.currentLine=22675474; - //BA.debugLineNum = 22675474;BA.debugLine="r.target = nativeCam"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._nativecam /*Object*/ ; -RDebugUtils.currentLine=22675475; - //BA.debugLineNum = 22675475;BA.debugLine="r.RunMethod2(\"setDisplayOrientation\", previewResu"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod2("setDisplayOrientation",BA.NumberToString(_previewresult),"java.lang.int"); -RDebugUtils.currentLine=22675476; - //BA.debugLineNum = 22675476;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=22675477; - //BA.debugLineNum = 22675477;BA.debugLine="r.RunMethod2(\"setRotation\", result, \"java.lang.in"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod2("setRotation",BA.NumberToString(_result),"java.lang.int"); -RDebugUtils.currentLine=22675478; - //BA.debugLineNum = 22675478;BA.debugLine="CommitParameters"; -__ref._commitparameters /*String*/ (null); -RDebugUtils.currentLine=22675479; - //BA.debugLineNum = 22675479;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -RDebugUtils.currentLine=22478848; - //BA.debugLineNum = 22478848;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=22478849; - //BA.debugLineNum = 22478849;BA.debugLine="Private nativeCam As Object"; -_nativecam = new Object(); -RDebugUtils.currentLine=22478850; - //BA.debugLineNum = 22478850;BA.debugLine="Private cam As Camera"; -_cam = new anywheresoftware.b4a.objects.CameraW(); -RDebugUtils.currentLine=22478851; - //BA.debugLineNum = 22478851;BA.debugLine="Private r As Reflector"; -_r = new anywheresoftware.b4a.agraham.reflection.Reflection(); -RDebugUtils.currentLine=22478852; - //BA.debugLineNum = 22478852;BA.debugLine="Private target As Object"; -_target = new Object(); -RDebugUtils.currentLine=22478853; - //BA.debugLineNum = 22478853;BA.debugLine="Private event As String"; -_event = ""; -RDebugUtils.currentLine=22478854; - //BA.debugLineNum = 22478854;BA.debugLine="Public Front As Boolean"; -_front = false; -RDebugUtils.currentLine=22478855; - //BA.debugLineNum = 22478855;BA.debugLine="Type CameraInfoAndId (CameraInfo As Object, Id As"; -; -RDebugUtils.currentLine=22478856; - //BA.debugLineNum = 22478856;BA.debugLine="Type CameraSize (Width As Int, Height As Int)"; -; -RDebugUtils.currentLine=22478857; - //BA.debugLineNum = 22478857;BA.debugLine="Private parameters As Object"; -_parameters = new Object(); -RDebugUtils.currentLine=22478858; - //BA.debugLineNum = 22478858;BA.debugLine="End Sub"; -return ""; -} -public String _closenow(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "closenow", false)) - {return ((String) Debug.delegate(ba, "closenow", null));} -RDebugUtils.currentLine=24510464; - //BA.debugLineNum = 24510464;BA.debugLine="Public Sub CloseNow"; -RDebugUtils.currentLine=24510465; - //BA.debugLineNum = 24510465;BA.debugLine="cam.Release"; -__ref._cam /*anywheresoftware.b4a.objects.CameraW*/ .Release(); -RDebugUtils.currentLine=24510466; - //BA.debugLineNum = 24510466;BA.debugLine="r.target = cam"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = (Object)(__ref._cam /*anywheresoftware.b4a.objects.CameraW*/ ); -RDebugUtils.currentLine=24510467; - //BA.debugLineNum = 24510467;BA.debugLine="r.RunMethod2(\"releaseCameras\", True, \"java.lang.b"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod2("releaseCameras",BA.ObjectToString(__c.True),"java.lang.boolean"); -RDebugUtils.currentLine=24510468; - //BA.debugLineNum = 24510468;BA.debugLine="End Sub"; -return ""; -} -public reparto_izca.keymon.lat.cameraexclass._camerainfoandid _findcamera(reparto_izca.keymon.lat.cameraexclass __ref,boolean _frontcamera) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "findcamera", false)) - {return ((reparto_izca.keymon.lat.cameraexclass._camerainfoandid) Debug.delegate(ba, "findcamera", new Object[] {_frontcamera}));} -reparto_izca.keymon.lat.cameraexclass._camerainfoandid _ci = null; -Object _camerainfo = null; -int _cameravalue = 0; -int _numberofcameras = 0; -int _i = 0; -RDebugUtils.currentLine=22609920; - //BA.debugLineNum = 22609920;BA.debugLine="Private Sub FindCamera (frontCamera As Boolean) As"; -RDebugUtils.currentLine=22609921; - //BA.debugLineNum = 22609921;BA.debugLine="Dim ci As CameraInfoAndId"; -_ci = new reparto_izca.keymon.lat.cameraexclass._camerainfoandid(); -RDebugUtils.currentLine=22609922; - //BA.debugLineNum = 22609922;BA.debugLine="Dim cameraInfo As Object"; -_camerainfo = new Object(); -RDebugUtils.currentLine=22609923; - //BA.debugLineNum = 22609923;BA.debugLine="Dim cameraValue As Int"; -_cameravalue = 0; -RDebugUtils.currentLine=22609924; - //BA.debugLineNum = 22609924;BA.debugLine="If frontCamera Then cameraValue = 1 Else cameraVa"; -if (_frontcamera) { -_cameravalue = (int) (1);} -else { -_cameravalue = (int) (0);}; -RDebugUtils.currentLine=22609925; - //BA.debugLineNum = 22609925;BA.debugLine="cameraInfo = r.CreateObject(\"android.hardware.Cam"; -_camerainfo = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .CreateObject("android.hardware.Camera$CameraInfo"); -RDebugUtils.currentLine=22609926; - //BA.debugLineNum = 22609926;BA.debugLine="Dim numberOfCameras As Int = r.RunStaticMethod(\"a"; -_numberofcameras = (int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunStaticMethod("android.hardware.Camera","getNumberOfCameras",(Object[])(__c.Null),(String[])(__c.Null)))); -RDebugUtils.currentLine=22609927; - //BA.debugLineNum = 22609927;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 ) { -RDebugUtils.currentLine=22609928; - //BA.debugLineNum = 22609928;BA.debugLine="r.RunStaticMethod(\"android.hardware.Camera\", \"ge"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunStaticMethod("android.hardware.Camera","getCameraInfo",new Object[]{(Object)(_i),_camerainfo},new String[]{"java.lang.int","android.hardware.Camera$CameraInfo"}); -RDebugUtils.currentLine=22609930; - //BA.debugLineNum = 22609930;BA.debugLine="r.target = cameraInfo"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = _camerainfo; -RDebugUtils.currentLine=22609931; - //BA.debugLineNum = 22609931;BA.debugLine="If r.GetField(\"facing\") = cameraValue Then"; -if ((__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("facing")).equals((Object)(_cameravalue))) { -RDebugUtils.currentLine=22609932; - //BA.debugLineNum = 22609932;BA.debugLine="ci.cameraInfo = r.target"; -_ci.CameraInfo /*Object*/ = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target; -RDebugUtils.currentLine=22609933; - //BA.debugLineNum = 22609933;BA.debugLine="ci.Id = i"; -_ci.Id /*int*/ = _i; -RDebugUtils.currentLine=22609934; - //BA.debugLineNum = 22609934;BA.debugLine="Return ci"; -if (true) return _ci; - }; - } -}; -RDebugUtils.currentLine=22609937; - //BA.debugLineNum = 22609937;BA.debugLine="ci.id = -1"; -_ci.Id /*int*/ = (int) (-1); -RDebugUtils.currentLine=22609938; - //BA.debugLineNum = 22609938;BA.debugLine="Return ci"; -if (true) return _ci; -RDebugUtils.currentLine=22609939; - //BA.debugLineNum = 22609939;BA.debugLine="End Sub"; -return null; -} -public String _getparameter(reparto_izca.keymon.lat.cameraexclass __ref,String _key) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "getparameter", false)) - {return ((String) Debug.delegate(ba, "getparameter", new Object[] {_key}));} -RDebugUtils.currentLine=23330816; - //BA.debugLineNum = 23330816;BA.debugLine="Public Sub GetParameter(Key As String) As String"; -RDebugUtils.currentLine=23330817; - //BA.debugLineNum = 23330817;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=23330818; - //BA.debugLineNum = 23330818;BA.debugLine="Return r.RunMethod2(\"get\", Key, \"java.lang.String"; -if (true) return BA.ObjectToString(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod2("get",_key,"java.lang.String")); -RDebugUtils.currentLine=23330819; - //BA.debugLineNum = 23330819;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.collections.List _getsupportedfocusmodes(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "getsupportedfocusmodes", false)) - {return ((anywheresoftware.b4a.objects.collections.List) Debug.delegate(ba, "getsupportedfocusmodes", null));} -RDebugUtils.currentLine=24248320; - //BA.debugLineNum = 24248320;BA.debugLine="Public Sub GetSupportedFocusModes As List"; -RDebugUtils.currentLine=24248321; - //BA.debugLineNum = 24248321;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=24248322; - //BA.debugLineNum = 24248322;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)(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getSupportedFocusModes"))); -RDebugUtils.currentLine=24248323; - //BA.debugLineNum = 24248323;BA.debugLine="End Sub"; -return null; -} -public byte[] _previewimagetojpeg(reparto_izca.keymon.lat.cameraexclass __ref,byte[] _data,int _quality) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "previewimagetojpeg", false)) - {return ((byte[]) Debug.delegate(ba, "previewimagetojpeg", new Object[] {_data,_quality}));} +public byte[] _previewimagetojpeg(byte[] _data,int _quality) throws Exception{ Object _size = null; Object _previewformat = null; int _width = 0; @@ -881,102 +414,209 @@ int _height = 0; Object _yuvimage = null; anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper _rect1 = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; -RDebugUtils.currentLine=24182784; - //BA.debugLineNum = 24182784;BA.debugLine="Public Sub PreviewImageToJpeg(data() As Byte, qual"; -RDebugUtils.currentLine=24182785; - //BA.debugLineNum = 24182785;BA.debugLine="Dim size, previewFormat As Object"; + //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(); -RDebugUtils.currentLine=24182786; - //BA.debugLineNum = 24182786;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=24182787; - //BA.debugLineNum = 24182787;BA.debugLine="size = r.RunMethod(\"getPreviewSize\")"; -_size = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getPreviewSize"); -RDebugUtils.currentLine=24182788; - //BA.debugLineNum = 24182788;BA.debugLine="previewFormat = r.RunMethod(\"getPreviewFormat\")"; -_previewformat = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getPreviewFormat"); -RDebugUtils.currentLine=24182789; - //BA.debugLineNum = 24182789;BA.debugLine="r.target = size"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = _size; -RDebugUtils.currentLine=24182790; - //BA.debugLineNum = 24182790;BA.debugLine="Dim width = r.GetField(\"width\"), height = r.GetFi"; -_width = (int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("width"))); -_height = (int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .GetField("height"))); -RDebugUtils.currentLine=24182791; - //BA.debugLineNum = 24182791;BA.debugLine="Dim yuvImage As Object = r.CreateObject2(\"android"; -_yuvimage = __ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .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"}); -RDebugUtils.currentLine=24182794; - //BA.debugLineNum = 24182794;BA.debugLine="r.target = yuvImage"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = _yuvimage; -RDebugUtils.currentLine=24182795; - //BA.debugLineNum = 24182795;BA.debugLine="Dim rect1 As Rect"; + //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(); -RDebugUtils.currentLine=24182796; - //BA.debugLineNum = 24182796;BA.debugLine="rect1.Initialize(0, 0, r.RunMethod(\"getWidth\"), r"; -_rect1.Initialize((int) (0),(int) (0),(int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getWidth"))),(int)(BA.ObjectToNumber(__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod("getHeight")))); -RDebugUtils.currentLine=24182797; - //BA.debugLineNum = 24182797;BA.debugLine="Dim out As OutputStream"; + //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(); -RDebugUtils.currentLine=24182798; - //BA.debugLineNum = 24182798;BA.debugLine="out.InitializeToBytesArray(100)"; + //BA.debugLineNum = 231;BA.debugLine="out.InitializeToBytesArray(100)"; _out.InitializeToBytesArray((int) (100)); -RDebugUtils.currentLine=24182799; - //BA.debugLineNum = 24182799;BA.debugLine="r.RunMethod4(\"compressToJpeg\", Array As Object(re"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod4("compressToJpeg",new Object[]{(Object)(_rect1.getObject()),(Object)(_quality),(Object)(_out.getObject())},new String[]{"android.graphics.Rect","java.lang.int","java.io.OutputStream"}); -RDebugUtils.currentLine=24182801; - //BA.debugLineNum = 24182801;BA.debugLine="Return out.ToBytesArray"; + //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(); -RDebugUtils.currentLine=24182802; - //BA.debugLineNum = 24182802;BA.debugLine="End Sub"; + //BA.debugLineNum = 235;BA.debugLine="End Sub"; return null; } -public String _setparameter(reparto_izca.keymon.lat.cameraexclass __ref,String _key,String _value) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "setparameter", false)) - {return ((String) Debug.delegate(ba, "setparameter", new Object[] {_key,_value}));} -RDebugUtils.currentLine=23265280; - //BA.debugLineNum = 23265280;BA.debugLine="Public Sub SetParameter(Key As String, Value As St"; -RDebugUtils.currentLine=23265281; - //BA.debugLineNum = 23265281;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=23265282; - //BA.debugLineNum = 23265282;BA.debugLine="r.RunMethod3(\"set\", Key, \"java.lang.String\", Valu"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod3("set",_key,"java.lang.String",_value,"java.lang.String"); -RDebugUtils.currentLine=23265283; - //BA.debugLineNum = 23265283;BA.debugLine="End Sub"; +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 _setfocusmode(reparto_izca.keymon.lat.cameraexclass __ref,String _mode) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "setfocusmode", false)) - {return ((String) Debug.delegate(ba, "setfocusmode", new Object[] {_mode}));} -RDebugUtils.currentLine=24379392; - //BA.debugLineNum = 24379392;BA.debugLine="Public Sub SetFocusMode(Mode As String)"; -RDebugUtils.currentLine=24379393; - //BA.debugLineNum = 24379393;BA.debugLine="r.target = parameters"; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .Target = __ref._parameters /*Object*/ ; -RDebugUtils.currentLine=24379394; - //BA.debugLineNum = 24379394;BA.debugLine="r.RunMethod2(\"setFocusMode\", Mode, \"java.lang."; -__ref._r /*anywheresoftware.b4a.agraham.reflection.Reflection*/ .RunMethod2("setFocusMode",_mode,"java.lang.String"); -RDebugUtils.currentLine=24379395; - //BA.debugLineNum = 24379395;BA.debugLine="End Sub"; +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 _stoppreview(reparto_izca.keymon.lat.cameraexclass __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cameraexclass"; -if (Debug.shouldDelegate(ba, "stoppreview", false)) - {return ((String) Debug.delegate(ba, "stoppreview", null));} -RDebugUtils.currentLine=23068672; - //BA.debugLineNum = 23068672;BA.debugLine="Public Sub StopPreview"; -RDebugUtils.currentLine=23068673; - //BA.debugLineNum = 23068673;BA.debugLine="cam.StopPreview"; -__ref._cam /*anywheresoftware.b4a.objects.CameraW*/ .StopPreview(); -RDebugUtils.currentLine=23068674; - //BA.debugLineNum = 23068674;BA.debugLine="End Sub"; +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 ""; } -} \ No newline at end of file +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("024576007","Continuous focus mode is not available",0); + }; + //BA.debugLineNum = 251;BA.debugLine="End Sub"; +return ""; +} +public String _setdisplayorientation() throws Exception{ +int _previewresult = 0; +int _result = 0; +int _degrees = 0; +reparto_izca.keymon.lat.cameraexclass._camerainfoandid _ci = null; +int _orientation = 0; + //BA.debugLineNum = 57;BA.debugLine="Private Sub SetDisplayOrientation"; + //BA.debugLineNum = 58;BA.debugLine="r.target = r.GetActivity"; +_r.Target = (Object)(_r.GetActivity(ba)); + //BA.debugLineNum = 59;BA.debugLine="r.target = r.RunMethod(\"getWindowManager\")"; +_r.Target = _r.RunMethod("getWindowManager"); + //BA.debugLineNum = 60;BA.debugLine="r.target = r.RunMethod(\"getDefaultDisplay\")"; +_r.Target = _r.RunMethod("getDefaultDisplay"); + //BA.debugLineNum = 61;BA.debugLine="r.target = r.RunMethod(\"getRotation\")"; +_r.Target = _r.RunMethod("getRotation"); + //BA.debugLineNum = 62;BA.debugLine="Dim previewResult, result, degrees As Int = r.tar"; +_previewresult = 0; +_result = 0; +_degrees = (int) ((double)(BA.ObjectToNumber(_r.Target))*90); + //BA.debugLineNum = 63;BA.debugLine="Dim ci As CameraInfoAndId = FindCamera(Front)"; +_ci = _findcamera(_front); + //BA.debugLineNum = 64;BA.debugLine="r.target = ci.CameraInfo"; +_r.Target = _ci.CameraInfo /*Object*/ ; + //BA.debugLineNum = 65;BA.debugLine="Dim orientation As Int = r.GetField(\"orientation\""; +_orientation = (int)(BA.ObjectToNumber(_r.GetField("orientation"))); + //BA.debugLineNum = 66;BA.debugLine="If Front Then"; +if (_front) { + //BA.debugLineNum = 67;BA.debugLine="previewResult = (orientation + degrees) Mod 360"; +_previewresult = (int) ((_orientation+_degrees)%360); + //BA.debugLineNum = 68;BA.debugLine="result = previewResult"; +_result = _previewresult; + //BA.debugLineNum = 69;BA.debugLine="previewResult = (360 - previewResult) Mod 360"; +_previewresult = (int) ((360-_previewresult)%360); + }else { + //BA.debugLineNum = 71;BA.debugLine="previewResult = (orientation - degrees + 360) Mo"; +_previewresult = (int) ((_orientation-_degrees+360)%360); + //BA.debugLineNum = 72;BA.debugLine="result = previewResult"; +_result = _previewresult; + //BA.debugLineNum = 73;BA.debugLine="Log(previewResult)"; +__c.LogImpl("022937616",BA.NumberToString(_previewresult),0); + }; + //BA.debugLineNum = 75;BA.debugLine="r.target = nativeCam"; +_r.Target = _nativecam; + //BA.debugLineNum = 76;BA.debugLine="r.RunMethod2(\"setDisplayOrientation\", previewResu"; +_r.RunMethod2("setDisplayOrientation",BA.NumberToString(_previewresult),"java.lang.int"); + //BA.debugLineNum = 77;BA.debugLine="r.target = parameters"; +_r.Target = _parameters; + //BA.debugLineNum = 78;BA.debugLine="r.RunMethod2(\"setRotation\", result, \"java.lang.in"; +_r.RunMethod2("setRotation",BA.NumberToString(_result),"java.lang.int"); + //BA.debugLineNum = 79;BA.debugLine="CommitParameters"; +_commitparameters(); + //BA.debugLineNum = 80;BA.debugLine="End Sub"; +return ""; +} +public String _setflashmode(String _mode) throws Exception{ + //BA.debugLineNum = 177;BA.debugLine="Public Sub SetFlashMode(Mode As String)"; + //BA.debugLineNum = 178;BA.debugLine="r.target = parameters"; +_r.Target = _parameters; + //BA.debugLineNum = 179;BA.debugLine="r.RunMethod2(\"setFlashMode\", Mode, \"java.lang.Str"; +_r.RunMethod2("setFlashMode",_mode,"java.lang.String"); + //BA.debugLineNum = 180;BA.debugLine="End Sub"; +return ""; +} +public String _setfocusmode(String _mode) throws Exception{ + //BA.debugLineNum = 253;BA.debugLine="Public Sub SetFocusMode(Mode As String)"; + //BA.debugLineNum = 254;BA.debugLine="r.target = parameters"; +_r.Target = _parameters; + //BA.debugLineNum = 255;BA.debugLine="r.RunMethod2(\"setFocusMode\", Mode, \"java.lang."; +_r.RunMethod2("setFocusMode",_mode,"java.lang.String"); + //BA.debugLineNum = 256;BA.debugLine="End Sub"; +return ""; +} +public String _setjpegquality(int _quality) throws Exception{ + //BA.debugLineNum = 172;BA.debugLine="Public Sub SetJpegQuality(Quality As Int)"; + //BA.debugLineNum = 173;BA.debugLine="r.target = parameters"; +_r.Target = _parameters; + //BA.debugLineNum = 174;BA.debugLine="r.RunMethod2(\"setJpegQuality\", Quality, \"java.lan"; +_r.RunMethod2("setJpegQuality",BA.NumberToString(_quality),"java.lang.int"); + //BA.debugLineNum = 175;BA.debugLine="End Sub"; +return ""; +} +public String _setparameter(String _key,String _value) throws Exception{ + //BA.debugLineNum = 127;BA.debugLine="Public Sub SetParameter(Key As String, Value As St"; + //BA.debugLineNum = 128;BA.debugLine="r.target = parameters"; +_r.Target = _parameters; + //BA.debugLineNum = 129;BA.debugLine="r.RunMethod3(\"set\", Key, \"java.lang.String\", Valu"; +_r.RunMethod3("set",_key,"java.lang.String",_value,"java.lang.String"); + //BA.debugLineNum = 130;BA.debugLine="End Sub"; +return ""; +} +public String _setpicturesize(int _width,int _height) throws Exception{ + //BA.debugLineNum = 167;BA.debugLine="Public Sub SetPictureSize(Width As Int, Height As"; + //BA.debugLineNum = 168;BA.debugLine="r.target = parameters"; +_r.Target = _parameters; + //BA.debugLineNum = 169;BA.debugLine="r.RunMethod3(\"setPictureSize\", Width, \"java.lang."; +_r.RunMethod3("setPictureSize",BA.NumberToString(_width),"java.lang.int",BA.NumberToString(_height),"java.lang.int"); + //BA.debugLineNum = 170;BA.debugLine="End Sub"; +return ""; +} +public String _startpreview() throws Exception{ + //BA.debugLineNum = 108;BA.debugLine="Public Sub StartPreview"; + //BA.debugLineNum = 109;BA.debugLine="cam.StartPreview"; +_cam.StartPreview(); + //BA.debugLineNum = 110;BA.debugLine="End Sub"; +return ""; +} +public String _stoppreview() throws Exception{ + //BA.debugLineNum = 112;BA.debugLine="Public Sub StopPreview"; + //BA.debugLineNum = 113;BA.debugLine="cam.StopPreview"; +_cam.StopPreview(); + //BA.debugLineNum = 114;BA.debugLine="End Sub"; +return ""; +} +public String _takepicture() throws Exception{ + //BA.debugLineNum = 100;BA.debugLine="Public Sub TakePicture"; + //BA.debugLineNum = 101;BA.debugLine="cam.TakePicture"; +_cam.TakePicture(); + //BA.debugLineNum = 102;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/cl_appupdate.java b/B4A/Objects/src/reparto_izca/keymon/lat/cl_appupdate.java index 6e225ff..cd0fbde 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/cl_appupdate.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/cl_appupdate.java @@ -10,7 +10,7 @@ public class cl_appupdate extends B4AClass.ImplB4AClass implements BA.SubDelegat private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.cl_appupdate"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.cl_appupdate"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class cl_appupdate extends B4AClass.ImplB4AClass implements BA.SubDelegat ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public int _err_nopkg = 0; public int _err_notxt = 0; public int _err_noapk = 0; @@ -81,213 +74,142 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public boolean _canrequestpackageinstalls(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "canrequestpackageinstalls", true)) - {return ((Boolean) Debug.delegate(ba, "canrequestpackageinstalls", null));} +public boolean _canrequestpackageinstalls() throws Exception{ anywheresoftware.b4j.object.JavaObject _ctxt = null; anywheresoftware.b4j.object.JavaObject _packagemanager = null; -RDebugUtils.currentLine=32505856; - //BA.debugLineNum = 32505856;BA.debugLine="Public Sub CanRequestPackageInstalls As Boolean"; -RDebugUtils.currentLine=32505857; - //BA.debugLineNum = 32505857;BA.debugLine="Dim ctxt As JavaObject"; + //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(); -RDebugUtils.currentLine=32505858; - //BA.debugLineNum = 32505858;BA.debugLine="ctxt.InitializeContext"; + //BA.debugLineNum = 450;BA.debugLine="ctxt.InitializeContext"; _ctxt.InitializeContext(ba); -RDebugUtils.currentLine=32505859; - //BA.debugLineNum = 32505859;BA.debugLine="Dim PackageManager As JavaObject = ctxt.RunMethod"; + //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)))); -RDebugUtils.currentLine=32505860; - //BA.debugLineNum = 32505860;BA.debugLine="Return PackageManager.RunMethod(\"canRequestPackag"; + //BA.debugLineNum = 452;BA.debugLine="Return PackageManager.RunMethod(\"canRequestPackag"; if (true) return BA.ObjectToBoolean(_packagemanager.RunMethod("canRequestPackageInstalls",(Object[])(__c.Null))); -RDebugUtils.currentLine=32505861; - //BA.debugLineNum = 32505861;BA.debugLine="End Sub"; + //BA.debugLineNum = 453;BA.debugLine="End Sub"; return false; } -public boolean _checknonmarketappsenabled(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "checknonmarketappsenabled", true)) - {return ((Boolean) Debug.delegate(ba, "checknonmarketappsenabled", null));} +public boolean _checknonmarketappsenabled() throws Exception{ anywheresoftware.b4j.object.JavaObject _context = null; anywheresoftware.b4j.object.JavaObject _resolver = null; anywheresoftware.b4j.object.JavaObject _global = null; -RDebugUtils.currentLine=32571392; - //BA.debugLineNum = 32571392;BA.debugLine="Public Sub CheckNonMarketAppsEnabled As Boolean"; -RDebugUtils.currentLine=32571393; - //BA.debugLineNum = 32571393;BA.debugLine="If phone.SdkVersion >= 26 Then Return True"; -if (__ref._phone /*anywheresoftware.b4a.phone.Phone*/ .getSdkVersion()>=26) { + //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;}; -RDebugUtils.currentLine=32571394; - //BA.debugLineNum = 32571394;BA.debugLine="If phone.SdkVersion < 17 Or phone.SdkVersion >= 2"; -if (__ref._phone /*anywheresoftware.b4a.phone.Phone*/ .getSdkVersion()<17 || __ref._phone /*anywheresoftware.b4a.phone.Phone*/ .getSdkVersion()>=21) { -RDebugUtils.currentLine=32571395; - //BA.debugLineNum = 32571395;BA.debugLine="Return phone.GetSettings(\"install_non_market_app"; -if (true) return (__ref._phone /*anywheresoftware.b4a.phone.Phone*/ .GetSettings("install_non_market_apps")).equals("1"); + //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 { -RDebugUtils.currentLine=32571397; - //BA.debugLineNum = 32571397;BA.debugLine="Dim context As JavaObject"; + //BA.debugLineNum = 476;BA.debugLine="Dim context As JavaObject"; _context = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=32571398; - //BA.debugLineNum = 32571398;BA.debugLine="context.InitializeContext"; + //BA.debugLineNum = 477;BA.debugLine="context.InitializeContext"; _context.InitializeContext(ba); -RDebugUtils.currentLine=32571399; - //BA.debugLineNum = 32571399;BA.debugLine="Dim resolver As JavaObject = context.RunMethod(\""; + //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)))); -RDebugUtils.currentLine=32571400; - //BA.debugLineNum = 32571400;BA.debugLine="Dim global As JavaObject"; + //BA.debugLineNum = 479;BA.debugLine="Dim global As JavaObject"; _global = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=32571401; - //BA.debugLineNum = 32571401;BA.debugLine="global.InitializeStatic(\"android.provider.Settin"; + //BA.debugLineNum = 480;BA.debugLine="global.InitializeStatic(\"android.provider.Settin"; _global.InitializeStatic("android.provider.Settings.Global"); -RDebugUtils.currentLine=32571402; - //BA.debugLineNum = 32571402;BA.debugLine="Return global.RunMethod(\"getString\", Array(resol"; + //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")); }; -RDebugUtils.currentLine=32571404; - //BA.debugLineNum = 32571404;BA.debugLine="End Sub"; + //BA.debugLineNum = 483;BA.debugLine="End Sub"; return false; } -public String _class_globals(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -RDebugUtils.currentLine=30605312; - //BA.debugLineNum = 30605312;BA.debugLine="Private Sub Class_Globals"; -RDebugUtils.currentLine=30605314; - //BA.debugLineNum = 30605314;BA.debugLine="Public ERR_NOPKG = -1 As Int 'missing package"; +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); -RDebugUtils.currentLine=30605315; - //BA.debugLineNum = 30605315;BA.debugLine="Public ERR_NOTXT = -2 As Int 'missing webserve"; + //BA.debugLineNum = 9;BA.debugLine="Public ERR_NOTXT = -2 As Int 'missing webserve"; _err_notxt = (int) (-2); -RDebugUtils.currentLine=30605316; - //BA.debugLineNum = 30605316;BA.debugLine="Public ERR_NOAPK = -3 As Int 'missing webserve"; + //BA.debugLineNum = 10;BA.debugLine="Public ERR_NOAPK = -3 As Int 'missing webserve"; _err_noapk = (int) (-3); -RDebugUtils.currentLine=30605317; - //BA.debugLineNum = 30605317;BA.debugLine="Public ERR_TXTROW = -4 As Int 'wrong row forma"; + //BA.debugLineNum = 11;BA.debugLine="Public ERR_TXTROW = -4 As Int 'wrong row forma"; _err_txtrow = (int) (-4); -RDebugUtils.currentLine=30605318; - //BA.debugLineNum = 30605318;BA.debugLine="Public ERR_HTML = -5 As Int 'website returned"; + //BA.debugLineNum = 12;BA.debugLine="Public ERR_HTML = -5 As Int 'website returned"; _err_html = (int) (-5); -RDebugUtils.currentLine=30605319; - //BA.debugLineNum = 30605319;BA.debugLine="Public ERR_NOSPACE = -6 As Int 'no enough spac"; + //BA.debugLineNum = 13;BA.debugLine="Public ERR_NOSPACE = -6 As Int 'no enough spac"; _err_nospace = (int) (-6); -RDebugUtils.currentLine=30605320; - //BA.debugLineNum = 30605320;BA.debugLine="Public ERR_NOPERM = -7 As Int 'no permissions"; + //BA.debugLineNum = 14;BA.debugLine="Public ERR_NOPERM = -7 As Int 'no permissions"; _err_noperm = (int) (-7); -RDebugUtils.currentLine=30605321; - //BA.debugLineNum = 30605321;BA.debugLine="Public ERR_DOWNLOAD = -8 As Int 'failed to dow"; + //BA.debugLineNum = 15;BA.debugLine="Public ERR_DOWNLOAD = -8 As Int 'failed to dow"; _err_download = (int) (-8); -RDebugUtils.currentLine=30605322; - //BA.debugLineNum = 30605322;BA.debugLine="Public ERR_HTTP = -100 As Int 'HttpUtils error"; + //BA.debugLineNum = 16;BA.debugLine="Public ERR_HTTP = -100 As Int 'HttpUtils error"; _err_http = (int) (-100); -RDebugUtils.currentLine=30605323; - //BA.debugLineNum = 30605323;BA.debugLine="Public OK_INIT = 0 As Int"; + //BA.debugLineNum = 17;BA.debugLine="Public OK_INIT = 0 As Int"; _ok_init = (int) (0); -RDebugUtils.currentLine=30605324; - //BA.debugLineNum = 30605324;BA.debugLine="Public OK_CURVER = 1 As Int 'curver has valid"; + //BA.debugLineNum = 18;BA.debugLine="Public OK_CURVER = 1 As Int 'curver has valid"; _ok_curver = (int) (1); -RDebugUtils.currentLine=30605325; - //BA.debugLineNum = 30605325;BA.debugLine="Public OK_WEBVER = 2 As Int"; + //BA.debugLineNum = 19;BA.debugLine="Public OK_WEBVER = 2 As Int"; _ok_webver = (int) (2); -RDebugUtils.currentLine=30605326; - //BA.debugLineNum = 30605326;BA.debugLine="Public NO_NEWERAPK = 3 As Int 'apk version on"; + //BA.debugLineNum = 20;BA.debugLine="Public NO_NEWERAPK = 3 As Int 'apk version on"; _no_newerapk = (int) (3); -RDebugUtils.currentLine=30605327; - //BA.debugLineNum = 30605327;BA.debugLine="Public OK_NEWERAPK = 4 As Int 'current apk has"; + //BA.debugLineNum = 21;BA.debugLine="Public OK_NEWERAPK = 4 As Int 'current apk has"; _ok_newerapk = (int) (4); -RDebugUtils.currentLine=30605328; - //BA.debugLineNum = 30605328;BA.debugLine="Public OK_DOWNLOAD = 5 As Int 'newer apk corre"; + //BA.debugLineNum = 22;BA.debugLine="Public OK_DOWNLOAD = 5 As Int 'newer apk corre"; _ok_download = (int) (5); -RDebugUtils.currentLine=30605329; - //BA.debugLineNum = 30605329;BA.debugLine="Public OK_INSTALL = 6 As Int 'user asked to in"; + //BA.debugLineNum = 23;BA.debugLine="Public OK_INSTALL = 6 As Int 'user asked to in"; _ok_install = (int) (6); -RDebugUtils.currentLine=30605332; - //BA.debugLineNum = 30605332;BA.debugLine="Private Callback As Object"; + //BA.debugLineNum = 26;BA.debugLine="Private Callback As Object"; _callback = new Object(); -RDebugUtils.currentLine=30605333; - //BA.debugLineNum = 30605333;BA.debugLine="Private Event As String"; + //BA.debugLineNum = 27;BA.debugLine="Private Event As String"; _event = ""; -RDebugUtils.currentLine=30605334; - //BA.debugLineNum = 30605334;BA.debugLine="Private sPackageName As String 'ex: com.te"; + //BA.debugLineNum = 28;BA.debugLine="Private sPackageName As String 'ex: com.te"; _spackagename = ""; -RDebugUtils.currentLine=30605335; - //BA.debugLineNum = 30605335;BA.debugLine="Private sNewVerTxt As String 'ex: http:/"; + //BA.debugLineNum = 29;BA.debugLine="Private sNewVerTxt As String 'ex: http:/"; _snewvertxt = ""; -RDebugUtils.currentLine=30605336; - //BA.debugLineNum = 30605336;BA.debugLine="Private sNewVerApk As String 'ex: http:/"; + //BA.debugLineNum = 30;BA.debugLine="Private sNewVerApk As String 'ex: http:/"; _snewverapk = ""; -RDebugUtils.currentLine=30605337; - //BA.debugLineNum = 30605337;BA.debugLine="Private sStatusCode As Int 'negatives"; + //BA.debugLineNum = 31;BA.debugLine="Private sStatusCode As Int 'negatives"; _sstatuscode = 0; -RDebugUtils.currentLine=30605338; - //BA.debugLineNum = 30605338;BA.debugLine="Private sUserName As String 'user name"; + //BA.debugLineNum = 32;BA.debugLine="Private sUserName As String 'user name"; _susername = ""; -RDebugUtils.currentLine=30605339; - //BA.debugLineNum = 30605339;BA.debugLine="Private sUPassword As String 'password r"; + //BA.debugLineNum = 33;BA.debugLine="Private sUPassword As String 'password r"; _supassword = ""; -RDebugUtils.currentLine=30605340; - //BA.debugLineNum = 30605340;BA.debugLine="Private curver, webver As String 'curver = c"; + //BA.debugLineNum = 34;BA.debugLine="Private curver, webver As String 'curver = c"; _curver = ""; _webver = ""; -RDebugUtils.currentLine=30605341; - //BA.debugLineNum = 30605341;BA.debugLine="Private webclog As String 'webclog = optional"; + //BA.debugLineNum = 35;BA.debugLine="Private webclog As String 'webclog = optional"; _webclog = ""; -RDebugUtils.currentLine=30605342; - //BA.debugLineNum = 30605342;BA.debugLine="Private webfsize As String 'webfsize = option"; + //BA.debugLineNum = 36;BA.debugLine="Private webfsize As String 'webfsize = option"; _webfsize = ""; -RDebugUtils.currentLine=30605343; - //BA.debugLineNum = 30605343;BA.debugLine="Private sVerbose As Boolean 'TRUE = a lot of"; + //BA.debugLineNum = 37;BA.debugLine="Private sVerbose As Boolean 'TRUE = a lot of"; _sverbose = false; -RDebugUtils.currentLine=30605344; - //BA.debugLineNum = 30605344;BA.debugLine="Private pnlSplash As Panel 'panel used to sup"; + //BA.debugLineNum = 38;BA.debugLine="Private pnlSplash As Panel 'panel used to sup"; _pnlsplash = new anywheresoftware.b4a.objects.PanelWrapper(); -RDebugUtils.currentLine=30605345; - //BA.debugLineNum = 30605345;BA.debugLine="Private SplashShowing As Boolean 'True = splash"; + //BA.debugLineNum = 39;BA.debugLine="Private SplashShowing As Boolean 'True = splash"; _splashshowing = false; -RDebugUtils.currentLine=30605346; - //BA.debugLineNum = 30605346;BA.debugLine="Private phone As Phone"; + //BA.debugLineNum = 40;BA.debugLine="Private phone As Phone"; _phone = new anywheresoftware.b4a.phone.Phone(); -RDebugUtils.currentLine=30605347; - //BA.debugLineNum = 30605347;BA.debugLine="Private rp As RuntimePermissions"; + //BA.debugLineNum = 41;BA.debugLine="Private rp As RuntimePermissions"; _rp = new anywheresoftware.b4a.objects.RuntimePermissions(); -RDebugUtils.currentLine=30605348; - //BA.debugLineNum = 30605348;BA.debugLine="Private SharedFolder As String 'Foder where to"; + //BA.debugLineNum = 42;BA.debugLine="Private SharedFolder As String 'Foder where to"; _sharedfolder = ""; -RDebugUtils.currentLine=30605349; - //BA.debugLineNum = 30605349;BA.debugLine="Private UseFileProvider As Boolean 'TRUE = SDK"; + //BA.debugLineNum = 43;BA.debugLine="Private UseFileProvider As Boolean 'TRUE = SDK"; _usefileprovider = false; -RDebugUtils.currentLine=30605350; - //BA.debugLineNum = 30605350;BA.debugLine="Private LogColor1 As Int = 0xFFFF8C00 'first col"; + //BA.debugLineNum = 44;BA.debugLine="Private LogColor1 As Int = 0xFFFF8C00 'first col"; _logcolor1 = ((int)0xffff8c00); -RDebugUtils.currentLine=30605351; - //BA.debugLineNum = 30605351;BA.debugLine="End Sub"; + //BA.debugLineNum = 45;BA.debugLine="End Sub"; return ""; } -public void _downloadapk(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "downloadapk", true)) - {Debug.delegate(ba, "downloadapk", null); return;} -ResumableSub_DownloadApk rsub = new ResumableSub_DownloadApk(this,__ref); +public void _downloadapk() throws Exception{ +ResumableSub_DownloadApk rsub = new ResumableSub_DownloadApk(this); rsub.resume(ba, null); } public static class ResumableSub_DownloadApk extends BA.ResumableSub { -public ResumableSub_DownloadApk(reparto_izca.keymon.lat.cl_appupdate parent,reparto_izca.keymon.lat.cl_appupdate __ref) { +public ResumableSub_DownloadApk(reparto_izca.keymon.lat.cl_appupdate parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.cl_appupdate __ref; reparto_izca.keymon.lat.cl_appupdate parent; reparto_izca.keymon.lat.httpjob _j = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="cl_appupdate"; while (true) { switch (state) { @@ -297,52 +219,46 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=31653889; - //BA.debugLineNum = 31653889;BA.debugLine="LogColor(\"---- AppUpdating.DownloadApk\", LogColor"; -parent.__c.LogImpl("931653889","---- AppUpdating.DownloadApk",__ref._logcolor1 /*int*/ ); -RDebugUtils.currentLine=31653891; - //BA.debugLineNum = 31653891;BA.debugLine="If sNewVerApk = \"\" Then"; + //BA.debugLineNum = 159;BA.debugLine="LogColor(\"---- AppUpdating.DownloadApk\", LogColor"; +parent.__c.LogImpl("940173569","---- AppUpdating.DownloadApk",parent._logcolor1); + //BA.debugLineNum = 161;BA.debugLine="If sNewVerApk = \"\" Then"; if (true) break; case 1: //if this.state = 10; -if ((__ref._snewverapk /*String*/ ).equals("")) { +if ((parent._snewverapk).equals("")) { this.state = 3; }if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=31653892; - //BA.debugLineNum = 31653892;BA.debugLine="sStatusCode = ERR_NOAPK"; -__ref._sstatuscode /*int*/ = __ref._err_noapk /*int*/ ; -RDebugUtils.currentLine=31653893; - //BA.debugLineNum = 31653893;BA.debugLine="If sVerbose Then Log($\"${TAB}missing apk file fu"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 6; ;}if (true) break; case 6: //C this.state = 9; -parent.__c.LogImpl("931653893",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0); +parent.__c.LogImpl("940173573",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0); if (true) break; case 9: //C this.state = 10; ; -RDebugUtils.currentLine=31653894; - //BA.debugLineNum = 31653894;BA.debugLine="Finito"; -__ref._finito /*String*/ (null); -RDebugUtils.currentLine=31653895; - //BA.debugLineNum = 31653895;BA.debugLine="Return"; + //BA.debugLineNum = 164;BA.debugLine="Finito"; +parent._finito(); + //BA.debugLineNum = 165;BA.debugLine="Return"; if (true) return ; if (true) break; @@ -350,36 +266,28 @@ case 10: //C this.state = 11; ; -RDebugUtils.currentLine=31653898; - //BA.debugLineNum = 31653898;BA.debugLine="Dim j As HttpJob"; + //BA.debugLineNum = 168;BA.debugLine="Dim j As HttpJob"; _j = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=31653899; - //BA.debugLineNum = 31653899;BA.debugLine="j.Initialize(\"\", Me)"; -_j._initialize /*String*/ (null,ba,"",parent); -RDebugUtils.currentLine=31653900; - //BA.debugLineNum = 31653900;BA.debugLine="j.Username = sUserName"; -_j._username /*String*/ = __ref._susername /*String*/ ; -RDebugUtils.currentLine=31653901; - //BA.debugLineNum = 31653901;BA.debugLine="j.Password = sUPassword"; -_j._password /*String*/ = __ref._supassword /*String*/ ; -RDebugUtils.currentLine=31653902; - //BA.debugLineNum = 31653902;BA.debugLine="j.Download(sNewVerApk) 'ex: j.Download(\"htt"; -_j._download /*String*/ (null,__ref._snewverapk /*String*/ ); -RDebugUtils.currentLine=31653903; - //BA.debugLineNum = 31653903;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; -parent.__c.WaitFor("jobdone", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "cl_appupdate", "downloadapk"), (Object)(_j)); + //BA.debugLineNum = 169;BA.debugLine="j.Initialize(\"\", Me)"; +_j._initialize /*String*/ (ba,"",parent); + //BA.debugLineNum = 170;BA.debugLine="j.Username = sUserName"; +_j._username /*String*/ = parent._susername; + //BA.debugLineNum = 171;BA.debugLine="j.Password = sUPassword"; +_j._password /*String*/ = parent._supassword; + //BA.debugLineNum = 172;BA.debugLine="j.Download(sNewVerApk) 'ex: j.Download(\"htt"; +_j._download /*String*/ (parent._snewverapk); + //BA.debugLineNum = 173;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; +parent.__c.WaitFor("jobdone", ba, this, (Object)(_j)); this.state = 29; return; case 29: //C this.state = 11; -_j = (reparto_izca.keymon.lat.httpjob) result[1]; +_j = (reparto_izca.keymon.lat.httpjob) result[0]; ; -RDebugUtils.currentLine=31653904; - //BA.debugLineNum = 31653904;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)"; -parent.__c.LogImpl("931653904",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0); -RDebugUtils.currentLine=31653905; - //BA.debugLineNum = 31653905;BA.debugLine="If j.Success Then"; + //BA.debugLineNum = 174;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)"; +parent.__c.LogImpl("940173584",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0); + //BA.debugLineNum = 175;BA.debugLine="If j.Success Then"; if (true) break; case 11: @@ -394,39 +302,32 @@ this.state = 21; case 13: //C this.state = 14; -RDebugUtils.currentLine=31653907; - //BA.debugLineNum = 31653907;BA.debugLine="Dim out As OutputStream"; + //BA.debugLineNum = 177;BA.debugLine="Dim out As OutputStream"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -RDebugUtils.currentLine=31653908; - //BA.debugLineNum = 31653908;BA.debugLine="out = File.OpenOutput(SharedFolder,\"tmp.apk\",Fal"; -_out = parent.__c.File.OpenOutput(__ref._sharedfolder /*String*/ ,"tmp.apk",parent.__c.False); -RDebugUtils.currentLine=31653909; - //BA.debugLineNum = 31653909;BA.debugLine="File.Copy2(J.GetInputStream, out)"; -parent.__c.File.Copy2((java.io.InputStream)(_j._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ (null).getObject()),(java.io.OutputStream)(_out.getObject())); -RDebugUtils.currentLine=31653910; - //BA.debugLineNum = 31653910;BA.debugLine="out.Close"; + //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(); -RDebugUtils.currentLine=31653911; - //BA.debugLineNum = 31653911;BA.debugLine="Log($\"Copy2 (saving) ok? TRUE\"$)"; -parent.__c.LogImpl("931653911",("Copy2 (saving) ok? TRUE"),0); -RDebugUtils.currentLine=31653912; - //BA.debugLineNum = 31653912;BA.debugLine="sStatusCode = OK_DOWNLOAD"; -__ref._sstatuscode /*int*/ = __ref._ok_download /*int*/ ; -RDebugUtils.currentLine=31653913; - //BA.debugLineNum = 31653913;BA.debugLine="If sVerbose Then Log($\"${TAB}new apk version dow"; + //BA.debugLineNum = 181;BA.debugLine="Log($\"Copy2 (saving) ok? TRUE\"$)"; +parent.__c.LogImpl("940173591",("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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 16; ;}if (true) break; case 16: //C this.state = 19; -parent.__c.LogImpl("931653913",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0); +parent.__c.LogImpl("940173593",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0); if (true) break; case 19: @@ -438,35 +339,31 @@ this.state = 28; case 21: //C this.state = 22; -RDebugUtils.currentLine=31653915; - //BA.debugLineNum = 31653915;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)"; -parent.__c.LogImpl("931653915",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0); -RDebugUtils.currentLine=31653916; - //BA.debugLineNum = 31653916;BA.debugLine="sStatusCode = ERR_HTTP"; -__ref._sstatuscode /*int*/ = __ref._err_http /*int*/ ; -RDebugUtils.currentLine=31653917; - //BA.debugLineNum = 31653917;BA.debugLine="If sVerbose Then Log($\"${TAB}error in httputils2"; + //BA.debugLineNum = 185;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)"; +parent.__c.LogImpl("940173595",(""+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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 24; ;}if (true) break; case 24: //C this.state = 27; -parent.__c.LogImpl("931653917",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0); +parent.__c.LogImpl("940173597",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0); if (true) break; case 27: //C this.state = 28; ; -RDebugUtils.currentLine=31653918; - //BA.debugLineNum = 31653918;BA.debugLine="ToastMessageShow(\"Error: \" & J.ErrorMessage, Tru"; + //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; @@ -474,648 +371,389 @@ case 28: //C this.state = -1; ; -RDebugUtils.currentLine=31653920; - //BA.debugLineNum = 31653920;BA.debugLine="j.Release"; -_j._release /*String*/ (null); -RDebugUtils.currentLine=31653921; - //BA.debugLineNum = 31653921;BA.debugLine="Finito"; -__ref._finito /*String*/ (null); -RDebugUtils.currentLine=31653922; - //BA.debugLineNum = 31653922;BA.debugLine="End Sub"; + //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 String _finito(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "finito", true)) - {return ((String) Debug.delegate(ba, "finito", null));} -RDebugUtils.currentLine=31916032; - //BA.debugLineNum = 31916032;BA.debugLine="Private Sub Finito"; -RDebugUtils.currentLine=31916033; - //BA.debugLineNum = 31916033;BA.debugLine="If SubExists(Callback,Event&\"_UpdateComplete\") Th"; -if (__c.SubExists(ba,__ref._callback /*Object*/ ,__ref._event /*String*/ +"_UpdateComplete")) { -RDebugUtils.currentLine=31916034; - //BA.debugLineNum = 31916034;BA.debugLine="CallSub(Callback,Event&\"_UpdateComplete\")"; -__c.CallSubNew(ba,__ref._callback /*Object*/ ,__ref._event /*String*/ +"_UpdateComplete"); - }; -RDebugUtils.currentLine=31916036; - //BA.debugLineNum = 31916036;BA.debugLine="End Sub"; -return ""; +public void _jobdone(reparto_izca.keymon.lat.httpjob _j) throws Exception{ } -public String _extractcl(reparto_izca.keymon.lat.cl_appupdate __ref,String _txtrow) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "extractcl", true)) - {return ((String) Debug.delegate(ba, "extractcl", new Object[] {_txtrow}));} +public String _extractcl(String _txtrow) throws Exception{ int _i = 0; int _j1 = 0; int _j2 = 0; -RDebugUtils.currentLine=32178176; - //BA.debugLineNum = 32178176;BA.debugLine="Private Sub ExtractCL(TxtRow As String) As String"; -RDebugUtils.currentLine=32178177; - //BA.debugLineNum = 32178177;BA.debugLine="Dim i As Int"; + //BA.debugLineNum = 381;BA.debugLine="Private Sub ExtractCL(TxtRow As String) As String"; + //BA.debugLineNum = 382;BA.debugLine="Dim i As Int"; _i = 0; -RDebugUtils.currentLine=32178178; - //BA.debugLineNum = 32178178;BA.debugLine="i = TxtRow.IndexOf(\"\")"; + //BA.debugLineNum = 383;BA.debugLine="i = TxtRow.IndexOf(\"\")"; _i = _txtrow.indexOf(""); -RDebugUtils.currentLine=32178179; - //BA.debugLineNum = 32178179;BA.debugLine="If i <> -1 Then"; + //BA.debugLineNum = 384;BA.debugLine="If i <> -1 Then"; if (_i!=-1) { -RDebugUtils.currentLine=32178180; - //BA.debugLineNum = 32178180;BA.debugLine="Dim j1 As Int = TxtRow.IndexOf(\"\")"; + //BA.debugLineNum = 385;BA.debugLine="Dim j1 As Int = TxtRow.IndexOf(\"\")"; _j1 = _txtrow.indexOf(""); -RDebugUtils.currentLine=32178181; - //BA.debugLineNum = 32178181;BA.debugLine="If j1 = -1 Then"; + //BA.debugLineNum = 386;BA.debugLine="If j1 = -1 Then"; if (_j1==-1) { -RDebugUtils.currentLine=32178182; - //BA.debugLineNum = 32178182;BA.debugLine="Dim j2 As Int = TxtRow.IndexOf(\"\") 'l"; + //BA.debugLineNum = 387;BA.debugLine="Dim j2 As Int = TxtRow.IndexOf(\"\") 'l"; _j2 = _txtrow.indexOf(""); -RDebugUtils.currentLine=32178183; - //BA.debugLineNum = 32178183;BA.debugLine="j1 = j2"; + //BA.debugLineNum = 388;BA.debugLine="j1 = j2"; _j1 = _j2; -RDebugUtils.currentLine=32178184; - //BA.debugLineNum = 32178184;BA.debugLine="If j1 < i Then j1 = -1"; + //BA.debugLineNum = 389;BA.debugLine="If j1 < i Then j1 = -1"; if (_j1<_i) { _j1 = (int) (-1);}; }; -RDebugUtils.currentLine=32178186; - //BA.debugLineNum = 32178186;BA.debugLine="If j1 <> -1 Then Return TxtRow.SubString2(i+11,j"; + //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 { -RDebugUtils.currentLine=32178188; - //BA.debugLineNum = 32178188;BA.debugLine="Return \"\""; + //BA.debugLineNum = 393;BA.debugLine="Return \"\""; if (true) return ""; }; -RDebugUtils.currentLine=32178190; - //BA.debugLineNum = 32178190;BA.debugLine="End Sub"; + //BA.debugLineNum = 395;BA.debugLine="End Sub"; return ""; } -public String _extractsz(reparto_izca.keymon.lat.cl_appupdate __ref,String _txtrow) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "extractsz", true)) - {return ((String) Debug.delegate(ba, "extractsz", new Object[] {_txtrow}));} +public String _extractsz(String _txtrow) throws Exception{ int _i = 0; int _j1 = 0; int _j2 = 0; String _s = ""; -RDebugUtils.currentLine=32243712; - //BA.debugLineNum = 32243712;BA.debugLine="Private Sub ExtractSZ(TxtRow As String) As String"; -RDebugUtils.currentLine=32243713; - //BA.debugLineNum = 32243713;BA.debugLine="Dim i As Int"; + //BA.debugLineNum = 399;BA.debugLine="Private Sub ExtractSZ(TxtRow As String) As String"; + //BA.debugLineNum = 400;BA.debugLine="Dim i As Int"; _i = 0; -RDebugUtils.currentLine=32243714; - //BA.debugLineNum = 32243714;BA.debugLine="i = TxtRow.IndexOf(\"\")"; + //BA.debugLineNum = 401;BA.debugLine="i = TxtRow.IndexOf(\"\")"; _i = _txtrow.indexOf(""); -RDebugUtils.currentLine=32243715; - //BA.debugLineNum = 32243715;BA.debugLine="If i <> -1 Then"; + //BA.debugLineNum = 402;BA.debugLine="If i <> -1 Then"; if (_i!=-1) { -RDebugUtils.currentLine=32243716; - //BA.debugLineNum = 32243716;BA.debugLine="Dim j1 As Int = TxtRow.IndexOf(\"\") '"; + //BA.debugLineNum = 403;BA.debugLine="Dim j1 As Int = TxtRow.IndexOf(\"\") '"; _j1 = _txtrow.indexOf(""); -RDebugUtils.currentLine=32243717; - //BA.debugLineNum = 32243717;BA.debugLine="If j1 = -1 Then"; + //BA.debugLineNum = 404;BA.debugLine="If j1 = -1 Then"; if (_j1==-1) { -RDebugUtils.currentLine=32243718; - //BA.debugLineNum = 32243718;BA.debugLine="Dim j2 As Int = TxtRow.IndexOf(\"\") '"; + //BA.debugLineNum = 405;BA.debugLine="Dim j2 As Int = TxtRow.IndexOf(\"\") '"; _j2 = _txtrow.indexOf(""); -RDebugUtils.currentLine=32243719; - //BA.debugLineNum = 32243719;BA.debugLine="j1 = j2"; + //BA.debugLineNum = 406;BA.debugLine="j1 = j2"; _j1 = _j2; -RDebugUtils.currentLine=32243720; - //BA.debugLineNum = 32243720;BA.debugLine="If j1 < i Then j1 = -1"; + //BA.debugLineNum = 407;BA.debugLine="If j1 < i Then j1 = -1"; if (_j1<_i) { _j1 = (int) (-1);}; }; -RDebugUtils.currentLine=32243722; - //BA.debugLineNum = 32243722;BA.debugLine="Dim s As String"; + //BA.debugLineNum = 409;BA.debugLine="Dim s As String"; _s = ""; -RDebugUtils.currentLine=32243723; - //BA.debugLineNum = 32243723;BA.debugLine="If j1 <> -1 Then s = TxtRow.SubString2(i+10,j1)"; + //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));}; -RDebugUtils.currentLine=32243724; - //BA.debugLineNum = 32243724;BA.debugLine="s = s.Replace(CRLF,\"\")"; + //BA.debugLineNum = 411;BA.debugLine="s = s.Replace(CRLF,\"\")"; _s = _s.replace(__c.CRLF,""); -RDebugUtils.currentLine=32243725; - //BA.debugLineNum = 32243725;BA.debugLine="s=s.Replace(Chr(13),\"\")"; + //BA.debugLineNum = 412;BA.debugLine="s=s.Replace(Chr(13),\"\")"; _s = _s.replace(BA.ObjectToString(__c.Chr((int) (13))),""); -RDebugUtils.currentLine=32243726; - //BA.debugLineNum = 32243726;BA.debugLine="Return s"; + //BA.debugLineNum = 413;BA.debugLine="Return s"; if (true) return _s; }else { -RDebugUtils.currentLine=32243728; - //BA.debugLineNum = 32243728;BA.debugLine="Return \"\""; + //BA.debugLineNum = 415;BA.debugLine="Return \"\""; if (true) return ""; }; -RDebugUtils.currentLine=32243730; - //BA.debugLineNum = 32243730;BA.debugLine="End Sub"; + //BA.debugLineNum = 417;BA.debugLine="End Sub"; return ""; } -public String _extractvn(reparto_izca.keymon.lat.cl_appupdate __ref,String _txtrow) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "extractvn", true)) - {return ((String) Debug.delegate(ba, "extractvn", new Object[] {_txtrow}));} +public String _extractvn(String _txtrow) throws Exception{ int _i = 0; int _j1 = 0; int _j2 = 0; int _j = 0; String _s = ""; -RDebugUtils.currentLine=32112640; - //BA.debugLineNum = 32112640;BA.debugLine="Private Sub ExtractVN(TxtRow As String) As String"; -RDebugUtils.currentLine=32112641; - //BA.debugLineNum = 32112641;BA.debugLine="Dim i As Int"; + //BA.debugLineNum = 360;BA.debugLine="Private Sub ExtractVN(TxtRow As String) As String"; + //BA.debugLineNum = 361;BA.debugLine="Dim i As Int"; _i = 0; -RDebugUtils.currentLine=32112642; - //BA.debugLineNum = 32112642;BA.debugLine="i = TxtRow.IndexOf(\"=\")"; + //BA.debugLineNum = 362;BA.debugLine="i = TxtRow.IndexOf(\"=\")"; _i = _txtrow.indexOf("="); -RDebugUtils.currentLine=32112643; - //BA.debugLineNum = 32112643;BA.debugLine="If i <> -1 Then"; + //BA.debugLineNum = 363;BA.debugLine="If i <> -1 Then"; if (_i!=-1) { -RDebugUtils.currentLine=32112644; - //BA.debugLineNum = 32112644;BA.debugLine="Dim j1 As Int = TxtRow.IndexOf(\"\") 'l"; + //BA.debugLineNum = 364;BA.debugLine="Dim j1 As Int = TxtRow.IndexOf(\"\") 'l"; _j1 = _txtrow.indexOf(""); -RDebugUtils.currentLine=32112645; - //BA.debugLineNum = 32112645;BA.debugLine="Dim j2 As Int = TxtRow.IndexOf(\"\") 'lo"; + //BA.debugLineNum = 365;BA.debugLine="Dim j2 As Int = TxtRow.IndexOf(\"\") 'lo"; _j2 = _txtrow.indexOf(""); -RDebugUtils.currentLine=32112646; - //BA.debugLineNum = 32112646;BA.debugLine="Dim j As Int = Min(j1, j2)"; + //BA.debugLineNum = 366;BA.debugLine="Dim j As Int = Min(j1, j2)"; _j = (int) (__c.Min(_j1,_j2)); -RDebugUtils.currentLine=32112647; - //BA.debugLineNum = 32112647;BA.debugLine="If j = -1 Then j = Max(j1,j2)"; + //BA.debugLineNum = 367;BA.debugLine="If j = -1 Then j = Max(j1,j2)"; if (_j==-1) { _j = (int) (__c.Max(_j1,_j2));}; -RDebugUtils.currentLine=32112648; - //BA.debugLineNum = 32112648;BA.debugLine="Dim s As String"; + //BA.debugLineNum = 368;BA.debugLine="Dim s As String"; _s = ""; -RDebugUtils.currentLine=32112649; - //BA.debugLineNum = 32112649;BA.debugLine="If j <> - 1 Then s=TxtRow.SubString2(i+1,j) Else"; + //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));}; -RDebugUtils.currentLine=32112650; - //BA.debugLineNum = 32112650;BA.debugLine="s=s.Replace(CRLF,\"\")"; + //BA.debugLineNum = 370;BA.debugLine="s=s.Replace(CRLF,\"\")"; _s = _s.replace(__c.CRLF,""); -RDebugUtils.currentLine=32112651; - //BA.debugLineNum = 32112651;BA.debugLine="s=s.Replace(Chr(13),\"\")"; + //BA.debugLineNum = 371;BA.debugLine="s=s.Replace(Chr(13),\"\")"; _s = _s.replace(BA.ObjectToString(__c.Chr((int) (13))),""); -RDebugUtils.currentLine=32112652; - //BA.debugLineNum = 32112652;BA.debugLine="Return s"; + //BA.debugLineNum = 372;BA.debugLine="Return s"; if (true) return _s; }else { -RDebugUtils.currentLine=32112654; - //BA.debugLineNum = 32112654;BA.debugLine="Return \"\""; + //BA.debugLineNum = 374;BA.debugLine="Return \"\""; if (true) return ""; }; -RDebugUtils.currentLine=32112656; - //BA.debugLineNum = 32112656;BA.debugLine="End Sub"; + //BA.debugLineNum = 376;BA.debugLine="End Sub"; return ""; } -public long _getavailablespace(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getavailablespace", true)) - {return ((Long) Debug.delegate(ba, "getavailablespace", null));} -RDebugUtils.currentLine=31457280; - //BA.debugLineNum = 31457280;BA.debugLine="Public Sub GetAvailableSpace As Long"; -RDebugUtils.currentLine=31457281; - //BA.debugLineNum = 31457281;BA.debugLine="Return GetFreeSpace"; -if (true) return __ref._getfreespace /*long*/ (null); -RDebugUtils.currentLine=31457282; - //BA.debugLineNum = 31457282;BA.debugLine="End Sub"; -return 0L; -} -public long _getfreespace(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getfreespace", true)) - {return ((Long) Debug.delegate(ba, "getfreespace", null));} -anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=32309248; - //BA.debugLineNum = 32309248;BA.debugLine="Private Sub GetFreeSpace As Long"; -RDebugUtils.currentLine=32309249; - //BA.debugLineNum = 32309249;BA.debugLine="Dim jo As JavaObject"; -_jo = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=32309250; - //BA.debugLineNum = 32309250;BA.debugLine="jo.InitializeNewInstance(\"java.io.File\", Array(Sh"; -_jo.InitializeNewInstance("java.io.File",new Object[]{(Object)(__ref._sharedfolder /*String*/ )}); -RDebugUtils.currentLine=32309251; - //BA.debugLineNum = 32309251;BA.debugLine="Return jo.RunMethod(\"getFreeSpace\", Null)"; -if (true) return BA.ObjectToLongNumber(_jo.RunMethod("getFreeSpace",(Object[])(__c.Null))); -RDebugUtils.currentLine=32309252; - //BA.debugLineNum = 32309252;BA.debugLine="End Sub"; -return 0L; -} -public String _getcurvn(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getcurvn", true)) - {return ((String) Debug.delegate(ba, "getcurvn", null));} -RDebugUtils.currentLine=31195136; - //BA.debugLineNum = 31195136;BA.debugLine="Public Sub getCurVN As String"; -RDebugUtils.currentLine=31195137; - //BA.debugLineNum = 31195137;BA.debugLine="Return curver"; -if (true) return __ref._curver /*String*/ ; -RDebugUtils.currentLine=31195138; - //BA.debugLineNum = 31195138;BA.debugLine="End Sub"; +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 Object _getfileuri(reparto_izca.keymon.lat.cl_appupdate __ref,String _filename) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getfileuri", true)) - {return ((Object) Debug.delegate(ba, "getfileuri", new Object[] {_filename}));} +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; -RDebugUtils.currentLine=32702464; - //BA.debugLineNum = 32702464;BA.debugLine="Private Sub GetFileUri (FileName As String) As Obj"; -RDebugUtils.currentLine=32702465; - //BA.debugLineNum = 32702465;BA.debugLine="If UseFileProvider = False Then"; -if (__ref._usefileprovider /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=32702466; - //BA.debugLineNum = 32702466;BA.debugLine="Dim uri As JavaObject"; + //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(); -RDebugUtils.currentLine=32702467; - //BA.debugLineNum = 32702467;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(__ref._sharedfolder /*String*/ ,_filename))}); + //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 { -RDebugUtils.currentLine=32702469; - //BA.debugLineNum = 32702469;BA.debugLine="Dim f As JavaObject"; + //BA.debugLineNum = 508;BA.debugLine="Dim f As JavaObject"; _f = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=32702470; - //BA.debugLineNum = 32702470;BA.debugLine="f.InitializeNewInstance(\"java.io.File\", Array(Sh"; -_f.InitializeNewInstance("java.io.File",new Object[]{(Object)(__ref._sharedfolder /*String*/ ),(Object)(_filename)}); -RDebugUtils.currentLine=32702471; - //BA.debugLineNum = 32702471;BA.debugLine="Dim fp As 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(); -RDebugUtils.currentLine=32702472; - //BA.debugLineNum = 32702472;BA.debugLine="Dim context As JavaObject"; + //BA.debugLineNum = 511;BA.debugLine="Dim context As JavaObject"; _context = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=32702473; - //BA.debugLineNum = 32702473;BA.debugLine="context.InitializeContext"; + //BA.debugLineNum = 512;BA.debugLine="context.InitializeContext"; _context.InitializeContext(ba); -RDebugUtils.currentLine=32702474; - //BA.debugLineNum = 32702474;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content."; + //BA.debugLineNum = 513;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content."; _fp.InitializeStatic("androidx.core.content.FileProvider"); -RDebugUtils.currentLine=32702475; - //BA.debugLineNum = 32702475;BA.debugLine="Return fp.RunMethod(\"getUriForFile\", Array(conte"; + //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())}); }; -RDebugUtils.currentLine=32702477; - //BA.debugLineNum = 32702477;BA.debugLine="End Sub"; + //BA.debugLineNum = 516;BA.debugLine="End Sub"; return null; } -public String _getnmappinst(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getnmappinst", true)) - {return ((String) Debug.delegate(ba, "getnmappinst", 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; -RDebugUtils.currentLine=32440320; - //BA.debugLineNum = 32440320;BA.debugLine="Private Sub GetNMAppInst As String"; -RDebugUtils.currentLine=32440321; - //BA.debugLineNum = 32440321;BA.debugLine="Dim jo As JavaObject"; + //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(); -RDebugUtils.currentLine=32440322; - //BA.debugLineNum = 32440322;BA.debugLine="jo.InitializeStatic(\"android.provider.Settings.Se"; + //BA.debugLineNum = 437;BA.debugLine="jo.InitializeStatic(\"android.provider.Settings.Se"; _jo.InitializeStatic("android.provider.Settings.Secure"); -RDebugUtils.currentLine=32440323; - //BA.debugLineNum = 32440323;BA.debugLine="Dim context As JavaObject"; + //BA.debugLineNum = 438;BA.debugLine="Dim context As JavaObject"; _context = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=32440324; - //BA.debugLineNum = 32440324;BA.debugLine="context.InitializeContext"; + //BA.debugLineNum = 439;BA.debugLine="context.InitializeContext"; _context.InitializeContext(ba); -RDebugUtils.currentLine=32440325; - //BA.debugLineNum = 32440325;BA.debugLine="Dim resolver As JavaObject = context.RunMethod(\"g"; + //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)))); -RDebugUtils.currentLine=32440326; - //BA.debugLineNum = 32440326;BA.debugLine="Return jo.RunMethod(\"getString\", Array(resolver,"; + //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")})); -RDebugUtils.currentLine=32440327; - //BA.debugLineNum = 32440327;BA.debugLine="End Sub"; + //BA.debugLineNum = 442;BA.debugLine="End Sub"; return ""; } -public String _getpackagename(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getpackagename", true)) - {return ((String) Debug.delegate(ba, "getpackagename", null));} -RDebugUtils.currentLine=30801920; - //BA.debugLineNum = 30801920;BA.debugLine="Public Sub getPackageName As String"; -RDebugUtils.currentLine=30801921; - //BA.debugLineNum = 30801921;BA.debugLine="Return sPackageName"; -if (true) return __ref._spackagename /*String*/ ; -RDebugUtils.currentLine=30801922; - //BA.debugLineNum = 30801922;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getsdkversion", true)) - {return ((Integer) Debug.delegate(ba, "getsdkversion", null));} +public int _getsdkversion() throws Exception{ anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=32374784; - //BA.debugLineNum = 32374784;BA.debugLine="Private Sub GetSDKVersion As Int"; -RDebugUtils.currentLine=32374785; - //BA.debugLineNum = 32374785;BA.debugLine="Dim jo As JavaObject"; + //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(); -RDebugUtils.currentLine=32374786; - //BA.debugLineNum = 32374786;BA.debugLine="jo.InitializeStatic(\"android.os.Build.VERSION\")"; + //BA.debugLineNum = 430;BA.debugLine="jo.InitializeStatic(\"android.os.Build.VERSION\")"; _jo.InitializeStatic("android.os.Build.VERSION"); -RDebugUtils.currentLine=32374787; - //BA.debugLineNum = 32374787;BA.debugLine="Return jo.GetField(\"SDK_INT\")"; + //BA.debugLineNum = 431;BA.debugLine="Return jo.GetField(\"SDK_INT\")"; if (true) return (int)(BA.ObjectToNumber(_jo.GetField("SDK_INT"))); -RDebugUtils.currentLine=32374788; - //BA.debugLineNum = 32374788;BA.debugLine="End Sub"; + //BA.debugLineNum = 432;BA.debugLine="End Sub"; return 0; } -public int _getstatus(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getstatus", true)) - {return ((Integer) Debug.delegate(ba, "getstatus", null));} -RDebugUtils.currentLine=31129600; - //BA.debugLineNum = 31129600;BA.debugLine="Public Sub getStatus As Int"; -RDebugUtils.currentLine=31129601; - //BA.debugLineNum = 31129601;BA.debugLine="Return sStatusCode"; -if (true) return __ref._sstatuscode /*int*/ ; -RDebugUtils.currentLine=31129602; - //BA.debugLineNum = 31129602;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getwebchangelog", true)) - {return ((String) Debug.delegate(ba, "getwebchangelog", null));} -RDebugUtils.currentLine=31326208; - //BA.debugLineNum = 31326208;BA.debugLine="Public Sub getWebChangeLog As String"; -RDebugUtils.currentLine=31326209; - //BA.debugLineNum = 31326209;BA.debugLine="Return webclog"; -if (true) return __ref._webclog /*String*/ ; -RDebugUtils.currentLine=31326210; - //BA.debugLineNum = 31326210;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getwebfilesize", true)) - {return ((String) Debug.delegate(ba, "getwebfilesize", null));} -RDebugUtils.currentLine=31391744; - //BA.debugLineNum = 31391744;BA.debugLine="Public Sub getWebFileSize As String"; -RDebugUtils.currentLine=31391745; - //BA.debugLineNum = 31391745;BA.debugLine="Return webfsize"; -if (true) return __ref._webfsize /*String*/ ; -RDebugUtils.currentLine=31391746; - //BA.debugLineNum = 31391746;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "getwebvn", true)) - {return ((String) Debug.delegate(ba, "getwebvn", null));} -RDebugUtils.currentLine=31260672; - //BA.debugLineNum = 31260672;BA.debugLine="Public Sub getWebVN As String"; -RDebugUtils.currentLine=31260673; - //BA.debugLineNum = 31260673;BA.debugLine="Return webver"; -if (true) return __ref._webver /*String*/ ; -RDebugUtils.currentLine=31260674; - //BA.debugLineNum = 31260674;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.cl_appupdate __ref,anywheresoftware.b4a.BA _ba,Object _callbackmodule,String _eventname) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callbackmodule,String _eventname) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callbackmodule,_eventname}));} anywheresoftware.b4a.phone.Phone _p = null; -RDebugUtils.currentLine=30670848; - //BA.debugLineNum = 30670848;BA.debugLine="Public Sub Initialize(CallbackModule As Object, Ev"; -RDebugUtils.currentLine=30670849; - //BA.debugLineNum = 30670849;BA.debugLine="Callback = CallbackModule"; -__ref._callback /*Object*/ = _callbackmodule; -RDebugUtils.currentLine=30670850; - //BA.debugLineNum = 30670850;BA.debugLine="Event = EventName"; -__ref._event /*String*/ = _eventname; -RDebugUtils.currentLine=30670851; - //BA.debugLineNum = 30670851;BA.debugLine="sPackageName = \"\""; -__ref._spackagename /*String*/ = ""; -RDebugUtils.currentLine=30670852; - //BA.debugLineNum = 30670852;BA.debugLine="sNewVerTxt = \"\""; -__ref._snewvertxt /*String*/ = ""; -RDebugUtils.currentLine=30670853; - //BA.debugLineNum = 30670853;BA.debugLine="sNewVerApk = \"\""; -__ref._snewverapk /*String*/ = ""; -RDebugUtils.currentLine=30670854; - //BA.debugLineNum = 30670854;BA.debugLine="sUserName = \"\""; -__ref._susername /*String*/ = ""; -RDebugUtils.currentLine=30670855; - //BA.debugLineNum = 30670855;BA.debugLine="sUPassword = \"\""; -__ref._supassword /*String*/ = ""; -RDebugUtils.currentLine=30670856; - //BA.debugLineNum = 30670856;BA.debugLine="sStatusCode = OK_INIT"; -__ref._sstatuscode /*int*/ = __ref._ok_init /*int*/ ; -RDebugUtils.currentLine=30670857; - //BA.debugLineNum = 30670857;BA.debugLine="curver = \"\""; -__ref._curver /*String*/ = ""; -RDebugUtils.currentLine=30670858; - //BA.debugLineNum = 30670858;BA.debugLine="webver = \"\""; -__ref._webver /*String*/ = ""; -RDebugUtils.currentLine=30670859; - //BA.debugLineNum = 30670859;BA.debugLine="sVerbose = False"; -__ref._sverbose /*boolean*/ = __c.False; -RDebugUtils.currentLine=30670860; - //BA.debugLineNum = 30670860;BA.debugLine="Dim p As Phone"; + //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(); -RDebugUtils.currentLine=30670861; - //BA.debugLineNum = 30670861;BA.debugLine="If p.SdkVersion >= 24 Or File.ExternalWritable ="; + //BA.debugLineNum = 61;BA.debugLine="If p.SdkVersion >= 24 Or File.ExternalWritable ="; if (_p.getSdkVersion()>=24 || __c.File.getExternalWritable()==__c.False) { -RDebugUtils.currentLine=30670862; - //BA.debugLineNum = 30670862;BA.debugLine="UseFileProvider = True"; -__ref._usefileprovider /*boolean*/ = __c.True; -RDebugUtils.currentLine=30670863; - //BA.debugLineNum = 30670863;BA.debugLine="SharedFolder = File.Combine(File.DirInternal, \"s"; -__ref._sharedfolder /*String*/ = __c.File.Combine(__c.File.getDirInternal(),"shared"); -RDebugUtils.currentLine=30670864; - //BA.debugLineNum = 30670864;BA.debugLine="File.MakeDir(\"\", SharedFolder)"; -__c.File.MakeDir("",__ref._sharedfolder /*String*/ ); + //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 { -RDebugUtils.currentLine=30670866; - //BA.debugLineNum = 30670866;BA.debugLine="UseFileProvider = False"; -__ref._usefileprovider /*boolean*/ = __c.False; -RDebugUtils.currentLine=30670867; - //BA.debugLineNum = 30670867;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha"; -__ref._sharedfolder /*String*/ = __ref._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .GetSafeDirDefaultExternal("shared"); + //BA.debugLineNum = 66;BA.debugLine="UseFileProvider = False"; +_usefileprovider = __c.False; + //BA.debugLineNum = 67;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha"; +_sharedfolder = _rp.GetSafeDirDefaultExternal("shared"); }; -RDebugUtils.currentLine=30670869; - //BA.debugLineNum = 30670869;BA.debugLine="Log($\"SDK#: ${p.SdkVersion} - UseFP: ${UseFilePro"; -__c.LogImpl("930670869",("SDK#: "+__c.SmartStringFormatter("",(Object)(_p.getSdkVersion()))+" - UseFP: "+__c.SmartStringFormatter("",(Object)(__ref._usefileprovider /*boolean*/ ))+" - SharedFolder: "+__c.SmartStringFormatter("",(Object)(__ref._sharedfolder /*String*/ ))+""),0); -RDebugUtils.currentLine=30670870; - //BA.debugLineNum = 30670870;BA.debugLine="End Sub"; + //BA.debugLineNum = 69;BA.debugLine="Log($\"SDK#: ${p.SdkVersion} - UseFP: ${UseFilePro"; +__c.LogImpl("939190549",("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(reparto_izca.keymon.lat.cl_appupdate __ref,boolean _pstatus) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "installapk", true)) - {return ((String) Debug.delegate(ba, "installapk", new Object[] {_pstatus}));} -RDebugUtils.currentLine=31719424; - //BA.debugLineNum = 31719424;BA.debugLine="Public Sub InstallApk(pstatus As Boolean)"; -RDebugUtils.currentLine=31719425; - //BA.debugLineNum = 31719425;BA.debugLine="LogColor(\"---- AppUpdating.InstallApk\", LogColor1"; -__c.LogImpl("931719425","---- AppUpdating.InstallApk",__ref._logcolor1 /*int*/ ); -RDebugUtils.currentLine=31719426; - //BA.debugLineNum = 31719426;BA.debugLine="If pstatus Then"; +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("940239105","---- AppUpdating.InstallApk",_logcolor1); + //BA.debugLineNum = 197;BA.debugLine="If pstatus Then"; if (_pstatus) { -RDebugUtils.currentLine=31719427; - //BA.debugLineNum = 31719427;BA.debugLine="SendInstallIntent"; -__ref._sendinstallintent /*String*/ (null); -RDebugUtils.currentLine=31719428; - //BA.debugLineNum = 31719428;BA.debugLine="sStatusCode = OK_INSTALL"; -__ref._sstatuscode /*int*/ = __ref._ok_install /*int*/ ; -RDebugUtils.currentLine=31719429; - //BA.debugLineNum = 31719429;BA.debugLine="If sVerbose Then Log(TAB & \"user asked to instal"; -if (__ref._sverbose /*boolean*/ ) { -__c.LogImpl("931719429",__c.TAB+"user asked to install new apk",0);}; + //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("940239109",__c.TAB+"user asked to install new apk",0);}; }else { -RDebugUtils.currentLine=31719431; - //BA.debugLineNum = 31719431;BA.debugLine="sStatusCode = ERR_NOPERM"; -__ref._sstatuscode /*int*/ = __ref._err_noperm /*int*/ ; -RDebugUtils.currentLine=31719432; - //BA.debugLineNum = 31719432;BA.debugLine="If sVerbose Then Log(TAB & \"no permissions from"; -if (__ref._sverbose /*boolean*/ ) { -__c.LogImpl("931719432",__c.TAB+"no permissions from user to install new apk",0);}; + //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("940239112",__c.TAB+"no permissions from user to install new apk",0);}; }; -RDebugUtils.currentLine=31719434; - //BA.debugLineNum = 31719434;BA.debugLine="Finito"; -__ref._finito /*String*/ (null); -RDebugUtils.currentLine=31719435; - //BA.debugLineNum = 31719435;BA.debugLine="End Sub"; + //BA.debugLineNum = 205;BA.debugLine="Finito"; +_finito(); + //BA.debugLineNum = 206;BA.debugLine="End Sub"; return ""; } -public String _sendinstallintent(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "sendinstallintent", true)) - {return ((String) Debug.delegate(ba, "sendinstallintent", null));} -String _apkname = ""; -anywheresoftware.b4a.objects.IntentWrapper _i = null; -RDebugUtils.currentLine=32636928; - //BA.debugLineNum = 32636928;BA.debugLine="Private Sub SendInstallIntent"; -RDebugUtils.currentLine=32636929; - //BA.debugLineNum = 32636929;BA.debugLine="Dim ApkName As String = \"tmp.apk\""; -_apkname = "tmp.apk"; -RDebugUtils.currentLine=32636930; - //BA.debugLineNum = 32636930;BA.debugLine="Dim i As Intent"; -_i = new anywheresoftware.b4a.objects.IntentWrapper(); -RDebugUtils.currentLine=32636931; - //BA.debugLineNum = 32636931;BA.debugLine="If phone.SdkVersion >= 24 Then 'Nouga"; -if (__ref._phone /*anywheresoftware.b4a.phone.Phone*/ .getSdkVersion()>=24) { -RDebugUtils.currentLine=32636932; - //BA.debugLineNum = 32636932;BA.debugLine="i.Initialize(\"android.intent.action.INSTALL_PACK"; -_i.Initialize("android.intent.action.INSTALL_PACKAGE",BA.ObjectToString(__ref._getfileuri /*Object*/ (null,_apkname))); -RDebugUtils.currentLine=32636933; - //BA.debugLineNum = 32636933;BA.debugLine="i.Flags = Bit.Or(i.Flags, 1) 'FLAG_GRANT_READ_UR"; -_i.setFlags(__c.Bit.Or(_i.getFlags(),(int) (1))); - }else { -RDebugUtils.currentLine=32636935; - //BA.debugLineNum = 32636935;BA.debugLine="i.Initialize(i.ACTION_VIEW, \"file://\" & File.Com"; -_i.Initialize(_i.ACTION_VIEW,"file://"+__c.File.Combine(__ref._sharedfolder /*String*/ ,_apkname)); -RDebugUtils.currentLine=32636936; - //BA.debugLineNum = 32636936;BA.debugLine="i.SetType(\"application/vnd.android.package-archi"; -_i.SetType("application/vnd.android.package-archive"); - }; -RDebugUtils.currentLine=32636938; - //BA.debugLineNum = 32636938;BA.debugLine="StartActivity(i)"; -__c.StartActivity(ba,(Object)(_i.getObject())); -RDebugUtils.currentLine=32636939; - //BA.debugLineNum = 32636939;BA.debugLine="End Sub"; -return ""; -} -public boolean _isvalidcv(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "isvalidcv", true)) - {return ((Boolean) Debug.delegate(ba, "isvalidcv", null));} +public boolean _isvalidcv() throws Exception{ anywheresoftware.b4a.phone.PackageManagerWrapper _pm = null; -RDebugUtils.currentLine=31981568; - //BA.debugLineNum = 31981568;BA.debugLine="Private Sub IsValidCV As Boolean"; -RDebugUtils.currentLine=31981569; - //BA.debugLineNum = 31981569;BA.debugLine="If sPackageName = \"\" Then"; -if ((__ref._spackagename /*String*/ ).equals("")) { -RDebugUtils.currentLine=31981570; - //BA.debugLineNum = 31981570;BA.debugLine="curver = \"\""; -__ref._curver /*String*/ = ""; -RDebugUtils.currentLine=31981571; - //BA.debugLineNum = 31981571;BA.debugLine="sStatusCode = ERR_NOPKG"; -__ref._sstatuscode /*int*/ = __ref._err_nopkg /*int*/ ; -RDebugUtils.currentLine=31981572; - //BA.debugLineNum = 31981572;BA.debugLine="If sVerbose Then Log($\"${TAB}missing package nam"; -if (__ref._sverbose /*boolean*/ ) { -__c.LogImpl("931981572",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"missing package name for current version check"),0);}; + //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("940501252",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"missing package name for current version check"),0);}; }else { -RDebugUtils.currentLine=31981574; - //BA.debugLineNum = 31981574;BA.debugLine="Dim pm As PackageManager"; + //BA.debugLineNum = 303;BA.debugLine="Dim pm As PackageManager"; _pm = new anywheresoftware.b4a.phone.PackageManagerWrapper(); -RDebugUtils.currentLine=31981575; - //BA.debugLineNum = 31981575;BA.debugLine="curver = pm.GetVersionName(sPackageName)"; -__ref._curver /*String*/ = _pm.GetVersionName(__ref._spackagename /*String*/ ); -RDebugUtils.currentLine=31981576; - //BA.debugLineNum = 31981576;BA.debugLine="sStatusCode = OK_CURVER 'got current ve"; -__ref._sstatuscode /*int*/ = __ref._ok_curver /*int*/ ; -RDebugUtils.currentLine=31981577; - //BA.debugLineNum = 31981577;BA.debugLine="If sVerbose Then Log($\"${TAB}Current Version: ${"; -if (__ref._sverbose /*boolean*/ ) { -__c.LogImpl("931981577",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"Current Version: "+__c.SmartStringFormatter("",(Object)(__ref._curver /*String*/ ))+""),0);}; + //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("940501257",(""+__c.SmartStringFormatter("",(Object)(__c.TAB))+"Current Version: "+__c.SmartStringFormatter("",(Object)(_curver))+""),0);}; }; -RDebugUtils.currentLine=31981579; - //BA.debugLineNum = 31981579;BA.debugLine="Return (sStatusCode == OK_CURVER)"; -if (true) return (__ref._sstatuscode /*int*/ ==__ref._ok_curver /*int*/ ); -RDebugUtils.currentLine=31981580; - //BA.debugLineNum = 31981580;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "isvalidwv", true)) - {return ((anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) Debug.delegate(ba, "isvalidwv", null));} -ResumableSub_IsvalidWV rsub = new ResumableSub_IsvalidWV(this,__ref); +public anywheresoftware.b4a.keywords.Common.ResumableSubWrapper _isvalidwv() throws Exception{ +ResumableSub_IsvalidWV rsub = new ResumableSub_IsvalidWV(this); rsub.resume(ba, null); return (anywheresoftware.b4a.keywords.Common.ResumableSubWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.keywords.Common.ResumableSubWrapper(), rsub); } public static class ResumableSub_IsvalidWV extends BA.ResumableSub { -public ResumableSub_IsvalidWV(reparto_izca.keymon.lat.cl_appupdate parent,reparto_izca.keymon.lat.cl_appupdate __ref) { +public ResumableSub_IsvalidWV(reparto_izca.keymon.lat.cl_appupdate parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.cl_appupdate __ref; reparto_izca.keymon.lat.cl_appupdate parent; reparto_izca.keymon.lat.httpjob _j = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="cl_appupdate"; while (true) { switch (state) { @@ -1125,17 +763,15 @@ parent.__c.ReturnFromResumableSub(this,null);return;} case 0: //C this.state = 1; -RDebugUtils.currentLine=32047105; - //BA.debugLineNum = 32047105;BA.debugLine="Log(\"IsValidComplete start\")"; -parent.__c.LogImpl("932047105","IsValidComplete start",0); -RDebugUtils.currentLine=32047106; - //BA.debugLineNum = 32047106;BA.debugLine="If sNewVerTxt = \"\" Then"; + //BA.debugLineNum = 313;BA.debugLine="Log(\"IsValidComplete start\")"; +parent.__c.LogImpl("940566785","IsValidComplete start",0); + //BA.debugLineNum = 314;BA.debugLine="If sNewVerTxt = \"\" Then"; if (true) break; case 1: //if this.state = 60; -if ((__ref._snewvertxt /*String*/ ).equals("")) { +if ((parent._snewvertxt).equals("")) { this.state = 3; }else { this.state = 11; @@ -1144,27 +780,24 @@ this.state = 11; case 3: //C this.state = 4; -RDebugUtils.currentLine=32047107; - //BA.debugLineNum = 32047107;BA.debugLine="webver = \"\""; -__ref._webver /*String*/ = ""; -RDebugUtils.currentLine=32047108; - //BA.debugLineNum = 32047108;BA.debugLine="sStatusCode = ERR_NOTXT"; -__ref._sstatuscode /*int*/ = __ref._err_notxt /*int*/ ; -RDebugUtils.currentLine=32047109; - //BA.debugLineNum = 32047109;BA.debugLine="If sVerbose Then Log($\"${TAB}missing info file f"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 6; ;}if (true) break; case 6: //C this.state = 9; -parent.__c.LogImpl("932047109",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing info file full path indication"),0); +parent.__c.LogImpl("940566789",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing info file full path indication"),0); if (true) break; case 9: @@ -1176,39 +809,30 @@ this.state = 60; case 11: //C this.state = 12; -RDebugUtils.currentLine=32047112; - //BA.debugLineNum = 32047112;BA.debugLine="Dim j As HttpJob"; + //BA.debugLineNum = 320;BA.debugLine="Dim j As HttpJob"; _j = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=32047113; - //BA.debugLineNum = 32047113;BA.debugLine="j.Initialize(\"\", Me)"; -_j._initialize /*String*/ (null,ba,"",parent); -RDebugUtils.currentLine=32047114; - //BA.debugLineNum = 32047114;BA.debugLine="j.Username = sUserName"; -_j._username /*String*/ = __ref._susername /*String*/ ; -RDebugUtils.currentLine=32047115; - //BA.debugLineNum = 32047115;BA.debugLine="j.Password = sUPassword"; -_j._password /*String*/ = __ref._supassword /*String*/ ; -RDebugUtils.currentLine=32047116; - //BA.debugLineNum = 32047116;BA.debugLine="j.Download(sNewVerTxt) 'ex: jobapk.Downlo"; -_j._download /*String*/ (null,__ref._snewvertxt /*String*/ ); -RDebugUtils.currentLine=32047117; - //BA.debugLineNum = 32047117;BA.debugLine="Log(\"before\")"; -parent.__c.LogImpl("932047117","before",0); -RDebugUtils.currentLine=32047118; - //BA.debugLineNum = 32047118;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; -parent.__c.WaitFor("jobdone", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "cl_appupdate", "isvalidwv"), (Object)(_j)); + //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("940566797","before",0); + //BA.debugLineNum = 326;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; +parent.__c.WaitFor("jobdone", ba, this, (Object)(_j)); this.state = 61; return; case 61: //C this.state = 12; -_j = (reparto_izca.keymon.lat.httpjob) result[1]; +_j = (reparto_izca.keymon.lat.httpjob) result[0]; ; -RDebugUtils.currentLine=32047119; - //BA.debugLineNum = 32047119;BA.debugLine="Log(\"after\")"; -parent.__c.LogImpl("932047119","after",0); -RDebugUtils.currentLine=32047120; - //BA.debugLineNum = 32047120;BA.debugLine="If j.Success Then"; + //BA.debugLineNum = 327;BA.debugLine="Log(\"after\")"; +parent.__c.LogImpl("940566799","after",0); + //BA.debugLineNum = 328;BA.debugLine="If j.Success Then"; if (true) break; case 12: @@ -1223,35 +847,33 @@ this.state = 52; case 14: //C this.state = 15; -RDebugUtils.currentLine=32047121; - //BA.debugLineNum = 32047121;BA.debugLine="If sVerbose Then Log($\"Webserver's info file co"; + //BA.debugLineNum = 329;BA.debugLine="If sVerbose Then Log($\"Webserver's info file co"; if (true) break; case 15: //if this.state = 20; -if (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 17; ;}if (true) break; case 17: //C this.state = 20; -parent.__c.LogImpl("932047121",("Webserver's info file content: "+parent.__c.SmartStringFormatter("",(Object)(parent.__c.CRLF))+""+parent.__c.SmartStringFormatter("",(Object)(_j._getstring /*String*/ (null)))+""),0); +parent.__c.LogImpl("940566801",("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; ; -RDebugUtils.currentLine=32047122; - //BA.debugLineNum = 32047122;BA.debugLine="If Not(J.GetString.Contains(\"\"))"; + //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*/ (null).contains(""))) { +if (parent.__c.Not(_j._getstring /*String*/ ().contains(""))) { this.state = 23; }else { this.state = 43; @@ -1260,23 +882,19 @@ this.state = 43; case 23: //C this.state = 24; -RDebugUtils.currentLine=32047123; - //BA.debugLineNum = 32047123;BA.debugLine="webver = ExtractVN(J.GetString)"; -__ref._webver /*String*/ = __ref._extractvn /*String*/ (null,_j._getstring /*String*/ (null)); -RDebugUtils.currentLine=32047124; - //BA.debugLineNum = 32047124;BA.debugLine="webclog = ExtractCL(J.GetString) 'optional"; -__ref._webclog /*String*/ = __ref._extractcl /*String*/ (null,_j._getstring /*String*/ (null)); -RDebugUtils.currentLine=32047125; - //BA.debugLineNum = 32047125;BA.debugLine="webfsize = ExtractSZ(J.GetString) 'optiona"; -__ref._webfsize /*String*/ = __ref._extractsz /*String*/ (null,_j._getstring /*String*/ (null)); -RDebugUtils.currentLine=32047126; - //BA.debugLineNum = 32047126;BA.debugLine="If webver = \"\" Then"; + //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 ((__ref._webver /*String*/ ).equals("")) { +if ((parent._webver).equals("")) { this.state = 26; }else { this.state = 34; @@ -1285,24 +903,22 @@ this.state = 34; case 26: //C this.state = 27; -RDebugUtils.currentLine=32047127; - //BA.debugLineNum = 32047127;BA.debugLine="sStatusCode = ERR_TXTROW"; -__ref._sstatuscode /*int*/ = __ref._err_txtrow /*int*/ ; -RDebugUtils.currentLine=32047128; - //BA.debugLineNum = 32047128;BA.debugLine="If sVerbose Then Log($\"${TAB}wrong row format"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 29; ;}if (true) break; case 29: //C this.state = 32; -parent.__c.LogImpl("932047128",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"wrong row format in info file "),0); +parent.__c.LogImpl("940566808",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"wrong row format in info file "),0); if (true) break; case 32: @@ -1314,24 +930,22 @@ this.state = 41; case 34: //C this.state = 35; -RDebugUtils.currentLine=32047130; - //BA.debugLineNum = 32047130;BA.debugLine="sStatusCode = OK_WEBVER 'read apk's ver"; -__ref._sstatuscode /*int*/ = __ref._ok_webver /*int*/ ; -RDebugUtils.currentLine=32047131; - //BA.debugLineNum = 32047131;BA.debugLine="If sVerbose Then Log($\"${TAB}Web version numb"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 37; ;}if (true) break; case 37: //C this.state = 40; -parent.__c.LogImpl("932047131",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Web version number: "+parent.__c.SmartStringFormatter("",(Object)(__ref._webver /*String*/ ))+""),0); +parent.__c.LogImpl("940566811",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Web version number: "+parent.__c.SmartStringFormatter("",(Object)(parent._webver))+""),0); if (true) break; case 40: @@ -1349,24 +963,22 @@ this.state = 50; case 43: //C this.state = 44; -RDebugUtils.currentLine=32047134; - //BA.debugLineNum = 32047134;BA.debugLine="sStatusCode = ERR_HTML 'website returne"; -__ref._sstatuscode /*int*/ = __ref._err_html /*int*/ ; -RDebugUtils.currentLine=32047135; - //BA.debugLineNum = 32047135;BA.debugLine="If sVerbose Then Log($\"${TAB}ERROR: website re"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 46; ;}if (true) break; case 46: //C this.state = 49; -parent.__c.LogImpl("932047135",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"ERROR: website returned an HTML error page"),0); +parent.__c.LogImpl("940566815",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"ERROR: website returned an HTML error page"),0); if (true) break; case 49: @@ -1384,35 +996,31 @@ this.state = 59; case 52: //C this.state = 53; -RDebugUtils.currentLine=32047138; - //BA.debugLineNum = 32047138;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)"; -parent.__c.LogImpl("932047138",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0); -RDebugUtils.currentLine=32047139; - //BA.debugLineNum = 32047139;BA.debugLine="sStatusCode = ERR_HTTP"; -__ref._sstatuscode /*int*/ = __ref._err_http /*int*/ ; -RDebugUtils.currentLine=32047140; - //BA.debugLineNum = 32047140;BA.debugLine="If sVerbose Then Log($\"${TAB}error in httputils"; + //BA.debugLineNum = 346;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)"; +parent.__c.LogImpl("940566818",(""+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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 55; ;}if (true) break; case 55: //C this.state = 58; -parent.__c.LogImpl("932047140",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0); +parent.__c.LogImpl("940566820",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0); if (true) break; case 58: //C this.state = 59; ; -RDebugUtils.currentLine=32047141; - //BA.debugLineNum = 32047141;BA.debugLine="ToastMessageShow(\"Error: \" & J.ErrorMessage, Tr"; + //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; @@ -1420,67 +1028,48 @@ case 59: //C this.state = 60; ; -RDebugUtils.currentLine=32047143; - //BA.debugLineNum = 32047143;BA.debugLine="j.Release"; -_j._release /*String*/ (null); + //BA.debugLineNum = 351;BA.debugLine="j.Release"; +_j._release /*String*/ (); if (true) break; case 60: //C this.state = -1; ; -RDebugUtils.currentLine=32047145; - //BA.debugLineNum = 32047145;BA.debugLine="Return (sStatusCode == OK_WEBVER)"; + //BA.debugLineNum = 353;BA.debugLine="Return (sStatusCode == OK_WEBVER)"; if (true) { -parent.__c.ReturnFromResumableSub(this,(Object)((__ref._sstatuscode /*int*/ ==__ref._ok_webver /*int*/ )));return;}; -RDebugUtils.currentLine=32047146; - //BA.debugLineNum = 32047146;BA.debugLine="End Sub"; +parent.__c.ReturnFromResumableSub(this,(Object)((parent._sstatuscode==parent._ok_webver)));return;}; + //BA.debugLineNum = 354;BA.debugLine="End Sub"; if (true) break; } } } } -public String _readcurvn(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "readcurvn", true)) - {return ((String) Debug.delegate(ba, "readcurvn", null));} -RDebugUtils.currentLine=31522816; - //BA.debugLineNum = 31522816;BA.debugLine="Public Sub ReadCurVN"; -RDebugUtils.currentLine=31522817; - //BA.debugLineNum = 31522817;BA.debugLine="LogColor(\"---- AppUpdating.ReadCurVN\", LogColor1)"; -__c.LogImpl("931522817","---- AppUpdating.ReadCurVN",__ref._logcolor1 /*int*/ ); -RDebugUtils.currentLine=31522818; - //BA.debugLineNum = 31522818;BA.debugLine="IsValidCV 'we don't care about its resu"; -__ref._isvalidcv /*boolean*/ (null); -RDebugUtils.currentLine=31522819; - //BA.debugLineNum = 31522819;BA.debugLine="Finito"; -__ref._finito /*String*/ (null); -RDebugUtils.currentLine=31522820; - //BA.debugLineNum = 31522820;BA.debugLine="End Sub"; +public String _readcurvn() throws Exception{ + //BA.debugLineNum = 143;BA.debugLine="Public Sub ReadCurVN"; + //BA.debugLineNum = 144;BA.debugLine="LogColor(\"---- AppUpdating.ReadCurVN\", LogColor1)"; +__c.LogImpl("940042497","---- 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(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "readwebvn", true)) - {Debug.delegate(ba, "readwebvn", null); return;} -ResumableSub_ReadWebVN rsub = new ResumableSub_ReadWebVN(this,__ref); +public void _readwebvn() throws Exception{ +ResumableSub_ReadWebVN rsub = new ResumableSub_ReadWebVN(this); rsub.resume(ba, null); } public static class ResumableSub_ReadWebVN extends BA.ResumableSub { -public ResumableSub_ReadWebVN(reparto_izca.keymon.lat.cl_appupdate parent,reparto_izca.keymon.lat.cl_appupdate __ref) { +public ResumableSub_ReadWebVN(reparto_izca.keymon.lat.cl_appupdate parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.cl_appupdate __ref; reparto_izca.keymon.lat.cl_appupdate parent; boolean _okwebver = false; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="cl_appupdate"; while (true) { switch (state) { @@ -1490,213 +1079,158 @@ return; case 0: //C this.state = -1; -RDebugUtils.currentLine=31588353; - //BA.debugLineNum = 31588353;BA.debugLine="LogColor(\"---- AppUpdating.ReadWebVN\", LogColor1)"; -parent.__c.LogImpl("931588353","---- AppUpdating.ReadWebVN",__ref._logcolor1 /*int*/ ); -RDebugUtils.currentLine=31588354; - //BA.debugLineNum = 31588354;BA.debugLine="Wait For(IsvalidWV) Complete (OkWebVer As Boolean"; -parent.__c.WaitFor("complete", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "cl_appupdate", "readwebvn"), __ref._isvalidwv /*anywheresoftware.b4a.keywords.Common.ResumableSubWrapper*/ (null)); + //BA.debugLineNum = 152;BA.debugLine="LogColor(\"---- AppUpdating.ReadWebVN\", LogColor1)"; +parent.__c.LogImpl("940108033","---- 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[1]; +_okwebver = (Boolean) result[0]; ; -RDebugUtils.currentLine=31588355; - //BA.debugLineNum = 31588355;BA.debugLine="Finito"; -__ref._finito /*String*/ (null); -RDebugUtils.currentLine=31588356; - //BA.debugLineNum = 31588356;BA.debugLine="End Sub"; + //BA.debugLineNum = 154;BA.debugLine="Finito"; +parent._finito(); + //BA.debugLineNum = 155;BA.debugLine="End Sub"; if (true) break; } } } } -public String _setandstartsplashscreen(reparto_izca.keymon.lat.cl_appupdate __ref,anywheresoftware.b4a.objects.ActivityWrapper _callingact,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bm) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "setandstartsplashscreen", true)) - {return ((String) Debug.delegate(ba, "setandstartsplashscreen", new Object[] {_callingact,_bm}));} -anywheresoftware.b4a.objects.drawable.BitmapDrawable _bitimage = null; -RDebugUtils.currentLine=32833536; - //BA.debugLineNum = 32833536;BA.debugLine="Public Sub SetAndStartSplashScreen(CallingAct As A"; -RDebugUtils.currentLine=32833537; - //BA.debugLineNum = 32833537;BA.debugLine="If BM.IsInitialized Then"; -if (_bm.IsInitialized()) { -RDebugUtils.currentLine=32833538; - //BA.debugLineNum = 32833538;BA.debugLine="pnlSplash.Initialize(\"pnl1\")"; -__ref._pnlsplash /*anywheresoftware.b4a.objects.PanelWrapper*/ .Initialize(ba,"pnl1"); -RDebugUtils.currentLine=32833539; - //BA.debugLineNum = 32833539;BA.debugLine="pnlSplash.Tag = \"splash\""; -__ref._pnlsplash /*anywheresoftware.b4a.objects.PanelWrapper*/ .setTag((Object)("splash")); -RDebugUtils.currentLine=32833540; - //BA.debugLineNum = 32833540;BA.debugLine="Dim BitImage As BitmapDrawable"; -_bitimage = new anywheresoftware.b4a.objects.drawable.BitmapDrawable(); -RDebugUtils.currentLine=32833541; - //BA.debugLineNum = 32833541;BA.debugLine="BitImage.Initialize(BM)"; -_bitimage.Initialize((android.graphics.Bitmap)(_bm.getObject())); -RDebugUtils.currentLine=32833542; - //BA.debugLineNum = 32833542;BA.debugLine="BitImage.Gravity = Gravity.FILL"; -_bitimage.setGravity(__c.Gravity.FILL); -RDebugUtils.currentLine=32833543; - //BA.debugLineNum = 32833543;BA.debugLine="CallingAct.AddView(pnlSplash, 0, 0, CallingAct.W"; -_callingact.AddView((android.view.View)(__ref._pnlsplash /*anywheresoftware.b4a.objects.PanelWrapper*/ .getObject()),(int) (0),(int) (0),_callingact.getWidth(),_callingact.getHeight()); -RDebugUtils.currentLine=32833544; - //BA.debugLineNum = 32833544;BA.debugLine="pnlSplash.Background = BitImage"; -__ref._pnlsplash /*anywheresoftware.b4a.objects.PanelWrapper*/ .setBackground((android.graphics.drawable.Drawable)(_bitimage.getObject())); -RDebugUtils.currentLine=32833545; - //BA.debugLineNum = 32833545;BA.debugLine="pnlSplash.BringToFront"; -__ref._pnlsplash /*anywheresoftware.b4a.objects.PanelWrapper*/ .BringToFront(); -RDebugUtils.currentLine=32833546; - //BA.debugLineNum = 32833546;BA.debugLine="SplashShowing = True"; -__ref._splashshowing /*boolean*/ = __c.True; +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"); }; -RDebugUtils.currentLine=32833548; - //BA.debugLineNum = 32833548;BA.debugLine="End Sub"; + //BA.debugLineNum = 497;BA.debugLine="StartActivity(i)"; +__c.StartActivity(ba,(Object)(_i.getObject())); + //BA.debugLineNum = 498;BA.debugLine="End Sub"; return ""; } -public String _setcredentials(reparto_izca.keymon.lat.cl_appupdate __ref,String _usern,String _userp) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "setcredentials", true)) - {return ((String) Debug.delegate(ba, "setcredentials", new Object[] {_usern,_userp}));} -RDebugUtils.currentLine=30998528; - //BA.debugLineNum = 30998528;BA.debugLine="Public Sub setCredentials(UserN As String, UserP A"; -RDebugUtils.currentLine=30998529; - //BA.debugLineNum = 30998529;BA.debugLine="sUserName = UserN"; -__ref._susername /*String*/ = _usern; -RDebugUtils.currentLine=30998530; - //BA.debugLineNum = 30998530;BA.debugLine="sUPassword = UserP"; -__ref._supassword /*String*/ = _userp; -RDebugUtils.currentLine=30998531; - //BA.debugLineNum = 30998531;BA.debugLine="End Sub"; +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 _setfileuriasintentdata(reparto_izca.keymon.lat.cl_appupdate __ref,anywheresoftware.b4a.objects.IntentWrapper _intent,String _filename) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "setfileuriasintentdata", true)) - {return ((String) Debug.delegate(ba, "setfileuriasintentdata", new Object[] {_intent,_filename}));} +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; -RDebugUtils.currentLine=32768000; - //BA.debugLineNum = 32768000;BA.debugLine="Private Sub SetFileUriAsIntentData (Intent As Inte"; -RDebugUtils.currentLine=32768001; - //BA.debugLineNum = 32768001;BA.debugLine="Dim jo As JavaObject = Intent"; + //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())); -RDebugUtils.currentLine=32768002; - //BA.debugLineNum = 32768002;BA.debugLine="jo.RunMethod(\"setData\", Array(GetFileUri(FileName"; -_jo.RunMethod("setData",new Object[]{__ref._getfileuri /*Object*/ (null,_filename)}); -RDebugUtils.currentLine=32768003; - //BA.debugLineNum = 32768003;BA.debugLine="Intent.Flags = Bit.Or(Intent.Flags, 1) 'FLAG_GRAN"; + //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))); -RDebugUtils.currentLine=32768004; - //BA.debugLineNum = 32768004;BA.debugLine="End Sub"; + //BA.debugLineNum = 524;BA.debugLine="End Sub"; return ""; } -public String _setnewverapk(reparto_izca.keymon.lat.cl_appupdate __ref,String _nva) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "setnewverapk", true)) - {return ((String) Debug.delegate(ba, "setnewverapk", new Object[] {_nva}));} -RDebugUtils.currentLine=30932992; - //BA.debugLineNum = 30932992;BA.debugLine="Public Sub setNewVerApk(NVA As String)"; -RDebugUtils.currentLine=30932993; - //BA.debugLineNum = 30932993;BA.debugLine="sNewVerApk = NVA"; -__ref._snewverapk /*String*/ = _nva; -RDebugUtils.currentLine=30932994; - //BA.debugLineNum = 30932994;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.cl_appupdate __ref,String _nvt) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "setnewvertxt", true)) - {return ((String) Debug.delegate(ba, "setnewvertxt", new Object[] {_nvt}));} -RDebugUtils.currentLine=30867456; - //BA.debugLineNum = 30867456;BA.debugLine="Public Sub setNewVerTxt(NVT As String)"; -RDebugUtils.currentLine=30867457; - //BA.debugLineNum = 30867457;BA.debugLine="sNewVerTxt = NVT"; -__ref._snewvertxt /*String*/ = _nvt; -RDebugUtils.currentLine=30867458; - //BA.debugLineNum = 30867458;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.cl_appupdate __ref,String _pn) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "setpackagename", true)) - {return ((String) Debug.delegate(ba, "setpackagename", new Object[] {_pn}));} -RDebugUtils.currentLine=30736384; - //BA.debugLineNum = 30736384;BA.debugLine="Public Sub setPackageName(PN As String)"; -RDebugUtils.currentLine=30736385; - //BA.debugLineNum = 30736385;BA.debugLine="sPackageName = PN"; -__ref._spackagename /*String*/ = _pn; -RDebugUtils.currentLine=30736386; - //BA.debugLineNum = 30736386;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.cl_appupdate __ref,boolean _verbose) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "setverbose", true)) - {return ((String) Debug.delegate(ba, "setverbose", new Object[] {_verbose}));} -RDebugUtils.currentLine=31064064; - //BA.debugLineNum = 31064064;BA.debugLine="Public Sub setVerbose(Verbose As Boolean)"; -RDebugUtils.currentLine=31064065; - //BA.debugLineNum = 31064065;BA.debugLine="sVerbose = Verbose"; -__ref._sverbose /*boolean*/ = _verbose; -RDebugUtils.currentLine=31064066; - //BA.debugLineNum = 31064066;BA.debugLine="newinst2.svcVerbose = Verbose"; +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; -RDebugUtils.currentLine=31064067; - //BA.debugLineNum = 31064067;BA.debugLine="End Sub"; + //BA.debugLineNum = 105;BA.debugLine="End Sub"; return ""; } -public String _stopsplashscreen(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "stopsplashscreen", true)) - {return ((String) Debug.delegate(ba, "stopsplashscreen", null));} -RDebugUtils.currentLine=32899072; - //BA.debugLineNum = 32899072;BA.debugLine="Public Sub StopSplashScreen"; -RDebugUtils.currentLine=32899073; - //BA.debugLineNum = 32899073;BA.debugLine="If SplashShowing Then"; -if (__ref._splashshowing /*boolean*/ ) { -RDebugUtils.currentLine=32899074; - //BA.debugLineNum = 32899074;BA.debugLine="SplashShowing = False"; -__ref._splashshowing /*boolean*/ = __c.False; -RDebugUtils.currentLine=32899075; - //BA.debugLineNum = 32899075;BA.debugLine="pnlSplash.RemoveView"; -__ref._pnlsplash /*anywheresoftware.b4a.objects.PanelWrapper*/ .RemoveView(); +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(); }; -RDebugUtils.currentLine=32899077; - //BA.debugLineNum = 32899077;BA.debugLine="End Sub"; + //BA.debugLineNum = 552;BA.debugLine="End Sub"; return ""; } -public void _tryapkupdate(reparto_izca.keymon.lat.cl_appupdate __ref) throws Exception{ -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "tryapkupdate", true)) - {Debug.delegate(ba, "tryapkupdate", null); return;} -ResumableSub_TryApkUpdate rsub = new ResumableSub_TryApkUpdate(this,__ref); +public void _tryapkupdate() throws Exception{ +ResumableSub_TryApkUpdate rsub = new ResumableSub_TryApkUpdate(this); rsub.resume(ba, null); } public static class ResumableSub_TryApkUpdate extends BA.ResumableSub { -public ResumableSub_TryApkUpdate(reparto_izca.keymon.lat.cl_appupdate parent,reparto_izca.keymon.lat.cl_appupdate __ref) { +public ResumableSub_TryApkUpdate(reparto_izca.keymon.lat.cl_appupdate parent) { this.parent = parent; -this.__ref = __ref; -this.__ref = parent; } -reparto_izca.keymon.lat.cl_appupdate __ref; reparto_izca.keymon.lat.cl_appupdate parent; reparto_izca.keymon.lat.httpjob _j = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="cl_appupdate"; while (true) { try { @@ -1708,53 +1242,43 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=31850497; - //BA.debugLineNum = 31850497;BA.debugLine="LogColor($\"${TAB}-- TryApkUpdate\"$, LogColor1)"; -parent.__c.LogImpl("931850497",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"-- TryApkUpdate"),__ref._logcolor1 /*int*/ ); -RDebugUtils.currentLine=31850499; - //BA.debugLineNum = 31850499;BA.debugLine="If ((sStatusCode >= 0) And (sStatusCode <> NO_NEW"; + //BA.debugLineNum = 246;BA.debugLine="LogColor($\"${TAB}-- TryApkUpdate\"$, LogColor1)"; +parent.__c.LogImpl("940370177",(""+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 (((__ref._sstatuscode /*int*/ >=0) && (__ref._sstatuscode /*int*/ !=__ref._no_newerapk /*int*/ ))) { +if (((parent._sstatuscode>=0) && (parent._sstatuscode!=parent._no_newerapk))) { this.state = 3; }if (true) break; case 3: //C this.state = 4; -RDebugUtils.currentLine=31850501; - //BA.debugLineNum = 31850501;BA.debugLine="Dim j As HttpJob"; + //BA.debugLineNum = 250;BA.debugLine="Dim j As HttpJob"; _j = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=31850502; - //BA.debugLineNum = 31850502;BA.debugLine="j.Initialize(\"\", Me)"; -_j._initialize /*String*/ (null,ba,"",parent); -RDebugUtils.currentLine=31850503; - //BA.debugLineNum = 31850503;BA.debugLine="j.Username = sUserName"; -_j._username /*String*/ = __ref._susername /*String*/ ; -RDebugUtils.currentLine=31850504; - //BA.debugLineNum = 31850504;BA.debugLine="j.Password = sUPassword"; -_j._password /*String*/ = __ref._supassword /*String*/ ; -RDebugUtils.currentLine=31850505; - //BA.debugLineNum = 31850505;BA.debugLine="j.Download(sNewVerApk) 'ex: jobapk.Downlo"; -_j._download /*String*/ (null,__ref._snewverapk /*String*/ ); -RDebugUtils.currentLine=31850506; - //BA.debugLineNum = 31850506;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; -parent.__c.WaitFor("jobdone", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "cl_appupdate", "tryapkupdate"), (Object)(_j)); + //BA.debugLineNum = 251;BA.debugLine="j.Initialize(\"\", Me)"; +_j._initialize /*String*/ (ba,"",parent); + //BA.debugLineNum = 252;BA.debugLine="j.Username = sUserName"; +_j._username /*String*/ = parent._susername; + //BA.debugLineNum = 253;BA.debugLine="j.Password = sUPassword"; +_j._password /*String*/ = parent._supassword; + //BA.debugLineNum = 254;BA.debugLine="j.Download(sNewVerApk) 'ex: jobapk.Downlo"; +_j._download /*String*/ (parent._snewverapk); + //BA.debugLineNum = 255;BA.debugLine="Wait For (j) JobDone(j As HttpJob)"; +parent.__c.WaitFor("jobdone", ba, this, (Object)(_j)); this.state = 45; return; case 45: //C this.state = 4; -_j = (reparto_izca.keymon.lat.httpjob) result[1]; +_j = (reparto_izca.keymon.lat.httpjob) result[0]; ; -RDebugUtils.currentLine=31850507; - //BA.debugLineNum = 31850507;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)"; -parent.__c.LogImpl("931850507",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0); -RDebugUtils.currentLine=31850508; - //BA.debugLineNum = 31850508;BA.debugLine="If j.Success Then"; + //BA.debugLineNum = 256;BA.debugLine="Log($\"Donload ok? ${j.Success}\"$)"; +parent.__c.LogImpl("940370187",("Donload ok? "+parent.__c.SmartStringFormatter("",(Object)(_j._success /*boolean*/ ))+""),0); + //BA.debugLineNum = 257;BA.debugLine="If j.Success Then"; if (true) break; case 4: @@ -1769,8 +1293,7 @@ this.state = 26; case 6: //C this.state = 7; -RDebugUtils.currentLine=31850509; - //BA.debugLineNum = 31850509;BA.debugLine="Try"; + //BA.debugLineNum = 258;BA.debugLine="Try"; if (true) break; case 7: @@ -1784,39 +1307,32 @@ case 9: //C this.state = 10; this.catchState = 17; -RDebugUtils.currentLine=31850511; - //BA.debugLineNum = 31850511;BA.debugLine="Dim out As OutputStream"; + //BA.debugLineNum = 260;BA.debugLine="Dim out As OutputStream"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -RDebugUtils.currentLine=31850512; - //BA.debugLineNum = 31850512;BA.debugLine="out = File.OpenOutput(SharedFolder,\"tmp.apk\",F"; -_out = parent.__c.File.OpenOutput(__ref._sharedfolder /*String*/ ,"tmp.apk",parent.__c.False); -RDebugUtils.currentLine=31850513; - //BA.debugLineNum = 31850513;BA.debugLine="File.Copy2(j.GetInputStream, out)"; -parent.__c.File.Copy2((java.io.InputStream)(_j._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ (null).getObject()),(java.io.OutputStream)(_out.getObject())); -RDebugUtils.currentLine=31850514; - //BA.debugLineNum = 31850514;BA.debugLine="out.Close"; + //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(); -RDebugUtils.currentLine=31850515; - //BA.debugLineNum = 31850515;BA.debugLine="Log($\"Copy2 (saving) ok? TRUE\"$)"; -parent.__c.LogImpl("931850515",("Copy2 (saving) ok? TRUE"),0); -RDebugUtils.currentLine=31850516; - //BA.debugLineNum = 31850516;BA.debugLine="sStatusCode = OK_DOWNLOAD"; -__ref._sstatuscode /*int*/ = __ref._ok_download /*int*/ ; -RDebugUtils.currentLine=31850517; - //BA.debugLineNum = 31850517;BA.debugLine="If sVerbose Then Log($\"${TAB}new apk version d"; + //BA.debugLineNum = 264;BA.debugLine="Log($\"Copy2 (saving) ok? TRUE\"$)"; +parent.__c.LogImpl("940370195",("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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 12; ;}if (true) break; case 12: //C this.state = 15; -parent.__c.LogImpl("931850517",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0); +parent.__c.LogImpl("940370197",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"new apk version downloaded and ready to install"),0); if (true) break; case 15: @@ -1829,35 +1345,31 @@ case 17: //C this.state = 18; this.catchState = 0; -RDebugUtils.currentLine=31850519; - //BA.debugLineNum = 31850519;BA.debugLine="Log($\"Copy2 (saving) ok? FALSE\"$)"; -parent.__c.LogImpl("931850519",("Copy2 (saving) ok? FALSE"),0); -RDebugUtils.currentLine=31850520; - //BA.debugLineNum = 31850520;BA.debugLine="sStatusCode = ERR_DOWNLOAD"; -__ref._sstatuscode /*int*/ = __ref._err_download /*int*/ ; -RDebugUtils.currentLine=31850521; - //BA.debugLineNum = 31850521;BA.debugLine="If sVerbose Then Log($\"${TAB}failed download o"; + //BA.debugLineNum = 268;BA.debugLine="Log($\"Copy2 (saving) ok? FALSE\"$)"; +parent.__c.LogImpl("940370199",("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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 20; ;}if (true) break; case 20: //C this.state = 23; -parent.__c.LogImpl("931850521",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"failed download of new apk version"),0); +parent.__c.LogImpl("940370201",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"failed download of new apk version"),0); if (true) break; case 23: //C this.state = 24; ; -RDebugUtils.currentLine=31850522; - //BA.debugLineNum = 31850522;BA.debugLine="ToastMessageShow(LastException, True)"; + //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; @@ -1872,35 +1384,31 @@ this.catchState = 0; case 26: //C this.state = 27; -RDebugUtils.currentLine=31850525; - //BA.debugLineNum = 31850525;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)"; -parent.__c.LogImpl("931850525",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Error: "+parent.__c.SmartStringFormatter("",(Object)(_j._errormessage /*String*/ ))+""),0); -RDebugUtils.currentLine=31850526; - //BA.debugLineNum = 31850526;BA.debugLine="sStatusCode = ERR_HTTP"; -__ref._sstatuscode /*int*/ = __ref._err_http /*int*/ ; -RDebugUtils.currentLine=31850527; - //BA.debugLineNum = 31850527;BA.debugLine="If sVerbose Then Log($\"${TAB}error in httputils"; + //BA.debugLineNum = 274;BA.debugLine="Log($\"${TAB}Error: ${J.ErrorMessage}\"$)"; +parent.__c.LogImpl("940370205",(""+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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 29; ;}if (true) break; case 29: //C this.state = 32; -parent.__c.LogImpl("931850527",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0); +parent.__c.LogImpl("940370207",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"error in httputils2"),0); if (true) break; case 32: //C this.state = 33; ; -RDebugUtils.currentLine=31850528; - //BA.debugLineNum = 31850528;BA.debugLine="ToastMessageShow($\"Error: ${J.ErrorMessage}\"$,"; + //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; @@ -1908,44 +1416,39 @@ case 33: //C this.state = 34; ; -RDebugUtils.currentLine=31850530; - //BA.debugLineNum = 31850530;BA.debugLine="j.Release"; -_j._release /*String*/ (null); -RDebugUtils.currentLine=31850531; - //BA.debugLineNum = 31850531;BA.debugLine="If sStatusCode == OK_DOWNLOAD Then"; + //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 (__ref._sstatuscode /*int*/ ==__ref._ok_download /*int*/ ) { +if (parent._sstatuscode==parent._ok_download) { this.state = 36; }if (true) break; case 36: //C this.state = 37; -RDebugUtils.currentLine=31850532; - //BA.debugLineNum = 31850532;BA.debugLine="SendInstallIntent"; -__ref._sendinstallintent /*String*/ (null); -RDebugUtils.currentLine=31850533; - //BA.debugLineNum = 31850533;BA.debugLine="sStatusCode = OK_INSTALL"; -__ref._sstatuscode /*int*/ = __ref._ok_install /*int*/ ; -RDebugUtils.currentLine=31850534; - //BA.debugLineNum = 31850534;BA.debugLine="If sVerbose Then Log($\"${TAB}user asked to inst"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 39; ;}if (true) break; case 39: //C this.state = 42; -parent.__c.LogImpl("931850534",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"user asked to install new apk"),0); +parent.__c.LogImpl("940370214",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"user asked to install new apk"),0); if (true) break; case 42: @@ -1964,11 +1467,9 @@ case 44: //C this.state = -1; ; -RDebugUtils.currentLine=31850537; - //BA.debugLineNum = 31850537;BA.debugLine="Finito"; -__ref._finito /*String*/ (null); -RDebugUtils.currentLine=31850538; - //BA.debugLineNum = 31850538;BA.debugLine="End Sub"; + //BA.debugLineNum = 286;BA.debugLine="Finito"; +parent._finito(); + //BA.debugLineNum = 287;BA.debugLine="End Sub"; if (true) break; }} catch (Exception e0) { @@ -1982,21 +1483,15 @@ ba.setLastException(e0);} } } } -public void _updateapk(reparto_izca.keymon.lat.cl_appupdate __ref,boolean _pstatus) throws Exception{ -RDebugUtils.currentModule="cl_appupdate"; -if (Debug.shouldDelegate(ba, "updateapk", true)) - {Debug.delegate(ba, "updateapk", new Object[] {_pstatus}); return;} -ResumableSub_UpdateApk rsub = new ResumableSub_UpdateApk(this,__ref,_pstatus); +public void _updateapk(boolean _pstatus) throws Exception{ +ResumableSub_UpdateApk rsub = new ResumableSub_UpdateApk(this,_pstatus); rsub.resume(ba, null); } public static class ResumableSub_UpdateApk extends BA.ResumableSub { -public ResumableSub_UpdateApk(reparto_izca.keymon.lat.cl_appupdate parent,reparto_izca.keymon.lat.cl_appupdate __ref,boolean _pstatus) { +public ResumableSub_UpdateApk(reparto_izca.keymon.lat.cl_appupdate parent,boolean _pstatus) { this.parent = parent; -this.__ref = __ref; this._pstatus = _pstatus; -this.__ref = parent; } -reparto_izca.keymon.lat.cl_appupdate __ref; reparto_izca.keymon.lat.cl_appupdate parent; boolean _pstatus; boolean _okwebver = false; @@ -2004,7 +1499,6 @@ long _fsize = 0L; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="cl_appupdate"; while (true) { switch (state) { @@ -2014,11 +1508,9 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=31784961; - //BA.debugLineNum = 31784961;BA.debugLine="LogColor(\"---- AppUpdating.UpdateApk\", LogColor1)"; -parent.__c.LogImpl("931784961","---- AppUpdating.UpdateApk",__ref._logcolor1 /*int*/ ); -RDebugUtils.currentLine=31784962; - //BA.debugLineNum = 31784962;BA.debugLine="If Not(pstatus) Then"; + //BA.debugLineNum = 211;BA.debugLine="LogColor(\"---- AppUpdating.UpdateApk\", LogColor1)"; +parent.__c.LogImpl("940304641","---- AppUpdating.UpdateApk",parent._logcolor1); + //BA.debugLineNum = 212;BA.debugLine="If Not(pstatus) Then"; if (true) break; case 1: @@ -2033,24 +1525,22 @@ this.state = 11; case 3: //C this.state = 4; -RDebugUtils.currentLine=31784963; - //BA.debugLineNum = 31784963;BA.debugLine="sStatusCode = ERR_NOPERM"; -__ref._sstatuscode /*int*/ = __ref._err_noperm /*int*/ ; -RDebugUtils.currentLine=31784964; - //BA.debugLineNum = 31784964;BA.debugLine="If sVerbose Then Log(TAB & \"no permissions from"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 6; ;}if (true) break; case 6: //C this.state = 9; -parent.__c.LogImpl("931784964",parent.__c.TAB+"no permissions from user to install new apk",0); +parent.__c.LogImpl("940304644",parent.__c.TAB+"no permissions from user to install new apk",0); if (true) break; case 9: @@ -2062,38 +1552,35 @@ this.state = 61; case 11: //C this.state = 12; -RDebugUtils.currentLine=31784966; - //BA.debugLineNum = 31784966;BA.debugLine="Wait For(IsvalidWV) Complete (OkWebVer As Boolea"; -parent.__c.WaitFor("complete", ba, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "cl_appupdate", "updateapk"), __ref._isvalidwv /*anywheresoftware.b4a.keywords.Common.ResumableSubWrapper*/ (null)); + //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[1]; +_okwebver = (Boolean) result[0]; ; -RDebugUtils.currentLine=31784967; - //BA.debugLineNum = 31784967;BA.debugLine="If (IsValidCV And OkWebVer) Then 'here we"; + //BA.debugLineNum = 217;BA.debugLine="If (IsValidCV And OkWebVer) Then 'here we"; if (true) break; case 12: //if this.state = 60; -if ((__ref._isvalidcv /*boolean*/ (null) && _okwebver)) { +if ((parent._isvalidcv() && _okwebver)) { this.state = 14; }if (true) break; case 14: //C this.state = 15; -RDebugUtils.currentLine=31784968; - //BA.debugLineNum = 31784968;BA.debugLine="If curver < webver Then"; + //BA.debugLineNum = 218;BA.debugLine="If curver < webver Then"; if (true) break; case 15: //if this.state = 59; -if ((double)(Double.parseDouble(__ref._curver /*String*/ ))<(double)(Double.parseDouble(__ref._webver /*String*/ ))) { +if ((double)(Double.parseDouble(parent._curver))<(double)(Double.parseDouble(parent._webver))) { this.state = 17; }else { this.state = 52; @@ -2102,55 +1589,50 @@ this.state = 52; case 17: //C this.state = 18; -RDebugUtils.currentLine=31784970; - //BA.debugLineNum = 31784970;BA.debugLine="If IsNumber(webfsize) Then"; + //BA.debugLineNum = 220;BA.debugLine="If IsNumber(webfsize) Then"; if (true) break; case 18: //if this.state = 31; -if (parent.__c.IsNumber(__ref._webfsize /*String*/ )) { +if (parent.__c.IsNumber(parent._webfsize)) { this.state = 20; }if (true) break; case 20: //C this.state = 21; -RDebugUtils.currentLine=31784971; - //BA.debugLineNum = 31784971;BA.debugLine="Dim fsize As Long = webfsize"; -_fsize = (long)(Double.parseDouble(__ref._webfsize /*String*/ )); -RDebugUtils.currentLine=31784972; - //BA.debugLineNum = 31784972;BA.debugLine="If fsize*2 > GetFreeSpace Then"; + //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>__ref._getfreespace /*long*/ (null)) { +if (_fsize*2>parent._getfreespace()) { this.state = 23; }if (true) break; case 23: //C this.state = 24; -RDebugUtils.currentLine=31784973; - //BA.debugLineNum = 31784973;BA.debugLine="sStatusCode = ERR_NOSPACE"; -__ref._sstatuscode /*int*/ = __ref._err_nospace /*int*/ ; -RDebugUtils.currentLine=31784974; - //BA.debugLineNum = 31784974;BA.debugLine="If sVerbose Then Log($\"${TAB}no enough avail"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 26; ;}if (true) break; case 26: //C this.state = 29; -parent.__c.LogImpl("931784974",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"no enough available space to download apk"),0); +parent.__c.LogImpl("940304654",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"no enough available space to download apk"),0); if (true) break; case 29: @@ -2165,75 +1647,69 @@ this.state = 31; ; if (true) break; ; -RDebugUtils.currentLine=31784977; - //BA.debugLineNum = 31784977;BA.debugLine="If sStatusCode >= 0 Then"; + //BA.debugLineNum = 227;BA.debugLine="If sStatusCode >= 0 Then"; case 31: //if this.state = 50; -if (__ref._sstatuscode /*int*/ >=0) { +if (parent._sstatuscode>=0) { this.state = 33; }if (true) break; case 33: //C this.state = 34; -RDebugUtils.currentLine=31784978; - //BA.debugLineNum = 31784978;BA.debugLine="sStatusCode = OK_NEWERAPK 'info file tells"; -__ref._sstatuscode /*int*/ = __ref._ok_newerapk /*int*/ ; -RDebugUtils.currentLine=31784979; - //BA.debugLineNum = 31784979;BA.debugLine="If sVerbose Then Log($\"${TAB}Newer version av"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 36; ;}if (true) break; case 36: //C this.state = 39; -parent.__c.LogImpl("931784979",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"Newer version available. Now I try its downloading"),0); +parent.__c.LogImpl("940304659",(""+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; ; -RDebugUtils.currentLine=31784980; - //BA.debugLineNum = 31784980;BA.debugLine="If sNewVerApk = \"\" Then"; + //BA.debugLineNum = 230;BA.debugLine="If sNewVerApk = \"\" Then"; if (true) break; case 40: //if this.state = 49; -if ((__ref._snewverapk /*String*/ ).equals("")) { +if ((parent._snewverapk).equals("")) { this.state = 42; }if (true) break; case 42: //C this.state = 43; -RDebugUtils.currentLine=31784981; - //BA.debugLineNum = 31784981;BA.debugLine="sStatusCode = ERR_NOAPK"; -__ref._sstatuscode /*int*/ = __ref._err_noapk /*int*/ ; -RDebugUtils.currentLine=31784982; - //BA.debugLineNum = 31784982;BA.debugLine="If sVerbose Then Log($\"${TAB}missing apk fil"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 45; ;}if (true) break; case 45: //C this.state = 48; -parent.__c.LogImpl("931784982",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0); +parent.__c.LogImpl("940304662",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"missing apk file full path indication"),0); if (true) break; case 48: @@ -2257,24 +1733,22 @@ this.state = 59; case 52: //C this.state = 53; -RDebugUtils.currentLine=31784986; - //BA.debugLineNum = 31784986;BA.debugLine="sStatusCode = NO_NEWERAPK"; -__ref._sstatuscode /*int*/ = __ref._no_newerapk /*int*/ ; -RDebugUtils.currentLine=31784987; - //BA.debugLineNum = 31784987;BA.debugLine="If sVerbose Then Log($\"${TAB}No newer version"; + //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 (__ref._sverbose /*boolean*/ ) { +if (parent._sverbose) { this.state = 55; ;}if (true) break; case 55: //C this.state = 58; -parent.__c.LogImpl("931784987",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"No newer version available on webserver."),0); +parent.__c.LogImpl("940304667",(""+parent.__c.SmartStringFormatter("",(Object)(parent.__c.TAB))+"No newer version available on webserver."),0); if (true) break; case 58: @@ -2299,15 +1773,17 @@ case 61: //C this.state = -1; ; -RDebugUtils.currentLine=31784991; - //BA.debugLineNum = 31784991;BA.debugLine="TryApkUpdate 'if available and permitted, do"; -__ref._tryapkupdate /*void*/ (null); -RDebugUtils.currentLine=31784992; - //BA.debugLineNum = 31784992;BA.debugLine="End Sub"; + //BA.debugLineNum = 241;BA.debugLine="TryApkUpdate 'if available and permitted, do"; +parent._tryapkupdate(); + //BA.debugLineNum = 242;BA.debugLine="End Sub"; if (true) break; } } } } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/dbrequestmanager.java b/B4A/Objects/src/reparto_izca/keymon/lat/dbrequestmanager.java index f1674f7..098a5a6 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/dbrequestmanager.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/dbrequestmanager.java @@ -10,7 +10,7 @@ public class dbrequestmanager extends B4AClass.ImplB4AClass implements BA.SubDel private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.dbrequestmanager"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.dbrequestmanager"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,13 +23,36 @@ public class dbrequestmanager extends B4AClass.ImplB4AClass implements BA.SubDel ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } + public anywheresoftware.b4a.keywords.Common __c = null; +public Object _mtarget = null; +public String _link = ""; +public anywheresoftware.b4a.agraham.byteconverter.ByteConverter _bc = null; +public byte _t_null = (byte)0; +public byte _t_string = (byte)0; +public byte _t_short = (byte)0; +public byte _t_int = (byte)0; +public byte _t_long = (byte)0; +public byte _t_float = (byte)0; +public byte _t_double = (byte)0; +public byte _t_boolean = (byte)0; +public byte _t_blob = (byte)0; +public float _version = 0f; +public Object[] _temparray = null; +public String _jobtaganterior = ""; +public b4a.example.dateutils _dateutils = null; +public reparto_izca.keymon.lat.main _main = null; +public reparto_izca.keymon.lat.appupdater _appupdater = null; +public reparto_izca.keymon.lat.foto _foto = null; +public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null; +public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null; +public reparto_izca.keymon.lat.starter _starter = null; +public reparto_izca.keymon.lat.subs _subs = null; +public reparto_izca.keymon.lat.tracker _tracker = null; +public reparto_izca.keymon.lat.newinst2 _newinst2 = null; +public reparto_izca.keymon.lat.b4xpages _b4xpages = null; +public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; +public reparto_izca.keymon.lat.httputils2service _httputils2service = null; +public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; public static class _dbresult{ public boolean IsInitialized; public Object Tag; @@ -65,98 +88,150 @@ Parameters[i0] = new Object(); public String toString() { return BA.TypeToString(this, false); }} -public anywheresoftware.b4a.keywords.Common __c = null; -public Object _mtarget = null; -public String _link = ""; -public anywheresoftware.b4a.agraham.byteconverter.ByteConverter _bc = null; -public byte _t_null = (byte)0; -public byte _t_string = (byte)0; -public byte _t_short = (byte)0; -public byte _t_int = (byte)0; -public byte _t_long = (byte)0; -public byte _t_float = (byte)0; -public byte _t_double = (byte)0; -public byte _t_boolean = (byte)0; -public byte _t_blob = (byte)0; -public float _version = 0f; -public Object[] _temparray = null; -public String _jobtaganterior = ""; -public b4a.example.dateutils _dateutils = null; -public reparto_izca.keymon.lat.main _main = null; -public reparto_izca.keymon.lat.appupdater _appupdater = null; -public reparto_izca.keymon.lat.foto _foto = null; -public reparto_izca.keymon.lat.mapa_cliente _mapa_cliente = null; -public reparto_izca.keymon.lat.mapa_rutas _mapa_rutas = null; -public reparto_izca.keymon.lat.starter _starter = null; -public reparto_izca.keymon.lat.subs _subs = null; -public reparto_izca.keymon.lat.tracker _tracker = null; -public reparto_izca.keymon.lat.newinst2 _newinst2 = null; -public reparto_izca.keymon.lat.b4xpages _b4xpages = null; -public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; -public reparto_izca.keymon.lat.httputils2service _httputils2service = null; -public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _initialize(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.BA _ba,Object _target,String _connectorlink) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_target,_connectorlink}));} -RDebugUtils.currentLine=24772608; - //BA.debugLineNum = 24772608;BA.debugLine="Public Sub Initialize (Target As Object, Connector"; -RDebugUtils.currentLine=24772609; - //BA.debugLineNum = 24772609;BA.debugLine="mTarget = Target"; -__ref._mtarget /*Object*/ = _target; -RDebugUtils.currentLine=24772610; - //BA.debugLineNum = 24772610;BA.debugLine="link = ConnectorLink"; -__ref._link /*String*/ = _connectorlink; -RDebugUtils.currentLine=24772611; - //BA.debugLineNum = 24772611;BA.debugLine="End Sub"; +public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bytestoimage(byte[] _bytes) throws Exception{ +anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; +anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null; + //BA.debugLineNum = 239;BA.debugLine="Public Sub BytesToImage(bytes() As Byte) As Bitmap"; + //BA.debugLineNum = 240;BA.debugLine="Dim In As InputStream"; +_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); + //BA.debugLineNum = 241;BA.debugLine="In.InitializeFromBytesArray(bytes, 0, bytes.Lengt"; +_in.InitializeFromBytesArray(_bytes,(int) (0),_bytes.length); + //BA.debugLineNum = 242;BA.debugLine="Dim bmp As Bitmap"; +_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); + //BA.debugLineNum = 243;BA.debugLine="bmp.Initialize2(In)"; +_bmp.Initialize2((java.io.InputStream)(_in.getObject())); + //BA.debugLineNum = 244;BA.debugLine="Return bmp"; +if (true) return _bmp; + //BA.debugLineNum = 245;BA.debugLine="End Sub"; +return null; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 3;BA.debugLine="Private mTarget As Object"; +_mtarget = new Object(); + //BA.debugLineNum = 4;BA.debugLine="Type DBResult (Tag As Object, Columns As Map, Row"; +; + //BA.debugLineNum = 5;BA.debugLine="Type DBCommand (Name As String, Parameters() As O"; +; + //BA.debugLineNum = 6;BA.debugLine="Private link As String"; +_link = ""; + //BA.debugLineNum = 7;BA.debugLine="Private bc As ByteConverter"; +_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter(); + //BA.debugLineNum = 8;BA.debugLine="Private T_NULL = 0, T_STRING = 1, T_SHORT = 2, T_"; +_t_null = (byte) (0); +_t_string = (byte) (1); +_t_short = (byte) (2); +_t_int = (byte) (3); +_t_long = (byte) (4); +_t_float = (byte) (5); +_t_double = (byte) (6); +_t_boolean = (byte) (7); +_t_blob = (byte) (8); + //BA.debugLineNum = 10;BA.debugLine="Private VERSION As Float = 0.9"; +_version = (float) (0.9); + //BA.debugLineNum = 11;BA.debugLine="Private tempArray(1) As Object"; +_temparray = new Object[(int) (1)]; +{ +int d0 = _temparray.length; +for (int i0 = 0;i0 < d0;i0++) { +_temparray[i0] = new Object(); +} +} +; + //BA.debugLineNum = 12;BA.debugLine="Dim jobTagAnterior As String = \"\" 'Mod por CHV -"; +_jobtaganterior = ""; + //BA.debugLineNum = 13;BA.debugLine="End Sub"; return ""; } -public String _executequery(reparto_izca.keymon.lat.dbrequestmanager __ref,reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command,int _limit,Object _tag) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "executequery", false)) - {return ((String) Debug.delegate(ba, "executequery", new Object[] {_command,_limit,_tag}));} +public String _executebatch(anywheresoftware.b4a.objects.collections.List _listofcommands,Object _tag) throws Exception{ reparto_izca.keymon.lat.httpjob _j = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null; -RDebugUtils.currentLine=24838144; - //BA.debugLineNum = 24838144;BA.debugLine="Public Sub ExecuteQuery(Command As DBCommand, Limi"; -RDebugUtils.currentLine=24838145; - //BA.debugLineNum = 24838145;BA.debugLine="Dim j As HttpJob"; +reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command = null; + //BA.debugLineNum = 41;BA.debugLine="Public Sub ExecuteBatch(ListOfCommands As List, Ta"; + //BA.debugLineNum = 42;BA.debugLine="Dim j As HttpJob"; _j = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=24838146; - //BA.debugLineNum = 24838146;BA.debugLine="Dim ms As OutputStream"; + //BA.debugLineNum = 43;BA.debugLine="Dim ms As OutputStream"; _ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -RDebugUtils.currentLine=24838147; - //BA.debugLineNum = 24838147;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)"; + //BA.debugLineNum = 44;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)"; _out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -_out2 = __ref._startjob /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ (null,_j,_ms,_tag); -RDebugUtils.currentLine=24838149; - //BA.debugLineNum = 24838149;BA.debugLine="WriteObject(Command.Name, out2)"; -__ref._writeobject /*String*/ (null,(Object)(_command.Name /*String*/ ),_out2); -RDebugUtils.currentLine=24838150; - //BA.debugLineNum = 24838150;BA.debugLine="WriteInt(Limit, out2)"; -__ref._writeint /*String*/ (null,_limit,_out2); -RDebugUtils.currentLine=24838151; - //BA.debugLineNum = 24838151;BA.debugLine="WriteList(Command.Parameters, out2)"; -__ref._writelist /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2); -RDebugUtils.currentLine=24838152; - //BA.debugLineNum = 24838152;BA.debugLine="out2.Close"; +_out2 = _startjob(_j,_ms,_tag); + //BA.debugLineNum = 45;BA.debugLine="WriteInt(ListOfCommands.Size, out2)"; +_writeint(_listofcommands.getSize(),_out2); + //BA.debugLineNum = 46;BA.debugLine="For Each Command As DBCommand In ListOfCommands"; +{ +final anywheresoftware.b4a.BA.IterableList group5 = _listofcommands; +final int groupLen5 = group5.getSize() +;int index5 = 0; +; +for (; index5 < groupLen5;index5++){ +_command = (reparto_izca.keymon.lat.dbrequestmanager._dbcommand)(group5.Get(index5)); + //BA.debugLineNum = 47;BA.debugLine="WriteObject(Command.Name, out2)"; +_writeobject((Object)(_command.Name /*String*/ ),_out2); + //BA.debugLineNum = 48;BA.debugLine="WriteList(Command.Parameters, out2)"; +_writelist(anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2); + } +}; + //BA.debugLineNum = 50;BA.debugLine="out2.Close"; _out2.Close(); -RDebugUtils.currentLine=24838153; - //BA.debugLineNum = 24838153;BA.debugLine="j.PostBytes(link & \"?method=query\", ms.ToBytesArr"; -_j._postbytes /*String*/ (null,__ref._link /*String*/ +"?method=query",_ms.ToBytesArray()); -RDebugUtils.currentLine=24838154; - //BA.debugLineNum = 24838154;BA.debugLine="End Sub"; + //BA.debugLineNum = 51;BA.debugLine="j.PostBytes(link & \"?method=batch\", ms.ToBytesArr"; +_j._postbytes /*String*/ (_link+"?method=batch",_ms.ToBytesArray()); + //BA.debugLineNum = 52;BA.debugLine="End Sub"; return ""; } -public reparto_izca.keymon.lat.dbrequestmanager._dbresult _handlejob(reparto_izca.keymon.lat.dbrequestmanager __ref,reparto_izca.keymon.lat.httpjob _job) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "handlejob", false)) - {return ((reparto_izca.keymon.lat.dbrequestmanager._dbresult) Debug.delegate(ba, "handlejob", new Object[] {_job}));} +public String _executecommand(reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command,Object _tag) throws Exception{ + //BA.debugLineNum = 55;BA.debugLine="Public Sub ExecuteCommand(Command As DBCommand, Ta"; + //BA.debugLineNum = 56;BA.debugLine="ExecuteBatch(Array As DBCommand(Command), Tag)"; +_executebatch(anywheresoftware.b4a.keywords.Common.ArrayToList(new reparto_izca.keymon.lat.dbrequestmanager._dbcommand[]{_command}),_tag); + //BA.debugLineNum = 57;BA.debugLine="End Sub"; +return ""; +} +public String _executequery(reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command,int _limit,Object _tag) throws Exception{ +reparto_izca.keymon.lat.httpjob _j = null; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null; + //BA.debugLineNum = 26;BA.debugLine="Public Sub ExecuteQuery(Command As DBCommand, Limi"; + //BA.debugLineNum = 27;BA.debugLine="Dim j As HttpJob"; +_j = new reparto_izca.keymon.lat.httpjob(); + //BA.debugLineNum = 28;BA.debugLine="Dim ms As OutputStream"; +_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); + //BA.debugLineNum = 29;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)"; +_out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); +_out2 = _startjob(_j,_ms,_tag); + //BA.debugLineNum = 31;BA.debugLine="WriteObject(Command.Name, out2)"; +_writeobject((Object)(_command.Name /*String*/ ),_out2); + //BA.debugLineNum = 32;BA.debugLine="WriteInt(Limit, out2)"; +_writeint(_limit,_out2); + //BA.debugLineNum = 33;BA.debugLine="WriteList(Command.Parameters, out2)"; +_writelist(anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2); + //BA.debugLineNum = 34;BA.debugLine="out2.Close"; +_out2.Close(); + //BA.debugLineNum = 35;BA.debugLine="j.PostBytes(link & \"?method=query\", ms.ToBytesArr"; +_j._postbytes /*String*/ (_link+"?method=query",_ms.ToBytesArray()); + //BA.debugLineNum = 36;BA.debugLine="End Sub"; +return ""; +} +public byte[] _filetobytes(String _dir,String _filename) throws Exception{ +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; +anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; + //BA.debugLineNum = 221;BA.debugLine="Public Sub FileToBytes(Dir As String, FileName As"; + //BA.debugLineNum = 222;BA.debugLine="Dim out As OutputStream"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); + //BA.debugLineNum = 223;BA.debugLine="out.InitializeToBytesArray(0)"; +_out.InitializeToBytesArray((int) (0)); + //BA.debugLineNum = 224;BA.debugLine="Dim In As InputStream = File.OpenInput(Dir, FileN"; +_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); +_in = __c.File.OpenInput(_dir,_filename); + //BA.debugLineNum = 225;BA.debugLine="File.Copy2(In, out)"; +__c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(_out.getObject())); + //BA.debugLineNum = 226;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 227;BA.debugLine="Return out.ToBytesArray"; +if (true) return _out.ToBytesArray(); + //BA.debugLineNum = 228;BA.debugLine="End Sub"; +return null; +} +public reparto_izca.keymon.lat.dbrequestmanager._dbresult _handlejob(reparto_izca.keymon.lat.httpjob _job) throws Exception{ anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; anywheresoftware.b4a.randomaccessfile.CompressedStreams _cs = null; float _serverversion = 0f; @@ -168,69 +243,50 @@ Object[] _rowobjects = null; int _col = 0; Object _o = null; int _rows = 0; -RDebugUtils.currentLine=25559040; - //BA.debugLineNum = 25559040;BA.debugLine="Public Sub HandleJob(Job As HttpJob) As DBResult"; -RDebugUtils.currentLine=25559042; - //BA.debugLineNum = 25559042;BA.debugLine="Dim In As InputStream = Job.GetInputStream"; + //BA.debugLineNum = 182;BA.debugLine="Public Sub HandleJob(Job As HttpJob) As DBResult"; + //BA.debugLineNum = 184;BA.debugLine="Dim In As InputStream = Job.GetInputStream"; _in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); -_in = _job._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ (null); -RDebugUtils.currentLine=25559043; - //BA.debugLineNum = 25559043;BA.debugLine="Dim cs As CompressedStreams"; +_in = _job._getinputstream /*anywheresoftware.b4a.objects.streams.File.InputStreamWrapper*/ (); + //BA.debugLineNum = 185;BA.debugLine="Dim cs As CompressedStreams"; _cs = new anywheresoftware.b4a.randomaccessfile.CompressedStreams(); -RDebugUtils.currentLine=25559044; - //BA.debugLineNum = 25559044;BA.debugLine="In = cs.WrapInputStream(In, \"gzip\")"; + //BA.debugLineNum = 186;BA.debugLine="In = cs.WrapInputStream(In, \"gzip\")"; _in = _cs.WrapInputStream((java.io.InputStream)(_in.getObject()),"gzip"); -RDebugUtils.currentLine=25559045; - //BA.debugLineNum = 25559045;BA.debugLine="Dim serverVersion As Float = ReadObject(In) 'igno"; -_serverversion = (float)(BA.ObjectToNumber(__ref._readobject /*Object*/ (null,_in))); -RDebugUtils.currentLine=25559046; - //BA.debugLineNum = 25559046;BA.debugLine="Dim method As String = ReadObject(In)"; -_method = BA.ObjectToString(__ref._readobject /*Object*/ (null,_in)); -RDebugUtils.currentLine=25559047; - //BA.debugLineNum = 25559047;BA.debugLine="Dim table As DBResult"; + //BA.debugLineNum = 187;BA.debugLine="Dim serverVersion As Float = ReadObject(In) 'igno"; +_serverversion = (float)(BA.ObjectToNumber(_readobject(_in))); + //BA.debugLineNum = 188;BA.debugLine="Dim method As String = ReadObject(In)"; +_method = BA.ObjectToString(_readobject(_in)); + //BA.debugLineNum = 189;BA.debugLine="Dim table As DBResult"; _table = new reparto_izca.keymon.lat.dbrequestmanager._dbresult(); -RDebugUtils.currentLine=25559048; - //BA.debugLineNum = 25559048;BA.debugLine="table.Initialize"; + //BA.debugLineNum = 190;BA.debugLine="table.Initialize"; _table.Initialize(); -RDebugUtils.currentLine=25559049; - //BA.debugLineNum = 25559049;BA.debugLine="table.Columns.Initialize"; + //BA.debugLineNum = 191;BA.debugLine="table.Columns.Initialize"; _table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Initialize(); -RDebugUtils.currentLine=25559050; - //BA.debugLineNum = 25559050;BA.debugLine="table.rows.Initialize"; + //BA.debugLineNum = 192;BA.debugLine="table.rows.Initialize"; _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Initialize(); -RDebugUtils.currentLine=25559051; - //BA.debugLineNum = 25559051;BA.debugLine="table.Tag = Job.Tag"; + //BA.debugLineNum = 193;BA.debugLine="table.Tag = Job.Tag"; _table.Tag /*Object*/ = _job._tag /*Object*/ ; -RDebugUtils.currentLine=25559052; - //BA.debugLineNum = 25559052;BA.debugLine="If jobTagAnterior <> Job.Tag Then LogColor(\"Handl"; -if ((__ref._jobtaganterior /*String*/ ).equals(BA.ObjectToString(_job._tag /*Object*/ )) == false) { -__c.LogImpl("225559052","HandleJob: '"+BA.ObjectToString(_job._tag /*Object*/ )+"'",__c.Colors.Blue);}; -RDebugUtils.currentLine=25559053; - //BA.debugLineNum = 25559053;BA.debugLine="jobTagAnterior = Job.Tag 'Mod por CHV - 211023"; -__ref._jobtaganterior /*String*/ = BA.ObjectToString(_job._tag /*Object*/ ); -RDebugUtils.currentLine=25559054; - //BA.debugLineNum = 25559054;BA.debugLine="If method = \"query\" Then"; + //BA.debugLineNum = 194;BA.debugLine="If jobTagAnterior <> Job.Tag Then LogColor(\"Handl"; +if ((_jobtaganterior).equals(BA.ObjectToString(_job._tag /*Object*/ )) == false) { +__c.LogImpl("025821196","HandleJob: '"+BA.ObjectToString(_job._tag /*Object*/ )+"'",__c.Colors.Blue);}; + //BA.debugLineNum = 195;BA.debugLine="jobTagAnterior = Job.Tag 'Mod por CHV - 211023"; +_jobtaganterior = BA.ObjectToString(_job._tag /*Object*/ ); + //BA.debugLineNum = 196;BA.debugLine="If method = \"query\" Then"; if ((_method).equals("query")) { -RDebugUtils.currentLine=25559055; - //BA.debugLineNum = 25559055;BA.debugLine="Dim numberOfColumns As Int = ReadInt(In)"; -_numberofcolumns = __ref._readint /*int*/ (null,_in); -RDebugUtils.currentLine=25559056; - //BA.debugLineNum = 25559056;BA.debugLine="For i = 0 To numberOfColumns - 1"; + //BA.debugLineNum = 197;BA.debugLine="Dim numberOfColumns As Int = ReadInt(In)"; +_numberofcolumns = _readint(_in); + //BA.debugLineNum = 198;BA.debugLine="For i = 0 To numberOfColumns - 1"; { final int step15 = 1; final int limit15 = (int) (_numberofcolumns-1); _i = (int) (0) ; for (;_i <= limit15 ;_i = _i + step15 ) { -RDebugUtils.currentLine=25559057; - //BA.debugLineNum = 25559057;BA.debugLine="table.Columns.Put(ReadObject(In), i)"; -_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put(__ref._readobject /*Object*/ (null,_in),(Object)(_i)); + //BA.debugLineNum = 199;BA.debugLine="table.Columns.Put(ReadObject(In), i)"; +_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put(_readobject(_in),(Object)(_i)); } }; -RDebugUtils.currentLine=25559059; - //BA.debugLineNum = 25559059;BA.debugLine="Do While ReadByte(In) = 1"; -while (__ref._readbyte /*byte*/ (null,_in)==1) { -RDebugUtils.currentLine=25559060; - //BA.debugLineNum = 25559060;BA.debugLine="Dim rowObjects(numberOfColumns) As Object"; + //BA.debugLineNum = 201;BA.debugLine="Do While ReadByte(In) = 1"; +while (_readbyte(_in)==1) { + //BA.debugLineNum = 202;BA.debugLine="Dim rowObjects(numberOfColumns) As Object"; _rowobjects = new Object[_numberofcolumns]; { int d0 = _rowobjects.length; @@ -239,666 +295,84 @@ _rowobjects[i0] = new Object(); } } ; -RDebugUtils.currentLine=25559061; - //BA.debugLineNum = 25559061;BA.debugLine="table.rows.Add(rowObjects)"; + //BA.debugLineNum = 203;BA.debugLine="table.rows.Add(rowObjects)"; _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(_rowobjects)); -RDebugUtils.currentLine=25559062; - //BA.debugLineNum = 25559062;BA.debugLine="For col = 0 To numberOfColumns - 1"; + //BA.debugLineNum = 204;BA.debugLine="For col = 0 To numberOfColumns - 1"; { final int step21 = 1; final int limit21 = (int) (_numberofcolumns-1); _col = (int) (0) ; for (;_col <= limit21 ;_col = _col + step21 ) { -RDebugUtils.currentLine=25559063; - //BA.debugLineNum = 25559063;BA.debugLine="Dim o As Object = ReadObject(In)"; -_o = __ref._readobject /*Object*/ (null,_in); -RDebugUtils.currentLine=25559064; - //BA.debugLineNum = 25559064;BA.debugLine="rowObjects(col) = o"; + //BA.debugLineNum = 205;BA.debugLine="Dim o As Object = ReadObject(In)"; +_o = _readobject(_in); + //BA.debugLineNum = 206;BA.debugLine="rowObjects(col) = o"; _rowobjects[_col] = _o; } }; } ; - }else -{RDebugUtils.currentLine=25559067; - //BA.debugLineNum = 25559067;BA.debugLine="Else If method = \"batch\" Then"; -if ((_method).equals("batch")) { -RDebugUtils.currentLine=25559068; - //BA.debugLineNum = 25559068;BA.debugLine="table.Columns.Put(\"AffectedRows\", 0)"; + }else if((_method).equals("batch")) { + //BA.debugLineNum = 210;BA.debugLine="table.Columns.Put(\"AffectedRows\", 0)"; _table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Put((Object)("AffectedRows"),(Object)(0)); -RDebugUtils.currentLine=25559069; - //BA.debugLineNum = 25559069;BA.debugLine="Dim rows As Int = ReadInt(In)"; -_rows = __ref._readint /*int*/ (null,_in); -RDebugUtils.currentLine=25559070; - //BA.debugLineNum = 25559070;BA.debugLine="For i = 0 To rows - 1"; + //BA.debugLineNum = 211;BA.debugLine="Dim rows As Int = ReadInt(In)"; +_rows = _readint(_in); + //BA.debugLineNum = 212;BA.debugLine="For i = 0 To rows - 1"; { final int step29 = 1; final int limit29 = (int) (_rows-1); _i = (int) (0) ; for (;_i <= limit29 ;_i = _i + step29 ) { -RDebugUtils.currentLine=25559071; - //BA.debugLineNum = 25559071;BA.debugLine="table.rows.Add(Array As Object(ReadInt(In)))"; -_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(new Object[]{(Object)(__ref._readint /*int*/ (null,_in))})); + //BA.debugLineNum = 213;BA.debugLine="table.rows.Add(Array As Object(ReadInt(In)))"; +_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .Add((Object)(new Object[]{(Object)(_readint(_in))})); } }; - }} -; -RDebugUtils.currentLine=25559074; - //BA.debugLineNum = 25559074;BA.debugLine="In.Close"; -_in.Close(); -RDebugUtils.currentLine=25559075; - //BA.debugLineNum = 25559075;BA.debugLine="Return table"; -if (true) return _table; -RDebugUtils.currentLine=25559076; - //BA.debugLineNum = 25559076;BA.debugLine="End Sub"; -return null; -} -public String _executecommand(reparto_izca.keymon.lat.dbrequestmanager __ref,reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command,Object _tag) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "executecommand", false)) - {return ((String) Debug.delegate(ba, "executecommand", new Object[] {_command,_tag}));} -RDebugUtils.currentLine=24969216; - //BA.debugLineNum = 24969216;BA.debugLine="Public Sub ExecuteCommand(Command As DBCommand, Ta"; -RDebugUtils.currentLine=24969217; - //BA.debugLineNum = 24969217;BA.debugLine="ExecuteBatch(Array As DBCommand(Command), Tag)"; -__ref._executebatch /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(new reparto_izca.keymon.lat.dbrequestmanager._dbcommand[]{_command}),_tag); -RDebugUtils.currentLine=24969218; - //BA.debugLineNum = 24969218;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bytestoimage(reparto_izca.keymon.lat.dbrequestmanager __ref,byte[] _bytes) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "bytestoimage", false)) - {return ((anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) Debug.delegate(ba, "bytestoimage", new Object[] {_bytes}));} -anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; -anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp = null; -RDebugUtils.currentLine=25755648; - //BA.debugLineNum = 25755648;BA.debugLine="Public Sub BytesToImage(bytes() As Byte) As Bitmap"; -RDebugUtils.currentLine=25755649; - //BA.debugLineNum = 25755649;BA.debugLine="Dim In As InputStream"; -_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); -RDebugUtils.currentLine=25755650; - //BA.debugLineNum = 25755650;BA.debugLine="In.InitializeFromBytesArray(bytes, 0, bytes.Lengt"; -_in.InitializeFromBytesArray(_bytes,(int) (0),_bytes.length); -RDebugUtils.currentLine=25755651; - //BA.debugLineNum = 25755651;BA.debugLine="Dim bmp As Bitmap"; -_bmp = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); -RDebugUtils.currentLine=25755652; - //BA.debugLineNum = 25755652;BA.debugLine="bmp.Initialize2(In)"; -_bmp.Initialize2((java.io.InputStream)(_in.getObject())); -RDebugUtils.currentLine=25755653; - //BA.debugLineNum = 25755653;BA.debugLine="Return bmp"; -if (true) return _bmp; -RDebugUtils.currentLine=25755654; - //BA.debugLineNum = 25755654;BA.debugLine="End Sub"; -return null; -} -public String _class_globals(reparto_izca.keymon.lat.dbrequestmanager __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -RDebugUtils.currentLine=24707072; - //BA.debugLineNum = 24707072;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=24707073; - //BA.debugLineNum = 24707073;BA.debugLine="Private mTarget As Object"; -_mtarget = new Object(); -RDebugUtils.currentLine=24707074; - //BA.debugLineNum = 24707074;BA.debugLine="Type DBResult (Tag As Object, Columns As Map, Row"; -; -RDebugUtils.currentLine=24707075; - //BA.debugLineNum = 24707075;BA.debugLine="Type DBCommand (Name As String, Parameters() As O"; -; -RDebugUtils.currentLine=24707076; - //BA.debugLineNum = 24707076;BA.debugLine="Private link As String"; -_link = ""; -RDebugUtils.currentLine=24707077; - //BA.debugLineNum = 24707077;BA.debugLine="Private bc As ByteConverter"; -_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter(); -RDebugUtils.currentLine=24707078; - //BA.debugLineNum = 24707078;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); -RDebugUtils.currentLine=24707080; - //BA.debugLineNum = 24707080;BA.debugLine="Private VERSION As Float = 0.9"; -_version = (float) (0.9); -RDebugUtils.currentLine=24707081; - //BA.debugLineNum = 24707081;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(); -} -} -; -RDebugUtils.currentLine=24707082; - //BA.debugLineNum = 24707082;BA.debugLine="Dim jobTagAnterior As String = \"\" 'Mod por CHV -"; -_jobtaganterior = ""; -RDebugUtils.currentLine=24707083; - //BA.debugLineNum = 24707083;BA.debugLine="End Sub"; -return ""; -} -public String _executebatch(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.collections.List _listofcommands,Object _tag) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "executebatch", false)) - {return ((String) Debug.delegate(ba, "executebatch", new Object[] {_listofcommands,_tag}));} -reparto_izca.keymon.lat.httpjob _j = null; -anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _ms = null; -anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out2 = null; -reparto_izca.keymon.lat.dbrequestmanager._dbcommand _command = null; -RDebugUtils.currentLine=24903680; - //BA.debugLineNum = 24903680;BA.debugLine="Public Sub ExecuteBatch(ListOfCommands As List, Ta"; -RDebugUtils.currentLine=24903681; - //BA.debugLineNum = 24903681;BA.debugLine="Dim j As HttpJob"; -_j = new reparto_izca.keymon.lat.httpjob(); -RDebugUtils.currentLine=24903682; - //BA.debugLineNum = 24903682;BA.debugLine="Dim ms As OutputStream"; -_ms = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -RDebugUtils.currentLine=24903683; - //BA.debugLineNum = 24903683;BA.debugLine="Dim out2 As OutputStream = StartJob(j,ms, Tag)"; -_out2 = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -_out2 = __ref._startjob /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ (null,_j,_ms,_tag); -RDebugUtils.currentLine=24903684; - //BA.debugLineNum = 24903684;BA.debugLine="WriteInt(ListOfCommands.Size, out2)"; -__ref._writeint /*String*/ (null,_listofcommands.getSize(),_out2); -RDebugUtils.currentLine=24903685; - //BA.debugLineNum = 24903685;BA.debugLine="For Each Command As DBCommand In ListOfCommands"; -{ -final anywheresoftware.b4a.BA.IterableList group5 = _listofcommands; -final int groupLen5 = group5.getSize() -;int index5 = 0; -; -for (; index5 < groupLen5;index5++){ -_command = (reparto_izca.keymon.lat.dbrequestmanager._dbcommand)(group5.Get(index5)); -RDebugUtils.currentLine=24903686; - //BA.debugLineNum = 24903686;BA.debugLine="WriteObject(Command.Name, out2)"; -__ref._writeobject /*String*/ (null,(Object)(_command.Name /*String*/ ),_out2); -RDebugUtils.currentLine=24903687; - //BA.debugLineNum = 24903687;BA.debugLine="WriteList(Command.Parameters, out2)"; -__ref._writelist /*String*/ (null,anywheresoftware.b4a.keywords.Common.ArrayToList(_command.Parameters /*Object[]*/ ),_out2); - } -}; -RDebugUtils.currentLine=24903689; - //BA.debugLineNum = 24903689;BA.debugLine="out2.Close"; -_out2.Close(); -RDebugUtils.currentLine=24903690; - //BA.debugLineNum = 24903690;BA.debugLine="j.PostBytes(link & \"?method=batch\", ms.ToBytesArr"; -_j._postbytes /*String*/ (null,__ref._link /*String*/ +"?method=batch",_ms.ToBytesArray()); -RDebugUtils.currentLine=24903691; - //BA.debugLineNum = 24903691;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _startjob(reparto_izca.keymon.lat.dbrequestmanager __ref,reparto_izca.keymon.lat.httpjob _j,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _memorystream,Object _tag) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "startjob", false)) - {return ((anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper) Debug.delegate(ba, "startjob", new Object[] {_j,_memorystream,_tag}));} -anywheresoftware.b4a.randomaccessfile.CompressedStreams _compress = null; -anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; -RDebugUtils.currentLine=25034752; - //BA.debugLineNum = 25034752;BA.debugLine="Private Sub StartJob(j As HttpJob, MemoryStream As"; -RDebugUtils.currentLine=25034753; - //BA.debugLineNum = 25034753;BA.debugLine="j.Initialize(\"DBRequest\", mTarget)"; -_j._initialize /*String*/ (null,ba,"DBRequest",__ref._mtarget /*Object*/ ); -RDebugUtils.currentLine=25034754; - //BA.debugLineNum = 25034754;BA.debugLine="j.Tag = Tag"; -_j._tag /*Object*/ = _tag; -RDebugUtils.currentLine=25034755; - //BA.debugLineNum = 25034755;BA.debugLine="MemoryStream.InitializeToBytesArray(0)"; -_memorystream.InitializeToBytesArray((int) (0)); -RDebugUtils.currentLine=25034756; - //BA.debugLineNum = 25034756;BA.debugLine="Dim compress As CompressedStreams"; -_compress = new anywheresoftware.b4a.randomaccessfile.CompressedStreams(); -RDebugUtils.currentLine=25034757; - //BA.debugLineNum = 25034757;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"); -RDebugUtils.currentLine=25034758; - //BA.debugLineNum = 25034758;BA.debugLine="WriteObject(VERSION, out)"; -__ref._writeobject /*String*/ (null,(Object)(__ref._version /*float*/ ),_out); -RDebugUtils.currentLine=25034759; - //BA.debugLineNum = 25034759;BA.debugLine="Return out"; -if (true) return _out; -RDebugUtils.currentLine=25034760; - //BA.debugLineNum = 25034760;BA.debugLine="End Sub"; -return null; -} -public String _writeint(reparto_izca.keymon.lat.dbrequestmanager __ref,int _i,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "writeint", false)) - {return ((String) Debug.delegate(ba, "writeint", new Object[] {_i,_out}));} -byte[] _data = null; -RDebugUtils.currentLine=25362432; - //BA.debugLineNum = 25362432;BA.debugLine="Private Sub WriteInt(i As Int, out As OutputStream"; -RDebugUtils.currentLine=25362433; - //BA.debugLineNum = 25362433;BA.debugLine="Dim data() As Byte"; -_data = new byte[(int) (0)]; -; -RDebugUtils.currentLine=25362434; - //BA.debugLineNum = 25362434;BA.debugLine="data = bc.IntsToBytes(Array As Int(i))"; -_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{_i}); -RDebugUtils.currentLine=25362435; - //BA.debugLineNum = 25362435;BA.debugLine="out.WriteBytes(data, 0, data.Length)"; -_out.WriteBytes(_data,(int) (0),_data.length); -RDebugUtils.currentLine=25362436; - //BA.debugLineNum = 25362436;BA.debugLine="End Sub"; -return ""; -} -public String _writeobject(reparto_izca.keymon.lat.dbrequestmanager __ref,Object _o,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "writeobject", false)) - {return ((String) Debug.delegate(ba, "writeobject", new Object[] {_o,_out}));} -byte[] _data = null; -boolean _b = false; -RDebugUtils.currentLine=25165824; - //BA.debugLineNum = 25165824;BA.debugLine="Private Sub WriteObject(o As Object, out As Output"; -RDebugUtils.currentLine=25165825; - //BA.debugLineNum = 25165825;BA.debugLine="Dim data() As Byte"; -_data = new byte[(int) (0)]; -; -RDebugUtils.currentLine=25165826; - //BA.debugLineNum = 25165826;BA.debugLine="tempArray(0) = o"; -__ref._temparray /*Object[]*/ [(int) (0)] = _o; -RDebugUtils.currentLine=25165827; - //BA.debugLineNum = 25165827;BA.debugLine="If tempArray(0) = Null Then"; -if (__ref._temparray /*Object[]*/ [(int) (0)]== null) { -RDebugUtils.currentLine=25165828; - //BA.debugLineNum = 25165828;BA.debugLine="out.WriteBytes(Array As Byte(T_NULL), 0, 1)"; -_out.WriteBytes(new byte[]{__ref._t_null /*byte*/ },(int) (0),(int) (1)); - }else -{RDebugUtils.currentLine=25165829; - //BA.debugLineNum = 25165829;BA.debugLine="Else If tempArray(0) Is Short Then"; -if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Short) { -RDebugUtils.currentLine=25165830; - //BA.debugLineNum = 25165830;BA.debugLine="out.WriteBytes(Array As Byte(T_SHORT), 0, 1)"; -_out.WriteBytes(new byte[]{__ref._t_short /*byte*/ },(int) (0),(int) (1)); -RDebugUtils.currentLine=25165831; - //BA.debugLineNum = 25165831;BA.debugLine="data = bc.ShortsToBytes(Array As Short(o))"; -_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .ShortsToBytes(new short[]{(short)(BA.ObjectToNumber(_o))}); - }else -{RDebugUtils.currentLine=25165832; - //BA.debugLineNum = 25165832;BA.debugLine="Else If tempArray(0) Is Int Then"; -if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Integer) { -RDebugUtils.currentLine=25165833; - //BA.debugLineNum = 25165833;BA.debugLine="out.WriteBytes(Array As Byte(T_INT), 0, 1)"; -_out.WriteBytes(new byte[]{__ref._t_int /*byte*/ },(int) (0),(int) (1)); -RDebugUtils.currentLine=25165834; - //BA.debugLineNum = 25165834;BA.debugLine="data = bc.IntsToBytes(Array As Int(o))"; -_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{(int)(BA.ObjectToNumber(_o))}); - }else -{RDebugUtils.currentLine=25165835; - //BA.debugLineNum = 25165835;BA.debugLine="Else If tempArray(0) Is Float Then"; -if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Float) { -RDebugUtils.currentLine=25165836; - //BA.debugLineNum = 25165836;BA.debugLine="out.WriteBytes(Array As Byte(T_FLOAT), 0, 1)"; -_out.WriteBytes(new byte[]{__ref._t_float /*byte*/ },(int) (0),(int) (1)); -RDebugUtils.currentLine=25165837; - //BA.debugLineNum = 25165837;BA.debugLine="data = bc.FloatsToBytes(Array As Float(o))"; -_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .FloatsToBytes(new float[]{(float)(BA.ObjectToNumber(_o))}); - }else -{RDebugUtils.currentLine=25165838; - //BA.debugLineNum = 25165838;BA.debugLine="Else If tempArray(0) Is Double Then"; -if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Double) { -RDebugUtils.currentLine=25165839; - //BA.debugLineNum = 25165839;BA.debugLine="out.WriteBytes(Array As Byte(T_DOUBLE), 0, 1)"; -_out.WriteBytes(new byte[]{__ref._t_double /*byte*/ },(int) (0),(int) (1)); -RDebugUtils.currentLine=25165840; - //BA.debugLineNum = 25165840;BA.debugLine="data = bc.DoublesToBytes(Array As Double(o))"; -_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .DoublesToBytes(new double[]{(double)(BA.ObjectToNumber(_o))}); - }else -{RDebugUtils.currentLine=25165841; - //BA.debugLineNum = 25165841;BA.debugLine="Else If tempArray(0) Is Long Then"; -if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Long) { -RDebugUtils.currentLine=25165842; - //BA.debugLineNum = 25165842;BA.debugLine="out.WriteBytes(Array As Byte(T_LONG), 0, 1)"; -_out.WriteBytes(new byte[]{__ref._t_long /*byte*/ },(int) (0),(int) (1)); -RDebugUtils.currentLine=25165843; - //BA.debugLineNum = 25165843;BA.debugLine="data = bc.LongsToBytes(Array As Long(o))"; -_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .LongsToBytes(new long[]{BA.ObjectToLongNumber(_o)}); - }else -{RDebugUtils.currentLine=25165844; - //BA.debugLineNum = 25165844;BA.debugLine="Else If tempArray(0) Is Boolean Then"; -if (__ref._temparray /*Object[]*/ [(int) (0)] instanceof Boolean) { -RDebugUtils.currentLine=25165845; - //BA.debugLineNum = 25165845;BA.debugLine="out.WriteBytes(Array As Byte(T_BOOLEAN), 0, 1)"; -_out.WriteBytes(new byte[]{__ref._t_boolean /*byte*/ },(int) (0),(int) (1)); -RDebugUtils.currentLine=25165846; - //BA.debugLineNum = 25165846;BA.debugLine="Dim b As Boolean = 0"; -_b = BA.ObjectToBoolean(0); -RDebugUtils.currentLine=25165847; - //BA.debugLineNum = 25165847;BA.debugLine="Dim data(1) As Byte"; -_data = new byte[(int) (1)]; -; -RDebugUtils.currentLine=25165848; - //BA.debugLineNum = 25165848;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 -{RDebugUtils.currentLine=25165849; - //BA.debugLineNum = 25165849;BA.debugLine="Else If GetType(tempArray(0)) = \"[B\" Then"; -if ((__c.GetType(__ref._temparray /*Object[]*/ [(int) (0)])).equals("[B")) { -RDebugUtils.currentLine=25165850; - //BA.debugLineNum = 25165850;BA.debugLine="data = o"; -_data = (byte[])(_o); -RDebugUtils.currentLine=25165851; - //BA.debugLineNum = 25165851;BA.debugLine="out.WriteBytes(Array As Byte(T_BLOB), 0, 1)"; -_out.WriteBytes(new byte[]{__ref._t_blob /*byte*/ },(int) (0),(int) (1)); -RDebugUtils.currentLine=25165852; - //BA.debugLineNum = 25165852;BA.debugLine="WriteInt(data.Length, out)"; -__ref._writeint /*String*/ (null,_data.length,_out); - }else { -RDebugUtils.currentLine=25165854; - //BA.debugLineNum = 25165854;BA.debugLine="out.WriteBytes(Array As Byte(T_STRING), 0, 1)"; -_out.WriteBytes(new byte[]{__ref._t_string /*byte*/ },(int) (0),(int) (1)); -RDebugUtils.currentLine=25165855; - //BA.debugLineNum = 25165855;BA.debugLine="data = bc.StringToBytes(o, \"UTF8\")"; -_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .StringToBytes(BA.ObjectToString(_o),"UTF8"); -RDebugUtils.currentLine=25165856; - //BA.debugLineNum = 25165856;BA.debugLine="WriteInt(data.Length, out)"; -__ref._writeint /*String*/ (null,_data.length,_out); - }}}}}}}} -; -RDebugUtils.currentLine=25165858; - //BA.debugLineNum = 25165858;BA.debugLine="If data.Length > 0 Then out.WriteBytes(data, 0, d"; -if (_data.length>0) { -_out.WriteBytes(_data,(int) (0),_data.length);}; -RDebugUtils.currentLine=25165859; - //BA.debugLineNum = 25165859;BA.debugLine="End Sub"; -return ""; -} -public String _writelist(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.collections.List _parameters,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "writelist", false)) - {return ((String) Debug.delegate(ba, "writelist", new Object[] {_parameters,_out}));} -byte[] _data = null; -Object _o = null; -RDebugUtils.currentLine=25100288; - //BA.debugLineNum = 25100288;BA.debugLine="Private Sub WriteList(Parameters As List, out As O"; -RDebugUtils.currentLine=25100289; - //BA.debugLineNum = 25100289;BA.debugLine="Dim data() As Byte"; -_data = new byte[(int) (0)]; -; -RDebugUtils.currentLine=25100290; - //BA.debugLineNum = 25100290;BA.debugLine="If Parameters = Null Or Parameters.IsInitialized"; -if (_parameters== null || _parameters.IsInitialized()==__c.False) { -RDebugUtils.currentLine=25100291; - //BA.debugLineNum = 25100291;BA.debugLine="Dim Parameters As List"; -_parameters = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=25100292; - //BA.debugLineNum = 25100292;BA.debugLine="Parameters.Initialize"; -_parameters.Initialize(); }; -RDebugUtils.currentLine=25100294; - //BA.debugLineNum = 25100294;BA.debugLine="data = bc.IntsToBytes(Array As Int(Parameters.Siz"; -_data = __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsToBytes(new int[]{_parameters.getSize()}); -RDebugUtils.currentLine=25100295; - //BA.debugLineNum = 25100295;BA.debugLine="out.WriteBytes(data, 0, data.Length)"; -_out.WriteBytes(_data,(int) (0),_data.length); -RDebugUtils.currentLine=25100296; - //BA.debugLineNum = 25100296;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); -RDebugUtils.currentLine=25100297; - //BA.debugLineNum = 25100297;BA.debugLine="WriteObject(o, out)"; -__ref._writeobject /*String*/ (null,_o,_out); - } -}; -RDebugUtils.currentLine=25100299; - //BA.debugLineNum = 25100299;BA.debugLine="End Sub"; + //BA.debugLineNum = 216;BA.debugLine="In.Close"; +_in.Close(); + //BA.debugLineNum = 217;BA.debugLine="Return table"; +if (true) return _table; + //BA.debugLineNum = 218;BA.debugLine="End Sub"; +return null; +} +public byte[] _imagetobytes(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) throws Exception{ +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; + //BA.debugLineNum = 231;BA.debugLine="Public Sub ImageToBytes(Image As Bitmap) As Byte()"; + //BA.debugLineNum = 232;BA.debugLine="Dim out As OutputStream"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); + //BA.debugLineNum = 233;BA.debugLine="out.InitializeToBytesArray(0)"; +_out.InitializeToBytesArray((int) (0)); + //BA.debugLineNum = 234;BA.debugLine="Image.WriteToStream(out, 100, \"JPEG\")"; +_image.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"JPEG")); + //BA.debugLineNum = 235;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 236;BA.debugLine="Return out.ToBytesArray"; +if (true) return _out.ToBytesArray(); + //BA.debugLineNum = 237;BA.debugLine="End Sub"; +return null; +} +public String _initialize(anywheresoftware.b4a.BA _ba,Object _target,String _connectorlink) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 17;BA.debugLine="Public Sub Initialize (Target As Object, Connector"; + //BA.debugLineNum = 18;BA.debugLine="mTarget = Target"; +_mtarget = _target; + //BA.debugLineNum = 19;BA.debugLine="link = ConnectorLink"; +_link = _connectorlink; + //BA.debugLineNum = 20;BA.debugLine="End Sub"; return ""; } -public byte[] _filetobytes(reparto_izca.keymon.lat.dbrequestmanager __ref,String _dir,String _filename) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "filetobytes", false)) - {return ((byte[]) Debug.delegate(ba, "filetobytes", new Object[] {_dir,_filename}));} -anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; -anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; -RDebugUtils.currentLine=25624576; - //BA.debugLineNum = 25624576;BA.debugLine="Public Sub FileToBytes(Dir As String, FileName As"; -RDebugUtils.currentLine=25624577; - //BA.debugLineNum = 25624577;BA.debugLine="Dim out As OutputStream"; -_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -RDebugUtils.currentLine=25624578; - //BA.debugLineNum = 25624578;BA.debugLine="out.InitializeToBytesArray(0)"; -_out.InitializeToBytesArray((int) (0)); -RDebugUtils.currentLine=25624579; - //BA.debugLineNum = 25624579;BA.debugLine="Dim In As InputStream = File.OpenInput(Dir, FileN"; -_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); -_in = __c.File.OpenInput(_dir,_filename); -RDebugUtils.currentLine=25624580; - //BA.debugLineNum = 25624580;BA.debugLine="File.Copy2(In, out)"; -__c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(_out.getObject())); -RDebugUtils.currentLine=25624581; - //BA.debugLineNum = 25624581;BA.debugLine="out.Close"; -_out.Close(); -RDebugUtils.currentLine=25624582; - //BA.debugLineNum = 25624582;BA.debugLine="Return out.ToBytesArray"; -if (true) return _out.ToBytesArray(); -RDebugUtils.currentLine=25624583; - //BA.debugLineNum = 25624583;BA.debugLine="End Sub"; -return null; -} -public Object _readobject(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "readobject", false)) - {return ((Object) Debug.delegate(ba, "readobject", new Object[] {_in}));} -byte[] _data = null; -byte _b = (byte)0; -int _len = 0; -RDebugUtils.currentLine=25231360; - //BA.debugLineNum = 25231360;BA.debugLine="Private Sub ReadObject(In As InputStream) As Objec"; -RDebugUtils.currentLine=25231361; - //BA.debugLineNum = 25231361;BA.debugLine="Dim data(1) As Byte"; -_data = new byte[(int) (1)]; -; -RDebugUtils.currentLine=25231362; - //BA.debugLineNum = 25231362;BA.debugLine="In.ReadBytes(data, 0, 1)"; -_in.ReadBytes(_data,(int) (0),(int) (1)); -RDebugUtils.currentLine=25231363; - //BA.debugLineNum = 25231363;BA.debugLine="Select data(0)"; -switch (BA.switchObjectToInt(_data[(int) (0)],__ref._t_null /*byte*/ ,__ref._t_short /*byte*/ ,__ref._t_int /*byte*/ ,__ref._t_long /*byte*/ ,__ref._t_float /*byte*/ ,__ref._t_double /*byte*/ ,__ref._t_boolean /*byte*/ ,__ref._t_blob /*byte*/ )) { -case 0: { -RDebugUtils.currentLine=25231365; - //BA.debugLineNum = 25231365;BA.debugLine="Return Null"; -if (true) return __c.Null; - break; } -case 1: { -RDebugUtils.currentLine=25231367; - //BA.debugLineNum = 25231367;BA.debugLine="Dim data(2) As Byte"; -_data = new byte[(int) (2)]; -; -RDebugUtils.currentLine=25231368; - //BA.debugLineNum = 25231368;BA.debugLine="Return bc.ShortsFromBytes(ReadBytesFully(In, da"; -if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .ShortsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]); - break; } -case 2: { -RDebugUtils.currentLine=25231370; - //BA.debugLineNum = 25231370;BA.debugLine="Dim data(4) As Byte"; -_data = new byte[(int) (4)]; -; -RDebugUtils.currentLine=25231371; - //BA.debugLineNum = 25231371;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data"; -if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]); - break; } -case 3: { -RDebugUtils.currentLine=25231373; - //BA.debugLineNum = 25231373;BA.debugLine="Dim data(8) As Byte"; -_data = new byte[(int) (8)]; -; -RDebugUtils.currentLine=25231374; - //BA.debugLineNum = 25231374;BA.debugLine="Return bc.LongsFromBytes(ReadBytesFully(In, dat"; -if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .LongsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]); - break; } -case 4: { -RDebugUtils.currentLine=25231376; - //BA.debugLineNum = 25231376;BA.debugLine="Dim data(4) As Byte"; -_data = new byte[(int) (4)]; -; -RDebugUtils.currentLine=25231377; - //BA.debugLineNum = 25231377;BA.debugLine="Return bc.FloatsFromBytes(ReadBytesFully(In, da"; -if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .FloatsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]); - break; } -case 5: { -RDebugUtils.currentLine=25231379; - //BA.debugLineNum = 25231379;BA.debugLine="Dim data(8) As Byte"; -_data = new byte[(int) (8)]; -; -RDebugUtils.currentLine=25231380; - //BA.debugLineNum = 25231380;BA.debugLine="Return bc.DoublesFromBytes(ReadBytesFully(In, d"; -if (true) return (Object)(__ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .DoublesFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]); - break; } -case 6: { -RDebugUtils.currentLine=25231382; - //BA.debugLineNum = 25231382;BA.debugLine="Dim b As Byte = ReadByte(In)"; -_b = __ref._readbyte /*byte*/ (null,_in); -RDebugUtils.currentLine=25231383; - //BA.debugLineNum = 25231383;BA.debugLine="Return b = 1"; -if (true) return (Object)(_b==1); - break; } -case 7: { -RDebugUtils.currentLine=25231385; - //BA.debugLineNum = 25231385;BA.debugLine="Dim len As Int = ReadInt(In)"; -_len = __ref._readint /*int*/ (null,_in); -RDebugUtils.currentLine=25231386; - //BA.debugLineNum = 25231386;BA.debugLine="Dim data(len) As Byte"; -_data = new byte[_len]; -; -RDebugUtils.currentLine=25231387; - //BA.debugLineNum = 25231387;BA.debugLine="Return ReadBytesFully(In, data, data.Length)"; -if (true) return (Object)(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length)); - break; } -default: { -RDebugUtils.currentLine=25231389; - //BA.debugLineNum = 25231389;BA.debugLine="Dim len As Int = ReadInt(In)"; -_len = __ref._readint /*int*/ (null,_in); -RDebugUtils.currentLine=25231390; - //BA.debugLineNum = 25231390;BA.debugLine="Dim data(len) As Byte"; -_data = new byte[_len]; -; -RDebugUtils.currentLine=25231391; - //BA.debugLineNum = 25231391;BA.debugLine="ReadBytesFully(In, data, data.Length)"; -__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length); -RDebugUtils.currentLine=25231392; - //BA.debugLineNum = 25231392;BA.debugLine="Return BytesToString(data, 0, data.Length, \"UTF"; -if (true) return (Object)(__c.BytesToString(_data,(int) (0),_data.length,"UTF8")); - break; } -} -; -RDebugUtils.currentLine=25231394; - //BA.debugLineNum = 25231394;BA.debugLine="End Sub"; -return null; -} -public int _readint(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "readint", false)) - {return ((Integer) Debug.delegate(ba, "readint", new Object[] {_in}));} -byte[] _data = null; -RDebugUtils.currentLine=25427968; - //BA.debugLineNum = 25427968;BA.debugLine="Private Sub ReadInt(In As InputStream) As Int"; -RDebugUtils.currentLine=25427969; - //BA.debugLineNum = 25427969;BA.debugLine="Dim data(4) As Byte"; -_data = new byte[(int) (4)]; -; -RDebugUtils.currentLine=25427970; - //BA.debugLineNum = 25427970;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data,"; -if (true) return __ref._bc /*anywheresoftware.b4a.agraham.byteconverter.ByteConverter*/ .IntsFromBytes(__ref._readbytesfully /*byte[]*/ (null,_in,_data,_data.length))[(int) (0)]; -RDebugUtils.currentLine=25427971; - //BA.debugLineNum = 25427971;BA.debugLine="End Sub"; -return 0; -} -public byte _readbyte(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "readbyte", false)) - {return ((Byte) Debug.delegate(ba, "readbyte", new Object[] {_in}));} -byte[] _data = null; -RDebugUtils.currentLine=25493504; - //BA.debugLineNum = 25493504;BA.debugLine="Private Sub ReadByte(In As InputStream) As Byte"; -RDebugUtils.currentLine=25493505; - //BA.debugLineNum = 25493505;BA.debugLine="Dim data(1) As Byte"; -_data = new byte[(int) (1)]; -; -RDebugUtils.currentLine=25493506; - //BA.debugLineNum = 25493506;BA.debugLine="In.ReadBytes(data, 0, 1)"; -_in.ReadBytes(_data,(int) (0),(int) (1)); -RDebugUtils.currentLine=25493507; - //BA.debugLineNum = 25493507;BA.debugLine="Return data(0)"; -if (true) return _data[(int) (0)]; -RDebugUtils.currentLine=25493508; - //BA.debugLineNum = 25493508;BA.debugLine="End Sub"; -return (byte)0; -} -public byte[] _imagetobytes(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _image) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "imagetobytes", false)) - {return ((byte[]) Debug.delegate(ba, "imagetobytes", new Object[] {_image}));} -anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; -RDebugUtils.currentLine=25690112; - //BA.debugLineNum = 25690112;BA.debugLine="Public Sub ImageToBytes(Image As Bitmap) As Byte()"; -RDebugUtils.currentLine=25690113; - //BA.debugLineNum = 25690113;BA.debugLine="Dim out As OutputStream"; -_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -RDebugUtils.currentLine=25690114; - //BA.debugLineNum = 25690114;BA.debugLine="out.InitializeToBytesArray(0)"; -_out.InitializeToBytesArray((int) (0)); -RDebugUtils.currentLine=25690115; - //BA.debugLineNum = 25690115;BA.debugLine="Image.WriteToStream(out, 100, \"JPEG\")"; -_image.WriteToStream((java.io.OutputStream)(_out.getObject()),(int) (100),BA.getEnumFromString(android.graphics.Bitmap.CompressFormat.class,"JPEG")); -RDebugUtils.currentLine=25690116; - //BA.debugLineNum = 25690116;BA.debugLine="out.Close"; -_out.Close(); -RDebugUtils.currentLine=25690117; - //BA.debugLineNum = 25690117;BA.debugLine="Return out.ToBytesArray"; -if (true) return _out.ToBytesArray(); -RDebugUtils.currentLine=25690118; - //BA.debugLineNum = 25690118;BA.debugLine="End Sub"; -return null; -} -public String _printtable(reparto_izca.keymon.lat.dbrequestmanager __ref,reparto_izca.keymon.lat.dbrequestmanager._dbresult _table) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "printtable", false)) - {return ((String) Debug.delegate(ba, "printtable", new Object[] {_table}));} +public String _printtable(reparto_izca.keymon.lat.dbrequestmanager._dbresult _table) throws Exception{ anywheresoftware.b4a.keywords.StringBuilderWrapper _sb = null; Object _col = null; Object[] _row = null; Object _record = null; -RDebugUtils.currentLine=25821184; - //BA.debugLineNum = 25821184;BA.debugLine="Public Sub PrintTable(Table As DBResult)"; -RDebugUtils.currentLine=25821185; - //BA.debugLineNum = 25821185;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C"; -__c.LogImpl("225821185","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); -RDebugUtils.currentLine=25821186; - //BA.debugLineNum = 25821186;BA.debugLine="Dim sb As StringBuilder"; + //BA.debugLineNum = 248;BA.debugLine="Public Sub PrintTable(Table As DBResult)"; + //BA.debugLineNum = 249;BA.debugLine="Log(\"Tag: \" & Table.Tag & \", Columns: \" & Table.C"; +__c.LogImpl("026083329","Tag: "+BA.ObjectToString(_table.Tag /*Object*/ )+", Columns: "+BA.NumberToString(_table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .getSize())+", Rows: "+BA.NumberToString(_table.Rows /*anywheresoftware.b4a.objects.collections.List*/ .getSize()),0); + //BA.debugLineNum = 250;BA.debugLine="Dim sb As StringBuilder"; _sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); -RDebugUtils.currentLine=25821187; - //BA.debugLineNum = 25821187;BA.debugLine="sb.Initialize"; + //BA.debugLineNum = 251;BA.debugLine="sb.Initialize"; _sb.Initialize(); -RDebugUtils.currentLine=25821188; - //BA.debugLineNum = 25821188;BA.debugLine="For Each col In Table.Columns.Keys"; + //BA.debugLineNum = 252;BA.debugLine="For Each col In Table.Columns.Keys"; { final anywheresoftware.b4a.BA.IterableList group4 = _table.Columns /*anywheresoftware.b4a.objects.collections.Map*/ .Keys(); final int groupLen4 = group4.getSize() @@ -906,16 +380,13 @@ final int groupLen4 = group4.getSize() ; for (; index4 < groupLen4;index4++){ _col = group4.Get(index4); -RDebugUtils.currentLine=25821189; - //BA.debugLineNum = 25821189;BA.debugLine="sb.Append(col).Append(TAB)"; + //BA.debugLineNum = 253;BA.debugLine="sb.Append(col).Append(TAB)"; _sb.Append(BA.ObjectToString(_col)).Append(__c.TAB); } }; -RDebugUtils.currentLine=25821191; - //BA.debugLineNum = 25821191;BA.debugLine="Log(sb.ToString)"; -__c.LogImpl("225821191",_sb.ToString(),0); -RDebugUtils.currentLine=25821192; - //BA.debugLineNum = 25821192;BA.debugLine="For Each row() As Object In Table.Rows"; + //BA.debugLineNum = 255;BA.debugLine="Log(sb.ToString)"; +__c.LogImpl("026083335",_sb.ToString(),0); + //BA.debugLineNum = 256;BA.debugLine="For Each row() As Object In Table.Rows"; { final anywheresoftware.b4a.BA.IterableList group8 = _table.Rows /*anywheresoftware.b4a.objects.collections.List*/ ; final int groupLen8 = group8.getSize() @@ -923,14 +394,11 @@ final int groupLen8 = group8.getSize() ; for (; index8 < groupLen8;index8++){ _row = (Object[])(group8.Get(index8)); -RDebugUtils.currentLine=25821193; - //BA.debugLineNum = 25821193;BA.debugLine="Dim sb As StringBuilder"; + //BA.debugLineNum = 257;BA.debugLine="Dim sb As StringBuilder"; _sb = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); -RDebugUtils.currentLine=25821194; - //BA.debugLineNum = 25821194;BA.debugLine="sb.Initialize"; + //BA.debugLineNum = 258;BA.debugLine="sb.Initialize"; _sb.Initialize(); -RDebugUtils.currentLine=25821195; - //BA.debugLineNum = 25821195;BA.debugLine="For Each record As Object In row"; + //BA.debugLineNum = 259;BA.debugLine="For Each record As Object In row"; { final Object[] group11 = _row; final int groupLen11 = group11.length @@ -938,49 +406,285 @@ final int groupLen11 = group11.length ; for (; index11 < groupLen11;index11++){ _record = group11[index11]; -RDebugUtils.currentLine=25821196; - //BA.debugLineNum = 25821196;BA.debugLine="sb.Append(record).Append(TAB)"; + //BA.debugLineNum = 260;BA.debugLine="sb.Append(record).Append(TAB)"; _sb.Append(BA.ObjectToString(_record)).Append(__c.TAB); } }; -RDebugUtils.currentLine=25821198; - //BA.debugLineNum = 25821198;BA.debugLine="ToastMessageShow(sb.ToString, True)"; + //BA.debugLineNum = 262;BA.debugLine="ToastMessageShow(sb.ToString, True)"; __c.ToastMessageShow(BA.ObjectToCharSequence(_sb.ToString()),__c.True); } }; -RDebugUtils.currentLine=25821200; - //BA.debugLineNum = 25821200;BA.debugLine="End Sub"; + //BA.debugLineNum = 264;BA.debugLine="End Sub"; return ""; } -public byte[] _readbytesfully(reparto_izca.keymon.lat.dbrequestmanager __ref,anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in,byte[] _data,int _len) throws Exception{ -__ref = this; -RDebugUtils.currentModule="dbrequestmanager"; -if (Debug.shouldDelegate(ba, "readbytesfully", false)) - {return ((byte[]) Debug.delegate(ba, "readbytesfully", new Object[] {_in,_data,_len}));} +public byte _readbyte(anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ +byte[] _data = null; + //BA.debugLineNum = 175;BA.debugLine="Private Sub ReadByte(In As InputStream) As Byte"; + //BA.debugLineNum = 176;BA.debugLine="Dim data(1) As Byte"; +_data = new byte[(int) (1)]; +; + //BA.debugLineNum = 177;BA.debugLine="In.ReadBytes(data, 0, 1)"; +_in.ReadBytes(_data,(int) (0),(int) (1)); + //BA.debugLineNum = 178;BA.debugLine="Return data(0)"; +if (true) return _data[(int) (0)]; + //BA.debugLineNum = 179;BA.debugLine="End Sub"; +return (byte)0; +} +public byte[] _readbytesfully(anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in,byte[] _data,int _len) throws Exception{ int _count = 0; int _read = 0; -RDebugUtils.currentLine=25296896; - //BA.debugLineNum = 25296896;BA.debugLine="Private Sub ReadBytesFully(In As InputStream, Data"; -RDebugUtils.currentLine=25296897; - //BA.debugLineNum = 25296897;BA.debugLine="Dim count = 0, read As Int"; + //BA.debugLineNum = 155;BA.debugLine="Private Sub ReadBytesFully(In As InputStream, Data"; + //BA.debugLineNum = 156;BA.debugLine="Dim count = 0, read As Int"; _count = (int) (0); _read = 0; -RDebugUtils.currentLine=25296898; - //BA.debugLineNum = 25296898;BA.debugLine="Do While count < Len And read > -1"; + //BA.debugLineNum = 157;BA.debugLine="Do While count < Len And read > -1"; while (_count<_len && _read>-1) { -RDebugUtils.currentLine=25296899; - //BA.debugLineNum = 25296899;BA.debugLine="read = In.ReadBytes(Data, count, Len - count)"; + //BA.debugLineNum = 158;BA.debugLine="read = In.ReadBytes(Data, count, Len - count)"; _read = _in.ReadBytes(_data,_count,(int) (_len-_count)); -RDebugUtils.currentLine=25296900; - //BA.debugLineNum = 25296900;BA.debugLine="count = count + read"; + //BA.debugLineNum = 159;BA.debugLine="count = count + read"; _count = (int) (_count+_read); } ; -RDebugUtils.currentLine=25296902; - //BA.debugLineNum = 25296902;BA.debugLine="Return Data"; + //BA.debugLineNum = 161;BA.debugLine="Return Data"; if (true) return _data; -RDebugUtils.currentLine=25296903; - //BA.debugLineNum = 25296903;BA.debugLine="End Sub"; + //BA.debugLineNum = 162;BA.debugLine="End Sub"; return null; } -} \ No newline at end of file +public int _readint(anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ +byte[] _data = null; + //BA.debugLineNum = 170;BA.debugLine="Private Sub ReadInt(In As InputStream) As Int"; + //BA.debugLineNum = 171;BA.debugLine="Dim data(4) As Byte"; +_data = new byte[(int) (4)]; +; + //BA.debugLineNum = 172;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data,"; +if (true) return _bc.IntsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]; + //BA.debugLineNum = 173;BA.debugLine="End Sub"; +return 0; +} +public Object _readobject(anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in) throws Exception{ +byte[] _data = null; +byte _b = (byte)0; +int _len = 0; + //BA.debugLineNum = 119;BA.debugLine="Private Sub ReadObject(In As InputStream) As Objec"; + //BA.debugLineNum = 120;BA.debugLine="Dim data(1) As Byte"; +_data = new byte[(int) (1)]; +; + //BA.debugLineNum = 121;BA.debugLine="In.ReadBytes(data, 0, 1)"; +_in.ReadBytes(_data,(int) (0),(int) (1)); + //BA.debugLineNum = 122;BA.debugLine="Select data(0)"; +switch (BA.switchObjectToInt(_data[(int) (0)],_t_null,_t_short,_t_int,_t_long,_t_float,_t_double,_t_boolean,_t_blob)) { +case 0: { + //BA.debugLineNum = 124;BA.debugLine="Return Null"; +if (true) return __c.Null; + break; } +case 1: { + //BA.debugLineNum = 126;BA.debugLine="Dim data(2) As Byte"; +_data = new byte[(int) (2)]; +; + //BA.debugLineNum = 127;BA.debugLine="Return bc.ShortsFromBytes(ReadBytesFully(In, da"; +if (true) return (Object)(_bc.ShortsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]); + break; } +case 2: { + //BA.debugLineNum = 129;BA.debugLine="Dim data(4) As Byte"; +_data = new byte[(int) (4)]; +; + //BA.debugLineNum = 130;BA.debugLine="Return bc.IntsFromBytes(ReadBytesFully(In, data"; +if (true) return (Object)(_bc.IntsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]); + break; } +case 3: { + //BA.debugLineNum = 132;BA.debugLine="Dim data(8) As Byte"; +_data = new byte[(int) (8)]; +; + //BA.debugLineNum = 133;BA.debugLine="Return bc.LongsFromBytes(ReadBytesFully(In, dat"; +if (true) return (Object)(_bc.LongsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]); + break; } +case 4: { + //BA.debugLineNum = 135;BA.debugLine="Dim data(4) As Byte"; +_data = new byte[(int) (4)]; +; + //BA.debugLineNum = 136;BA.debugLine="Return bc.FloatsFromBytes(ReadBytesFully(In, da"; +if (true) return (Object)(_bc.FloatsFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]); + break; } +case 5: { + //BA.debugLineNum = 138;BA.debugLine="Dim data(8) As Byte"; +_data = new byte[(int) (8)]; +; + //BA.debugLineNum = 139;BA.debugLine="Return bc.DoublesFromBytes(ReadBytesFully(In, d"; +if (true) return (Object)(_bc.DoublesFromBytes(_readbytesfully(_in,_data,_data.length))[(int) (0)]); + break; } +case 6: { + //BA.debugLineNum = 141;BA.debugLine="Dim b As Byte = ReadByte(In)"; +_b = _readbyte(_in); + //BA.debugLineNum = 142;BA.debugLine="Return b = 1"; +if (true) return (Object)(_b==1); + break; } +case 7: { + //BA.debugLineNum = 144;BA.debugLine="Dim len As Int = ReadInt(In)"; +_len = _readint(_in); + //BA.debugLineNum = 145;BA.debugLine="Dim data(len) As Byte"; +_data = new byte[_len]; +; + //BA.debugLineNum = 146;BA.debugLine="Return ReadBytesFully(In, data, data.Length)"; +if (true) return (Object)(_readbytesfully(_in,_data,_data.length)); + break; } +default: { + //BA.debugLineNum = 148;BA.debugLine="Dim len As Int = ReadInt(In)"; +_len = _readint(_in); + //BA.debugLineNum = 149;BA.debugLine="Dim data(len) As Byte"; +_data = new byte[_len]; +; + //BA.debugLineNum = 150;BA.debugLine="ReadBytesFully(In, data, data.Length)"; +_readbytesfully(_in,_data,_data.length); + //BA.debugLineNum = 151;BA.debugLine="Return BytesToString(data, 0, data.Length, \"UTF"; +if (true) return (Object)(__c.BytesToString(_data,(int) (0),_data.length,"UTF8")); + break; } +} +; + //BA.debugLineNum = 153;BA.debugLine="End Sub"; +return null; +} +public anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _startjob(reparto_izca.keymon.lat.httpjob _j,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _memorystream,Object _tag) throws Exception{ +anywheresoftware.b4a.randomaccessfile.CompressedStreams _compress = null; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; + //BA.debugLineNum = 59;BA.debugLine="Private Sub StartJob(j As HttpJob, MemoryStream As"; + //BA.debugLineNum = 60;BA.debugLine="j.Initialize(\"DBRequest\", mTarget)"; +_j._initialize /*String*/ (ba,"DBRequest",_mtarget); + //BA.debugLineNum = 61;BA.debugLine="j.Tag = Tag"; +_j._tag /*Object*/ = _tag; + //BA.debugLineNum = 62;BA.debugLine="MemoryStream.InitializeToBytesArray(0)"; +_memorystream.InitializeToBytesArray((int) (0)); + //BA.debugLineNum = 63;BA.debugLine="Dim compress As CompressedStreams"; +_compress = new anywheresoftware.b4a.randomaccessfile.CompressedStreams(); + //BA.debugLineNum = 64;BA.debugLine="Dim out As OutputStream = compress.WrapOutputStre"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); +_out = _compress.WrapOutputStream((java.io.OutputStream)(_memorystream.getObject()),"gzip"); + //BA.debugLineNum = 65;BA.debugLine="WriteObject(VERSION, out)"; +_writeobject((Object)(_version),_out); + //BA.debugLineNum = 66;BA.debugLine="Return out"; +if (true) return _out; + //BA.debugLineNum = 67;BA.debugLine="End Sub"; +return null; +} +public String _writeint(int _i,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{ +byte[] _data = null; + //BA.debugLineNum = 164;BA.debugLine="Private Sub WriteInt(i As Int, out As OutputStream"; + //BA.debugLineNum = 165;BA.debugLine="Dim data() As Byte"; +_data = new byte[(int) (0)]; +; + //BA.debugLineNum = 166;BA.debugLine="data = bc.IntsToBytes(Array As Int(i))"; +_data = _bc.IntsToBytes(new int[]{_i}); + //BA.debugLineNum = 167;BA.debugLine="out.WriteBytes(data, 0, data.Length)"; +_out.WriteBytes(_data,(int) (0),_data.length); + //BA.debugLineNum = 168;BA.debugLine="End Sub"; +return ""; +} +public String _writelist(anywheresoftware.b4a.objects.collections.List _parameters,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{ +byte[] _data = null; +Object _o = null; + //BA.debugLineNum = 69;BA.debugLine="Private Sub WriteList(Parameters As List, out As O"; + //BA.debugLineNum = 70;BA.debugLine="Dim data() As Byte"; +_data = new byte[(int) (0)]; +; + //BA.debugLineNum = 71;BA.debugLine="If Parameters = Null Or Parameters.IsInitialized"; +if (_parameters== null || _parameters.IsInitialized()==__c.False) { + //BA.debugLineNum = 72;BA.debugLine="Dim Parameters As List"; +_parameters = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 73;BA.debugLine="Parameters.Initialize"; +_parameters.Initialize(); + }; + //BA.debugLineNum = 75;BA.debugLine="data = bc.IntsToBytes(Array As Int(Parameters.Siz"; +_data = _bc.IntsToBytes(new int[]{_parameters.getSize()}); + //BA.debugLineNum = 76;BA.debugLine="out.WriteBytes(data, 0, data.Length)"; +_out.WriteBytes(_data,(int) (0),_data.length); + //BA.debugLineNum = 77;BA.debugLine="For Each o As Object In Parameters"; +{ +final anywheresoftware.b4a.BA.IterableList group8 = _parameters; +final int groupLen8 = group8.getSize() +;int index8 = 0; +; +for (; index8 < groupLen8;index8++){ +_o = group8.Get(index8); + //BA.debugLineNum = 78;BA.debugLine="WriteObject(o, out)"; +_writeobject(_o,_out); + } +}; + //BA.debugLineNum = 80;BA.debugLine="End Sub"; +return ""; +} +public String _writeobject(Object _o,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out) throws Exception{ +byte[] _data = null; +boolean _b = false; + //BA.debugLineNum = 82;BA.debugLine="Private Sub WriteObject(o As Object, out As Output"; + //BA.debugLineNum = 83;BA.debugLine="Dim data() As Byte"; +_data = new byte[(int) (0)]; +; + //BA.debugLineNum = 84;BA.debugLine="tempArray(0) = o"; +_temparray[(int) (0)] = _o; + //BA.debugLineNum = 85;BA.debugLine="If tempArray(0) = Null Then"; +if (_temparray[(int) (0)]== null) { + //BA.debugLineNum = 86;BA.debugLine="out.WriteBytes(Array As Byte(T_NULL), 0, 1)"; +_out.WriteBytes(new byte[]{_t_null},(int) (0),(int) (1)); + }else if(_temparray[(int) (0)] instanceof Short) { + //BA.debugLineNum = 88;BA.debugLine="out.WriteBytes(Array As Byte(T_SHORT), 0, 1)"; +_out.WriteBytes(new byte[]{_t_short},(int) (0),(int) (1)); + //BA.debugLineNum = 89;BA.debugLine="data = bc.ShortsToBytes(Array As Short(o))"; +_data = _bc.ShortsToBytes(new short[]{(short)(BA.ObjectToNumber(_o))}); + }else if(_temparray[(int) (0)] instanceof Integer) { + //BA.debugLineNum = 91;BA.debugLine="out.WriteBytes(Array As Byte(T_INT), 0, 1)"; +_out.WriteBytes(new byte[]{_t_int},(int) (0),(int) (1)); + //BA.debugLineNum = 92;BA.debugLine="data = bc.IntsToBytes(Array As Int(o))"; +_data = _bc.IntsToBytes(new int[]{(int)(BA.ObjectToNumber(_o))}); + }else if(_temparray[(int) (0)] instanceof Float) { + //BA.debugLineNum = 94;BA.debugLine="out.WriteBytes(Array As Byte(T_FLOAT), 0, 1)"; +_out.WriteBytes(new byte[]{_t_float},(int) (0),(int) (1)); + //BA.debugLineNum = 95;BA.debugLine="data = bc.FloatsToBytes(Array As Float(o))"; +_data = _bc.FloatsToBytes(new float[]{(float)(BA.ObjectToNumber(_o))}); + }else if(_temparray[(int) (0)] instanceof Double) { + //BA.debugLineNum = 97;BA.debugLine="out.WriteBytes(Array As Byte(T_DOUBLE), 0, 1)"; +_out.WriteBytes(new byte[]{_t_double},(int) (0),(int) (1)); + //BA.debugLineNum = 98;BA.debugLine="data = bc.DoublesToBytes(Array As Double(o))"; +_data = _bc.DoublesToBytes(new double[]{(double)(BA.ObjectToNumber(_o))}); + }else if(_temparray[(int) (0)] instanceof Long) { + //BA.debugLineNum = 100;BA.debugLine="out.WriteBytes(Array As Byte(T_LONG), 0, 1)"; +_out.WriteBytes(new byte[]{_t_long},(int) (0),(int) (1)); + //BA.debugLineNum = 101;BA.debugLine="data = bc.LongsToBytes(Array As Long(o))"; +_data = _bc.LongsToBytes(new long[]{BA.ObjectToLongNumber(_o)}); + }else if(_temparray[(int) (0)] instanceof Boolean) { + //BA.debugLineNum = 103;BA.debugLine="out.WriteBytes(Array As Byte(T_BOOLEAN), 0, 1)"; +_out.WriteBytes(new byte[]{_t_boolean},(int) (0),(int) (1)); + //BA.debugLineNum = 104;BA.debugLine="Dim b As Boolean = 0"; +_b = BA.ObjectToBoolean(0); + //BA.debugLineNum = 105;BA.debugLine="Dim data(1) As Byte"; +_data = new byte[(int) (1)]; +; + //BA.debugLineNum = 106;BA.debugLine="If b Then data(0) = 1 Else data(0) = 0"; +if (_b) { +_data[(int) (0)] = (byte) (1);} +else { +_data[(int) (0)] = (byte) (0);}; + }else if((__c.GetType(_temparray[(int) (0)])).equals("[B")) { + //BA.debugLineNum = 108;BA.debugLine="data = o"; +_data = (byte[])(_o); + //BA.debugLineNum = 109;BA.debugLine="out.WriteBytes(Array As Byte(T_BLOB), 0, 1)"; +_out.WriteBytes(new byte[]{_t_blob},(int) (0),(int) (1)); + //BA.debugLineNum = 110;BA.debugLine="WriteInt(data.Length, out)"; +_writeint(_data.length,_out); + }else { + //BA.debugLineNum = 112;BA.debugLine="out.WriteBytes(Array As Byte(T_STRING), 0, 1)"; +_out.WriteBytes(new byte[]{_t_string},(int) (0),(int) (1)); + //BA.debugLineNum = 113;BA.debugLine="data = bc.StringToBytes(o, \"UTF8\")"; +_data = _bc.StringToBytes(BA.ObjectToString(_o),"UTF8"); + //BA.debugLineNum = 114;BA.debugLine="WriteInt(data.Length, out)"; +_writeint(_data.length,_out); + }; + //BA.debugLineNum = 116;BA.debugLine="If data.Length > 0 Then out.WriteBytes(data, 0, d"; +if (_data.length>0) { +_out.WriteBytes(_data,(int) (0),_data.length);}; + //BA.debugLineNum = 117;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/escposprinter.java b/B4A/Objects/src/reparto_izca/keymon/lat/escposprinter.java index ca8ff6d..9db2b42 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/escposprinter.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/escposprinter.java @@ -10,7 +10,7 @@ public class escposprinter extends B4AClass.ImplB4AClass implements BA.SubDelega private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.escposprinter"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.escposprinter"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,30 +23,7 @@ public class escposprinter extends B4AClass.ImplB4AClass implements BA.SubDelega ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -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 anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public double _version = 0; public String _eventname = ""; public Object _callback = null; @@ -95,862 +72,237 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _disconnect(reparto_izca.keymon.lat.escposprinter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "disconnect", false)) - {return ((String) Debug.delegate(ba, "disconnect", null));} -RDebugUtils.currentLine=26279936; - //BA.debugLineNum = 26279936;BA.debugLine="Public Sub DisConnect"; -RDebugUtils.currentLine=26279937; - //BA.debugLineNum = 26279937;BA.debugLine="Serial1.Disconnect"; -__ref._serial1 /*anywheresoftware.b4a.objects.Serial*/ .Disconnect(); -RDebugUtils.currentLine=26279938; - //BA.debugLineNum = 26279938;BA.debugLine="Connected = False"; -__ref._connected /*boolean*/ = __c.False; -RDebugUtils.currentLine=26279939; - //BA.debugLineNum = 26279939;BA.debugLine="End Sub"; +public static class _animage{ +public boolean IsInitialized; +public int Width; +public int Height; +public byte[] Data; +public void Initialize() { +IsInitialized = true; +Width = 0; +Height = 0; +Data = new byte[0]; +; +} +@Override + public String toString() { + return BA.TypeToString(this, false); + }} +public String _astream_error() throws Exception{ + //BA.debugLineNum = 2285;BA.debugLine="Private Sub AStream_Error"; + //BA.debugLineNum = 2286;BA.debugLine="If SubExists(CallBack, EventName & \"_Error\") Then"; +if (__c.SubExists(ba,_callback,_eventname+"_Error")) { + //BA.debugLineNum = 2287;BA.debugLine="CallSub(CallBack, EventName & \"_Error\")"; +__c.CallSubNew(ba,_callback,_eventname+"_Error"); + }; + //BA.debugLineNum = 2289;BA.debugLine="End Sub"; return ""; } -public boolean _isconnected(reparto_izca.keymon.lat.escposprinter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "isconnected", false)) - {return ((Boolean) Debug.delegate(ba, "isconnected", null));} -RDebugUtils.currentLine=26083328; - //BA.debugLineNum = 26083328;BA.debugLine="Public Sub IsConnected As Boolean"; -RDebugUtils.currentLine=26083329; - //BA.debugLineNum = 26083329;BA.debugLine="Return Connected"; -if (true) return __ref._connected /*boolean*/ ; -RDebugUtils.currentLine=26083330; - //BA.debugLineNum = 26083330;BA.debugLine="End Sub"; -return false; +public String _astream_newdata(byte[] _buffer) throws Exception{ + //BA.debugLineNum = 2278;BA.debugLine="Private Sub AStream_NewData (Buffer() As Byte)"; + //BA.debugLineNum = 2279;BA.debugLine="If SubExists(CallBack, EventName & \"_NewData\") Th"; +if (__c.SubExists(ba,_callback,_eventname+"_NewData")) { + //BA.debugLineNum = 2280;BA.debugLine="CallSub2(CallBack, EventName & \"_NewData\", Buffe"; +__c.CallSubNew2(ba,_callback,_eventname+"_NewData",(Object)(_buffer)); + }; + //BA.debugLineNum = 2282;BA.debugLine="Log(\"Data \" & Buffer(0))"; +__c.LogImpl("029622276","Data "+BA.NumberToString(_buffer[(int) (0)]),0); + //BA.debugLineNum = 2283;BA.debugLine="End Sub"; +return ""; } -public boolean _connect(reparto_izca.keymon.lat.escposprinter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "connect", false)) - {return ((Boolean) Debug.delegate(ba, "connect", null));} +public String _astream_terminated() throws Exception{ + //BA.debugLineNum = 2291;BA.debugLine="Private Sub AStream_Terminated"; + //BA.debugLineNum = 2292;BA.debugLine="Connected = False"; +_connected = __c.False; + //BA.debugLineNum = 2293;BA.debugLine="If SubExists(CallBack, EventName & \"_Terminated\")"; +if (__c.SubExists(ba,_callback,_eventname+"_Terminated")) { + //BA.debugLineNum = 2294;BA.debugLine="CallSub(CallBack, EventName & \"_Terminated\")"; +__c.CallSubNew(ba,_callback,_eventname+"_Terminated"); + }; + //BA.debugLineNum = 2296;BA.debugLine="End Sub"; +return ""; +} +public String _class_globals() throws Exception{ + //BA.debugLineNum = 1158;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 1165;BA.debugLine="Private Version As Double = 2.0 ' Printer class v"; +_version = 2.0; + //BA.debugLineNum = 1167;BA.debugLine="Type AnImage(Width As Int, Height As Int, Data()"; +; + //BA.debugLineNum = 1169;BA.debugLine="Private EventName As String 'ignore"; +_eventname = ""; + //BA.debugLineNum = 1170;BA.debugLine="Private CallBack As Object 'ignore"; +_callback = new Object(); + //BA.debugLineNum = 1172;BA.debugLine="Private Serial1 As Serial"; +_serial1 = new anywheresoftware.b4a.objects.Serial(); + //BA.debugLineNum = 1173;BA.debugLine="Private Astream As AsyncStreams"; +_astream = new anywheresoftware.b4a.randomaccessfile.AsyncStreams(); + //BA.debugLineNum = 1174;BA.debugLine="Private Connected As Boolean"; +_connected = false; + //BA.debugLineNum = 1175;BA.debugLine="Private ConnectedError As String"; +_connectederror = ""; + //BA.debugLineNum = 1177;BA.debugLine="Dim ESC As String = Chr(27)"; +_esc = BA.ObjectToString(__c.Chr((int) (27))); + //BA.debugLineNum = 1178;BA.debugLine="Dim FS As String = Chr(28)"; +_fs = BA.ObjectToString(__c.Chr((int) (28))); + //BA.debugLineNum = 1179;BA.debugLine="Dim GS As String = Chr(29)"; +_gs = BA.ObjectToString(__c.Chr((int) (29))); + //BA.debugLineNum = 1182;BA.debugLine="Dim UNREVERSE As String = GS & \"B\" & Chr(0)"; +_unreverse = _gs+"B"+BA.ObjectToString(__c.Chr((int) (0))); + //BA.debugLineNum = 1183;BA.debugLine="Dim REVERSE As String = GS & \"B\" & Chr(1)"; +_reverse = _gs+"B"+BA.ObjectToString(__c.Chr((int) (1))); + //BA.debugLineNum = 1186;BA.debugLine="Dim UNINVERT As String = ESC & \"{0\""; +_uninvert = _esc+"{0"; + //BA.debugLineNum = 1187;BA.debugLine="Dim INVERT As String = ESC & \"{1\""; +_invert = _esc+"{1"; + //BA.debugLineNum = 1190;BA.debugLine="Dim UNROTATE As String = ESC & \"V0\""; +_unrotate = _esc+"V0"; + //BA.debugLineNum = 1191;BA.debugLine="Dim ROTATE As String = ESC & \"V1\""; +_rotate = _esc+"V1"; + //BA.debugLineNum = 1194;BA.debugLine="Dim HT As String = Chr(9)"; +_ht = BA.ObjectToString(__c.Chr((int) (9))); + //BA.debugLineNum = 1197;BA.debugLine="Dim ULINE0 As String = ESC & \"-0\""; +_uline0 = _esc+"-0"; + //BA.debugLineNum = 1198;BA.debugLine="Dim ULINE1 As String = ESC & \"-1\""; +_uline1 = _esc+"-1"; + //BA.debugLineNum = 1199;BA.debugLine="Dim ULINE2 As String = ESC & \"-2\""; +_uline2 = _esc+"-2"; + //BA.debugLineNum = 1202;BA.debugLine="Dim BOLD As String = ESC & \"E1\""; +_bold = _esc+"E1"; + //BA.debugLineNum = 1203;BA.debugLine="Dim NOBOLD As String = ESC & \"E0\""; +_nobold = _esc+"E0"; + //BA.debugLineNum = 1206;BA.debugLine="Dim SINGLE As String = GS & \"!\" & Chr(0x00)"; +_single = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x00))); + //BA.debugLineNum = 1207;BA.debugLine="Dim HIGH As String = GS & \"!\" & Chr(0x01)"; +_high = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x01))); + //BA.debugLineNum = 1208;BA.debugLine="Dim WIDE As String = GS & \"!\" & Chr(0x10)"; +_wide = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x10))); + //BA.debugLineNum = 1209;BA.debugLine="Dim HIGHWIDE As String = GS & \"!\" & Chr(0x11)"; +_highwide = _gs+"!"+BA.ObjectToString(__c.Chr(((int)0x11))); + //BA.debugLineNum = 1212;BA.debugLine="Private LEFTJUSTIFY As String = ESC & \"a0\""; +_leftjustify = _esc+"a0"; + //BA.debugLineNum = 1213;BA.debugLine="Private LINEDEFAULT As String = ESC & \"2\""; +_linedefault = _esc+"2"; + //BA.debugLineNum = 1214;BA.debugLine="Private LINSET0 As String = ESC & \"$\" & Chr(0x0)"; +_linset0 = _esc+"$"+BA.ObjectToString(__c.Chr(((int)0x0)))+BA.ObjectToString(__c.Chr(((int)0x0))); + //BA.debugLineNum = 1215;BA.debugLine="Private LMARGIN0 As String = GS & \"L\" & Chr(0x0)"; +_lmargin0 = _gs+"L"+BA.ObjectToString(__c.Chr(((int)0x0)))+BA.ObjectToString(__c.Chr(((int)0x0))); + //BA.debugLineNum = 1216;BA.debugLine="Private WIDTH0 As String = GS & \"W\" & Chr(0xff) &"; +_width0 = _gs+"W"+BA.ObjectToString(__c.Chr(((int)0xff)))+BA.ObjectToString(__c.Chr(((int)0xff))); + //BA.debugLineNum = 1217;BA.debugLine="Private CHARSPACING0 As String = ESC & \" \" & Chr("; +_charspacing0 = _esc+" "+BA.ObjectToString(__c.Chr((int) (0))); + //BA.debugLineNum = 1218;BA.debugLine="Private CHARFONT0 As String = ESC & \"M\" & Chr(0)"; +_charfont0 = _esc+"M"+BA.ObjectToString(__c.Chr((int) (0))); + //BA.debugLineNum = 1219;BA.debugLine="Dim DEFAULTS As String = CHARSPACING0 & CHARFONT"; +_defaults = _charspacing0+_charfont0+_lmargin0+_width0+_linset0+_linedefault+_leftjustify+_uninvert+_unrotate+_unreverse+_nobold+_uline0; + //BA.debugLineNum = 1222;BA.debugLine="End Sub"; +return ""; +} +public boolean _connect() throws Exception{ anywheresoftware.b4a.objects.collections.Map _paireddevices = null; anywheresoftware.b4a.objects.collections.List _l = null; int _i = 0; int _res = 0; -RDebugUtils.currentLine=26214400; - //BA.debugLineNum = 26214400;BA.debugLine="Public Sub Connect As Boolean"; -RDebugUtils.currentLine=26214404; - //BA.debugLineNum = 26214404;BA.debugLine="Try"; -try {RDebugUtils.currentLine=26214405; - //BA.debugLineNum = 26214405;BA.debugLine="If Starter.MAC_IMPRESORA = \"0\" Then"; + //BA.debugLineNum = 1254;BA.debugLine="Public Sub Connect As Boolean"; + //BA.debugLineNum = 1258;BA.debugLine="Try"; +try { //BA.debugLineNum = 1259;BA.debugLine="If Starter.MAC_IMPRESORA = \"0\" Then"; if ((_starter._mac_impresora /*String*/ ).equals("0")) { -RDebugUtils.currentLine=26214406; - //BA.debugLineNum = 26214406;BA.debugLine="Dim PairedDevices As Map"; + //BA.debugLineNum = 1260;BA.debugLine="Dim PairedDevices As Map"; _paireddevices = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=26214407; - //BA.debugLineNum = 26214407;BA.debugLine="PairedDevices = Serial1.GetPairedDevices"; -_paireddevices = __ref._serial1 /*anywheresoftware.b4a.objects.Serial*/ .GetPairedDevices(); -RDebugUtils.currentLine=26214408; - //BA.debugLineNum = 26214408;BA.debugLine="Dim l As List"; + //BA.debugLineNum = 1261;BA.debugLine="PairedDevices = Serial1.GetPairedDevices"; +_paireddevices = _serial1.GetPairedDevices(); + //BA.debugLineNum = 1262;BA.debugLine="Dim l As List"; _l = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=26214409; - //BA.debugLineNum = 26214409;BA.debugLine="l.Initialize"; + //BA.debugLineNum = 1263;BA.debugLine="l.Initialize"; _l.Initialize(); -RDebugUtils.currentLine=26214410; - //BA.debugLineNum = 26214410;BA.debugLine="For i = 0 To PairedDevices.Size - 1"; + //BA.debugLineNum = 1264;BA.debugLine="For i = 0 To PairedDevices.Size - 1"; { final int step7 = 1; final int limit7 = (int) (_paireddevices.getSize()-1); _i = (int) (0) ; for (;_i <= limit7 ;_i = _i + step7 ) { -RDebugUtils.currentLine=26214411; - //BA.debugLineNum = 26214411;BA.debugLine="l.Add(PairedDevices.GetKeyAt(i))"; + //BA.debugLineNum = 1265;BA.debugLine="l.Add(PairedDevices.GetKeyAt(i))"; _l.Add(_paireddevices.GetKeyAt(_i)); } }; -RDebugUtils.currentLine=26214413; - //BA.debugLineNum = 26214413;BA.debugLine="Dim Res As Int"; + //BA.debugLineNum = 1267;BA.debugLine="Dim Res As Int"; _res = 0; -RDebugUtils.currentLine=26214414; - //BA.debugLineNum = 26214414;BA.debugLine="Res = InputList(l, \"Choose a printer\", -1) 'sho"; + //BA.debugLineNum = 1268;BA.debugLine="Res = InputList(l, \"Choose a printer\", -1) 'sho"; _res = __c.InputList(_l,BA.ObjectToCharSequence("Choose a printer"),(int) (-1),getActivityBA()); -RDebugUtils.currentLine=26214415; - //BA.debugLineNum = 26214415;BA.debugLine="If Res <> DialogResponse.CANCEL Then"; + //BA.debugLineNum = 1269;BA.debugLine="If Res <> DialogResponse.CANCEL Then"; if (_res!=__c.DialogResponse.CANCEL) { -RDebugUtils.currentLine=26214416; - //BA.debugLineNum = 26214416;BA.debugLine="Serial1.Connect(PairedDevices.Get(l.Get(Res)))"; -__ref._serial1 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,BA.ObjectToString(_paireddevices.Get(_l.Get(_res)))); -RDebugUtils.currentLine=26214418; - //BA.debugLineNum = 26214418;BA.debugLine="Starter.mac_impresora = PairedDevices.Get(l.Ge"; + //BA.debugLineNum = 1270;BA.debugLine="Serial1.Connect(PairedDevices.Get(l.Get(Res)))"; +_serial1.Connect(ba,BA.ObjectToString(_paireddevices.Get(_l.Get(_res)))); + //BA.debugLineNum = 1272;BA.debugLine="Starter.mac_impresora = PairedDevices.Get(l.Ge"; _starter._mac_impresora /*String*/ = BA.ObjectToString(_paireddevices.Get(_l.Get(_res))); -RDebugUtils.currentLine=26214419; - //BA.debugLineNum = 26214419;BA.debugLine="Return True"; + //BA.debugLineNum = 1273;BA.debugLine="Return True"; if (true) return __c.True; }; -RDebugUtils.currentLine=26214421; - //BA.debugLineNum = 26214421;BA.debugLine="Return False"; + //BA.debugLineNum = 1275;BA.debugLine="Return False"; if (true) return __c.False; }else { -RDebugUtils.currentLine=26214423; - //BA.debugLineNum = 26214423;BA.debugLine="Serial1.Connect(Starter.mac_impresora)"; -__ref._serial1 /*anywheresoftware.b4a.objects.Serial*/ .Connect(ba,_starter._mac_impresora /*String*/ ); -RDebugUtils.currentLine=26214425; - //BA.debugLineNum = 26214425;BA.debugLine="Return True"; + //BA.debugLineNum = 1277;BA.debugLine="Serial1.Connect(Starter.mac_impresora)"; +_serial1.Connect(ba,_starter._mac_impresora /*String*/ ); + //BA.debugLineNum = 1279;BA.debugLine="Return True"; if (true) return __c.True; }; } catch (Exception e23) { - ba.setLastException(e23);RDebugUtils.currentLine=26214428; - //BA.debugLineNum = 26214428;BA.debugLine="Log(LastException)"; -__c.LogImpl("226214428",BA.ObjectToString(__c.LastException(getActivityBA())),0); + ba.setLastException(e23); //BA.debugLineNum = 1282;BA.debugLine="Log(LastException)"; +__c.LogImpl("026476572",BA.ObjectToString(__c.LastException(getActivityBA())),0); }; -RDebugUtils.currentLine=26214430; - //BA.debugLineNum = 26214430;BA.debugLine="End Sub"; + //BA.debugLineNum = 1284;BA.debugLine="End Sub"; return false; } -public String _writestring(reparto_izca.keymon.lat.escposprinter __ref,String _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "writestring", false)) - {return ((String) Debug.delegate(ba, "writestring", new Object[] {_data}));} -RDebugUtils.currentLine=27197440; - //BA.debugLineNum = 27197440;BA.debugLine="Public Sub WriteString(data As String)"; -RDebugUtils.currentLine=27197441; - //BA.debugLineNum = 27197441;BA.debugLine="WriteString2(data, \"IBM437\")"; -__ref._writestring2 /*String*/ (null,_data,"IBM437"); -RDebugUtils.currentLine=27197442; - //BA.debugLineNum = 27197442;BA.debugLine="End Sub"; +public String _connectederrormsg() throws Exception{ + //BA.debugLineNum = 1238;BA.debugLine="Public Sub ConnectedErrorMsg As String"; + //BA.debugLineNum = 1239;BA.debugLine="Return ConnectedError"; +if (true) return _connectederror; + //BA.debugLineNum = 1240;BA.debugLine="End Sub"; return ""; } -public String _setjustify(reparto_izca.keymon.lat.escposprinter __ref,int _justify) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setjustify", false)) - {return ((String) Debug.delegate(ba, "setjustify", new Object[] {_justify}));} -RDebugUtils.currentLine=26804224; - //BA.debugLineNum = 26804224;BA.debugLine="Public Sub setJustify(justify As Int)"; -RDebugUtils.currentLine=26804225; - //BA.debugLineNum = 26804225;BA.debugLine="WriteString(ESC & \"a\" & Chr(justify + 48))"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"a"+BA.ObjectToString(__c.Chr((int) (_justify+48)))); -RDebugUtils.currentLine=26804226; - //BA.debugLineNum = 26804226;BA.debugLine="End Sub"; -return ""; -} -public String _initialize(reparto_izca.keymon.lat.escposprinter __ref,anywheresoftware.b4a.BA _ba,Object _vcallback,String _veventname) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_vcallback,_veventname}));} -RDebugUtils.currentLine=25952256; - //BA.debugLineNum = 25952256;BA.debugLine="Public Sub Initialize(vCallback As Object, vEventN"; -RDebugUtils.currentLine=25952257; - //BA.debugLineNum = 25952257;BA.debugLine="EventName = vEventName"; -__ref._eventname /*String*/ = _veventname; -RDebugUtils.currentLine=25952258; - //BA.debugLineNum = 25952258;BA.debugLine="CallBack = vCallback"; -__ref._callback /*Object*/ = _vcallback; -RDebugUtils.currentLine=25952259; - //BA.debugLineNum = 25952259;BA.debugLine="Serial1.Initialize(\"Serial1\")"; -__ref._serial1 /*anywheresoftware.b4a.objects.Serial*/ .Initialize("Serial1"); -RDebugUtils.currentLine=25952260; - //BA.debugLineNum = 25952260;BA.debugLine="Connected = False"; -__ref._connected /*boolean*/ = __c.False; -RDebugUtils.currentLine=25952261; - //BA.debugLineNum = 25952261;BA.debugLine="ConnectedError = \"\""; -__ref._connectederror /*String*/ = ""; -RDebugUtils.currentLine=25952262; - //BA.debugLineNum = 25952262;BA.debugLine="End Sub"; -return ""; -} -public String _writebarcode(reparto_izca.keymon.lat.escposprinter __ref,String _bartype,String _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "writebarcode", false)) - {return ((String) Debug.delegate(ba, "writebarcode", new Object[] {_bartype,_data}));} -byte[] _databytes = null; -int _dlow = 0; -byte[] _params = null; -RDebugUtils.currentLine=29163520; - //BA.debugLineNum = 29163520;BA.debugLine="Public Sub WriteBarCode(bartype As String, data As"; -RDebugUtils.currentLine=29163521; - //BA.debugLineNum = 29163521;BA.debugLine="Dim databytes() As Byte = data.GetBytes(\"ASCII\")"; -_databytes = _data.getBytes("ASCII"); -RDebugUtils.currentLine=29163522; - //BA.debugLineNum = 29163522;BA.debugLine="Dim dlow As Int = databytes.Length"; -_dlow = _databytes.length; -RDebugUtils.currentLine=29163523; - //BA.debugLineNum = 29163523;BA.debugLine="Log(\"Barcode \" & bartype & \", Size \" & dlow & \","; -__c.LogImpl("229163523","Barcode "+_bartype+", Size "+BA.NumberToString(_dlow)+", "+_data,0); -RDebugUtils.currentLine=29163524; - //BA.debugLineNum = 29163524;BA.debugLine="WriteString(GS & \"k\" & bartype.ToUpperCase.CharAt"; -__ref._writestring /*String*/ (null,__ref._gs /*String*/ +"k"+BA.ObjectToString(_bartype.toUpperCase().charAt((int) (0)))); -RDebugUtils.currentLine=29163525; - //BA.debugLineNum = 29163525;BA.debugLine="Dim params(1) As Byte"; -_params = new byte[(int) (1)]; -; -RDebugUtils.currentLine=29163526; - //BA.debugLineNum = 29163526;BA.debugLine="params(0) = dlow"; -_params[(int) (0)] = (byte) (_dlow); -RDebugUtils.currentLine=29163527; - //BA.debugLineNum = 29163527;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=29163528; - //BA.debugLineNum = 29163528;BA.debugLine="WriteBytes(databytes)"; -__ref._writebytes /*String*/ (null,_databytes); -RDebugUtils.currentLine=29163529; - //BA.debugLineNum = 29163529;BA.debugLine="End Sub"; -return ""; -} -public reparto_izca.keymon.lat.escposprinter._animage _imagetobwimage(reparto_izca.keymon.lat.escposprinter __ref,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "imagetobwimage", false)) - {return ((reparto_izca.keymon.lat.escposprinter._animage) Debug.delegate(ba, "imagetobwimage", new Object[] {_bmp}));} -b4a.example.bitmapcreator _bc = null; -int _w = 0; -int _h = 0; -byte[] _pixels = null; -int _y = 0; -int _x = 0; -int _j = 0; -b4a.example.bitmapcreator._argbcolor _col = null; -int _lum = 0; -reparto_izca.keymon.lat.escposprinter._animage _ret = null; -RDebugUtils.currentLine=28311552; - //BA.debugLineNum = 28311552;BA.debugLine="Sub ImageToBWIMage(bmp As Bitmap) As AnImage"; -RDebugUtils.currentLine=28311553; - //BA.debugLineNum = 28311553;BA.debugLine="Dim BC As BitmapCreator 'ignore"; -_bc = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=28311554; - //BA.debugLineNum = 28311554;BA.debugLine="Dim W As Int = bmp.Width"; -_w = _bmp.getWidth(); -RDebugUtils.currentLine=28311555; - //BA.debugLineNum = 28311555;BA.debugLine="Dim H As Int = bmp.Height"; -_h = _bmp.getHeight(); -RDebugUtils.currentLine=28311556; - //BA.debugLineNum = 28311556;BA.debugLine="Dim pixels(W * H) As Byte"; -_pixels = new byte[(int) (_w*_h)]; -; -RDebugUtils.currentLine=28311558; - //BA.debugLineNum = 28311558;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 ) { -RDebugUtils.currentLine=28311559; - //BA.debugLineNum = 28311559;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 ) { -RDebugUtils.currentLine=28311560; - //BA.debugLineNum = 28311560;BA.debugLine="Dim j As Int = bmp.GetPixel(x, y)"; -_j = _bmp.GetPixel(_x,_y); -RDebugUtils.currentLine=28311562; - //BA.debugLineNum = 28311562;BA.debugLine="Dim col As ARGBColor"; -_col = new b4a.example.bitmapcreator._argbcolor(); -RDebugUtils.currentLine=28311563; - //BA.debugLineNum = 28311563;BA.debugLine="BC.ColorToARGB(j, col )"; -_bc._colortoargb(_j,_col); -RDebugUtils.currentLine=28311564; - //BA.debugLineNum = 28311564;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); -RDebugUtils.currentLine=28311565; - //BA.debugLineNum = 28311565;BA.debugLine="If lum> 255 Then lum = 255"; -if (_lum>255) { -_lum = (int) (255);}; -RDebugUtils.currentLine=28311567; - //BA.debugLineNum = 28311567;BA.debugLine="pixels(y*W + x) = lum"; -_pixels[(int) (_y*_w+_x)] = (byte) (_lum); - } -}; - } -}; -RDebugUtils.currentLine=28311570; - //BA.debugLineNum = 28311570;BA.debugLine="Dim ret As AnImage"; -_ret = new reparto_izca.keymon.lat.escposprinter._animage(); -RDebugUtils.currentLine=28311571; - //BA.debugLineNum = 28311571;BA.debugLine="ret.Width = bmp.Width"; -_ret.Width /*int*/ = _bmp.getWidth(); -RDebugUtils.currentLine=28311572; - //BA.debugLineNum = 28311572;BA.debugLine="ret.Height = bmp.Height"; -_ret.Height /*int*/ = _bmp.getHeight(); -RDebugUtils.currentLine=28311573; - //BA.debugLineNum = 28311573;BA.debugLine="ret.Data = pixels"; -_ret.Data /*byte[]*/ = _pixels; -RDebugUtils.currentLine=28311574; - //BA.debugLineNum = 28311574;BA.debugLine="Return ret"; -if (true) return _ret; -RDebugUtils.currentLine=28311575; - //BA.debugLineNum = 28311575;BA.debugLine="End Sub"; -return null; -} -public reparto_izca.keymon.lat.escposprinter._animage _ditherimage2d(reparto_izca.keymon.lat.escposprinter __ref,reparto_izca.keymon.lat.escposprinter._animage _img,int _threshold) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "ditherimage2d", false)) - {return ((reparto_izca.keymon.lat.escposprinter._animage) Debug.delegate(ba, "ditherimage2d", new Object[] {_img,_threshold}));} -byte[] _pixels = null; -int _xerror = 0; -int[] _yerrors = null; -int _i = 0; -int _y = 0; -int _x = 0; -int _lum = 0; -reparto_izca.keymon.lat.escposprinter._animage _ret = null; -RDebugUtils.currentLine=28508160; - //BA.debugLineNum = 28508160;BA.debugLine="Sub DitherImage2D(img As AnImage, threshold As Int"; -RDebugUtils.currentLine=28508161; - //BA.debugLineNum = 28508161;BA.debugLine="Dim pixels(img.Data.Length) As Byte"; -_pixels = new byte[_img.Data /*byte[]*/ .length]; -; -RDebugUtils.currentLine=28508162; - //BA.debugLineNum = 28508162;BA.debugLine="Dim xerror As Int"; -_xerror = 0; -RDebugUtils.currentLine=28508163; - //BA.debugLineNum = 28508163;BA.debugLine="Dim yerrors(img.Width) As Int"; -_yerrors = new int[_img.Width /*int*/ ]; -; -RDebugUtils.currentLine=28508164; - //BA.debugLineNum = 28508164;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 ) { -RDebugUtils.currentLine=28508165; - //BA.debugLineNum = 28508165;BA.debugLine="yerrors(0) = 0"; -_yerrors[(int) (0)] = (int) (0); - } -}; -RDebugUtils.currentLine=28508167; - //BA.debugLineNum = 28508167;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 ) { -RDebugUtils.currentLine=28508168; - //BA.debugLineNum = 28508168;BA.debugLine="xerror = 0 ' reset on each new line"; -_xerror = (int) (0); -RDebugUtils.currentLine=28508169; - //BA.debugLineNum = 28508169;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 ) { -RDebugUtils.currentLine=28508170; - //BA.debugLineNum = 28508170;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)); -RDebugUtils.currentLine=28508171; - //BA.debugLineNum = 28508171;BA.debugLine="lum = lum + xerror + yerrors(x)"; -_lum = (int) (_lum+_xerror+_yerrors[_x]); -RDebugUtils.currentLine=28508172; - //BA.debugLineNum = 28508172;BA.debugLine="If lum < threshold Then"; -if (_lum<_threshold) { -RDebugUtils.currentLine=28508173; - //BA.debugLineNum = 28508173;BA.debugLine="xerror = lum/2"; -_xerror = (int) (_lum/(double)2); -RDebugUtils.currentLine=28508174; - //BA.debugLineNum = 28508174;BA.debugLine="yerrors(x) = xerror"; -_yerrors[_x] = _xerror; -RDebugUtils.currentLine=28508175; - //BA.debugLineNum = 28508175;BA.debugLine="lum = 1"; -_lum = (int) (1); - }else { -RDebugUtils.currentLine=28508177; - //BA.debugLineNum = 28508177;BA.debugLine="xerror = (lum - 255)/2"; -_xerror = (int) ((_lum-255)/(double)2); -RDebugUtils.currentLine=28508178; - //BA.debugLineNum = 28508178;BA.debugLine="yerrors(x) = xerror"; -_yerrors[_x] = _xerror; -RDebugUtils.currentLine=28508179; - //BA.debugLineNum = 28508179;BA.debugLine="lum = 0"; -_lum = (int) (0); - }; -RDebugUtils.currentLine=28508181; - //BA.debugLineNum = 28508181;BA.debugLine="pixels(y*img.Width + x) = lum"; -_pixels[(int) (_y*_img.Width /*int*/ +_x)] = (byte) (_lum); - } -}; - } -}; -RDebugUtils.currentLine=28508184; - //BA.debugLineNum = 28508184;BA.debugLine="Dim ret As AnImage"; -_ret = new reparto_izca.keymon.lat.escposprinter._animage(); -RDebugUtils.currentLine=28508185; - //BA.debugLineNum = 28508185;BA.debugLine="ret.Width = img.Width"; -_ret.Width /*int*/ = _img.Width /*int*/ ; -RDebugUtils.currentLine=28508186; - //BA.debugLineNum = 28508186;BA.debugLine="ret.Height = img.Height"; -_ret.Height /*int*/ = _img.Height /*int*/ ; -RDebugUtils.currentLine=28508187; - //BA.debugLineNum = 28508187;BA.debugLine="ret.Data = pixels"; -_ret.Data /*byte[]*/ = _pixels; -RDebugUtils.currentLine=28508188; - //BA.debugLineNum = 28508188;BA.debugLine="Return ret"; -if (true) return _ret; -RDebugUtils.currentLine=28508189; - //BA.debugLineNum = 28508189;BA.debugLine="End Sub"; -return null; -} -public reparto_izca.keymon.lat.escposprinter._animage _packimage(reparto_izca.keymon.lat.escposprinter __ref,reparto_izca.keymon.lat.escposprinter._animage _imagedata) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "packimage", false)) - {return ((reparto_izca.keymon.lat.escposprinter._animage) Debug.delegate(ba, "packimage", new Object[] {_imagedata}));} -int _xbytes = 0; -byte[] _pixels = null; -byte[] _masks = null; -int _index = 0; -int _y = 0; -int _x = 0; -byte _xbyte = (byte)0; -int _b = 0; -byte _pix = (byte)0; -reparto_izca.keymon.lat.escposprinter._animage _ret = null; -RDebugUtils.currentLine=28639232; - //BA.debugLineNum = 28639232;BA.debugLine="Public Sub PackImage(imagedata As AnImage) As AnIm"; -RDebugUtils.currentLine=28639233; - //BA.debugLineNum = 28639233;BA.debugLine="Dim xbytes As Int = imagedata.width/8"; -_xbytes = (int) (_imagedata.Width /*int*/ /(double)8); -RDebugUtils.currentLine=28639234; - //BA.debugLineNum = 28639234;BA.debugLine="Dim pixels(xbytes * imagedata.height) As Byte"; -_pixels = new byte[(int) (_xbytes*_imagedata.Height /*int*/ )]; -; -RDebugUtils.currentLine=28639235; - //BA.debugLineNum = 28639235;BA.debugLine="Dim masks(8) As Byte"; -_masks = new byte[(int) (8)]; -; -RDebugUtils.currentLine=28639236; - //BA.debugLineNum = 28639236;BA.debugLine="masks(0) = 0x80"; -_masks[(int) (0)] = (byte) (((int)0x80)); -RDebugUtils.currentLine=28639237; - //BA.debugLineNum = 28639237;BA.debugLine="masks(1) = 0x40"; -_masks[(int) (1)] = (byte) (((int)0x40)); -RDebugUtils.currentLine=28639238; - //BA.debugLineNum = 28639238;BA.debugLine="masks(2) = 0x20"; -_masks[(int) (2)] = (byte) (((int)0x20)); -RDebugUtils.currentLine=28639239; - //BA.debugLineNum = 28639239;BA.debugLine="masks(3) = 0x10"; -_masks[(int) (3)] = (byte) (((int)0x10)); -RDebugUtils.currentLine=28639240; - //BA.debugLineNum = 28639240;BA.debugLine="masks(4) = 0x08"; -_masks[(int) (4)] = (byte) (((int)0x08)); -RDebugUtils.currentLine=28639241; - //BA.debugLineNum = 28639241;BA.debugLine="masks(5) = 0x04"; -_masks[(int) (5)] = (byte) (((int)0x04)); -RDebugUtils.currentLine=28639242; - //BA.debugLineNum = 28639242;BA.debugLine="masks(6) = 0x02"; -_masks[(int) (6)] = (byte) (((int)0x02)); -RDebugUtils.currentLine=28639243; - //BA.debugLineNum = 28639243;BA.debugLine="masks(7) = 0x01"; -_masks[(int) (7)] = (byte) (((int)0x01)); -RDebugUtils.currentLine=28639244; - //BA.debugLineNum = 28639244;BA.debugLine="Dim index As Int = 0"; -_index = (int) (0); -RDebugUtils.currentLine=28639245; - //BA.debugLineNum = 28639245;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 ) { -RDebugUtils.currentLine=28639246; - //BA.debugLineNum = 28639246;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 ) { -RDebugUtils.currentLine=28639247; - //BA.debugLineNum = 28639247;BA.debugLine="Dim xbyte As Byte = 0"; -_xbyte = (byte) (0); -RDebugUtils.currentLine=28639248; - //BA.debugLineNum = 28639248;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 ) { -RDebugUtils.currentLine=28639250; - //BA.debugLineNum = 28639250;BA.debugLine="Dim pix As Byte = imagedata.Data(index)"; -_pix = _imagedata.Data /*byte[]*/ [_index]; -RDebugUtils.currentLine=28639251; - //BA.debugLineNum = 28639251;BA.debugLine="If pix <> 0 Then"; -if (_pix!=0) { -RDebugUtils.currentLine=28639252; - //BA.debugLineNum = 28639252;BA.debugLine="xbyte = xbyte + masks(b)"; -_xbyte = (byte) (_xbyte+_masks[_b]); - }; -RDebugUtils.currentLine=28639254; - //BA.debugLineNum = 28639254;BA.debugLine="index = index + 1"; -_index = (int) (_index+1); - } -}; -RDebugUtils.currentLine=28639256; - //BA.debugLineNum = 28639256;BA.debugLine="pixels(y*xbytes + x) = xbyte"; -_pixels[(int) (_y*_xbytes+_x)] = _xbyte; - } -}; - } -}; -RDebugUtils.currentLine=28639259; - //BA.debugLineNum = 28639259;BA.debugLine="Dim ret As AnImage"; -_ret = new reparto_izca.keymon.lat.escposprinter._animage(); -RDebugUtils.currentLine=28639260; - //BA.debugLineNum = 28639260;BA.debugLine="ret.Width = xbytes"; -_ret.Width /*int*/ = _xbytes; -RDebugUtils.currentLine=28639261; - //BA.debugLineNum = 28639261;BA.debugLine="ret.Height = imagedata.Height"; -_ret.Height /*int*/ = _imagedata.Height /*int*/ ; -RDebugUtils.currentLine=28639262; - //BA.debugLineNum = 28639262;BA.debugLine="ret.Data = pixels"; -_ret.Data /*byte[]*/ = _pixels; -RDebugUtils.currentLine=28639263; - //BA.debugLineNum = 28639263;BA.debugLine="Return ret"; -if (true) return _ret; -RDebugUtils.currentLine=28639264; - //BA.debugLineNum = 28639264;BA.debugLine="End Sub"; -return null; -} -public int _printimage(reparto_izca.keymon.lat.escposprinter __ref,reparto_izca.keymon.lat.escposprinter._animage _img) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "printimage", false)) - {return ((Integer) Debug.delegate(ba, "printimage", new Object[] {_img}));} -int _xh = 0; -int _xl = 0; -int _yh = 0; -int _yl = 0; -byte[] _params = null; -RDebugUtils.currentLine=28573696; - //BA.debugLineNum = 28573696;BA.debugLine="Public Sub PrintImage(img As AnImage) As Int"; -RDebugUtils.currentLine=28573699; - //BA.debugLineNum = 28573699;BA.debugLine="If img.width > 72 Then Return -1"; -if (_img.Width /*int*/ >72) { -if (true) return (int) (-1);}; -RDebugUtils.currentLine=28573700; - //BA.debugLineNum = 28573700;BA.debugLine="If img.height > 512 Then Return -2"; -if (_img.Height /*int*/ >512) { -if (true) return (int) (-2);}; -RDebugUtils.currentLine=28573701; - //BA.debugLineNum = 28573701;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);}; -RDebugUtils.currentLine=28573702; - //BA.debugLineNum = 28573702;BA.debugLine="Dim xh As Int = img.width / 256"; -_xh = (int) (_img.Width /*int*/ /(double)256); -RDebugUtils.currentLine=28573703; - //BA.debugLineNum = 28573703;BA.debugLine="Dim xl As Int = img.width - xh * 256"; -_xl = (int) (_img.Width /*int*/ -_xh*256); -RDebugUtils.currentLine=28573704; - //BA.debugLineNum = 28573704;BA.debugLine="Dim yh As Int = img.height / 256"; -_yh = (int) (_img.Height /*int*/ /(double)256); -RDebugUtils.currentLine=28573705; - //BA.debugLineNum = 28573705;BA.debugLine="Dim yl As Int = img.height - yh * 256"; -_yl = (int) (_img.Height /*int*/ -_yh*256); -RDebugUtils.currentLine=28573706; - //BA.debugLineNum = 28573706;BA.debugLine="Dim params(5) As Byte"; -_params = new byte[(int) (5)]; -; -RDebugUtils.currentLine=28573707; - //BA.debugLineNum = 28573707;BA.debugLine="params(0) = 0 '"; -_params[(int) (0)] = (byte) (0); -RDebugUtils.currentLine=28573708; - //BA.debugLineNum = 28573708;BA.debugLine="params(1) = xl"; -_params[(int) (1)] = (byte) (_xl); -RDebugUtils.currentLine=28573709; - //BA.debugLineNum = 28573709;BA.debugLine="params(2) = xh"; -_params[(int) (2)] = (byte) (_xh); -RDebugUtils.currentLine=28573710; - //BA.debugLineNum = 28573710;BA.debugLine="params(3) = yl"; -_params[(int) (3)] = (byte) (_yl); -RDebugUtils.currentLine=28573711; - //BA.debugLineNum = 28573711;BA.debugLine="params(4) = yh"; -_params[(int) (4)] = (byte) (_yh); -RDebugUtils.currentLine=28573712; - //BA.debugLineNum = 28573712;BA.debugLine="WriteString(GS & \"v0\")"; -__ref._writestring /*String*/ (null,__ref._gs /*String*/ +"v0"); -RDebugUtils.currentLine=28573713; - //BA.debugLineNum = 28573713;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=28573714; - //BA.debugLineNum = 28573714;BA.debugLine="WriteBytes(img.data)"; -__ref._writebytes /*String*/ (null,_img.Data /*byte[]*/ ); -RDebugUtils.currentLine=28573715; - //BA.debugLineNum = 28573715;BA.debugLine="WriteString(CRLF)"; -__ref._writestring /*String*/ (null,__c.CRLF); -RDebugUtils.currentLine=28573716; - //BA.debugLineNum = 28573716;BA.debugLine="Return 0"; -if (true) return (int) (0); -RDebugUtils.currentLine=28573717; - //BA.debugLineNum = 28573717;BA.debugLine="End Sub"; -return 0; -} -public String _astream_error(reparto_izca.keymon.lat.escposprinter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "astream_error", false)) - {return ((String) Debug.delegate(ba, "astream_error", null));} -RDebugUtils.currentLine=29425664; - //BA.debugLineNum = 29425664;BA.debugLine="Private Sub AStream_Error"; -RDebugUtils.currentLine=29425665; - //BA.debugLineNum = 29425665;BA.debugLine="If SubExists(CallBack, EventName & \"_Error\") Then"; -if (__c.SubExists(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_Error")) { -RDebugUtils.currentLine=29425666; - //BA.debugLineNum = 29425666;BA.debugLine="CallSub(CallBack, EventName & \"_Error\")"; -__c.CallSubNew(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_Error"); - }; -RDebugUtils.currentLine=29425668; - //BA.debugLineNum = 29425668;BA.debugLine="End Sub"; -return ""; -} -public String _astream_newdata(reparto_izca.keymon.lat.escposprinter __ref,byte[] _buffer) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "astream_newdata", false)) - {return ((String) Debug.delegate(ba, "astream_newdata", new Object[] {_buffer}));} -RDebugUtils.currentLine=29360128; - //BA.debugLineNum = 29360128;BA.debugLine="Private Sub AStream_NewData (Buffer() As Byte)"; -RDebugUtils.currentLine=29360129; - //BA.debugLineNum = 29360129;BA.debugLine="If SubExists(CallBack, EventName & \"_NewData\") Th"; -if (__c.SubExists(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_NewData")) { -RDebugUtils.currentLine=29360130; - //BA.debugLineNum = 29360130;BA.debugLine="CallSub2(CallBack, EventName & \"_NewData\", Buffe"; -__c.CallSubNew2(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_NewData",(Object)(_buffer)); - }; -RDebugUtils.currentLine=29360132; - //BA.debugLineNum = 29360132;BA.debugLine="Log(\"Data \" & Buffer(0))"; -__c.LogImpl("229360132","Data "+BA.NumberToString(_buffer[(int) (0)]),0); -RDebugUtils.currentLine=29360133; - //BA.debugLineNum = 29360133;BA.debugLine="End Sub"; -return ""; -} -public String _astream_terminated(reparto_izca.keymon.lat.escposprinter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "astream_terminated", false)) - {return ((String) Debug.delegate(ba, "astream_terminated", null));} -RDebugUtils.currentLine=29491200; - //BA.debugLineNum = 29491200;BA.debugLine="Private Sub AStream_Terminated"; -RDebugUtils.currentLine=29491201; - //BA.debugLineNum = 29491201;BA.debugLine="Connected = False"; -__ref._connected /*boolean*/ = __c.False; -RDebugUtils.currentLine=29491202; - //BA.debugLineNum = 29491202;BA.debugLine="If SubExists(CallBack, EventName & \"_Terminated\")"; -if (__c.SubExists(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_Terminated")) { -RDebugUtils.currentLine=29491203; - //BA.debugLineNum = 29491203;BA.debugLine="CallSub(CallBack, EventName & \"_Terminated\")"; -__c.CallSubNew(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_Terminated"); - }; -RDebugUtils.currentLine=29491205; - //BA.debugLineNum = 29491205;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.escposprinter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -RDebugUtils.currentLine=25886720; - //BA.debugLineNum = 25886720;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=25886727; - //BA.debugLineNum = 25886727;BA.debugLine="Private Version As Double = 2.0 ' Printer class v"; -_version = 2.0; -RDebugUtils.currentLine=25886729; - //BA.debugLineNum = 25886729;BA.debugLine="Type AnImage(Width As Int, Height As Int, Data()"; -; -RDebugUtils.currentLine=25886731; - //BA.debugLineNum = 25886731;BA.debugLine="Private EventName As String 'ignore"; -_eventname = ""; -RDebugUtils.currentLine=25886732; - //BA.debugLineNum = 25886732;BA.debugLine="Private CallBack As Object 'ignore"; -_callback = new Object(); -RDebugUtils.currentLine=25886734; - //BA.debugLineNum = 25886734;BA.debugLine="Private Serial1 As Serial"; -_serial1 = new anywheresoftware.b4a.objects.Serial(); -RDebugUtils.currentLine=25886735; - //BA.debugLineNum = 25886735;BA.debugLine="Private Astream As AsyncStreams"; -_astream = new anywheresoftware.b4a.randomaccessfile.AsyncStreams(); -RDebugUtils.currentLine=25886736; - //BA.debugLineNum = 25886736;BA.debugLine="Private Connected As Boolean"; -_connected = false; -RDebugUtils.currentLine=25886737; - //BA.debugLineNum = 25886737;BA.debugLine="Private ConnectedError As String"; -_connectederror = ""; -RDebugUtils.currentLine=25886739; - //BA.debugLineNum = 25886739;BA.debugLine="Dim ESC As String = Chr(27)"; -_esc = BA.ObjectToString(__c.Chr((int) (27))); -RDebugUtils.currentLine=25886740; - //BA.debugLineNum = 25886740;BA.debugLine="Dim FS As String = Chr(28)"; -_fs = BA.ObjectToString(__c.Chr((int) (28))); -RDebugUtils.currentLine=25886741; - //BA.debugLineNum = 25886741;BA.debugLine="Dim GS As String = Chr(29)"; -_gs = BA.ObjectToString(__c.Chr((int) (29))); -RDebugUtils.currentLine=25886744; - //BA.debugLineNum = 25886744;BA.debugLine="Dim UNREVERSE As String = GS & \"B\" & Chr(0)"; -_unreverse = __ref._gs /*String*/ +"B"+BA.ObjectToString(__c.Chr((int) (0))); -RDebugUtils.currentLine=25886745; - //BA.debugLineNum = 25886745;BA.debugLine="Dim REVERSE As String = GS & \"B\" & Chr(1)"; -_reverse = __ref._gs /*String*/ +"B"+BA.ObjectToString(__c.Chr((int) (1))); -RDebugUtils.currentLine=25886748; - //BA.debugLineNum = 25886748;BA.debugLine="Dim UNINVERT As String = ESC & \"{0\""; -_uninvert = __ref._esc /*String*/ +"{0"; -RDebugUtils.currentLine=25886749; - //BA.debugLineNum = 25886749;BA.debugLine="Dim INVERT As String = ESC & \"{1\""; -_invert = __ref._esc /*String*/ +"{1"; -RDebugUtils.currentLine=25886752; - //BA.debugLineNum = 25886752;BA.debugLine="Dim UNROTATE As String = ESC & \"V0\""; -_unrotate = __ref._esc /*String*/ +"V0"; -RDebugUtils.currentLine=25886753; - //BA.debugLineNum = 25886753;BA.debugLine="Dim ROTATE As String = ESC & \"V1\""; -_rotate = __ref._esc /*String*/ +"V1"; -RDebugUtils.currentLine=25886756; - //BA.debugLineNum = 25886756;BA.debugLine="Dim HT As String = Chr(9)"; -_ht = BA.ObjectToString(__c.Chr((int) (9))); -RDebugUtils.currentLine=25886759; - //BA.debugLineNum = 25886759;BA.debugLine="Dim ULINE0 As String = ESC & \"-0\""; -_uline0 = __ref._esc /*String*/ +"-0"; -RDebugUtils.currentLine=25886760; - //BA.debugLineNum = 25886760;BA.debugLine="Dim ULINE1 As String = ESC & \"-1\""; -_uline1 = __ref._esc /*String*/ +"-1"; -RDebugUtils.currentLine=25886761; - //BA.debugLineNum = 25886761;BA.debugLine="Dim ULINE2 As String = ESC & \"-2\""; -_uline2 = __ref._esc /*String*/ +"-2"; -RDebugUtils.currentLine=25886764; - //BA.debugLineNum = 25886764;BA.debugLine="Dim BOLD As String = ESC & \"E1\""; -_bold = __ref._esc /*String*/ +"E1"; -RDebugUtils.currentLine=25886765; - //BA.debugLineNum = 25886765;BA.debugLine="Dim NOBOLD As String = ESC & \"E0\""; -_nobold = __ref._esc /*String*/ +"E0"; -RDebugUtils.currentLine=25886768; - //BA.debugLineNum = 25886768;BA.debugLine="Dim SINGLE As String = GS & \"!\" & Chr(0x00)"; -_single = __ref._gs /*String*/ +"!"+BA.ObjectToString(__c.Chr(((int)0x00))); -RDebugUtils.currentLine=25886769; - //BA.debugLineNum = 25886769;BA.debugLine="Dim HIGH As String = GS & \"!\" & Chr(0x01)"; -_high = __ref._gs /*String*/ +"!"+BA.ObjectToString(__c.Chr(((int)0x01))); -RDebugUtils.currentLine=25886770; - //BA.debugLineNum = 25886770;BA.debugLine="Dim WIDE As String = GS & \"!\" & Chr(0x10)"; -_wide = __ref._gs /*String*/ +"!"+BA.ObjectToString(__c.Chr(((int)0x10))); -RDebugUtils.currentLine=25886771; - //BA.debugLineNum = 25886771;BA.debugLine="Dim HIGHWIDE As String = GS & \"!\" & Chr(0x11)"; -_highwide = __ref._gs /*String*/ +"!"+BA.ObjectToString(__c.Chr(((int)0x11))); -RDebugUtils.currentLine=25886774; - //BA.debugLineNum = 25886774;BA.debugLine="Private LEFTJUSTIFY As String = ESC & \"a0\""; -_leftjustify = __ref._esc /*String*/ +"a0"; -RDebugUtils.currentLine=25886775; - //BA.debugLineNum = 25886775;BA.debugLine="Private LINEDEFAULT As String = ESC & \"2\""; -_linedefault = __ref._esc /*String*/ +"2"; -RDebugUtils.currentLine=25886776; - //BA.debugLineNum = 25886776;BA.debugLine="Private LINSET0 As String = ESC & \"$\" & Chr(0x0)"; -_linset0 = __ref._esc /*String*/ +"$"+BA.ObjectToString(__c.Chr(((int)0x0)))+BA.ObjectToString(__c.Chr(((int)0x0))); -RDebugUtils.currentLine=25886777; - //BA.debugLineNum = 25886777;BA.debugLine="Private LMARGIN0 As String = GS & \"L\" & Chr(0x0)"; -_lmargin0 = __ref._gs /*String*/ +"L"+BA.ObjectToString(__c.Chr(((int)0x0)))+BA.ObjectToString(__c.Chr(((int)0x0))); -RDebugUtils.currentLine=25886778; - //BA.debugLineNum = 25886778;BA.debugLine="Private WIDTH0 As String = GS & \"W\" & Chr(0xff) &"; -_width0 = __ref._gs /*String*/ +"W"+BA.ObjectToString(__c.Chr(((int)0xff)))+BA.ObjectToString(__c.Chr(((int)0xff))); -RDebugUtils.currentLine=25886779; - //BA.debugLineNum = 25886779;BA.debugLine="Private CHARSPACING0 As String = ESC & \" \" & Chr("; -_charspacing0 = __ref._esc /*String*/ +" "+BA.ObjectToString(__c.Chr((int) (0))); -RDebugUtils.currentLine=25886780; - //BA.debugLineNum = 25886780;BA.debugLine="Private CHARFONT0 As String = ESC & \"M\" & Chr(0)"; -_charfont0 = __ref._esc /*String*/ +"M"+BA.ObjectToString(__c.Chr((int) (0))); -RDebugUtils.currentLine=25886781; - //BA.debugLineNum = 25886781;BA.debugLine="Dim DEFAULTS As String = CHARSPACING0 & CHARFONT"; -_defaults = __ref._charspacing0 /*String*/ +__ref._charfont0 /*String*/ +__ref._lmargin0 /*String*/ +__ref._width0 /*String*/ +__ref._linset0 /*String*/ +__ref._linedefault /*String*/ +__ref._leftjustify /*String*/ +__ref._uninvert /*String*/ +__ref._unrotate /*String*/ +__ref._unreverse /*String*/ +__ref._nobold /*String*/ +__ref._uline0 /*String*/ ; -RDebugUtils.currentLine=25886784; - //BA.debugLineNum = 25886784;BA.debugLine="End Sub"; -return ""; -} -public String _connectederrormsg(reparto_izca.keymon.lat.escposprinter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "connectederrormsg", false)) - {return ((String) Debug.delegate(ba, "connectederrormsg", null));} -RDebugUtils.currentLine=26017792; - //BA.debugLineNum = 26017792;BA.debugLine="Public Sub ConnectedErrorMsg As String"; -RDebugUtils.currentLine=26017793; - //BA.debugLineNum = 26017793;BA.debugLine="Return ConnectedError"; -if (true) return __ref._connectederror /*String*/ ; -RDebugUtils.currentLine=26017794; - //BA.debugLineNum = 26017794;BA.debugLine="End Sub"; -return ""; -} -public int _createbox(reparto_izca.keymon.lat.escposprinter __ref,int _x0,int _y0,int _x1,int _y1,boolean _fill) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "createbox", false)) - {return ((Integer) Debug.delegate(ba, "createbox", new Object[] {_x0,_y0,_x1,_y1,_fill}));} +public int _createbox(int _x0,int _y0,int _x1,int _y1,boolean _fill) throws Exception{ int _box = 0; -RDebugUtils.currentLine=27787264; - //BA.debugLineNum = 27787264;BA.debugLine="Public Sub CreateBox(x0 As Int, y0 As Int, x1 As I"; -RDebugUtils.currentLine=27787265; - //BA.debugLineNum = 27787265;BA.debugLine="Dim box As Int = 0x100000000"; + //BA.debugLineNum = 1664;BA.debugLine="Public Sub CreateBox(x0 As Int, y0 As Int, x1 As I"; + //BA.debugLineNum = 1665;BA.debugLine="Dim box As Int = 0x100000000"; _box = (int) (((long)0x100000000L)); -RDebugUtils.currentLine=27787266; - //BA.debugLineNum = 27787266;BA.debugLine="If fill Then box = box + 0x80000000"; + //BA.debugLineNum = 1666;BA.debugLine="If fill Then box = box + 0x80000000"; if (_fill) { _box = (int) (_box+((int)0x80000000));}; -RDebugUtils.currentLine=27787267; - //BA.debugLineNum = 27787267;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0xf,x0), 24)"; + //BA.debugLineNum = 1667;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0xf,x0), 24)"; _box = (int) (_box+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x0),(int) (24))); -RDebugUtils.currentLine=27787268; - //BA.debugLineNum = 27787268;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)"; + //BA.debugLineNum = 1668;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)"; _box = (int) (_box+__c.Bit.ShiftLeft(__c.Bit.And(((int)0x1f),_y0),(int) (16))); -RDebugUtils.currentLine=27787269; - //BA.debugLineNum = 27787269;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0xf,x1), 8)"; + //BA.debugLineNum = 1669;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0xf,x1), 8)"; _box = (int) (_box+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x1),(int) (8))); -RDebugUtils.currentLine=27787270; - //BA.debugLineNum = 27787270;BA.debugLine="box = box + Bit.And(0x1f,y1)"; + //BA.debugLineNum = 1670;BA.debugLine="box = box + Bit.And(0x1f,y1)"; _box = (int) (_box+__c.Bit.And(((int)0x1f),_y1)); -RDebugUtils.currentLine=27787271; - //BA.debugLineNum = 27787271;BA.debugLine="Return box"; + //BA.debugLineNum = 1671;BA.debugLine="Return box"; if (true) return _box; -RDebugUtils.currentLine=27787272; - //BA.debugLineNum = 27787272;BA.debugLine="End Sub"; + //BA.debugLineNum = 1672;BA.debugLine="End Sub"; return 0; } -public int _createcircle(reparto_izca.keymon.lat.escposprinter __ref,int _radius,int _quadrants,int _x1,int _y1,boolean _fill) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "createcircle", false)) - {return ((Integer) Debug.delegate(ba, "createcircle", new Object[] {_radius,_quadrants,_x1,_y1,_fill}));} +public int _createcircle(int _radius,int _quadrants,int _x1,int _y1,boolean _fill) throws Exception{ int _circle = 0; -RDebugUtils.currentLine=27656192; - //BA.debugLineNum = 27656192;BA.debugLine="Public Sub CreateCircle(radius As Int, quadrants A"; -RDebugUtils.currentLine=27656193; - //BA.debugLineNum = 27656193;BA.debugLine="Dim circle As Int = 0x20000000"; + //BA.debugLineNum = 1634;BA.debugLine="Public Sub CreateCircle(radius As Int, quadrants A"; + //BA.debugLineNum = 1635;BA.debugLine="Dim circle As Int = 0x20000000"; _circle = ((int)0x20000000); -RDebugUtils.currentLine=27656194; - //BA.debugLineNum = 27656194;BA.debugLine="If fill Then circle = circle + 0x80000000"; + //BA.debugLineNum = 1636;BA.debugLine="If fill Then circle = circle + 0x80000000"; if (_fill) { _circle = (int) (_circle+((int)0x80000000));}; -RDebugUtils.currentLine=27656195; - //BA.debugLineNum = 27656195;BA.debugLine="circle = circle + Bit.ShiftLeft(radius, 24)"; + //BA.debugLineNum = 1637;BA.debugLine="circle = circle + Bit.ShiftLeft(radius, 24)"; _circle = (int) (_circle+__c.Bit.ShiftLeft(_radius,(int) (24))); -RDebugUtils.currentLine=27656196; - //BA.debugLineNum = 27656196;BA.debugLine="circle = circle + Bit.ShiftLeft(quadrants, 16)"; + //BA.debugLineNum = 1638;BA.debugLine="circle = circle + Bit.ShiftLeft(quadrants, 16)"; _circle = (int) (_circle+__c.Bit.ShiftLeft(_quadrants,(int) (16))); -RDebugUtils.currentLine=27656197; - //BA.debugLineNum = 27656197;BA.debugLine="circle = circle + Bit.ShiftLeft(x1, 8)"; + //BA.debugLineNum = 1639;BA.debugLine="circle = circle + Bit.ShiftLeft(x1, 8)"; _circle = (int) (_circle+__c.Bit.ShiftLeft(_x1,(int) (8))); -RDebugUtils.currentLine=27656198; - //BA.debugLineNum = 27656198;BA.debugLine="circle = circle + y1"; + //BA.debugLineNum = 1640;BA.debugLine="circle = circle + y1"; _circle = (int) (_circle+_y1); -RDebugUtils.currentLine=27656199; - //BA.debugLineNum = 27656199;BA.debugLine="Return circle"; + //BA.debugLineNum = 1641;BA.debugLine="Return circle"; if (true) return _circle; -RDebugUtils.currentLine=27656200; - //BA.debugLineNum = 27656200;BA.debugLine="End Sub"; + //BA.debugLineNum = 1642;BA.debugLine="End Sub"; return 0; } -public byte[] _createcustomcharacter(reparto_izca.keymon.lat.escposprinter __ref,int[] _shapes,int _characterfont) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "createcustomcharacter", false)) - {return ((byte[]) Debug.delegate(ba, "createcustomcharacter", new Object[] {_shapes,_characterfont}));} +public byte[] _createcustomcharacter(int[] _shapes,int _characterfont) throws Exception{ byte[] _masks = null; byte[][] _points = null; int _x = 0; @@ -970,38 +322,27 @@ int _y2 = 0; String _logmsg = ""; byte _bits = (byte)0; int _b = 0; -RDebugUtils.currentLine=27525120; - //BA.debugLineNum = 27525120;BA.debugLine="Public Sub CreateCustomCharacter(shapes() As Int,"; -RDebugUtils.currentLine=27525121; - //BA.debugLineNum = 27525121;BA.debugLine="Dim masks(8) As Byte"; + //BA.debugLineNum = 1548;BA.debugLine="Public Sub CreateCustomCharacter(shapes() As Int,"; + //BA.debugLineNum = 1549;BA.debugLine="Dim masks(8) As Byte"; _masks = new byte[(int) (8)]; ; -RDebugUtils.currentLine=27525122; - //BA.debugLineNum = 27525122;BA.debugLine="masks(0) = 0x80"; + //BA.debugLineNum = 1550;BA.debugLine="masks(0) = 0x80"; _masks[(int) (0)] = (byte) (((int)0x80)); -RDebugUtils.currentLine=27525123; - //BA.debugLineNum = 27525123;BA.debugLine="masks(1) = 0x40"; + //BA.debugLineNum = 1551;BA.debugLine="masks(1) = 0x40"; _masks[(int) (1)] = (byte) (((int)0x40)); -RDebugUtils.currentLine=27525124; - //BA.debugLineNum = 27525124;BA.debugLine="masks(2) = 0x20"; + //BA.debugLineNum = 1552;BA.debugLine="masks(2) = 0x20"; _masks[(int) (2)] = (byte) (((int)0x20)); -RDebugUtils.currentLine=27525125; - //BA.debugLineNum = 27525125;BA.debugLine="masks(3) = 0x10"; + //BA.debugLineNum = 1553;BA.debugLine="masks(3) = 0x10"; _masks[(int) (3)] = (byte) (((int)0x10)); -RDebugUtils.currentLine=27525126; - //BA.debugLineNum = 27525126;BA.debugLine="masks(4) = 0x08"; + //BA.debugLineNum = 1554;BA.debugLine="masks(4) = 0x08"; _masks[(int) (4)] = (byte) (((int)0x08)); -RDebugUtils.currentLine=27525127; - //BA.debugLineNum = 27525127;BA.debugLine="masks(5) = 0x04"; + //BA.debugLineNum = 1555;BA.debugLine="masks(5) = 0x04"; _masks[(int) (5)] = (byte) (((int)0x04)); -RDebugUtils.currentLine=27525128; - //BA.debugLineNum = 27525128;BA.debugLine="masks(6) = 0x02"; + //BA.debugLineNum = 1556;BA.debugLine="masks(6) = 0x02"; _masks[(int) (6)] = (byte) (((int)0x02)); -RDebugUtils.currentLine=27525129; - //BA.debugLineNum = 27525129;BA.debugLine="masks(7) = 0x01"; + //BA.debugLineNum = 1557;BA.debugLine="masks(7) = 0x01"; _masks[(int) (7)] = (byte) (((int)0x01)); -RDebugUtils.currentLine=27525132; - //BA.debugLineNum = 27525132;BA.debugLine="Dim points(16,32) As Byte"; + //BA.debugLineNum = 1560;BA.debugLine="Dim points(16,32) As Byte"; _points = new byte[(int) (16)][]; { int d0 = _points.length; @@ -1011,157 +352,116 @@ _points[i0] = new byte[d1]; } } ; -RDebugUtils.currentLine=27525134; - //BA.debugLineNum = 27525134;BA.debugLine="For x = 0 To 15"; + //BA.debugLineNum = 1562;BA.debugLine="For x = 0 To 15"; { final int step11 = 1; final int limit11 = (int) (15); _x = (int) (0) ; for (;_x <= limit11 ;_x = _x + step11 ) { -RDebugUtils.currentLine=27525135; - //BA.debugLineNum = 27525135;BA.debugLine="For y = 0 To 31"; + //BA.debugLineNum = 1563;BA.debugLine="For y = 0 To 31"; { final int step12 = 1; final int limit12 = (int) (31); _y = (int) (0) ; for (;_y <= limit12 ;_y = _y + step12 ) { -RDebugUtils.currentLine=27525136; - //BA.debugLineNum = 27525136;BA.debugLine="points(x,y) = 0"; + //BA.debugLineNum = 1564;BA.debugLine="points(x,y) = 0"; _points[_x][_y] = (byte) (0); } }; } }; -RDebugUtils.currentLine=27525139; - //BA.debugLineNum = 27525139;BA.debugLine="Dim size As Int = 12"; + //BA.debugLineNum = 1567;BA.debugLine="Dim size As Int = 12"; _size = (int) (12); -RDebugUtils.currentLine=27525140; - //BA.debugLineNum = 27525140;BA.debugLine="If characterfont = 1 Then size = 9"; + //BA.debugLineNum = 1568;BA.debugLine="If characterfont = 1 Then size = 9"; if (_characterfont==1) { _size = (int) (9);}; -RDebugUtils.currentLine=27525141; - //BA.debugLineNum = 27525141;BA.debugLine="Dim charbyes(size * 3) As Byte"; + //BA.debugLineNum = 1569;BA.debugLine="Dim charbyes(size * 3) As Byte"; _charbyes = new byte[(int) (_size*3)]; ; -RDebugUtils.currentLine=27525142; - //BA.debugLineNum = 27525142;BA.debugLine="For c = 0 To charbyes.Length - 1"; + //BA.debugLineNum = 1570;BA.debugLine="For c = 0 To charbyes.Length - 1"; { final int step19 = 1; final int limit19 = (int) (_charbyes.length-1); _c = (int) (0) ; for (;_c <= limit19 ;_c = _c + step19 ) { -RDebugUtils.currentLine=27525143; - //BA.debugLineNum = 27525143;BA.debugLine="charbyes(c) = 0"; + //BA.debugLineNum = 1571;BA.debugLine="charbyes(c) = 0"; _charbyes[_c] = (byte) (0); } }; -RDebugUtils.currentLine=27525146; - //BA.debugLineNum = 27525146;BA.debugLine="For i = 0 To shapes.Length -1"; + //BA.debugLineNum = 1574;BA.debugLine="For i = 0 To shapes.Length -1"; { final int step22 = 1; final int limit22 = (int) (_shapes.length-1); _i = (int) (0) ; for (;_i <= limit22 ;_i = _i + step22 ) { -RDebugUtils.currentLine=27525147; - //BA.debugLineNum = 27525147;BA.debugLine="Dim fill As Int = Bit.UnsignedShiftRight(Bit.An"; + //BA.debugLineNum = 1575;BA.debugLine="Dim fill As Int = Bit.UnsignedShiftRight(Bit.An"; _fill = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x80000000),_shapes[_i]),(int) (31)); -RDebugUtils.currentLine=27525148; - //BA.debugLineNum = 27525148;BA.debugLine="Dim shape As Int = Bit.UnsignedShiftRight(Bit.An"; + //BA.debugLineNum = 1576;BA.debugLine="Dim shape As Int = Bit.UnsignedShiftRight(Bit.An"; _shape = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x70000000),_shapes[_i]),(int) (28)); -RDebugUtils.currentLine=27525149; - //BA.debugLineNum = 27525149;BA.debugLine="Dim x0 As Int = Bit.UnsignedShiftRight(Bit.And(0"; + //BA.debugLineNum = 1577;BA.debugLine="Dim x0 As Int = Bit.UnsignedShiftRight(Bit.And(0"; _x0 = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x0f000000),_shapes[_i]),(int) (24)); -RDebugUtils.currentLine=27525150; - //BA.debugLineNum = 27525150;BA.debugLine="Dim y0 As Int = Bit.UnsignedShiftRight(Bit.And(0"; + //BA.debugLineNum = 1578;BA.debugLine="Dim y0 As Int = Bit.UnsignedShiftRight(Bit.And(0"; _y0 = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x001f0000),_shapes[_i]),(int) (16)); -RDebugUtils.currentLine=27525151; - //BA.debugLineNum = 27525151;BA.debugLine="Dim x1 As Int = Bit.UnsignedShiftRight(Bit.And(0"; + //BA.debugLineNum = 1579;BA.debugLine="Dim x1 As Int = Bit.UnsignedShiftRight(Bit.And(0"; _x1 = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x00000f00),_shapes[_i]),(int) (8)); -RDebugUtils.currentLine=27525152; - //BA.debugLineNum = 27525152;BA.debugLine="Dim y1 As Int = Bit.And(0x0000001f, shapes(i))"; + //BA.debugLineNum = 1580;BA.debugLine="Dim y1 As Int = Bit.And(0x0000001f, shapes(i))"; _y1 = __c.Bit.And(((int)0x0000001f),_shapes[_i]); -RDebugUtils.currentLine=27525153; - //BA.debugLineNum = 27525153;BA.debugLine="Dim x2 As Int = Bit.UnsignedShiftRight(Bit.And(0"; + //BA.debugLineNum = 1581;BA.debugLine="Dim x2 As Int = Bit.UnsignedShiftRight(Bit.And(0"; _x2 = __c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x0000f000),_shapes[_i]),(int) (12)); -RDebugUtils.currentLine=27525154; - //BA.debugLineNum = 27525154;BA.debugLine="Dim y2 As Int = Bit.UnsignedShiftRight(Bit.And(0"; + //BA.debugLineNum = 1582;BA.debugLine="Dim y2 As Int = Bit.UnsignedShiftRight(Bit.And(0"; _y2 = (int) (__c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x00e00000),_shapes[_i]),(int) (18))+__c.Bit.UnsignedShiftRight(__c.Bit.And(((int)0x000000e0),_shapes[_i]),(int) (5))); -RDebugUtils.currentLine=27525160; - //BA.debugLineNum = 27525160;BA.debugLine="Dim logmsg As String = \": Fill=\" & fill & \" : Po"; + //BA.debugLineNum = 1588;BA.debugLine="Dim logmsg As String = \": Fill=\" & fill & \" : Po"; _logmsg = ": Fill="+BA.NumberToString(_fill)+" : Points "+BA.NumberToString(_x0)+","+BA.NumberToString(_y0)+" "+BA.NumberToString(_x1)+","+BA.NumberToString(_y1)+" "+BA.NumberToString(_x2)+","+BA.NumberToString(_y2); -RDebugUtils.currentLine=27525161; - //BA.debugLineNum = 27525161;BA.debugLine="If shape = 3 Then"; + //BA.debugLineNum = 1589;BA.debugLine="If shape = 3 Then"; if (_shape==3) { -RDebugUtils.currentLine=27525162; - //BA.debugLineNum = 27525162;BA.debugLine="Log(\"Triangle \" & logmsg)"; -__c.LogImpl("227525162","Triangle "+_logmsg,0); -RDebugUtils.currentLine=27525163; - //BA.debugLineNum = 27525163;BA.debugLine="PlotTriangle(x0, y0, x1, y1, x2, y2, points, fi"; -__ref._plottriangle /*String*/ (null,_x0,_y0,_x1,_y1,_x2,_y2,_points,_fill); - }else -{RDebugUtils.currentLine=27525164; - //BA.debugLineNum = 27525164;BA.debugLine="else If shape = 2 Then"; -if (_shape==2) { -RDebugUtils.currentLine=27525165; - //BA.debugLineNum = 27525165;BA.debugLine="Log(\"Circle \" & logmsg)"; -__c.LogImpl("227525165","Circle "+_logmsg,0); -RDebugUtils.currentLine=27525166; - //BA.debugLineNum = 27525166;BA.debugLine="PlotCircle(x0, y0, x1, y1, points, fill)"; -__ref._plotcircle /*String*/ (null,_x0,_y0,_x1,_y1,_points,_fill); - }else -{RDebugUtils.currentLine=27525167; - //BA.debugLineNum = 27525167;BA.debugLine="Else If shape = 1 Then"; -if (_shape==1) { -RDebugUtils.currentLine=27525168; - //BA.debugLineNum = 27525168;BA.debugLine="Log(\"Box \" & logmsg)"; -__c.LogImpl("227525168","Box "+_logmsg,0); -RDebugUtils.currentLine=27525169; - //BA.debugLineNum = 27525169;BA.debugLine="PlotBox(x0, y0, x1, y1, points, fill)"; -__ref._plotbox /*String*/ (null,_x0,_y0,_x1,_y1,_points,_fill); + //BA.debugLineNum = 1590;BA.debugLine="Log(\"Triangle \" & logmsg)"; +__c.LogImpl("027787306","Triangle "+_logmsg,0); + //BA.debugLineNum = 1591;BA.debugLine="PlotTriangle(x0, y0, x1, y1, x2, y2, points, fi"; +_plottriangle(_x0,_y0,_x1,_y1,_x2,_y2,_points,_fill); + }else if(_shape==2) { + //BA.debugLineNum = 1593;BA.debugLine="Log(\"Circle \" & logmsg)"; +__c.LogImpl("027787309","Circle "+_logmsg,0); + //BA.debugLineNum = 1594;BA.debugLine="PlotCircle(x0, y0, x1, y1, points, fill)"; +_plotcircle(_x0,_y0,_x1,_y1,_points,_fill); + }else if(_shape==1) { + //BA.debugLineNum = 1596;BA.debugLine="Log(\"Box \" & logmsg)"; +__c.LogImpl("027787312","Box "+_logmsg,0); + //BA.debugLineNum = 1597;BA.debugLine="PlotBox(x0, y0, x1, y1, points, fill)"; +_plotbox(_x0,_y0,_x1,_y1,_points,_fill); }else { -RDebugUtils.currentLine=27525171; - //BA.debugLineNum = 27525171;BA.debugLine="Log(\"Line \" & logmsg)"; -__c.LogImpl("227525171","Line "+_logmsg,0); -RDebugUtils.currentLine=27525172; - //BA.debugLineNum = 27525172;BA.debugLine="PlotLine(x0, y0, x1, y1, points)"; -__ref._plotline /*String*/ (null,_x0,_y0,_x1,_y1,_points); - }}} -; -RDebugUtils.currentLine=27525175; - //BA.debugLineNum = 27525175;BA.debugLine="For x = 0 To size -1 ' 9 or 12 horizontal bytes"; + //BA.debugLineNum = 1599;BA.debugLine="Log(\"Line \" & logmsg)"; +__c.LogImpl("027787315","Line "+_logmsg,0); + //BA.debugLineNum = 1600;BA.debugLine="PlotLine(x0, y0, x1, y1, points)"; +_plotline(_x0,_y0,_x1,_y1,_points); + }; + //BA.debugLineNum = 1603;BA.debugLine="For x = 0 To size -1 ' 9 or 12 horizontal bytes"; { final int step45 = 1; final int limit45 = (int) (_size-1); _x = (int) (0) ; for (;_x <= limit45 ;_x = _x + step45 ) { -RDebugUtils.currentLine=27525176; - //BA.debugLineNum = 27525176;BA.debugLine="For y = 0 To 2 ' 3 vertical bytes"; + //BA.debugLineNum = 1604;BA.debugLine="For y = 0 To 2 ' 3 vertical bytes"; { final int step46 = 1; final int limit46 = (int) (2); _y = (int) (0) ; for (;_y <= limit46 ;_y = _y + step46 ) { -RDebugUtils.currentLine=27525177; - //BA.debugLineNum = 27525177;BA.debugLine="Dim bits As Byte = 0"; + //BA.debugLineNum = 1605;BA.debugLine="Dim bits As Byte = 0"; _bits = (byte) (0); -RDebugUtils.currentLine=27525178; - //BA.debugLineNum = 27525178;BA.debugLine="For b = 0 To 7 ' 8 vertical bits"; + //BA.debugLineNum = 1606;BA.debugLine="For b = 0 To 7 ' 8 vertical bits"; { final int step48 = 1; final int limit48 = (int) (7); _b = (int) (0) ; for (;_b <= limit48 ;_b = _b + step48 ) { -RDebugUtils.currentLine=27525179; - //BA.debugLineNum = 27525179;BA.debugLine="If points(x, y*8+b) <> 0 Then"; + //BA.debugLineNum = 1607;BA.debugLine="If points(x, y*8+b) <> 0 Then"; if (_points[_x][(int) (_y*8+_b)]!=0) { -RDebugUtils.currentLine=27525180; - //BA.debugLineNum = 27525180;BA.debugLine="bits = Bit.Or(bits, masks(b))"; + //BA.debugLineNum = 1608;BA.debugLine="bits = Bit.Or(bits, masks(b))"; _bits = (byte) (__c.Bit.Or((int) (_bits),(int) (_masks[_b]))); }; } }; -RDebugUtils.currentLine=27525183; - //BA.debugLineNum = 27525183;BA.debugLine="charbyes(x*3+y) = bits"; + //BA.debugLineNum = 1611;BA.debugLine="charbyes(x*3+y) = bits"; _charbyes[(int) (_x*3+_y)] = _bits; } }; @@ -1169,442 +469,258 @@ _charbyes[(int) (_x*3+_y)] = _bits; }; } }; -RDebugUtils.currentLine=27525187; - //BA.debugLineNum = 27525187;BA.debugLine="Return charbyes"; + //BA.debugLineNum = 1615;BA.debugLine="Return charbyes"; if (true) return _charbyes; -RDebugUtils.currentLine=27525188; - //BA.debugLineNum = 27525188;BA.debugLine="End Sub"; + //BA.debugLineNum = 1616;BA.debugLine="End Sub"; return null; } -public String _plottriangle(reparto_izca.keymon.lat.escposprinter __ref,int _x0,int _y0,int _x1,int _y1,int _x2,int _y2,byte[][] _points,int _fill) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "plottriangle", false)) - {return ((String) Debug.delegate(ba, "plottriangle", new Object[] {_x0,_y0,_x1,_y1,_x2,_y2,_points,_fill}));} -RDebugUtils.currentLine=27852800; - //BA.debugLineNum = 27852800;BA.debugLine="Private Sub PlotTriangle(x0 As Int, y0 As Int, x1"; -RDebugUtils.currentLine=27852802; - //BA.debugLineNum = 27852802;BA.debugLine="PlotLine(x0, y0, x1, y1, points)"; -__ref._plotline /*String*/ (null,_x0,_y0,_x1,_y1,_points); -RDebugUtils.currentLine=27852803; - //BA.debugLineNum = 27852803;BA.debugLine="PlotLine(x1, y1, x2, y2, points)"; -__ref._plotline /*String*/ (null,_x1,_y1,_x2,_y2,_points); -RDebugUtils.currentLine=27852804; - //BA.debugLineNum = 27852804;BA.debugLine="PlotLine(x2, y2, x0, y0, points)"; -__ref._plotline /*String*/ (null,_x2,_y2,_x0,_y0,_points); -RDebugUtils.currentLine=27852805; - //BA.debugLineNum = 27852805;BA.debugLine="If Fill > 0 Then"; -if (_fill>0) { -RDebugUtils.currentLine=27852806; - //BA.debugLineNum = 27852806;BA.debugLine="FillTriangle(x0, y0, x1, y1, x2, y2, points)"; -__ref._filltriangle /*String*/ (null,_x0,_y0,_x1,_y1,_x2,_y2,_points); - }; -RDebugUtils.currentLine=27852808; - //BA.debugLineNum = 27852808;BA.debugLine="End Sub"; -return ""; -} -public String _plotcircle(reparto_izca.keymon.lat.escposprinter __ref,int _radius,int _quadrants,int _x1,int _y1,byte[][] _points,int _fill) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "plotcircle", false)) - {return ((String) Debug.delegate(ba, "plotcircle", new Object[] {_radius,_quadrants,_x1,_y1,_points,_fill}));} -int _mask = 0; -int _q = 0; -int _i = 0; -double _x = 0; -double _y = 0; -RDebugUtils.currentLine=28049408; - //BA.debugLineNum = 28049408;BA.debugLine="Private Sub PlotCircle(radius As Int, quadrants As"; -RDebugUtils.currentLine=28049410; - //BA.debugLineNum = 28049410;BA.debugLine="Dim mask As Int = 1"; -_mask = (int) (1); -RDebugUtils.currentLine=28049411; - //BA.debugLineNum = 28049411;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 ) { -RDebugUtils.currentLine=28049412; - //BA.debugLineNum = 28049412;BA.debugLine="If Bit.And(quadrants, mask) <> 0 Then"; -if (__c.Bit.And(_quadrants,_mask)!=0) { -RDebugUtils.currentLine=28049413; - //BA.debugLineNum = 28049413;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 ) { -RDebugUtils.currentLine=28049414; - //BA.debugLineNum = 28049414;BA.debugLine="Dim x,y As Double"; -_x = 0; -_y = 0; -RDebugUtils.currentLine=28049415; - //BA.debugLineNum = 28049415;BA.debugLine="x = x1 - SinD(i)*radius"; -_x = _x1-__c.SinD(_i)*_radius; -RDebugUtils.currentLine=28049416; - //BA.debugLineNum = 28049416;BA.debugLine="y = y1 - CosD(i)*radius"; -_y = _y1-__c.CosD(_i)*_radius; -RDebugUtils.currentLine=28049417; - //BA.debugLineNum = 28049417;BA.debugLine="If fill > 0 Then"; -if (_fill>0) { -RDebugUtils.currentLine=28049418; - //BA.debugLineNum = 28049418;BA.debugLine="PlotLine(x1, y1, x, y, points)"; -__ref._plotline /*String*/ (null,_x1,_y1,(int) (_x),(int) (_y),_points); - }else { -RDebugUtils.currentLine=28049420; - //BA.debugLineNum = 28049420;BA.debugLine="points(Round(x), Round(y)) = 1"; -_points[(int) (__c.Round(_x))][(int) (__c.Round(_y))] = (byte) (1); - }; - } -}; - }; -RDebugUtils.currentLine=28049424; - //BA.debugLineNum = 28049424;BA.debugLine="mask = Bit.ShiftLeft(mask, 1)"; -_mask = __c.Bit.ShiftLeft(_mask,(int) (1)); - } -}; -RDebugUtils.currentLine=28049426; - //BA.debugLineNum = 28049426;BA.debugLine="End Sub"; -return ""; -} -public String _plotbox(reparto_izca.keymon.lat.escposprinter __ref,int _x0,int _y0,int _x1,int _y1,byte[][] _points,int _fill) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "plotbox", false)) - {return ((String) Debug.delegate(ba, "plotbox", new Object[] {_x0,_y0,_x1,_y1,_points,_fill}));} -int _x = 0; -RDebugUtils.currentLine=27983872; - //BA.debugLineNum = 27983872;BA.debugLine="Private Sub PlotBox(x0 As Int, y0 As Int, x1 As In"; -RDebugUtils.currentLine=27983874; - //BA.debugLineNum = 27983874;BA.debugLine="PlotLine(x0, y0, x0, y1, points)"; -__ref._plotline /*String*/ (null,_x0,_y0,_x0,_y1,_points); -RDebugUtils.currentLine=27983875; - //BA.debugLineNum = 27983875;BA.debugLine="PlotLine(x0, y0, x1, y0, points)"; -__ref._plotline /*String*/ (null,_x0,_y0,_x1,_y0,_points); -RDebugUtils.currentLine=27983876; - //BA.debugLineNum = 27983876;BA.debugLine="PlotLine(x1, y0, x1, y1, points)"; -__ref._plotline /*String*/ (null,_x1,_y0,_x1,_y1,_points); -RDebugUtils.currentLine=27983877; - //BA.debugLineNum = 27983877;BA.debugLine="PlotLine(x0, y1, x1, y1, points)"; -__ref._plotline /*String*/ (null,_x0,_y1,_x1,_y1,_points); -RDebugUtils.currentLine=27983878; - //BA.debugLineNum = 27983878;BA.debugLine="If Fill > 0 Then"; -if (_fill>0) { -RDebugUtils.currentLine=27983879; - //BA.debugLineNum = 27983879;BA.debugLine="For x = x0 To x1"; -{ -final int step6 = 1; -final int limit6 = _x1; -_x = _x0 ; -for (;_x <= limit6 ;_x = _x + step6 ) { -RDebugUtils.currentLine=27983880; - //BA.debugLineNum = 27983880;BA.debugLine="PlotLine(x, y0, x, y1, points)"; -__ref._plotline /*String*/ (null,_x,_y0,_x,_y1,_points); - } -}; - }; -RDebugUtils.currentLine=27983883; - //BA.debugLineNum = 27983883;BA.debugLine="End Sub"; -return ""; -} -public String _plotline(reparto_izca.keymon.lat.escposprinter __ref,int _x0,int _y0,int _x1,int _y1,byte[][] _points) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "plotline", false)) - {return ((String) Debug.delegate(ba, "plotline", new Object[] {_x0,_y0,_x1,_y1,_points}));} -RDebugUtils.currentLine=28114944; - //BA.debugLineNum = 28114944;BA.debugLine="Private Sub PlotLine(x0 As Int, y0 As Int, x1 As I"; -RDebugUtils.currentLine=28114945; - //BA.debugLineNum = 28114945;BA.debugLine="If Abs(y1 - y0) < Abs(x1 - x0) Then"; -if (__c.Abs(_y1-_y0)<__c.Abs(_x1-_x0)) { -RDebugUtils.currentLine=28114946; - //BA.debugLineNum = 28114946;BA.debugLine="If x0 > x1 Then"; -if (_x0>_x1) { -RDebugUtils.currentLine=28114947; - //BA.debugLineNum = 28114947;BA.debugLine="PlotLineLow(x1, y1, x0, y0, points)"; -__ref._plotlinelow /*String*/ (null,_x1,_y1,_x0,_y0,_points); - }else { -RDebugUtils.currentLine=28114949; - //BA.debugLineNum = 28114949;BA.debugLine="PlotLineLow(x0, y0, x1, y1, points)"; -__ref._plotlinelow /*String*/ (null,_x0,_y0,_x1,_y1,_points); - }; - }else { -RDebugUtils.currentLine=28114952; - //BA.debugLineNum = 28114952;BA.debugLine="If y0 > y1 Then"; -if (_y0>_y1) { -RDebugUtils.currentLine=28114953; - //BA.debugLineNum = 28114953;BA.debugLine="PlotLineHigh(x1, y1, x0, y0, points)"; -__ref._plotlinehigh /*String*/ (null,_x1,_y1,_x0,_y0,_points); - }else { -RDebugUtils.currentLine=28114955; - //BA.debugLineNum = 28114955;BA.debugLine="PlotLineHigh(x0, y0, x1, y1, points)"; -__ref._plotlinehigh /*String*/ (null,_x0,_y0,_x1,_y1,_points); - }; - }; -RDebugUtils.currentLine=28114958; - //BA.debugLineNum = 28114958;BA.debugLine="End Sub"; -return ""; -} -public int _createline(reparto_izca.keymon.lat.escposprinter __ref,int _x0,int _y0,int _x1,int _y1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "createline", false)) - {return ((Integer) Debug.delegate(ba, "createline", new Object[] {_x0,_y0,_x1,_y1}));} +public int _createline(int _x0,int _y0,int _x1,int _y1) throws Exception{ int _line = 0; -RDebugUtils.currentLine=27590656; - //BA.debugLineNum = 27590656;BA.debugLine="Public Sub CreateLine(x0 As Int, y0 As Int, x1 As"; -RDebugUtils.currentLine=27590657; - //BA.debugLineNum = 27590657;BA.debugLine="Dim line As Int = 0"; + //BA.debugLineNum = 1621;BA.debugLine="Public Sub CreateLine(x0 As Int, y0 As Int, x1 As"; + //BA.debugLineNum = 1622;BA.debugLine="Dim line As Int = 0"; _line = (int) (0); -RDebugUtils.currentLine=27590658; - //BA.debugLineNum = 27590658;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0xf,x0), 24)"; + //BA.debugLineNum = 1623;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0xf,x0), 24)"; _line = (int) (_line+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x0),(int) (24))); -RDebugUtils.currentLine=27590659; - //BA.debugLineNum = 27590659;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)"; + //BA.debugLineNum = 1624;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)"; _line = (int) (_line+__c.Bit.ShiftLeft(__c.Bit.And(((int)0x1f),_y0),(int) (16))); -RDebugUtils.currentLine=27590660; - //BA.debugLineNum = 27590660;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0xf,x1), 8)"; + //BA.debugLineNum = 1625;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0xf,x1), 8)"; _line = (int) (_line+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x1),(int) (8))); -RDebugUtils.currentLine=27590661; - //BA.debugLineNum = 27590661;BA.debugLine="line = line + Bit.And(0x1f,y1)"; + //BA.debugLineNum = 1626;BA.debugLine="line = line + Bit.And(0x1f,y1)"; _line = (int) (_line+__c.Bit.And(((int)0x1f),_y1)); -RDebugUtils.currentLine=27590662; - //BA.debugLineNum = 27590662;BA.debugLine="Return line"; + //BA.debugLineNum = 1627;BA.debugLine="Return line"; if (true) return _line; -RDebugUtils.currentLine=27590663; - //BA.debugLineNum = 27590663;BA.debugLine="End Sub"; + //BA.debugLineNum = 1628;BA.debugLine="End Sub"; return 0; } -public int _createtriangle(reparto_izca.keymon.lat.escposprinter __ref,int _x0,int _y0,int _x1,int _y1,int _x2,int _y2,boolean _fill) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "createtriangle", false)) - {return ((Integer) Debug.delegate(ba, "createtriangle", new Object[] {_x0,_y0,_x1,_y1,_x2,_y2,_fill}));} +public int _createtriangle(int _x0,int _y0,int _x1,int _y1,int _x2,int _y2,boolean _fill) throws Exception{ int _triangle = 0; -RDebugUtils.currentLine=27721728; - //BA.debugLineNum = 27721728;BA.debugLine="Public Sub CreateTriangle(x0 As Int, y0 As Int, x1"; -RDebugUtils.currentLine=27721729; - //BA.debugLineNum = 27721729;BA.debugLine="Dim triangle As Int = 0x30000000"; + //BA.debugLineNum = 1648;BA.debugLine="Public Sub CreateTriangle(x0 As Int, y0 As Int, x1"; + //BA.debugLineNum = 1649;BA.debugLine="Dim triangle As Int = 0x30000000"; _triangle = ((int)0x30000000); -RDebugUtils.currentLine=27721730; - //BA.debugLineNum = 27721730;BA.debugLine="If fill Then triangle = triangle + 0x80000000"; + //BA.debugLineNum = 1650;BA.debugLine="If fill Then triangle = triangle + 0x80000000"; if (_fill) { _triangle = (int) (_triangle+((int)0x80000000));}; -RDebugUtils.currentLine=27721731; - //BA.debugLineNum = 27721731;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x"; + //BA.debugLineNum = 1651;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x"; _triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x0),(int) (24))); -RDebugUtils.currentLine=27721732; - //BA.debugLineNum = 27721732;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x1f,"; + //BA.debugLineNum = 1652;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x1f,"; _triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0x1f),_y0),(int) (16))); -RDebugUtils.currentLine=27721733; - //BA.debugLineNum = 27721733;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x"; + //BA.debugLineNum = 1653;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x"; _triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x1),(int) (8))); -RDebugUtils.currentLine=27721734; - //BA.debugLineNum = 27721734;BA.debugLine="triangle = triangle + Bit.And(0x1f,y1)"; + //BA.debugLineNum = 1654;BA.debugLine="triangle = triangle + Bit.And(0x1f,y1)"; _triangle = (int) (_triangle+__c.Bit.And(((int)0x1f),_y1)); -RDebugUtils.currentLine=27721735; - //BA.debugLineNum = 27721735;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x"; + //BA.debugLineNum = 1655;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x"; _triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0xf),_x2),(int) (12))); -RDebugUtils.currentLine=27721736; - //BA.debugLineNum = 27721736;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x7,y"; + //BA.debugLineNum = 1656;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x7,y"; _triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0x7),_y2),(int) (5))); -RDebugUtils.currentLine=27721737; - //BA.debugLineNum = 27721737;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x18,"; + //BA.debugLineNum = 1657;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x18,"; _triangle = (int) (_triangle+__c.Bit.ShiftLeft(__c.Bit.And(((int)0x18),_y2),(int) (18))); -RDebugUtils.currentLine=27721738; - //BA.debugLineNum = 27721738;BA.debugLine="Return triangle"; + //BA.debugLineNum = 1658;BA.debugLine="Return triangle"; if (true) return _triangle; -RDebugUtils.currentLine=27721739; - //BA.debugLineNum = 27721739;BA.debugLine="End Sub"; + //BA.debugLineNum = 1659;BA.debugLine="End Sub"; return 0; } -public int _definecustomcharacter(reparto_izca.keymon.lat.escposprinter __ref,int _charcode,byte[] _bitdata) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "definecustomcharacter", false)) - {return ((Integer) Debug.delegate(ba, "definecustomcharacter", new Object[] {_charcode,_bitdata}));} +public int _definecustomcharacter(int _charcode,byte[] _bitdata) throws Exception{ int _excess = 0; int _size = 0; byte[] _params = null; -RDebugUtils.currentLine=27459584; - //BA.debugLineNum = 27459584;BA.debugLine="Public Sub DefineCustomCharacter(charcode As Int,"; -RDebugUtils.currentLine=27459585; - //BA.debugLineNum = 27459585;BA.debugLine="Dim excess As Int = bitdata.Length Mod 3"; + //BA.debugLineNum = 1496;BA.debugLine="Public Sub DefineCustomCharacter(charcode As Int,"; + //BA.debugLineNum = 1497;BA.debugLine="Dim excess As Int = bitdata.Length Mod 3"; _excess = (int) (_bitdata.length%3); -RDebugUtils.currentLine=27459586; - //BA.debugLineNum = 27459586;BA.debugLine="If excess <> 0 Then Return -1"; + //BA.debugLineNum = 1498;BA.debugLine="If excess <> 0 Then Return -1"; if (_excess!=0) { if (true) return (int) (-1);}; -RDebugUtils.currentLine=27459587; - //BA.debugLineNum = 27459587;BA.debugLine="Dim size As Int = bitdata.Length / 3"; + //BA.debugLineNum = 1499;BA.debugLine="Dim size As Int = bitdata.Length / 3"; _size = (int) (_bitdata.length/(double)3); -RDebugUtils.currentLine=27459588; - //BA.debugLineNum = 27459588;BA.debugLine="WriteString(ESC & \"&\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"&"); -RDebugUtils.currentLine=27459589; - //BA.debugLineNum = 27459589;BA.debugLine="Dim params(4) As Byte"; + //BA.debugLineNum = 1500;BA.debugLine="WriteString(ESC & \"&\")"; +_writestring(_esc+"&"); + //BA.debugLineNum = 1501;BA.debugLine="Dim params(4) As Byte"; _params = new byte[(int) (4)]; ; -RDebugUtils.currentLine=27459590; - //BA.debugLineNum = 27459590;BA.debugLine="params(0) = 3"; + //BA.debugLineNum = 1502;BA.debugLine="params(0) = 3"; _params[(int) (0)] = (byte) (3); -RDebugUtils.currentLine=27459591; - //BA.debugLineNum = 27459591;BA.debugLine="params(1) = charcode"; + //BA.debugLineNum = 1503;BA.debugLine="params(1) = charcode"; _params[(int) (1)] = (byte) (_charcode); -RDebugUtils.currentLine=27459592; - //BA.debugLineNum = 27459592;BA.debugLine="params(2) = charcode"; + //BA.debugLineNum = 1504;BA.debugLine="params(2) = charcode"; _params[(int) (2)] = (byte) (_charcode); -RDebugUtils.currentLine=27459593; - //BA.debugLineNum = 27459593;BA.debugLine="params(3) = size"; + //BA.debugLineNum = 1505;BA.debugLine="params(3) = size"; _params[(int) (3)] = (byte) (_size); -RDebugUtils.currentLine=27459594; - //BA.debugLineNum = 27459594;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=27459595; - //BA.debugLineNum = 27459595;BA.debugLine="WriteBytes(bitdata)"; -__ref._writebytes /*String*/ (null,_bitdata); -RDebugUtils.currentLine=27459596; - //BA.debugLineNum = 27459596;BA.debugLine="Return 0"; + //BA.debugLineNum = 1506;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1507;BA.debugLine="WriteBytes(bitdata)"; +_writebytes(_bitdata); + //BA.debugLineNum = 1508;BA.debugLine="Return 0"; if (true) return (int) (0); -RDebugUtils.currentLine=27459597; - //BA.debugLineNum = 27459597;BA.debugLine="End Sub"; + //BA.debugLineNum = 1509;BA.debugLine="End Sub"; return 0; } -public String _writebytes(reparto_izca.keymon.lat.escposprinter __ref,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "writebytes", false)) - {return ((String) Debug.delegate(ba, "writebytes", new Object[] {_data}));} -RDebugUtils.currentLine=27131904; - //BA.debugLineNum = 27131904;BA.debugLine="Public Sub WriteBytes(data() As Byte)"; -RDebugUtils.currentLine=27131905; - //BA.debugLineNum = 27131905;BA.debugLine="If Connected Then"; -if (__ref._connected /*boolean*/ ) { -RDebugUtils.currentLine=27131906; - //BA.debugLineNum = 27131906;BA.debugLine="Astream.Write(data)"; -__ref._astream /*anywheresoftware.b4a.randomaccessfile.AsyncStreams*/ .Write(_data); - }; -RDebugUtils.currentLine=27131908; - //BA.debugLineNum = 27131908;BA.debugLine="End Sub"; -return ""; -} -public String _deletecustomcharacter(reparto_izca.keymon.lat.escposprinter __ref,int _charcode) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "deletecustomcharacter", false)) - {return ((String) Debug.delegate(ba, "deletecustomcharacter", new Object[] {_charcode}));} +public String _deletecustomcharacter(int _charcode) throws Exception{ byte[] _params = null; -RDebugUtils.currentLine=27328512; - //BA.debugLineNum = 27328512;BA.debugLine="Public Sub DeleteCustomCharacter(charcode As Int)"; -RDebugUtils.currentLine=27328513; - //BA.debugLineNum = 27328513;BA.debugLine="WriteString(ESC & \"?\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"?"); -RDebugUtils.currentLine=27328514; - //BA.debugLineNum = 27328514;BA.debugLine="Dim params(1) As Byte"; + //BA.debugLineNum = 1461;BA.debugLine="Public Sub DeleteCustomCharacter(charcode As Int)"; + //BA.debugLineNum = 1462;BA.debugLine="WriteString(ESC & \"?\")"; +_writestring(_esc+"?"); + //BA.debugLineNum = 1463;BA.debugLine="Dim params(1) As Byte"; _params = new byte[(int) (1)]; ; -RDebugUtils.currentLine=27328515; - //BA.debugLineNum = 27328515;BA.debugLine="params(0) = charcode"; + //BA.debugLineNum = 1464;BA.debugLine="params(0) = charcode"; _params[(int) (0)] = (byte) (_charcode); -RDebugUtils.currentLine=27328516; - //BA.debugLineNum = 27328516;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=27328517; - //BA.debugLineNum = 27328517;BA.debugLine="End Sub"; + //BA.debugLineNum = 1465;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1466;BA.debugLine="End Sub"; return ""; } -public reparto_izca.keymon.lat.escposprinter._animage _ditherimage1d(reparto_izca.keymon.lat.escposprinter __ref,reparto_izca.keymon.lat.escposprinter._animage _img,int _threshold) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "ditherimage1d", false)) - {return ((reparto_izca.keymon.lat.escposprinter._animage) Debug.delegate(ba, "ditherimage1d", new Object[] {_img,_threshold}));} +public String _disconnect() throws Exception{ + //BA.debugLineNum = 1287;BA.debugLine="Public Sub DisConnect"; + //BA.debugLineNum = 1288;BA.debugLine="Serial1.Disconnect"; +_serial1.Disconnect(); + //BA.debugLineNum = 1289;BA.debugLine="Connected = False"; +_connected = __c.False; + //BA.debugLineNum = 1290;BA.debugLine="End Sub"; +return ""; +} +public reparto_izca.keymon.lat.escposprinter._animage _ditherimage1d(reparto_izca.keymon.lat.escposprinter._animage _img,int _threshold) throws Exception{ byte[] _pixels = null; int _error = 0; int _y = 0; int _x = 0; int _lum = 0; reparto_izca.keymon.lat.escposprinter._animage _ret = null; -RDebugUtils.currentLine=28442624; - //BA.debugLineNum = 28442624;BA.debugLine="Sub DitherImage1D(img As AnImage, threshold As Int"; -RDebugUtils.currentLine=28442625; - //BA.debugLineNum = 28442625;BA.debugLine="Dim pixels(img.Data.Length) As Byte"; + //BA.debugLineNum = 1907;BA.debugLine="Sub DitherImage1D(img As AnImage, threshold As Int"; + //BA.debugLineNum = 1908;BA.debugLine="Dim pixels(img.Data.Length) As Byte"; _pixels = new byte[_img.Data /*byte[]*/ .length]; ; -RDebugUtils.currentLine=28442626; - //BA.debugLineNum = 28442626;BA.debugLine="Dim error As Int"; + //BA.debugLineNum = 1909;BA.debugLine="Dim error As Int"; _error = 0; -RDebugUtils.currentLine=28442627; - //BA.debugLineNum = 28442627;BA.debugLine="For y = 0 To img.Height - 1"; + //BA.debugLineNum = 1910;BA.debugLine="For y = 0 To img.Height - 1"; { final int step3 = 1; final int limit3 = (int) (_img.Height /*int*/ -1); _y = (int) (0) ; for (;_y <= limit3 ;_y = _y + step3 ) { -RDebugUtils.currentLine=28442628; - //BA.debugLineNum = 28442628;BA.debugLine="error = 0 ' reset on each new line"; + //BA.debugLineNum = 1911;BA.debugLine="error = 0 ' reset on each new line"; _error = (int) (0); -RDebugUtils.currentLine=28442629; - //BA.debugLineNum = 28442629;BA.debugLine="For x = 0 To img.Width - 1"; + //BA.debugLineNum = 1912;BA.debugLine="For x = 0 To img.Width - 1"; { final int step5 = 1; final int limit5 = (int) (_img.Width /*int*/ -1); _x = (int) (0) ; for (;_x <= limit5 ;_x = _x + step5 ) { -RDebugUtils.currentLine=28442630; - //BA.debugLineNum = 28442630;BA.debugLine="Dim lum As Int = Bit.And(img.Data(y*img.Width +"; + //BA.debugLineNum = 1913;BA.debugLine="Dim lum As Int = Bit.And(img.Data(y*img.Width +"; _lum = __c.Bit.And((int) (_img.Data /*byte[]*/ [(int) (_y*_img.Width /*int*/ +_x)]),((int)0xff)); -RDebugUtils.currentLine=28442631; - //BA.debugLineNum = 28442631;BA.debugLine="lum = lum + error"; + //BA.debugLineNum = 1914;BA.debugLine="lum = lum + error"; _lum = (int) (_lum+_error); -RDebugUtils.currentLine=28442632; - //BA.debugLineNum = 28442632;BA.debugLine="If lum < threshold Then"; + //BA.debugLineNum = 1915;BA.debugLine="If lum < threshold Then"; if (_lum<_threshold) { -RDebugUtils.currentLine=28442633; - //BA.debugLineNum = 28442633;BA.debugLine="error = lum"; + //BA.debugLineNum = 1916;BA.debugLine="error = lum"; _error = _lum; -RDebugUtils.currentLine=28442634; - //BA.debugLineNum = 28442634;BA.debugLine="lum = 1"; + //BA.debugLineNum = 1917;BA.debugLine="lum = 1"; _lum = (int) (1); }else { -RDebugUtils.currentLine=28442636; - //BA.debugLineNum = 28442636;BA.debugLine="error = lum - 255"; + //BA.debugLineNum = 1919;BA.debugLine="error = lum - 255"; _error = (int) (_lum-255); -RDebugUtils.currentLine=28442637; - //BA.debugLineNum = 28442637;BA.debugLine="lum = 0"; + //BA.debugLineNum = 1920;BA.debugLine="lum = 0"; _lum = (int) (0); }; -RDebugUtils.currentLine=28442639; - //BA.debugLineNum = 28442639;BA.debugLine="pixels(y*img.Width + x) = lum"; + //BA.debugLineNum = 1922;BA.debugLine="pixels(y*img.Width + x) = lum"; _pixels[(int) (_y*_img.Width /*int*/ +_x)] = (byte) (_lum); } }; } }; -RDebugUtils.currentLine=28442642; - //BA.debugLineNum = 28442642;BA.debugLine="Dim ret As AnImage"; + //BA.debugLineNum = 1925;BA.debugLine="Dim ret As AnImage"; _ret = new reparto_izca.keymon.lat.escposprinter._animage(); -RDebugUtils.currentLine=28442643; - //BA.debugLineNum = 28442643;BA.debugLine="ret.Width = img.Width"; + //BA.debugLineNum = 1926;BA.debugLine="ret.Width = img.Width"; _ret.Width /*int*/ = _img.Width /*int*/ ; -RDebugUtils.currentLine=28442644; - //BA.debugLineNum = 28442644;BA.debugLine="ret.Height = img.Height"; + //BA.debugLineNum = 1927;BA.debugLine="ret.Height = img.Height"; _ret.Height /*int*/ = _img.Height /*int*/ ; -RDebugUtils.currentLine=28442645; - //BA.debugLineNum = 28442645;BA.debugLine="ret.Data = pixels"; + //BA.debugLineNum = 1928;BA.debugLine="ret.Data = pixels"; _ret.Data /*byte[]*/ = _pixels; -RDebugUtils.currentLine=28442646; - //BA.debugLineNum = 28442646;BA.debugLine="Return ret"; + //BA.debugLineNum = 1929;BA.debugLine="Return ret"; if (true) return _ret; -RDebugUtils.currentLine=28442647; - //BA.debugLineNum = 28442647;BA.debugLine="End Sub"; + //BA.debugLineNum = 1930;BA.debugLine="End Sub"; return null; } -public String _filltriangle(reparto_izca.keymon.lat.escposprinter __ref,int _x0,int _y0,int _x1,int _y1,int _x2,int _y2,byte[][] _points) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "filltriangle", false)) - {return ((String) Debug.delegate(ba, "filltriangle", new Object[] {_x0,_y0,_x1,_y1,_x2,_y2,_points}));} +public reparto_izca.keymon.lat.escposprinter._animage _ditherimage2d(reparto_izca.keymon.lat.escposprinter._animage _img,int _threshold) throws Exception{ +byte[] _pixels = null; +int _xerror = 0; +int[] _yerrors = null; +int _i = 0; +int _y = 0; +int _x = 0; +int _lum = 0; +reparto_izca.keymon.lat.escposprinter._animage _ret = null; + //BA.debugLineNum = 1938;BA.debugLine="Sub DitherImage2D(img As AnImage, threshold As Int"; + //BA.debugLineNum = 1939;BA.debugLine="Dim pixels(img.Data.Length) As Byte"; +_pixels = new byte[_img.Data /*byte[]*/ .length]; +; + //BA.debugLineNum = 1940;BA.debugLine="Dim xerror As Int"; +_xerror = 0; + //BA.debugLineNum = 1941;BA.debugLine="Dim yerrors(img.Width) As Int"; +_yerrors = new int[_img.Width /*int*/ ]; +; + //BA.debugLineNum = 1942;BA.debugLine="For i = 0 To yerrors.Length -1"; +{ +final int step4 = 1; +final int limit4 = (int) (_yerrors.length-1); +_i = (int) (0) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 1943;BA.debugLine="yerrors(0) = 0"; +_yerrors[(int) (0)] = (int) (0); + } +}; + //BA.debugLineNum = 1945;BA.debugLine="For y = 0 To img.Height - 1"; +{ +final int step7 = 1; +final int limit7 = (int) (_img.Height /*int*/ -1); +_y = (int) (0) ; +for (;_y <= limit7 ;_y = _y + step7 ) { + //BA.debugLineNum = 1946;BA.debugLine="xerror = 0 ' reset on each new line"; +_xerror = (int) (0); + //BA.debugLineNum = 1947;BA.debugLine="For x = 0 To img.Width - 1"; +{ +final int step9 = 1; +final int limit9 = (int) (_img.Width /*int*/ -1); +_x = (int) (0) ; +for (;_x <= limit9 ;_x = _x + step9 ) { + //BA.debugLineNum = 1948;BA.debugLine="Dim lum As Int = Bit.And(img.Data(y*img.Width +"; +_lum = __c.Bit.And((int) (_img.Data /*byte[]*/ [(int) (_y*_img.Width /*int*/ +_x)]),((int)0xff)); + //BA.debugLineNum = 1949;BA.debugLine="lum = lum + xerror + yerrors(x)"; +_lum = (int) (_lum+_xerror+_yerrors[_x]); + //BA.debugLineNum = 1950;BA.debugLine="If lum < threshold Then"; +if (_lum<_threshold) { + //BA.debugLineNum = 1951;BA.debugLine="xerror = lum/2"; +_xerror = (int) (_lum/(double)2); + //BA.debugLineNum = 1952;BA.debugLine="yerrors(x) = xerror"; +_yerrors[_x] = _xerror; + //BA.debugLineNum = 1953;BA.debugLine="lum = 1"; +_lum = (int) (1); + }else { + //BA.debugLineNum = 1955;BA.debugLine="xerror = (lum - 255)/2"; +_xerror = (int) ((_lum-255)/(double)2); + //BA.debugLineNum = 1956;BA.debugLine="yerrors(x) = xerror"; +_yerrors[_x] = _xerror; + //BA.debugLineNum = 1957;BA.debugLine="lum = 0"; +_lum = (int) (0); + }; + //BA.debugLineNum = 1959;BA.debugLine="pixels(y*img.Width + x) = lum"; +_pixels[(int) (_y*_img.Width /*int*/ +_x)] = (byte) (_lum); + } +}; + } +}; + //BA.debugLineNum = 1962;BA.debugLine="Dim ret As AnImage"; +_ret = new reparto_izca.keymon.lat.escposprinter._animage(); + //BA.debugLineNum = 1963;BA.debugLine="ret.Width = img.Width"; +_ret.Width /*int*/ = _img.Width /*int*/ ; + //BA.debugLineNum = 1964;BA.debugLine="ret.Height = img.Height"; +_ret.Height /*int*/ = _img.Height /*int*/ ; + //BA.debugLineNum = 1965;BA.debugLine="ret.Data = pixels"; +_ret.Data /*byte[]*/ = _pixels; + //BA.debugLineNum = 1966;BA.debugLine="Return ret"; +if (true) return _ret; + //BA.debugLineNum = 1967;BA.debugLine="End Sub"; +return null; +} +public String _filltriangle(int _x0,int _y0,int _x1,int _y1,int _x2,int _y2,byte[][] _points) throws Exception{ int _tx = 0; int _ty = 0; double _dx0 = 0; @@ -1616,308 +732,398 @@ double _y3 = 0; double _y4 = 0; int _inc = 0; int _x = 0; -RDebugUtils.currentLine=27918336; - //BA.debugLineNum = 27918336;BA.debugLine="Private Sub FillTriangle(x0 As Int, y0 As Int, x1"; -RDebugUtils.currentLine=27918338; - //BA.debugLineNum = 27918338;BA.debugLine="Dim tx, ty As Int"; + //BA.debugLineNum = 1688;BA.debugLine="Private Sub FillTriangle(x0 As Int, y0 As Int, x1"; + //BA.debugLineNum = 1690;BA.debugLine="Dim tx, ty As Int"; _tx = 0; _ty = 0; -RDebugUtils.currentLine=27918339; - //BA.debugLineNum = 27918339;BA.debugLine="If y0 > y1 Then"; + //BA.debugLineNum = 1691;BA.debugLine="If y0 > y1 Then"; if (_y0>_y1) { -RDebugUtils.currentLine=27918340; - //BA.debugLineNum = 27918340;BA.debugLine="tx = x0 : ty = y0"; + //BA.debugLineNum = 1692;BA.debugLine="tx = x0 : ty = y0"; _tx = _x0; -RDebugUtils.currentLine=27918340; - //BA.debugLineNum = 27918340;BA.debugLine="tx = x0 : ty = y0"; + //BA.debugLineNum = 1692;BA.debugLine="tx = x0 : ty = y0"; _ty = _y0; -RDebugUtils.currentLine=27918341; - //BA.debugLineNum = 27918341;BA.debugLine="x0 = x1 : y0 = y1"; + //BA.debugLineNum = 1693;BA.debugLine="x0 = x1 : y0 = y1"; _x0 = _x1; -RDebugUtils.currentLine=27918341; - //BA.debugLineNum = 27918341;BA.debugLine="x0 = x1 : y0 = y1"; + //BA.debugLineNum = 1693;BA.debugLine="x0 = x1 : y0 = y1"; _y0 = _y1; -RDebugUtils.currentLine=27918342; - //BA.debugLineNum = 27918342;BA.debugLine="x1 = tx : y1 = ty"; + //BA.debugLineNum = 1694;BA.debugLine="x1 = tx : y1 = ty"; _x1 = _tx; -RDebugUtils.currentLine=27918342; - //BA.debugLineNum = 27918342;BA.debugLine="x1 = tx : y1 = ty"; + //BA.debugLineNum = 1694;BA.debugLine="x1 = tx : y1 = ty"; _y1 = _ty; }; -RDebugUtils.currentLine=27918344; - //BA.debugLineNum = 27918344;BA.debugLine="If y0 > y2 Then"; + //BA.debugLineNum = 1696;BA.debugLine="If y0 > y2 Then"; if (_y0>_y2) { -RDebugUtils.currentLine=27918345; - //BA.debugLineNum = 27918345;BA.debugLine="tx = x0 : ty = y0"; + //BA.debugLineNum = 1697;BA.debugLine="tx = x0 : ty = y0"; _tx = _x0; -RDebugUtils.currentLine=27918345; - //BA.debugLineNum = 27918345;BA.debugLine="tx = x0 : ty = y0"; + //BA.debugLineNum = 1697;BA.debugLine="tx = x0 : ty = y0"; _ty = _y0; -RDebugUtils.currentLine=27918346; - //BA.debugLineNum = 27918346;BA.debugLine="x0 = x2 : y0 = y2"; + //BA.debugLineNum = 1698;BA.debugLine="x0 = x2 : y0 = y2"; _x0 = _x2; -RDebugUtils.currentLine=27918346; - //BA.debugLineNum = 27918346;BA.debugLine="x0 = x2 : y0 = y2"; + //BA.debugLineNum = 1698;BA.debugLine="x0 = x2 : y0 = y2"; _y0 = _y2; -RDebugUtils.currentLine=27918347; - //BA.debugLineNum = 27918347;BA.debugLine="x2 = tx : y2 = ty"; + //BA.debugLineNum = 1699;BA.debugLine="x2 = tx : y2 = ty"; _x2 = _tx; -RDebugUtils.currentLine=27918347; - //BA.debugLineNum = 27918347;BA.debugLine="x2 = tx : y2 = ty"; + //BA.debugLineNum = 1699;BA.debugLine="x2 = tx : y2 = ty"; _y2 = _ty; }; -RDebugUtils.currentLine=27918349; - //BA.debugLineNum = 27918349;BA.debugLine="If y1 > y2 Then"; + //BA.debugLineNum = 1701;BA.debugLine="If y1 > y2 Then"; if (_y1>_y2) { -RDebugUtils.currentLine=27918350; - //BA.debugLineNum = 27918350;BA.debugLine="tx = x1 : ty = y1"; + //BA.debugLineNum = 1702;BA.debugLine="tx = x1 : ty = y1"; _tx = _x1; -RDebugUtils.currentLine=27918350; - //BA.debugLineNum = 27918350;BA.debugLine="tx = x1 : ty = y1"; + //BA.debugLineNum = 1702;BA.debugLine="tx = x1 : ty = y1"; _ty = _y1; -RDebugUtils.currentLine=27918351; - //BA.debugLineNum = 27918351;BA.debugLine="x1 = x2 : y1 = y2"; + //BA.debugLineNum = 1703;BA.debugLine="x1 = x2 : y1 = y2"; _x1 = _x2; -RDebugUtils.currentLine=27918351; - //BA.debugLineNum = 27918351;BA.debugLine="x1 = x2 : y1 = y2"; + //BA.debugLineNum = 1703;BA.debugLine="x1 = x2 : y1 = y2"; _y1 = _y2; -RDebugUtils.currentLine=27918352; - //BA.debugLineNum = 27918352;BA.debugLine="x2 = tx : y2 = ty"; + //BA.debugLineNum = 1704;BA.debugLine="x2 = tx : y2 = ty"; _x2 = _tx; -RDebugUtils.currentLine=27918352; - //BA.debugLineNum = 27918352;BA.debugLine="x2 = tx : y2 = ty"; + //BA.debugLineNum = 1704;BA.debugLine="x2 = tx : y2 = ty"; _y2 = _ty; }; -RDebugUtils.currentLine=27918355; - //BA.debugLineNum = 27918355;BA.debugLine="Dim dx0, dx1, dx2 As Double"; + //BA.debugLineNum = 1707;BA.debugLine="Dim dx0, dx1, dx2 As Double"; _dx0 = 0; _dx1 = 0; _dx2 = 0; -RDebugUtils.currentLine=27918356; - //BA.debugLineNum = 27918356;BA.debugLine="Dim x3, x4, y3, y4 As Double"; + //BA.debugLineNum = 1708;BA.debugLine="Dim x3, x4, y3, y4 As Double"; _x3 = 0; _x4 = 0; _y3 = 0; _y4 = 0; -RDebugUtils.currentLine=27918357; - //BA.debugLineNum = 27918357;BA.debugLine="Dim inc As Int"; + //BA.debugLineNum = 1709;BA.debugLine="Dim inc As Int"; _inc = 0; -RDebugUtils.currentLine=27918359; - //BA.debugLineNum = 27918359;BA.debugLine="If y1 - y0 > 0 Then dx0=(x1-x0)/(y1-y0) Else dx0="; + //BA.debugLineNum = 1711;BA.debugLine="If y1 - y0 > 0 Then dx0=(x1-x0)/(y1-y0) Else dx0="; if (_y1-_y0>0) { _dx0 = (_x1-_x0)/(double)(_y1-_y0);} else { _dx0 = 0;}; -RDebugUtils.currentLine=27918360; - //BA.debugLineNum = 27918360;BA.debugLine="If y2 - y0 > 0 Then dx1=(x2-x0)/(y2-y0) Else dx1="; + //BA.debugLineNum = 1712;BA.debugLine="If y2 - y0 > 0 Then dx1=(x2-x0)/(y2-y0) Else dx1="; if (_y2-_y0>0) { _dx1 = (_x2-_x0)/(double)(_y2-_y0);} else { _dx1 = 0;}; -RDebugUtils.currentLine=27918361; - //BA.debugLineNum = 27918361;BA.debugLine="If y2 - y1 > 0 Then dx2=(x2-x1)/(y2-y1) Else dx2="; + //BA.debugLineNum = 1713;BA.debugLine="If y2 - y1 > 0 Then dx2=(x2-x1)/(y2-y1) Else dx2="; if (_y2-_y1>0) { _dx2 = (_x2-_x1)/(double)(_y2-_y1);} else { _dx2 = 0;}; -RDebugUtils.currentLine=27918362; - //BA.debugLineNum = 27918362;BA.debugLine="x3 = x0 : x4 = x0"; + //BA.debugLineNum = 1714;BA.debugLine="x3 = x0 : x4 = x0"; _x3 = _x0; -RDebugUtils.currentLine=27918362; - //BA.debugLineNum = 27918362;BA.debugLine="x3 = x0 : x4 = x0"; + //BA.debugLineNum = 1714;BA.debugLine="x3 = x0 : x4 = x0"; _x4 = _x0; -RDebugUtils.currentLine=27918363; - //BA.debugLineNum = 27918363;BA.debugLine="y3 = y0 : y4 = y0"; + //BA.debugLineNum = 1715;BA.debugLine="y3 = y0 : y4 = y0"; _y3 = _y0; -RDebugUtils.currentLine=27918363; - //BA.debugLineNum = 27918363;BA.debugLine="y3 = y0 : y4 = y0"; + //BA.debugLineNum = 1715;BA.debugLine="y3 = y0 : y4 = y0"; _y4 = _y0; -RDebugUtils.currentLine=27918364; - //BA.debugLineNum = 27918364;BA.debugLine="If dx0 > dx1 Then"; + //BA.debugLineNum = 1716;BA.debugLine="If dx0 > dx1 Then"; if (_dx0>_dx1) { -RDebugUtils.currentLine=27918365; - //BA.debugLineNum = 27918365;BA.debugLine="While"; + //BA.debugLineNum = 1717;BA.debugLine="While"; __c.While(); -RDebugUtils.currentLine=27918366; - //BA.debugLineNum = 27918366;BA.debugLine="Do While y3 <= y1"; + //BA.debugLineNum = 1718;BA.debugLine="Do While y3 <= y1"; while (_y3<=_y1) { -RDebugUtils.currentLine=27918367; - //BA.debugLineNum = 27918367;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; + //BA.debugLineNum = 1719;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; if (_x3>_x4) { _inc = (int) (-1);} else { _inc = (int) (1);}; -RDebugUtils.currentLine=27918368; - //BA.debugLineNum = 27918368;BA.debugLine="For x = x3 To x4 Step inc"; + //BA.debugLineNum = 1720;BA.debugLine="For x = x3 To x4 Step inc"; { final int step40 = _inc; final int limit40 = (int) (_x4); _x = (int) (_x3) ; for (;(step40 > 0 && _x <= limit40) || (step40 < 0 && _x >= limit40) ;_x = ((int)(0 + _x + step40)) ) { -RDebugUtils.currentLine=27918369; - //BA.debugLineNum = 27918369;BA.debugLine="points(x, y3) = 1"; + //BA.debugLineNum = 1721;BA.debugLine="points(x, y3) = 1"; _points[_x][(int) (_y3)] = (byte) (1); } }; -RDebugUtils.currentLine=27918371; - //BA.debugLineNum = 27918371;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; + //BA.debugLineNum = 1723;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; _y3 = _y3+1; -RDebugUtils.currentLine=27918371; - //BA.debugLineNum = 27918371;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; + //BA.debugLineNum = 1723;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; _y4 = _y4+1; -RDebugUtils.currentLine=27918371; - //BA.debugLineNum = 27918371;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; + //BA.debugLineNum = 1723;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; _x3 = _x3+_dx1; -RDebugUtils.currentLine=27918371; - //BA.debugLineNum = 27918371;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; + //BA.debugLineNum = 1723;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; _x4 = _x4+_dx0; } ; -RDebugUtils.currentLine=27918373; - //BA.debugLineNum = 27918373;BA.debugLine="x4=x1"; + //BA.debugLineNum = 1725;BA.debugLine="x4=x1"; _x4 = _x1; -RDebugUtils.currentLine=27918374; - //BA.debugLineNum = 27918374;BA.debugLine="y4=y1"; + //BA.debugLineNum = 1726;BA.debugLine="y4=y1"; _y4 = _y1; -RDebugUtils.currentLine=27918375; - //BA.debugLineNum = 27918375;BA.debugLine="Do While y3 <= y2"; + //BA.debugLineNum = 1727;BA.debugLine="Do While y3 <= y2"; while (_y3<=_y2) { -RDebugUtils.currentLine=27918376; - //BA.debugLineNum = 27918376;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; + //BA.debugLineNum = 1728;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; if (_x3>_x4) { _inc = (int) (-1);} else { _inc = (int) (1);}; -RDebugUtils.currentLine=27918377; - //BA.debugLineNum = 27918377;BA.debugLine="For x = x3 To x4 Step inc"; + //BA.debugLineNum = 1729;BA.debugLine="For x = x3 To x4 Step inc"; { final int step52 = _inc; final int limit52 = (int) (_x4); _x = (int) (_x3) ; for (;(step52 > 0 && _x <= limit52) || (step52 < 0 && _x >= limit52) ;_x = ((int)(0 + _x + step52)) ) { -RDebugUtils.currentLine=27918378; - //BA.debugLineNum = 27918378;BA.debugLine="points(x ,y3) = 1"; + //BA.debugLineNum = 1730;BA.debugLine="points(x ,y3) = 1"; _points[_x][(int) (_y3)] = (byte) (1); } }; -RDebugUtils.currentLine=27918380; - //BA.debugLineNum = 27918380;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; + //BA.debugLineNum = 1732;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; _y3 = _y3+1; -RDebugUtils.currentLine=27918380; - //BA.debugLineNum = 27918380;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; + //BA.debugLineNum = 1732;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; _y4 = _y4+1; -RDebugUtils.currentLine=27918380; - //BA.debugLineNum = 27918380;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; + //BA.debugLineNum = 1732;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; _x3 = _x3+_dx1; -RDebugUtils.currentLine=27918380; - //BA.debugLineNum = 27918380;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; + //BA.debugLineNum = 1732;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4"; _x4 = _x4+_dx2; } ; }else { -RDebugUtils.currentLine=27918383; - //BA.debugLineNum = 27918383;BA.debugLine="While"; + //BA.debugLineNum = 1735;BA.debugLine="While"; __c.While(); -RDebugUtils.currentLine=27918384; - //BA.debugLineNum = 27918384;BA.debugLine="Do While y3 <= y1"; + //BA.debugLineNum = 1736;BA.debugLine="Do While y3 <= y1"; while (_y3<=_y1) { -RDebugUtils.currentLine=27918385; - //BA.debugLineNum = 27918385;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; + //BA.debugLineNum = 1737;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; if (_x3>_x4) { _inc = (int) (-1);} else { _inc = (int) (1);}; -RDebugUtils.currentLine=27918386; - //BA.debugLineNum = 27918386;BA.debugLine="For x = x3 To x4 Step inc"; + //BA.debugLineNum = 1738;BA.debugLine="For x = x3 To x4 Step inc"; { final int step64 = _inc; final int limit64 = (int) (_x4); _x = (int) (_x3) ; for (;(step64 > 0 && _x <= limit64) || (step64 < 0 && _x >= limit64) ;_x = ((int)(0 + _x + step64)) ) { -RDebugUtils.currentLine=27918387; - //BA.debugLineNum = 27918387;BA.debugLine="points(x, y3) = 1"; + //BA.debugLineNum = 1739;BA.debugLine="points(x, y3) = 1"; _points[_x][(int) (_y3)] = (byte) (1); } }; -RDebugUtils.currentLine=27918389; - //BA.debugLineNum = 27918389;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; + //BA.debugLineNum = 1741;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; _y3 = _y3+1; -RDebugUtils.currentLine=27918389; - //BA.debugLineNum = 27918389;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; + //BA.debugLineNum = 1741;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; _y4 = _y4+1; -RDebugUtils.currentLine=27918389; - //BA.debugLineNum = 27918389;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; + //BA.debugLineNum = 1741;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; _x3 = _x3+_dx0; -RDebugUtils.currentLine=27918389; - //BA.debugLineNum = 27918389;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; + //BA.debugLineNum = 1741;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4"; _x4 = _x4+_dx1; } ; -RDebugUtils.currentLine=27918391; - //BA.debugLineNum = 27918391;BA.debugLine="x3=x1"; + //BA.debugLineNum = 1743;BA.debugLine="x3=x1"; _x3 = _x1; -RDebugUtils.currentLine=27918392; - //BA.debugLineNum = 27918392;BA.debugLine="y3=y1"; + //BA.debugLineNum = 1744;BA.debugLine="y3=y1"; _y3 = _y1; -RDebugUtils.currentLine=27918393; - //BA.debugLineNum = 27918393;BA.debugLine="Do While y3<=y2"; + //BA.debugLineNum = 1745;BA.debugLine="Do While y3<=y2"; while (_y3<=_y2) { -RDebugUtils.currentLine=27918394; - //BA.debugLineNum = 27918394;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; + //BA.debugLineNum = 1746;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1"; if (_x3>_x4) { _inc = (int) (-1);} else { _inc = (int) (1);}; -RDebugUtils.currentLine=27918395; - //BA.debugLineNum = 27918395;BA.debugLine="For x = x3 To x4 Step inc"; + //BA.debugLineNum = 1747;BA.debugLine="For x = x3 To x4 Step inc"; { final int step76 = _inc; final int limit76 = (int) (_x4); _x = (int) (_x3) ; for (;(step76 > 0 && _x <= limit76) || (step76 < 0 && _x >= limit76) ;_x = ((int)(0 + _x + step76)) ) { -RDebugUtils.currentLine=27918396; - //BA.debugLineNum = 27918396;BA.debugLine="points(x, y3) = 1"; + //BA.debugLineNum = 1748;BA.debugLine="points(x, y3) = 1"; _points[_x][(int) (_y3)] = (byte) (1); } }; -RDebugUtils.currentLine=27918398; - //BA.debugLineNum = 27918398;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; + //BA.debugLineNum = 1750;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; _y3 = _y3+1; -RDebugUtils.currentLine=27918398; - //BA.debugLineNum = 27918398;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; + //BA.debugLineNum = 1750;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; _y4 = _y4+1; -RDebugUtils.currentLine=27918398; - //BA.debugLineNum = 27918398;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; + //BA.debugLineNum = 1750;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; _x3 = _x3+_dx2; -RDebugUtils.currentLine=27918398; - //BA.debugLineNum = 27918398;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; + //BA.debugLineNum = 1750;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4"; _x4 = _x4+_dx1; } ; }; -RDebugUtils.currentLine=27918401; - //BA.debugLineNum = 27918401;BA.debugLine="End Sub"; + //BA.debugLineNum = 1753;BA.debugLine="End Sub"; return ""; } -public boolean _isbluetoothon(reparto_izca.keymon.lat.escposprinter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "isbluetoothon", false)) - {return ((Boolean) Debug.delegate(ba, "isbluetoothon", null));} -RDebugUtils.currentLine=26148864; - //BA.debugLineNum = 26148864;BA.debugLine="Public Sub IsBluetoothOn As Boolean"; -RDebugUtils.currentLine=26148865; - //BA.debugLineNum = 26148865;BA.debugLine="Return Serial1.IsEnabled"; -if (true) return __ref._serial1 /*anywheresoftware.b4a.objects.Serial*/ .IsEnabled(); -RDebugUtils.currentLine=26148866; - //BA.debugLineNum = 26148866;BA.debugLine="End Sub"; +public reparto_izca.keymon.lat.escposprinter._animage _imagetobwimage(anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _bmp) throws Exception{ +b4a.example.bitmapcreator _bc = null; +int _w = 0; +int _h = 0; +byte[] _pixels = null; +int _y = 0; +int _x = 0; +int _j = 0; +b4a.example.bitmapcreator._argbcolor _col = null; +int _lum = 0; +reparto_izca.keymon.lat.escposprinter._animage _ret = null; + //BA.debugLineNum = 1857;BA.debugLine="Sub ImageToBWIMage(bmp As Bitmap) As AnImage"; + //BA.debugLineNum = 1858;BA.debugLine="Dim BC As BitmapCreator 'ignore"; +_bc = new b4a.example.bitmapcreator(); + //BA.debugLineNum = 1859;BA.debugLine="Dim W As Int = bmp.Width"; +_w = _bmp.getWidth(); + //BA.debugLineNum = 1860;BA.debugLine="Dim H As Int = bmp.Height"; +_h = _bmp.getHeight(); + //BA.debugLineNum = 1861;BA.debugLine="Dim pixels(W * H) As Byte"; +_pixels = new byte[(int) (_w*_h)]; +; + //BA.debugLineNum = 1863;BA.debugLine="For y = 0 To H - 1"; +{ +final int step5 = 1; +final int limit5 = (int) (_h-1); +_y = (int) (0) ; +for (;_y <= limit5 ;_y = _y + step5 ) { + //BA.debugLineNum = 1864;BA.debugLine="For x = 0 To W - 1"; +{ +final int step6 = 1; +final int limit6 = (int) (_w-1); +_x = (int) (0) ; +for (;_x <= limit6 ;_x = _x + step6 ) { + //BA.debugLineNum = 1865;BA.debugLine="Dim j As Int = bmp.GetPixel(x, y)"; +_j = _bmp.GetPixel(_x,_y); + //BA.debugLineNum = 1867;BA.debugLine="Dim col As ARGBColor"; +_col = new b4a.example.bitmapcreator._argbcolor(); + //BA.debugLineNum = 1868;BA.debugLine="BC.ColorToARGB(j, col )"; +_bc._colortoargb(_j,_col); + //BA.debugLineNum = 1869;BA.debugLine="Dim lum As Int = col.r * 0.2 + col.b*0.1 + col."; +_lum = (int) (_col.r*0.2+_col.b*0.1+_col.g*0.7); + //BA.debugLineNum = 1870;BA.debugLine="If lum> 255 Then lum = 255"; +if (_lum>255) { +_lum = (int) (255);}; + //BA.debugLineNum = 1872;BA.debugLine="pixels(y*W + x) = lum"; +_pixels[(int) (_y*_w+_x)] = (byte) (_lum); + } +}; + } +}; + //BA.debugLineNum = 1875;BA.debugLine="Dim ret As AnImage"; +_ret = new reparto_izca.keymon.lat.escposprinter._animage(); + //BA.debugLineNum = 1876;BA.debugLine="ret.Width = bmp.Width"; +_ret.Width /*int*/ = _bmp.getWidth(); + //BA.debugLineNum = 1877;BA.debugLine="ret.Height = bmp.Height"; +_ret.Height /*int*/ = _bmp.getHeight(); + //BA.debugLineNum = 1878;BA.debugLine="ret.Data = pixels"; +_ret.Data /*byte[]*/ = _pixels; + //BA.debugLineNum = 1879;BA.debugLine="Return ret"; +if (true) return _ret; + //BA.debugLineNum = 1880;BA.debugLine="End Sub"; +return null; +} +public String _initialize(anywheresoftware.b4a.BA _ba,Object _vcallback,String _veventname) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 1229;BA.debugLine="Public Sub Initialize(vCallback As Object, vEventN"; + //BA.debugLineNum = 1230;BA.debugLine="EventName = vEventName"; +_eventname = _veventname; + //BA.debugLineNum = 1231;BA.debugLine="CallBack = vCallback"; +_callback = _vcallback; + //BA.debugLineNum = 1232;BA.debugLine="Serial1.Initialize(\"Serial1\")"; +_serial1.Initialize("Serial1"); + //BA.debugLineNum = 1233;BA.debugLine="Connected = False"; +_connected = __c.False; + //BA.debugLineNum = 1234;BA.debugLine="ConnectedError = \"\""; +_connectederror = ""; + //BA.debugLineNum = 1235;BA.debugLine="End Sub"; +return ""; +} +public boolean _isbluetoothon() throws Exception{ + //BA.debugLineNum = 1248;BA.debugLine="Public Sub IsBluetoothOn As Boolean"; + //BA.debugLineNum = 1249;BA.debugLine="Return Serial1.IsEnabled"; +if (true) return _serial1.IsEnabled(); + //BA.debugLineNum = 1250;BA.debugLine="End Sub"; return false; } -public byte[] _packimageslice(reparto_izca.keymon.lat.escposprinter __ref,reparto_izca.keymon.lat.escposprinter._animage _img,int _slice,boolean _dots24) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "packimageslice", false)) - {return ((byte[]) Debug.delegate(ba, "packimageslice", new Object[] {_img,_slice,_dots24}));} +public boolean _isconnected() throws Exception{ + //BA.debugLineNum = 1243;BA.debugLine="Public Sub IsConnected As Boolean"; + //BA.debugLineNum = 1244;BA.debugLine="Return Connected"; +if (true) return _connected; + //BA.debugLineNum = 1245;BA.debugLine="End Sub"; +return false; +} +public reparto_izca.keymon.lat.escposprinter._animage _packimage(reparto_izca.keymon.lat.escposprinter._animage _imagedata) throws Exception{ +int _xbytes = 0; +byte[] _pixels = null; +byte[] _masks = null; +int _index = 0; +int _y = 0; +int _x = 0; +byte _xbyte = (byte)0; +int _b = 0; +byte _pix = (byte)0; +reparto_izca.keymon.lat.escposprinter._animage _ret = null; + //BA.debugLineNum = 2009;BA.debugLine="Public Sub PackImage(imagedata As AnImage) As AnIm"; + //BA.debugLineNum = 2010;BA.debugLine="Dim xbytes As Int = imagedata.width/8"; +_xbytes = (int) (_imagedata.Width /*int*/ /(double)8); + //BA.debugLineNum = 2011;BA.debugLine="Dim pixels(xbytes * imagedata.height) As Byte"; +_pixels = new byte[(int) (_xbytes*_imagedata.Height /*int*/ )]; +; + //BA.debugLineNum = 2012;BA.debugLine="Dim masks(8) As Byte"; +_masks = new byte[(int) (8)]; +; + //BA.debugLineNum = 2013;BA.debugLine="masks(0) = 0x80"; +_masks[(int) (0)] = (byte) (((int)0x80)); + //BA.debugLineNum = 2014;BA.debugLine="masks(1) = 0x40"; +_masks[(int) (1)] = (byte) (((int)0x40)); + //BA.debugLineNum = 2015;BA.debugLine="masks(2) = 0x20"; +_masks[(int) (2)] = (byte) (((int)0x20)); + //BA.debugLineNum = 2016;BA.debugLine="masks(3) = 0x10"; +_masks[(int) (3)] = (byte) (((int)0x10)); + //BA.debugLineNum = 2017;BA.debugLine="masks(4) = 0x08"; +_masks[(int) (4)] = (byte) (((int)0x08)); + //BA.debugLineNum = 2018;BA.debugLine="masks(5) = 0x04"; +_masks[(int) (5)] = (byte) (((int)0x04)); + //BA.debugLineNum = 2019;BA.debugLine="masks(6) = 0x02"; +_masks[(int) (6)] = (byte) (((int)0x02)); + //BA.debugLineNum = 2020;BA.debugLine="masks(7) = 0x01"; +_masks[(int) (7)] = (byte) (((int)0x01)); + //BA.debugLineNum = 2021;BA.debugLine="Dim index As Int = 0"; +_index = (int) (0); + //BA.debugLineNum = 2022;BA.debugLine="For y = 0 To imagedata.Height - 1"; +{ +final int step13 = 1; +final int limit13 = (int) (_imagedata.Height /*int*/ -1); +_y = (int) (0) ; +for (;_y <= limit13 ;_y = _y + step13 ) { + //BA.debugLineNum = 2023;BA.debugLine="For x = 0 To xbytes - 1"; +{ +final int step14 = 1; +final int limit14 = (int) (_xbytes-1); +_x = (int) (0) ; +for (;_x <= limit14 ;_x = _x + step14 ) { + //BA.debugLineNum = 2024;BA.debugLine="Dim xbyte As Byte = 0"; +_xbyte = (byte) (0); + //BA.debugLineNum = 2025;BA.debugLine="For b = 0 To 7"; +{ +final int step16 = 1; +final int limit16 = (int) (7); +_b = (int) (0) ; +for (;_b <= limit16 ;_b = _b + step16 ) { + //BA.debugLineNum = 2027;BA.debugLine="Dim pix As Byte = imagedata.Data(index)"; +_pix = _imagedata.Data /*byte[]*/ [_index]; + //BA.debugLineNum = 2028;BA.debugLine="If pix <> 0 Then"; +if (_pix!=0) { + //BA.debugLineNum = 2029;BA.debugLine="xbyte = xbyte + masks(b)"; +_xbyte = (byte) (_xbyte+_masks[_b]); + }; + //BA.debugLineNum = 2031;BA.debugLine="index = index + 1"; +_index = (int) (_index+1); + } +}; + //BA.debugLineNum = 2033;BA.debugLine="pixels(y*xbytes + x) = xbyte"; +_pixels[(int) (_y*_xbytes+_x)] = _xbyte; + } +}; + } +}; + //BA.debugLineNum = 2036;BA.debugLine="Dim ret As AnImage"; +_ret = new reparto_izca.keymon.lat.escposprinter._animage(); + //BA.debugLineNum = 2037;BA.debugLine="ret.Width = xbytes"; +_ret.Width /*int*/ = _xbytes; + //BA.debugLineNum = 2038;BA.debugLine="ret.Height = imagedata.Height"; +_ret.Height /*int*/ = _imagedata.Height /*int*/ ; + //BA.debugLineNum = 2039;BA.debugLine="ret.Data = pixels"; +_ret.Data /*byte[]*/ = _pixels; + //BA.debugLineNum = 2040;BA.debugLine="Return ret"; +if (true) return _ret; + //BA.debugLineNum = 2041;BA.debugLine="End Sub"; +return null; +} +public byte[] _packimageslice(reparto_izca.keymon.lat.escposprinter._animage _img,int _slice,boolean _dots24) throws Exception{ int _bytes = 0; byte[] _pixels = null; int _slicestart = 0; @@ -1927,1019 +1133,890 @@ int _s = 0; byte _xbyte = (byte)0; int _b = 0; byte _pix = (byte)0; -RDebugUtils.currentLine=28770304; - //BA.debugLineNum = 28770304;BA.debugLine="Public Sub PackImageSlice(img As AnImage, slice As"; -RDebugUtils.currentLine=28770305; - //BA.debugLineNum = 28770305;BA.debugLine="Dim bytes As Int = img.width"; + //BA.debugLineNum = 2107;BA.debugLine="Public Sub PackImageSlice(img As AnImage, slice As"; + //BA.debugLineNum = 2108;BA.debugLine="Dim bytes As Int = img.width"; _bytes = _img.Width /*int*/ ; -RDebugUtils.currentLine=28770306; - //BA.debugLineNum = 28770306;BA.debugLine="If dots24 Then"; + //BA.debugLineNum = 2109;BA.debugLine="If dots24 Then"; if (_dots24) { -RDebugUtils.currentLine=28770307; - //BA.debugLineNum = 28770307;BA.debugLine="Dim pixels(bytes * 3) As Byte"; + //BA.debugLineNum = 2110;BA.debugLine="Dim pixels(bytes * 3) As Byte"; _pixels = new byte[(int) (_bytes*3)]; ; -RDebugUtils.currentLine=28770308; - //BA.debugLineNum = 28770308;BA.debugLine="Dim slicestart As Int = slice * bytes * 8 * 3"; + //BA.debugLineNum = 2111;BA.debugLine="Dim slicestart As Int = slice * bytes * 8 * 3"; _slicestart = (int) (_slice*_bytes*8*3); }else { -RDebugUtils.currentLine=28770310; - //BA.debugLineNum = 28770310;BA.debugLine="Dim pixels(bytes) As Byte"; + //BA.debugLineNum = 2113;BA.debugLine="Dim pixels(bytes) As Byte"; _pixels = new byte[_bytes]; ; -RDebugUtils.currentLine=28770311; - //BA.debugLineNum = 28770311;BA.debugLine="Dim slicestart As Int = slice * bytes * 8"; + //BA.debugLineNum = 2114;BA.debugLine="Dim slicestart As Int = slice * bytes * 8"; _slicestart = (int) (_slice*_bytes*8); }; -RDebugUtils.currentLine=28770314; - //BA.debugLineNum = 28770314;BA.debugLine="Dim masks(8) As Byte"; + //BA.debugLineNum = 2117;BA.debugLine="Dim masks(8) As Byte"; _masks = new byte[(int) (8)]; ; -RDebugUtils.currentLine=28770315; - //BA.debugLineNum = 28770315;BA.debugLine="masks(0) = 0x80"; + //BA.debugLineNum = 2118;BA.debugLine="masks(0) = 0x80"; _masks[(int) (0)] = (byte) (((int)0x80)); -RDebugUtils.currentLine=28770316; - //BA.debugLineNum = 28770316;BA.debugLine="masks(1) = 0x40"; + //BA.debugLineNum = 2119;BA.debugLine="masks(1) = 0x40"; _masks[(int) (1)] = (byte) (((int)0x40)); -RDebugUtils.currentLine=28770317; - //BA.debugLineNum = 28770317;BA.debugLine="masks(2) = 0x20"; + //BA.debugLineNum = 2120;BA.debugLine="masks(2) = 0x20"; _masks[(int) (2)] = (byte) (((int)0x20)); -RDebugUtils.currentLine=28770318; - //BA.debugLineNum = 28770318;BA.debugLine="masks(3) = 0x10"; + //BA.debugLineNum = 2121;BA.debugLine="masks(3) = 0x10"; _masks[(int) (3)] = (byte) (((int)0x10)); -RDebugUtils.currentLine=28770319; - //BA.debugLineNum = 28770319;BA.debugLine="masks(4) = 0x08"; + //BA.debugLineNum = 2122;BA.debugLine="masks(4) = 0x08"; _masks[(int) (4)] = (byte) (((int)0x08)); -RDebugUtils.currentLine=28770320; - //BA.debugLineNum = 28770320;BA.debugLine="masks(5) = 0x04"; + //BA.debugLineNum = 2123;BA.debugLine="masks(5) = 0x04"; _masks[(int) (5)] = (byte) (((int)0x04)); -RDebugUtils.currentLine=28770321; - //BA.debugLineNum = 28770321;BA.debugLine="masks(6) = 0x02"; + //BA.debugLineNum = 2124;BA.debugLine="masks(6) = 0x02"; _masks[(int) (6)] = (byte) (((int)0x02)); -RDebugUtils.currentLine=28770322; - //BA.debugLineNum = 28770322;BA.debugLine="masks(7) = 0x01"; + //BA.debugLineNum = 2125;BA.debugLine="masks(7) = 0x01"; _masks[(int) (7)] = (byte) (((int)0x01)); -RDebugUtils.currentLine=28770324; - //BA.debugLineNum = 28770324;BA.debugLine="If dots24 Then"; + //BA.debugLineNum = 2127;BA.debugLine="If dots24 Then"; if (_dots24) { -RDebugUtils.currentLine=28770325; - //BA.debugLineNum = 28770325;BA.debugLine="For x = 0 To bytes - 1"; + //BA.debugLineNum = 2128;BA.debugLine="For x = 0 To bytes - 1"; { final int step19 = 1; final int limit19 = (int) (_bytes-1); _x = (int) (0) ; for (;_x <= limit19 ;_x = _x + step19 ) { -RDebugUtils.currentLine=28770326; - //BA.debugLineNum = 28770326;BA.debugLine="For s = 0 To 2"; + //BA.debugLineNum = 2129;BA.debugLine="For s = 0 To 2"; { final int step20 = 1; final int limit20 = (int) (2); _s = (int) (0) ; for (;_s <= limit20 ;_s = _s + step20 ) { -RDebugUtils.currentLine=28770327; - //BA.debugLineNum = 28770327;BA.debugLine="Dim xbyte As Byte = 0"; + //BA.debugLineNum = 2130;BA.debugLine="Dim xbyte As Byte = 0"; _xbyte = (byte) (0); -RDebugUtils.currentLine=28770328; - //BA.debugLineNum = 28770328;BA.debugLine="For b = 0 To 7"; + //BA.debugLineNum = 2131;BA.debugLine="For b = 0 To 7"; { final int step22 = 1; final int limit22 = (int) (7); _b = (int) (0) ; for (;_b <= limit22 ;_b = _b + step22 ) { -RDebugUtils.currentLine=28770330; - //BA.debugLineNum = 28770330;BA.debugLine="Dim pix As Byte = img.Data(slicestart + ((b +"; + //BA.debugLineNum = 2133;BA.debugLine="Dim pix As Byte = img.Data(slicestart + ((b +"; _pix = _img.Data /*byte[]*/ [(int) (_slicestart+((_b+_s*8)*_bytes)+_x)]; -RDebugUtils.currentLine=28770331; - //BA.debugLineNum = 28770331;BA.debugLine="If pix <> 0 Then"; + //BA.debugLineNum = 2134;BA.debugLine="If pix <> 0 Then"; if (_pix!=0) { -RDebugUtils.currentLine=28770332; - //BA.debugLineNum = 28770332;BA.debugLine="xbyte = xbyte + masks(b)"; + //BA.debugLineNum = 2135;BA.debugLine="xbyte = xbyte + masks(b)"; _xbyte = (byte) (_xbyte+_masks[_b]); }; } }; -RDebugUtils.currentLine=28770335; - //BA.debugLineNum = 28770335;BA.debugLine="pixels(x*3+s) = xbyte"; + //BA.debugLineNum = 2138;BA.debugLine="pixels(x*3+s) = xbyte"; _pixels[(int) (_x*3+_s)] = _xbyte; } }; } }; }else { -RDebugUtils.currentLine=28770339; - //BA.debugLineNum = 28770339;BA.debugLine="For x = 0 To bytes - 1"; + //BA.debugLineNum = 2142;BA.debugLine="For x = 0 To bytes - 1"; { final int step32 = 1; final int limit32 = (int) (_bytes-1); _x = (int) (0) ; for (;_x <= limit32 ;_x = _x + step32 ) { -RDebugUtils.currentLine=28770340; - //BA.debugLineNum = 28770340;BA.debugLine="Dim xbyte As Byte = 0"; + //BA.debugLineNum = 2143;BA.debugLine="Dim xbyte As Byte = 0"; _xbyte = (byte) (0); -RDebugUtils.currentLine=28770341; - //BA.debugLineNum = 28770341;BA.debugLine="For b = 0 To 7"; + //BA.debugLineNum = 2144;BA.debugLine="For b = 0 To 7"; { final int step34 = 1; final int limit34 = (int) (7); _b = (int) (0) ; for (;_b <= limit34 ;_b = _b + step34 ) { -RDebugUtils.currentLine=28770343; - //BA.debugLineNum = 28770343;BA.debugLine="Dim pix As Byte = img.Data(slicestart + (b * b"; + //BA.debugLineNum = 2146;BA.debugLine="Dim pix As Byte = img.Data(slicestart + (b * b"; _pix = _img.Data /*byte[]*/ [(int) (_slicestart+(_b*_bytes)+_x)]; -RDebugUtils.currentLine=28770344; - //BA.debugLineNum = 28770344;BA.debugLine="If pix <> 0 Then"; + //BA.debugLineNum = 2147;BA.debugLine="If pix <> 0 Then"; if (_pix!=0) { -RDebugUtils.currentLine=28770345; - //BA.debugLineNum = 28770345;BA.debugLine="xbyte = xbyte + masks(b)"; + //BA.debugLineNum = 2148;BA.debugLine="xbyte = xbyte + masks(b)"; _xbyte = (byte) (_xbyte+_masks[_b]); }; } }; -RDebugUtils.currentLine=28770348; - //BA.debugLineNum = 28770348;BA.debugLine="pixels(x) = xbyte"; + //BA.debugLineNum = 2151;BA.debugLine="pixels(x) = xbyte"; _pixels[_x] = _xbyte; } }; }; -RDebugUtils.currentLine=28770351; - //BA.debugLineNum = 28770351;BA.debugLine="Return pixels"; + //BA.debugLineNum = 2154;BA.debugLine="Return pixels"; if (true) return _pixels; -RDebugUtils.currentLine=28770352; - //BA.debugLineNum = 28770352;BA.debugLine="End Sub"; + //BA.debugLineNum = 2155;BA.debugLine="End Sub"; return null; } -public String _plotlinelow(reparto_izca.keymon.lat.escposprinter __ref,int _x0,int _y0,int _x1,int _y1,byte[][] _points) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "plotlinelow", false)) - {return ((String) Debug.delegate(ba, "plotlinelow", new Object[] {_x0,_y0,_x1,_y1,_points}));} -int _dx = 0; -int _dy = 0; -int _yi = 0; -int _d = 0; -int _y = 0; +public String _plotbox(int _x0,int _y0,int _x1,int _y1,byte[][] _points,int _fill) throws Exception{ int _x = 0; -RDebugUtils.currentLine=28246016; - //BA.debugLineNum = 28246016;BA.debugLine="Private Sub PlotLineLow(x0 As Int, y0 As Int, x1 A"; -RDebugUtils.currentLine=28246017; - //BA.debugLineNum = 28246017;BA.debugLine="Dim dx As Int = x1 - x0"; -_dx = (int) (_x1-_x0); -RDebugUtils.currentLine=28246018; - //BA.debugLineNum = 28246018;BA.debugLine="Dim dy As Int = y1 - y0"; -_dy = (int) (_y1-_y0); -RDebugUtils.currentLine=28246019; - //BA.debugLineNum = 28246019;BA.debugLine="Dim yi As Int = 1"; -_yi = (int) (1); -RDebugUtils.currentLine=28246020; - //BA.debugLineNum = 28246020;BA.debugLine="If dy < 0 Then"; -if (_dy<0) { -RDebugUtils.currentLine=28246021; - //BA.debugLineNum = 28246021;BA.debugLine="yi = -1"; -_yi = (int) (-1); -RDebugUtils.currentLine=28246022; - //BA.debugLineNum = 28246022;BA.debugLine="dy = -dy"; -_dy = (int) (-_dy); - }; -RDebugUtils.currentLine=28246024; - //BA.debugLineNum = 28246024;BA.debugLine="Dim D As Int = 2*dy - dx"; -_d = (int) (2*_dy-_dx); -RDebugUtils.currentLine=28246025; - //BA.debugLineNum = 28246025;BA.debugLine="Dim y As Int = y0"; -_y = _y0; -RDebugUtils.currentLine=28246026; - //BA.debugLineNum = 28246026;BA.debugLine="For x = x0 To x1"; + //BA.debugLineNum = 1755;BA.debugLine="Private Sub PlotBox(x0 As Int, y0 As Int, x1 As In"; + //BA.debugLineNum = 1757;BA.debugLine="PlotLine(x0, y0, x0, y1, points)"; +_plotline(_x0,_y0,_x0,_y1,_points); + //BA.debugLineNum = 1758;BA.debugLine="PlotLine(x0, y0, x1, y0, points)"; +_plotline(_x0,_y0,_x1,_y0,_points); + //BA.debugLineNum = 1759;BA.debugLine="PlotLine(x1, y0, x1, y1, points)"; +_plotline(_x1,_y0,_x1,_y1,_points); + //BA.debugLineNum = 1760;BA.debugLine="PlotLine(x0, y1, x1, y1, points)"; +_plotline(_x0,_y1,_x1,_y1,_points); + //BA.debugLineNum = 1761;BA.debugLine="If Fill > 0 Then"; +if (_fill>0) { + //BA.debugLineNum = 1762;BA.debugLine="For x = x0 To x1"; { -final int step10 = 1; -final int limit10 = _x1; +final int step6 = 1; +final int limit6 = _x1; _x = _x0 ; -for (;_x <= limit10 ;_x = _x + step10 ) { -RDebugUtils.currentLine=28246027; - //BA.debugLineNum = 28246027;BA.debugLine="points(x,y) = 1"; -_points[_x][_y] = (byte) (1); -RDebugUtils.currentLine=28246028; - //BA.debugLineNum = 28246028;BA.debugLine="If D > 0 Then"; -if (_d>0) { -RDebugUtils.currentLine=28246029; - //BA.debugLineNum = 28246029;BA.debugLine="y = y + yi"; -_y = (int) (_y+_yi); -RDebugUtils.currentLine=28246030; - //BA.debugLineNum = 28246030;BA.debugLine="D = D - 2*dx"; -_d = (int) (_d-2*_dx); - }; -RDebugUtils.currentLine=28246032; - //BA.debugLineNum = 28246032;BA.debugLine="D = D + 2*dy"; -_d = (int) (_d+2*_dy); +for (;_x <= limit6 ;_x = _x + step6 ) { + //BA.debugLineNum = 1763;BA.debugLine="PlotLine(x, y0, x, y1, points)"; +_plotline(_x,_y0,_x,_y1,_points); } }; -RDebugUtils.currentLine=28246034; - //BA.debugLineNum = 28246034;BA.debugLine="End Sub"; + }; + //BA.debugLineNum = 1766;BA.debugLine="End Sub"; return ""; } -public String _plotlinehigh(reparto_izca.keymon.lat.escposprinter __ref,int _x0,int _y0,int _x1,int _y1,byte[][] _points) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "plotlinehigh", false)) - {return ((String) Debug.delegate(ba, "plotlinehigh", new Object[] {_x0,_y0,_x1,_y1,_points}));} +public String _plotcircle(int _radius,int _quadrants,int _x1,int _y1,byte[][] _points,int _fill) throws Exception{ +int _mask = 0; +int _q = 0; +int _i = 0; +double _x = 0; +double _y = 0; + //BA.debugLineNum = 1769;BA.debugLine="Private Sub PlotCircle(radius As Int, quadrants As"; + //BA.debugLineNum = 1771;BA.debugLine="Dim mask As Int = 1"; +_mask = (int) (1); + //BA.debugLineNum = 1772;BA.debugLine="For q = 3 To 0 Step -1"; +{ +final int step2 = -1; +final int limit2 = (int) (0); +_q = (int) (3) ; +for (;_q >= limit2 ;_q = _q + step2 ) { + //BA.debugLineNum = 1773;BA.debugLine="If Bit.And(quadrants, mask) <> 0 Then"; +if (__c.Bit.And(_quadrants,_mask)!=0) { + //BA.debugLineNum = 1774;BA.debugLine="For i = q*90 To q*90+90 Step 1"; +{ +final int step4 = 1; +final int limit4 = (int) (_q*90+90); +_i = (int) (_q*90) ; +for (;_i <= limit4 ;_i = _i + step4 ) { + //BA.debugLineNum = 1775;BA.debugLine="Dim x,y As Double"; +_x = 0; +_y = 0; + //BA.debugLineNum = 1776;BA.debugLine="x = x1 - SinD(i)*radius"; +_x = _x1-__c.SinD(_i)*_radius; + //BA.debugLineNum = 1777;BA.debugLine="y = y1 - CosD(i)*radius"; +_y = _y1-__c.CosD(_i)*_radius; + //BA.debugLineNum = 1778;BA.debugLine="If fill > 0 Then"; +if (_fill>0) { + //BA.debugLineNum = 1779;BA.debugLine="PlotLine(x1, y1, x, y, points)"; +_plotline(_x1,_y1,(int) (_x),(int) (_y),_points); + }else { + //BA.debugLineNum = 1781;BA.debugLine="points(Round(x), Round(y)) = 1"; +_points[(int) (__c.Round(_x))][(int) (__c.Round(_y))] = (byte) (1); + }; + } +}; + }; + //BA.debugLineNum = 1785;BA.debugLine="mask = Bit.ShiftLeft(mask, 1)"; +_mask = __c.Bit.ShiftLeft(_mask,(int) (1)); + } +}; + //BA.debugLineNum = 1787;BA.debugLine="End Sub"; +return ""; +} +public String _plotline(int _x0,int _y0,int _x1,int _y1,byte[][] _points) throws Exception{ + //BA.debugLineNum = 1790;BA.debugLine="Private Sub PlotLine(x0 As Int, y0 As Int, x1 As I"; + //BA.debugLineNum = 1791;BA.debugLine="If Abs(y1 - y0) < Abs(x1 - x0) Then"; +if (__c.Abs(_y1-_y0)<__c.Abs(_x1-_x0)) { + //BA.debugLineNum = 1792;BA.debugLine="If x0 > x1 Then"; +if (_x0>_x1) { + //BA.debugLineNum = 1793;BA.debugLine="PlotLineLow(x1, y1, x0, y0, points)"; +_plotlinelow(_x1,_y1,_x0,_y0,_points); + }else { + //BA.debugLineNum = 1795;BA.debugLine="PlotLineLow(x0, y0, x1, y1, points)"; +_plotlinelow(_x0,_y0,_x1,_y1,_points); + }; + }else { + //BA.debugLineNum = 1798;BA.debugLine="If y0 > y1 Then"; +if (_y0>_y1) { + //BA.debugLineNum = 1799;BA.debugLine="PlotLineHigh(x1, y1, x0, y0, points)"; +_plotlinehigh(_x1,_y1,_x0,_y0,_points); + }else { + //BA.debugLineNum = 1801;BA.debugLine="PlotLineHigh(x0, y0, x1, y1, points)"; +_plotlinehigh(_x0,_y0,_x1,_y1,_points); + }; + }; + //BA.debugLineNum = 1804;BA.debugLine="End Sub"; +return ""; +} +public String _plotlinehigh(int _x0,int _y0,int _x1,int _y1,byte[][] _points) throws Exception{ int _dx = 0; int _dy = 0; int _xi = 0; int _d = 0; int _x = 0; int _y = 0; -RDebugUtils.currentLine=28180480; - //BA.debugLineNum = 28180480;BA.debugLine="Private Sub PlotLineHigh(x0 As Int, y0 As Int, x1"; -RDebugUtils.currentLine=28180481; - //BA.debugLineNum = 28180481;BA.debugLine="Dim dx As Int = x1 - x0"; + //BA.debugLineNum = 1806;BA.debugLine="Private Sub PlotLineHigh(x0 As Int, y0 As Int, x1"; + //BA.debugLineNum = 1807;BA.debugLine="Dim dx As Int = x1 - x0"; _dx = (int) (_x1-_x0); -RDebugUtils.currentLine=28180482; - //BA.debugLineNum = 28180482;BA.debugLine="Dim dy As Int = y1 - y0"; + //BA.debugLineNum = 1808;BA.debugLine="Dim dy As Int = y1 - y0"; _dy = (int) (_y1-_y0); -RDebugUtils.currentLine=28180483; - //BA.debugLineNum = 28180483;BA.debugLine="Dim xi As Int = 1"; + //BA.debugLineNum = 1809;BA.debugLine="Dim xi As Int = 1"; _xi = (int) (1); -RDebugUtils.currentLine=28180484; - //BA.debugLineNum = 28180484;BA.debugLine="If dx < 0 Then"; + //BA.debugLineNum = 1810;BA.debugLine="If dx < 0 Then"; if (_dx<0) { -RDebugUtils.currentLine=28180485; - //BA.debugLineNum = 28180485;BA.debugLine="xi = -1"; + //BA.debugLineNum = 1811;BA.debugLine="xi = -1"; _xi = (int) (-1); -RDebugUtils.currentLine=28180486; - //BA.debugLineNum = 28180486;BA.debugLine="dx = -dx"; + //BA.debugLineNum = 1812;BA.debugLine="dx = -dx"; _dx = (int) (-_dx); }; -RDebugUtils.currentLine=28180488; - //BA.debugLineNum = 28180488;BA.debugLine="Dim D As Int = 2*dx - dy"; + //BA.debugLineNum = 1814;BA.debugLine="Dim D As Int = 2*dx - dy"; _d = (int) (2*_dx-_dy); -RDebugUtils.currentLine=28180489; - //BA.debugLineNum = 28180489;BA.debugLine="Dim x As Int = x0"; + //BA.debugLineNum = 1815;BA.debugLine="Dim x As Int = x0"; _x = _x0; -RDebugUtils.currentLine=28180490; - //BA.debugLineNum = 28180490;BA.debugLine="For y = y0 To y1"; + //BA.debugLineNum = 1816;BA.debugLine="For y = y0 To y1"; { final int step10 = 1; final int limit10 = _y1; _y = _y0 ; for (;_y <= limit10 ;_y = _y + step10 ) { -RDebugUtils.currentLine=28180491; - //BA.debugLineNum = 28180491;BA.debugLine="points(x,y) = 1"; + //BA.debugLineNum = 1817;BA.debugLine="points(x,y) = 1"; _points[_x][_y] = (byte) (1); -RDebugUtils.currentLine=28180492; - //BA.debugLineNum = 28180492;BA.debugLine="If D > 0 Then"; + //BA.debugLineNum = 1818;BA.debugLine="If D > 0 Then"; if (_d>0) { -RDebugUtils.currentLine=28180493; - //BA.debugLineNum = 28180493;BA.debugLine="x = x + xi"; + //BA.debugLineNum = 1819;BA.debugLine="x = x + xi"; _x = (int) (_x+_xi); -RDebugUtils.currentLine=28180494; - //BA.debugLineNum = 28180494;BA.debugLine="D = D - 2*dy"; + //BA.debugLineNum = 1820;BA.debugLine="D = D - 2*dy"; _d = (int) (_d-2*_dy); }; -RDebugUtils.currentLine=28180496; - //BA.debugLineNum = 28180496;BA.debugLine="D = D + 2*dx"; + //BA.debugLineNum = 1822;BA.debugLine="D = D + 2*dx"; _d = (int) (_d+2*_dx); } }; -RDebugUtils.currentLine=28180498; - //BA.debugLineNum = 28180498;BA.debugLine="End Sub"; + //BA.debugLineNum = 1824;BA.debugLine="End Sub"; return ""; } -public String _printandfeedpaper(reparto_izca.keymon.lat.escposprinter __ref,int _units) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "printandfeedpaper", false)) - {return ((String) Debug.delegate(ba, "printandfeedpaper", new Object[] {_units}));} +public String _plotlinelow(int _x0,int _y0,int _x1,int _y1,byte[][] _points) throws Exception{ +int _dx = 0; +int _dy = 0; +int _yi = 0; +int _d = 0; +int _y = 0; +int _x = 0; + //BA.debugLineNum = 1826;BA.debugLine="Private Sub PlotLineLow(x0 As Int, y0 As Int, x1 A"; + //BA.debugLineNum = 1827;BA.debugLine="Dim dx As Int = x1 - x0"; +_dx = (int) (_x1-_x0); + //BA.debugLineNum = 1828;BA.debugLine="Dim dy As Int = y1 - y0"; +_dy = (int) (_y1-_y0); + //BA.debugLineNum = 1829;BA.debugLine="Dim yi As Int = 1"; +_yi = (int) (1); + //BA.debugLineNum = 1830;BA.debugLine="If dy < 0 Then"; +if (_dy<0) { + //BA.debugLineNum = 1831;BA.debugLine="yi = -1"; +_yi = (int) (-1); + //BA.debugLineNum = 1832;BA.debugLine="dy = -dy"; +_dy = (int) (-_dy); + }; + //BA.debugLineNum = 1834;BA.debugLine="Dim D As Int = 2*dy - dx"; +_d = (int) (2*_dy-_dx); + //BA.debugLineNum = 1835;BA.debugLine="Dim y As Int = y0"; +_y = _y0; + //BA.debugLineNum = 1836;BA.debugLine="For x = x0 To x1"; +{ +final int step10 = 1; +final int limit10 = _x1; +_x = _x0 ; +for (;_x <= limit10 ;_x = _x + step10 ) { + //BA.debugLineNum = 1837;BA.debugLine="points(x,y) = 1"; +_points[_x][_y] = (byte) (1); + //BA.debugLineNum = 1838;BA.debugLine="If D > 0 Then"; +if (_d>0) { + //BA.debugLineNum = 1839;BA.debugLine="y = y + yi"; +_y = (int) (_y+_yi); + //BA.debugLineNum = 1840;BA.debugLine="D = D - 2*dx"; +_d = (int) (_d-2*_dx); + }; + //BA.debugLineNum = 1842;BA.debugLine="D = D + 2*dy"; +_d = (int) (_d+2*_dy); + } +}; + //BA.debugLineNum = 1844;BA.debugLine="End Sub"; +return ""; +} +public String _plottriangle(int _x0,int _y0,int _x1,int _y1,int _x2,int _y2,byte[][] _points,int _fill) throws Exception{ + //BA.debugLineNum = 1678;BA.debugLine="Private Sub PlotTriangle(x0 As Int, y0 As Int, x1"; + //BA.debugLineNum = 1680;BA.debugLine="PlotLine(x0, y0, x1, y1, points)"; +_plotline(_x0,_y0,_x1,_y1,_points); + //BA.debugLineNum = 1681;BA.debugLine="PlotLine(x1, y1, x2, y2, points)"; +_plotline(_x1,_y1,_x2,_y2,_points); + //BA.debugLineNum = 1682;BA.debugLine="PlotLine(x2, y2, x0, y0, points)"; +_plotline(_x2,_y2,_x0,_y0,_points); + //BA.debugLineNum = 1683;BA.debugLine="If Fill > 0 Then"; +if (_fill>0) { + //BA.debugLineNum = 1684;BA.debugLine="FillTriangle(x0, y0, x1, y1, x2, y2, points)"; +_filltriangle(_x0,_y0,_x1,_y1,_x2,_y2,_points); + }; + //BA.debugLineNum = 1686;BA.debugLine="End Sub"; +return ""; +} +public String _printandfeedpaper(int _units) throws Exception{ byte[] _params = null; -RDebugUtils.currentLine=26411008; - //BA.debugLineNum = 26411008;BA.debugLine="Public Sub PrintAndFeedPaper(units As Int)"; -RDebugUtils.currentLine=26411009; - //BA.debugLineNum = 26411009;BA.debugLine="WriteString(ESC & \"J\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"J"); -RDebugUtils.currentLine=26411010; - //BA.debugLineNum = 26411010;BA.debugLine="Dim params(1) As Byte"; + //BA.debugLineNum = 1304;BA.debugLine="Public Sub PrintAndFeedPaper(units As Int)"; + //BA.debugLineNum = 1305;BA.debugLine="WriteString(ESC & \"J\")"; +_writestring(_esc+"J"); + //BA.debugLineNum = 1306;BA.debugLine="Dim params(1) As Byte"; _params = new byte[(int) (1)]; ; -RDebugUtils.currentLine=26411011; - //BA.debugLineNum = 26411011;BA.debugLine="params(0) = units"; + //BA.debugLineNum = 1307;BA.debugLine="params(0) = units"; _params[(int) (0)] = (byte) (_units); -RDebugUtils.currentLine=26411012; - //BA.debugLineNum = 26411012;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=26411013; - //BA.debugLineNum = 26411013;BA.debugLine="End Sub"; + //BA.debugLineNum = 1308;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1309;BA.debugLine="End Sub"; return ""; } -public int _printimage2(reparto_izca.keymon.lat.escposprinter __ref,int _width,byte[] _data,boolean _highdensity,boolean _dotds24) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "printimage2", false)) - {return ((Integer) Debug.delegate(ba, "printimage2", new Object[] {_width,_data,_highdensity,_dotds24}));} +public int _printimage(reparto_izca.keymon.lat.escposprinter._animage _img) throws Exception{ +int _xh = 0; +int _xl = 0; +int _yh = 0; +int _yl = 0; +byte[] _params = null; + //BA.debugLineNum = 1981;BA.debugLine="Public Sub PrintImage(img As AnImage) As Int"; + //BA.debugLineNum = 1984;BA.debugLine="If img.width > 72 Then Return -1"; +if (_img.Width /*int*/ >72) { +if (true) return (int) (-1);}; + //BA.debugLineNum = 1985;BA.debugLine="If img.height > 512 Then Return -2"; +if (_img.Height /*int*/ >512) { +if (true) return (int) (-2);}; + //BA.debugLineNum = 1986;BA.debugLine="If img.data.Length < img.width * img.height Then"; +if (_img.Data /*byte[]*/ .length<_img.Width /*int*/ *_img.Height /*int*/ ) { +if (true) return (int) (-3);}; + //BA.debugLineNum = 1987;BA.debugLine="Dim xh As Int = img.width / 256"; +_xh = (int) (_img.Width /*int*/ /(double)256); + //BA.debugLineNum = 1988;BA.debugLine="Dim xl As Int = img.width - xh * 256"; +_xl = (int) (_img.Width /*int*/ -_xh*256); + //BA.debugLineNum = 1989;BA.debugLine="Dim yh As Int = img.height / 256"; +_yh = (int) (_img.Height /*int*/ /(double)256); + //BA.debugLineNum = 1990;BA.debugLine="Dim yl As Int = img.height - yh * 256"; +_yl = (int) (_img.Height /*int*/ -_yh*256); + //BA.debugLineNum = 1991;BA.debugLine="Dim params(5) As Byte"; +_params = new byte[(int) (5)]; +; + //BA.debugLineNum = 1992;BA.debugLine="params(0) = 0 '"; +_params[(int) (0)] = (byte) (0); + //BA.debugLineNum = 1993;BA.debugLine="params(1) = xl"; +_params[(int) (1)] = (byte) (_xl); + //BA.debugLineNum = 1994;BA.debugLine="params(2) = xh"; +_params[(int) (2)] = (byte) (_xh); + //BA.debugLineNum = 1995;BA.debugLine="params(3) = yl"; +_params[(int) (3)] = (byte) (_yl); + //BA.debugLineNum = 1996;BA.debugLine="params(4) = yh"; +_params[(int) (4)] = (byte) (_yh); + //BA.debugLineNum = 1997;BA.debugLine="WriteString(GS & \"v0\")"; +_writestring(_gs+"v0"); + //BA.debugLineNum = 1998;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1999;BA.debugLine="WriteBytes(img.data)"; +_writebytes(_img.Data /*byte[]*/ ); + //BA.debugLineNum = 2000;BA.debugLine="WriteString(CRLF)"; +_writestring(__c.CRLF); + //BA.debugLineNum = 2001;BA.debugLine="Return 0"; +if (true) return (int) (0); + //BA.debugLineNum = 2002;BA.debugLine="End Sub"; +return 0; +} +public int _printimage2(int _width,byte[] _data,boolean _highdensity,boolean _dotds24) throws Exception{ String _d = ""; int _xh = 0; int _xl = 0; byte[] _params = null; -RDebugUtils.currentLine=28704768; - //BA.debugLineNum = 28704768;BA.debugLine="Public Sub PrintImage2(width As Int, data() As Byt"; -RDebugUtils.currentLine=28704769; - //BA.debugLineNum = 28704769;BA.debugLine="Dim d As String = Chr(0)"; + //BA.debugLineNum = 2071;BA.debugLine="Public Sub PrintImage2(width As Int, data() As Byt"; + //BA.debugLineNum = 2072;BA.debugLine="Dim d As String = Chr(0)"; _d = BA.ObjectToString(__c.Chr((int) (0))); -RDebugUtils.currentLine=28704770; - //BA.debugLineNum = 28704770;BA.debugLine="If Not(highdensity) And Not(dotds24 ) Then"; + //BA.debugLineNum = 2073;BA.debugLine="If Not(highdensity) And Not(dotds24 ) Then"; if (__c.Not(_highdensity) && __c.Not(_dotds24)) { -RDebugUtils.currentLine=28704771; - //BA.debugLineNum = 28704771;BA.debugLine="d = Chr(0)"; + //BA.debugLineNum = 2074;BA.debugLine="d = Chr(0)"; _d = BA.ObjectToString(__c.Chr((int) (0))); -RDebugUtils.currentLine=28704772; - //BA.debugLineNum = 28704772;BA.debugLine="If width > 288 Then Return -1"; + //BA.debugLineNum = 2075;BA.debugLine="If width > 288 Then Return -1"; if (_width>288) { if (true) return (int) (-1);}; -RDebugUtils.currentLine=28704773; - //BA.debugLineNum = 28704773;BA.debugLine="If data.Length <> width Then Return -3"; + //BA.debugLineNum = 2076;BA.debugLine="If data.Length <> width Then Return -3"; if (_data.length!=_width) { if (true) return (int) (-3);}; - }else -{RDebugUtils.currentLine=28704774; - //BA.debugLineNum = 28704774;BA.debugLine="Else If highdensity And Not(dotds24) Then"; -if (_highdensity && __c.Not(_dotds24)) { -RDebugUtils.currentLine=28704775; - //BA.debugLineNum = 28704775;BA.debugLine="d = Chr(1)"; + }else if(_highdensity && __c.Not(_dotds24)) { + //BA.debugLineNum = 2078;BA.debugLine="d = Chr(1)"; _d = BA.ObjectToString(__c.Chr((int) (1))); -RDebugUtils.currentLine=28704776; - //BA.debugLineNum = 28704776;BA.debugLine="If width > 576 Then Return -1"; + //BA.debugLineNum = 2079;BA.debugLine="If width > 576 Then Return -1"; if (_width>576) { if (true) return (int) (-1);}; -RDebugUtils.currentLine=28704777; - //BA.debugLineNum = 28704777;BA.debugLine="If data.Length <> width Then Return -3"; + //BA.debugLineNum = 2080;BA.debugLine="If data.Length <> width Then Return -3"; if (_data.length!=_width) { if (true) return (int) (-3);}; - }else -{RDebugUtils.currentLine=28704778; - //BA.debugLineNum = 28704778;BA.debugLine="Else If Not(highdensity) And dotds24 Then"; -if (__c.Not(_highdensity) && _dotds24) { -RDebugUtils.currentLine=28704779; - //BA.debugLineNum = 28704779;BA.debugLine="d = Chr(32)"; + }else if(__c.Not(_highdensity) && _dotds24) { + //BA.debugLineNum = 2082;BA.debugLine="d = Chr(32)"; _d = BA.ObjectToString(__c.Chr((int) (32))); -RDebugUtils.currentLine=28704780; - //BA.debugLineNum = 28704780;BA.debugLine="If width > 288 Then Return -1"; + //BA.debugLineNum = 2083;BA.debugLine="If width > 288 Then Return -1"; if (_width>288) { if (true) return (int) (-1);}; -RDebugUtils.currentLine=28704781; - //BA.debugLineNum = 28704781;BA.debugLine="If data.Length <> width*3 Then Return -3"; + //BA.debugLineNum = 2084;BA.debugLine="If data.Length <> width*3 Then Return -3"; if (_data.length!=_width*3) { if (true) return (int) (-3);}; }else { -RDebugUtils.currentLine=28704783; - //BA.debugLineNum = 28704783;BA.debugLine="d = Chr(33)"; + //BA.debugLineNum = 2086;BA.debugLine="d = Chr(33)"; _d = BA.ObjectToString(__c.Chr((int) (33))); -RDebugUtils.currentLine=28704784; - //BA.debugLineNum = 28704784;BA.debugLine="If width > 576 Then Return -1"; + //BA.debugLineNum = 2087;BA.debugLine="If width > 576 Then Return -1"; if (_width>576) { if (true) return (int) (-1);}; -RDebugUtils.currentLine=28704785; - //BA.debugLineNum = 28704785;BA.debugLine="If data.Length <> width*3 Then Return -3"; + //BA.debugLineNum = 2088;BA.debugLine="If data.Length <> width*3 Then Return -3"; if (_data.length!=_width*3) { if (true) return (int) (-3);}; - }}} -; -RDebugUtils.currentLine=28704787; - //BA.debugLineNum = 28704787;BA.debugLine="Dim xh As Int = width / 256"; + }; + //BA.debugLineNum = 2090;BA.debugLine="Dim xh As Int = width / 256"; _xh = (int) (_width/(double)256); -RDebugUtils.currentLine=28704788; - //BA.debugLineNum = 28704788;BA.debugLine="Dim xl As Int = width - xh * 256"; + //BA.debugLineNum = 2091;BA.debugLine="Dim xl As Int = width - xh * 256"; _xl = (int) (_width-_xh*256); -RDebugUtils.currentLine=28704789; - //BA.debugLineNum = 28704789;BA.debugLine="Dim params(2) As Byte"; + //BA.debugLineNum = 2092;BA.debugLine="Dim params(2) As Byte"; _params = new byte[(int) (2)]; ; -RDebugUtils.currentLine=28704790; - //BA.debugLineNum = 28704790;BA.debugLine="params(0) = xl"; + //BA.debugLineNum = 2093;BA.debugLine="params(0) = xl"; _params[(int) (0)] = (byte) (_xl); -RDebugUtils.currentLine=28704791; - //BA.debugLineNum = 28704791;BA.debugLine="params(1) = xh"; + //BA.debugLineNum = 2094;BA.debugLine="params(1) = xh"; _params[(int) (1)] = (byte) (_xh); -RDebugUtils.currentLine=28704792; - //BA.debugLineNum = 28704792;BA.debugLine="WriteString(ESC & \"*\" & d)"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"*"+_d); -RDebugUtils.currentLine=28704793; - //BA.debugLineNum = 28704793;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=28704794; - //BA.debugLineNum = 28704794;BA.debugLine="WriteBytes(data)"; -__ref._writebytes /*String*/ (null,_data); -RDebugUtils.currentLine=28704795; - //BA.debugLineNum = 28704795;BA.debugLine="WriteString(CRLF)"; -__ref._writestring /*String*/ (null,__c.CRLF); -RDebugUtils.currentLine=28704796; - //BA.debugLineNum = 28704796;BA.debugLine="Return 0"; + //BA.debugLineNum = 2095;BA.debugLine="WriteString(ESC & \"*\" & d)"; +_writestring(_esc+"*"+_d); + //BA.debugLineNum = 2096;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 2097;BA.debugLine="WriteBytes(data)"; +_writebytes(_data); + //BA.debugLineNum = 2098;BA.debugLine="WriteString(CRLF)"; +_writestring(__c.CRLF); + //BA.debugLineNum = 2099;BA.debugLine="Return 0"; if (true) return (int) (0); -RDebugUtils.currentLine=28704797; - //BA.debugLineNum = 28704797;BA.debugLine="End Sub"; + //BA.debugLineNum = 2100;BA.debugLine="End Sub"; return 0; } -public String _reset(reparto_izca.keymon.lat.escposprinter __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "reset", false)) - {return ((String) Debug.delegate(ba, "reset", null));} -RDebugUtils.currentLine=26345472; - //BA.debugLineNum = 26345472;BA.debugLine="Public Sub Reset"; -RDebugUtils.currentLine=26345473; - //BA.debugLineNum = 26345473;BA.debugLine="WriteString(ESC & \"@\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"@"); -RDebugUtils.currentLine=26345474; - //BA.debugLineNum = 26345474;BA.debugLine="End Sub"; +public String _reset() throws Exception{ + //BA.debugLineNum = 1293;BA.debugLine="Public Sub Reset"; + //BA.debugLineNum = 1294;BA.debugLine="WriteString(ESC & \"@\")"; +_writestring(_esc+"@"); + //BA.debugLineNum = 1295;BA.debugLine="End Sub"; return ""; } -public String _serial1_connected(reparto_izca.keymon.lat.escposprinter __ref,boolean _success) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "serial1_connected", false)) - {return ((String) Debug.delegate(ba, "serial1_connected", new Object[] {_success}));} -RDebugUtils.currentLine=29294592; - //BA.debugLineNum = 29294592;BA.debugLine="Private Sub Serial1_Connected (Success As Boolean)"; -RDebugUtils.currentLine=29294593; - //BA.debugLineNum = 29294593;BA.debugLine="If Success Then"; +public String _serial1_connected(boolean _success) throws Exception{ + //BA.debugLineNum = 2259;BA.debugLine="Private Sub Serial1_Connected (Success As Boolean)"; + //BA.debugLineNum = 2260;BA.debugLine="If Success Then"; if (_success) { -RDebugUtils.currentLine=29294594; - //BA.debugLineNum = 29294594;BA.debugLine="Astream.Initialize(Serial1.InputStream, Serial1."; -__ref._astream /*anywheresoftware.b4a.randomaccessfile.AsyncStreams*/ .Initialize(ba,__ref._serial1 /*anywheresoftware.b4a.objects.Serial*/ .getInputStream(),__ref._serial1 /*anywheresoftware.b4a.objects.Serial*/ .getOutputStream(),"astream"); -RDebugUtils.currentLine=29294595; - //BA.debugLineNum = 29294595;BA.debugLine="Connected = True"; -__ref._connected /*boolean*/ = __c.True; -RDebugUtils.currentLine=29294596; - //BA.debugLineNum = 29294596;BA.debugLine="ConnectedError = \"\""; -__ref._connectederror /*String*/ = ""; -RDebugUtils.currentLine=29294597; - //BA.debugLineNum = 29294597;BA.debugLine="Serial1.Listen"; -__ref._serial1 /*anywheresoftware.b4a.objects.Serial*/ .Listen(ba); + //BA.debugLineNum = 2261;BA.debugLine="Astream.Initialize(Serial1.InputStream, Serial1."; +_astream.Initialize(ba,_serial1.getInputStream(),_serial1.getOutputStream(),"astream"); + //BA.debugLineNum = 2262;BA.debugLine="Connected = True"; +_connected = __c.True; + //BA.debugLineNum = 2263;BA.debugLine="ConnectedError = \"\""; +_connectederror = ""; + //BA.debugLineNum = 2264;BA.debugLine="Serial1.Listen"; +_serial1.Listen(ba); }else { -RDebugUtils.currentLine=29294599; - //BA.debugLineNum = 29294599;BA.debugLine="Connected = False"; -__ref._connected /*boolean*/ = __c.False; -RDebugUtils.currentLine=29294600; - //BA.debugLineNum = 29294600;BA.debugLine="ConnectedError = LastException.Message"; -__ref._connectederror /*String*/ = __c.LastException(getActivityBA()).getMessage(); + //BA.debugLineNum = 2266;BA.debugLine="Connected = False"; +_connected = __c.False; + //BA.debugLineNum = 2267;BA.debugLine="ConnectedError = LastException.Message"; +_connectederror = __c.LastException(getActivityBA()).getMessage(); }; -RDebugUtils.currentLine=29294602; - //BA.debugLineNum = 29294602;BA.debugLine="If SubExists(CallBack, EventName & \"_Connected\")"; -if (__c.SubExists(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_Connected")) { -RDebugUtils.currentLine=29294603; - //BA.debugLineNum = 29294603;BA.debugLine="CallSub2(CallBack, EventName & \"_Connected\", Suc"; -__c.CallSubNew2(ba,__ref._callback /*Object*/ ,__ref._eventname /*String*/ +"_Connected",(Object)(_success)); + //BA.debugLineNum = 2269;BA.debugLine="If SubExists(CallBack, EventName & \"_Connected\")"; +if (__c.SubExists(ba,_callback,_eventname+"_Connected")) { + //BA.debugLineNum = 2270;BA.debugLine="CallSub2(CallBack, EventName & \"_Connected\", Suc"; +__c.CallSubNew2(ba,_callback,_eventname+"_Connected",(Object)(_success)); }; -RDebugUtils.currentLine=29294605; - //BA.debugLineNum = 29294605;BA.debugLine="End Sub"; + //BA.debugLineNum = 2272;BA.debugLine="End Sub"; return ""; } -public String _setbarcodeheight(reparto_izca.keymon.lat.escposprinter __ref,int _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setbarcodeheight", false)) - {return ((String) Debug.delegate(ba, "setbarcodeheight", new Object[] {_height}));} +public String _setbarcodeheight(int _height) throws Exception{ byte[] _params = null; -RDebugUtils.currentLine=28835840; - //BA.debugLineNum = 28835840;BA.debugLine="Public Sub setBarCodeHeight(height As Int)"; -RDebugUtils.currentLine=28835841; - //BA.debugLineNum = 28835841;BA.debugLine="WriteString(GS & \"h\")"; -__ref._writestring /*String*/ (null,__ref._gs /*String*/ +"h"); -RDebugUtils.currentLine=28835842; - //BA.debugLineNum = 28835842;BA.debugLine="Dim params(1) As Byte"; + //BA.debugLineNum = 2163;BA.debugLine="Public Sub setBarCodeHeight(height As Int)"; + //BA.debugLineNum = 2164;BA.debugLine="WriteString(GS & \"h\")"; +_writestring(_gs+"h"); + //BA.debugLineNum = 2165;BA.debugLine="Dim params(1) As Byte"; _params = new byte[(int) (1)]; ; -RDebugUtils.currentLine=28835843; - //BA.debugLineNum = 28835843;BA.debugLine="params(0) = height"; + //BA.debugLineNum = 2166;BA.debugLine="params(0) = height"; _params[(int) (0)] = (byte) (_height); -RDebugUtils.currentLine=28835844; - //BA.debugLineNum = 28835844;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=28835845; - //BA.debugLineNum = 28835845;BA.debugLine="End Sub"; + //BA.debugLineNum = 2167;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 2168;BA.debugLine="End Sub"; return ""; } -public String _setbarcodeleft(reparto_izca.keymon.lat.escposprinter __ref,int _left) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setbarcodeleft", false)) - {return ((String) Debug.delegate(ba, "setbarcodeleft", new Object[] {_left}));} +public String _setbarcodeleft(int _left) throws Exception{ byte[] _params = null; -RDebugUtils.currentLine=28901376; - //BA.debugLineNum = 28901376;BA.debugLine="Public Sub setBarCodeLeft(left As Int)"; -RDebugUtils.currentLine=28901377; - //BA.debugLineNum = 28901377;BA.debugLine="WriteString(GS & \"x\")"; -__ref._writestring /*String*/ (null,__ref._gs /*String*/ +"x"); -RDebugUtils.currentLine=28901378; - //BA.debugLineNum = 28901378;BA.debugLine="Dim params(1) As Byte"; + //BA.debugLineNum = 2172;BA.debugLine="Public Sub setBarCodeLeft(left As Int)"; + //BA.debugLineNum = 2173;BA.debugLine="WriteString(GS & \"x\")"; +_writestring(_gs+"x"); + //BA.debugLineNum = 2174;BA.debugLine="Dim params(1) As Byte"; _params = new byte[(int) (1)]; ; -RDebugUtils.currentLine=28901379; - //BA.debugLineNum = 28901379;BA.debugLine="params(0) = left"; + //BA.debugLineNum = 2175;BA.debugLine="params(0) = left"; _params[(int) (0)] = (byte) (_left); -RDebugUtils.currentLine=28901380; - //BA.debugLineNum = 28901380;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=28901381; - //BA.debugLineNum = 28901381;BA.debugLine="End Sub"; + //BA.debugLineNum = 2176;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 2177;BA.debugLine="End Sub"; return ""; } -public String _setbarcodewidth(reparto_izca.keymon.lat.escposprinter __ref,int _width) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setbarcodewidth", false)) - {return ((String) Debug.delegate(ba, "setbarcodewidth", new Object[] {_width}));} +public String _setbarcodewidth(int _width) throws Exception{ byte[] _params = null; -RDebugUtils.currentLine=28966912; - //BA.debugLineNum = 28966912;BA.debugLine="Public Sub setBarCodeWidth(width As Int)"; -RDebugUtils.currentLine=28966913; - //BA.debugLineNum = 28966913;BA.debugLine="WriteString(GS & \"w\")"; -__ref._writestring /*String*/ (null,__ref._gs /*String*/ +"w"); -RDebugUtils.currentLine=28966914; - //BA.debugLineNum = 28966914;BA.debugLine="Dim params(1) As Byte"; + //BA.debugLineNum = 2182;BA.debugLine="Public Sub setBarCodeWidth(width As Int)"; + //BA.debugLineNum = 2183;BA.debugLine="WriteString(GS & \"w\")"; +_writestring(_gs+"w"); + //BA.debugLineNum = 2184;BA.debugLine="Dim params(1) As Byte"; _params = new byte[(int) (1)]; ; -RDebugUtils.currentLine=28966915; - //BA.debugLineNum = 28966915;BA.debugLine="params(0) = width"; + //BA.debugLineNum = 2185;BA.debugLine="params(0) = width"; _params[(int) (0)] = (byte) (_width); -RDebugUtils.currentLine=28966916; - //BA.debugLineNum = 28966916;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=28966917; - //BA.debugLineNum = 28966917;BA.debugLine="End Sub"; + //BA.debugLineNum = 2186;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 2187;BA.debugLine="End Sub"; return ""; } -public String _setcharacterfont(reparto_izca.keymon.lat.escposprinter __ref,int _font) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setcharacterfont", false)) - {return ((String) Debug.delegate(ba, "setcharacterfont", new Object[] {_font}));} -RDebugUtils.currentLine=26935296; - //BA.debugLineNum = 26935296;BA.debugLine="Public Sub setCharacterFont(font As Int)"; -RDebugUtils.currentLine=26935297; - //BA.debugLineNum = 26935297;BA.debugLine="WriteString(ESC & \"M\" & Chr(Bit.And(1,font)))"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"M"+BA.ObjectToString(__c.Chr(__c.Bit.And((int) (1),_font)))); -RDebugUtils.currentLine=26935298; - //BA.debugLineNum = 26935298;BA.debugLine="End Sub"; +public String _setcharacterfont(int _font) throws Exception{ + //BA.debugLineNum = 1391;BA.debugLine="Public Sub setCharacterFont(font As Int)"; + //BA.debugLineNum = 1392;BA.debugLine="WriteString(ESC & \"M\" & Chr(Bit.And(1,font)))"; +_writestring(_esc+"M"+BA.ObjectToString(__c.Chr(__c.Bit.And((int) (1),_font)))); + //BA.debugLineNum = 1393;BA.debugLine="End Sub"; return ""; } -public String _setcharacterspacing(reparto_izca.keymon.lat.escposprinter __ref,int _spacing) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setcharacterspacing", false)) - {return ((String) Debug.delegate(ba, "setcharacterspacing", new Object[] {_spacing}));} +public String _setcharacterspacing(int _spacing) throws Exception{ byte[] _params = null; -RDebugUtils.currentLine=26476544; - //BA.debugLineNum = 26476544;BA.debugLine="Public Sub setCharacterSpacing(spacing As Int)"; -RDebugUtils.currentLine=26476545; - //BA.debugLineNum = 26476545;BA.debugLine="WriteString(ESC & \" \")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +" "); -RDebugUtils.currentLine=26476546; - //BA.debugLineNum = 26476546;BA.debugLine="Dim params(1) As Byte"; + //BA.debugLineNum = 1312;BA.debugLine="Public Sub setCharacterSpacing(spacing As Int)"; + //BA.debugLineNum = 1313;BA.debugLine="WriteString(ESC & \" \")"; +_writestring(_esc+" "); + //BA.debugLineNum = 1314;BA.debugLine="Dim params(1) As Byte"; _params = new byte[(int) (1)]; ; -RDebugUtils.currentLine=26476547; - //BA.debugLineNum = 26476547;BA.debugLine="params(0) = spacing"; + //BA.debugLineNum = 1315;BA.debugLine="params(0) = spacing"; _params[(int) (0)] = (byte) (_spacing); -RDebugUtils.currentLine=26476548; - //BA.debugLineNum = 26476548;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=26476549; - //BA.debugLineNum = 26476549;BA.debugLine="End Sub"; + //BA.debugLineNum = 1316;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1317;BA.debugLine="End Sub"; return ""; } -public String _setcodepage(reparto_izca.keymon.lat.escposprinter __ref,int _codepage) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setcodepage", false)) - {return ((String) Debug.delegate(ba, "setcodepage", new Object[] {_codepage}));} +public String _setcodepage(int _codepage) throws Exception{ byte[] _params = null; -RDebugUtils.currentLine=26869760; - //BA.debugLineNum = 26869760;BA.debugLine="Public Sub setCodePage(codepage As Int)"; -RDebugUtils.currentLine=26869761; - //BA.debugLineNum = 26869761;BA.debugLine="WriteString(ESC & \"t\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"t"); -RDebugUtils.currentLine=26869762; - //BA.debugLineNum = 26869762;BA.debugLine="Dim params(1) As Byte"; + //BA.debugLineNum = 1380;BA.debugLine="Public Sub setCodePage(codepage As Int)"; + //BA.debugLineNum = 1381;BA.debugLine="WriteString(ESC & \"t\")"; +_writestring(_esc+"t"); + //BA.debugLineNum = 1382;BA.debugLine="Dim params(1) As Byte"; _params = new byte[(int) (1)]; ; -RDebugUtils.currentLine=26869763; - //BA.debugLineNum = 26869763;BA.debugLine="params(0) = codepage"; + //BA.debugLineNum = 1383;BA.debugLine="params(0) = codepage"; _params[(int) (0)] = (byte) (_codepage); -RDebugUtils.currentLine=26869764; - //BA.debugLineNum = 26869764;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=26869765; - //BA.debugLineNum = 26869765;BA.debugLine="End Sub"; + //BA.debugLineNum = 1384;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1385;BA.debugLine="End Sub"; return ""; } -public String _sethrifont(reparto_izca.keymon.lat.escposprinter __ref,int _font) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "sethrifont", false)) - {return ((String) Debug.delegate(ba, "sethrifont", new Object[] {_font}));} -RDebugUtils.currentLine=29097984; - //BA.debugLineNum = 29097984;BA.debugLine="Public Sub setHriFont(font As Int)"; -RDebugUtils.currentLine=29097985; - //BA.debugLineNum = 29097985;BA.debugLine="WriteString(GS & \"f\" & Chr(font))"; -__ref._writestring /*String*/ (null,__ref._gs /*String*/ +"f"+BA.ObjectToString(__c.Chr(_font))); -RDebugUtils.currentLine=29097986; - //BA.debugLineNum = 29097986;BA.debugLine="End Sub"; +public String _sethrifont(int _font) throws Exception{ + //BA.debugLineNum = 2204;BA.debugLine="Public Sub setHriFont(font As Int)"; + //BA.debugLineNum = 2205;BA.debugLine="WriteString(GS & \"f\" & Chr(font))"; +_writestring(_gs+"f"+BA.ObjectToString(__c.Chr(_font))); + //BA.debugLineNum = 2206;BA.debugLine="End Sub"; return ""; } -public String _sethriposn(reparto_izca.keymon.lat.escposprinter __ref,int _posn) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "sethriposn", false)) - {return ((String) Debug.delegate(ba, "sethriposn", new Object[] {_posn}));} +public String _sethriposn(int _posn) throws Exception{ byte[] _params = null; -RDebugUtils.currentLine=29032448; - //BA.debugLineNum = 29032448;BA.debugLine="Public Sub setHriPosn(posn As Int)"; -RDebugUtils.currentLine=29032449; - //BA.debugLineNum = 29032449;BA.debugLine="WriteString(GS & \"H\")"; -__ref._writestring /*String*/ (null,__ref._gs /*String*/ +"H"); -RDebugUtils.currentLine=29032450; - //BA.debugLineNum = 29032450;BA.debugLine="Dim params(1) As Byte"; + //BA.debugLineNum = 2193;BA.debugLine="Public Sub setHriPosn(posn As Int)"; + //BA.debugLineNum = 2194;BA.debugLine="WriteString(GS & \"H\")"; +_writestring(_gs+"H"); + //BA.debugLineNum = 2195;BA.debugLine="Dim params(1) As Byte"; _params = new byte[(int) (1)]; ; -RDebugUtils.currentLine=29032451; - //BA.debugLineNum = 29032451;BA.debugLine="params(0) = posn"; + //BA.debugLineNum = 2196;BA.debugLine="params(0) = posn"; _params[(int) (0)] = (byte) (_posn); -RDebugUtils.currentLine=29032452; - //BA.debugLineNum = 29032452;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=29032453; - //BA.debugLineNum = 29032453;BA.debugLine="End Sub"; + //BA.debugLineNum = 2197;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 2198;BA.debugLine="End Sub"; return ""; } -public String _setleftinset(reparto_izca.keymon.lat.escposprinter __ref,int _inset) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setleftinset", false)) - {return ((String) Debug.delegate(ba, "setleftinset", new Object[] {_inset}));} +public String _setjustify(int _justify) throws Exception{ + //BA.debugLineNum = 1374;BA.debugLine="Public Sub setJustify(justify As Int)"; + //BA.debugLineNum = 1375;BA.debugLine="WriteString(ESC & \"a\" & Chr(justify + 48))"; +_writestring(_esc+"a"+BA.ObjectToString(__c.Chr((int) (_justify+48)))); + //BA.debugLineNum = 1376;BA.debugLine="End Sub"; +return ""; +} +public String _setleftinset(int _inset) throws Exception{ int _dh = 0; int _dl = 0; byte[] _params = null; -RDebugUtils.currentLine=26542080; - //BA.debugLineNum = 26542080;BA.debugLine="Public Sub setLeftInset(inset As Int)"; -RDebugUtils.currentLine=26542081; - //BA.debugLineNum = 26542081;BA.debugLine="Dim dh As Int = inset / 256"; + //BA.debugLineNum = 1322;BA.debugLine="Public Sub setLeftInset(inset As Int)"; + //BA.debugLineNum = 1323;BA.debugLine="Dim dh As Int = inset / 256"; _dh = (int) (_inset/(double)256); -RDebugUtils.currentLine=26542082; - //BA.debugLineNum = 26542082;BA.debugLine="Dim dl As Int = inset - dh"; + //BA.debugLineNum = 1324;BA.debugLine="Dim dl As Int = inset - dh"; _dl = (int) (_inset-_dh); -RDebugUtils.currentLine=26542083; - //BA.debugLineNum = 26542083;BA.debugLine="WriteString(ESC & \"$\" & Chr(dl) & Chr(dh))"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"$"+BA.ObjectToString(__c.Chr(_dl))+BA.ObjectToString(__c.Chr(_dh))); -RDebugUtils.currentLine=26542084; - //BA.debugLineNum = 26542084;BA.debugLine="Dim params(2) As Byte"; + //BA.debugLineNum = 1325;BA.debugLine="WriteString(ESC & \"$\" & Chr(dl) & Chr(dh))"; +_writestring(_esc+"$"+BA.ObjectToString(__c.Chr(_dl))+BA.ObjectToString(__c.Chr(_dh))); + //BA.debugLineNum = 1326;BA.debugLine="Dim params(2) As Byte"; _params = new byte[(int) (2)]; ; -RDebugUtils.currentLine=26542085; - //BA.debugLineNum = 26542085;BA.debugLine="params(0) = dl"; + //BA.debugLineNum = 1327;BA.debugLine="params(0) = dl"; _params[(int) (0)] = (byte) (_dl); -RDebugUtils.currentLine=26542086; - //BA.debugLineNum = 26542086;BA.debugLine="params(1) = dh"; + //BA.debugLineNum = 1328;BA.debugLine="params(1) = dh"; _params[(int) (1)] = (byte) (_dh); -RDebugUtils.currentLine=26542087; - //BA.debugLineNum = 26542087;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=26542088; - //BA.debugLineNum = 26542088;BA.debugLine="End Sub"; + //BA.debugLineNum = 1329;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1330;BA.debugLine="End Sub"; return ""; } -public String _setleftmargin(reparto_izca.keymon.lat.escposprinter __ref,int _margin) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setleftmargin", false)) - {return ((String) Debug.delegate(ba, "setleftmargin", new Object[] {_margin}));} +public String _setleftmargin(int _margin) throws Exception{ int _dh = 0; int _dl = 0; byte[] _params = null; -RDebugUtils.currentLine=26607616; - //BA.debugLineNum = 26607616;BA.debugLine="Public Sub setLeftMargin(margin As Int)"; -RDebugUtils.currentLine=26607617; - //BA.debugLineNum = 26607617;BA.debugLine="Dim dh As Int = margin / 256"; + //BA.debugLineNum = 1335;BA.debugLine="Public Sub setLeftMargin(margin As Int)"; + //BA.debugLineNum = 1336;BA.debugLine="Dim dh As Int = margin / 256"; _dh = (int) (_margin/(double)256); -RDebugUtils.currentLine=26607618; - //BA.debugLineNum = 26607618;BA.debugLine="Dim dl As Int = margin - dh"; + //BA.debugLineNum = 1337;BA.debugLine="Dim dl As Int = margin - dh"; _dl = (int) (_margin-_dh); -RDebugUtils.currentLine=26607619; - //BA.debugLineNum = 26607619;BA.debugLine="WriteString(GS & \"L\")"; -__ref._writestring /*String*/ (null,__ref._gs /*String*/ +"L"); -RDebugUtils.currentLine=26607620; - //BA.debugLineNum = 26607620;BA.debugLine="Dim params(2) As Byte"; + //BA.debugLineNum = 1338;BA.debugLine="WriteString(GS & \"L\")"; +_writestring(_gs+"L"); + //BA.debugLineNum = 1339;BA.debugLine="Dim params(2) As Byte"; _params = new byte[(int) (2)]; ; -RDebugUtils.currentLine=26607621; - //BA.debugLineNum = 26607621;BA.debugLine="params(0) = dl"; + //BA.debugLineNum = 1340;BA.debugLine="params(0) = dl"; _params[(int) (0)] = (byte) (_dl); -RDebugUtils.currentLine=26607622; - //BA.debugLineNum = 26607622;BA.debugLine="params(1) = dh"; + //BA.debugLineNum = 1341;BA.debugLine="params(1) = dh"; _params[(int) (1)] = (byte) (_dh); -RDebugUtils.currentLine=26607623; - //BA.debugLineNum = 26607623;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=26607624; - //BA.debugLineNum = 26607624;BA.debugLine="End Sub"; + //BA.debugLineNum = 1342;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1343;BA.debugLine="End Sub"; return ""; } -public String _setlinespacing(reparto_izca.keymon.lat.escposprinter __ref,int _spacing) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setlinespacing", false)) - {return ((String) Debug.delegate(ba, "setlinespacing", new Object[] {_spacing}));} +public String _setlinespacing(int _spacing) throws Exception{ byte[] _params = null; -RDebugUtils.currentLine=26738688; - //BA.debugLineNum = 26738688;BA.debugLine="Public Sub setLineSpacing(spacing As Int)"; -RDebugUtils.currentLine=26738689; - //BA.debugLineNum = 26738689;BA.debugLine="If spacing < 0 Then"; + //BA.debugLineNum = 1361;BA.debugLine="Public Sub setLineSpacing(spacing As Int)"; + //BA.debugLineNum = 1362;BA.debugLine="If spacing < 0 Then"; if (_spacing<0) { -RDebugUtils.currentLine=26738690; - //BA.debugLineNum = 26738690;BA.debugLine="WriteString(ESC & \"2\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"2"); + //BA.debugLineNum = 1363;BA.debugLine="WriteString(ESC & \"2\")"; +_writestring(_esc+"2"); }else { -RDebugUtils.currentLine=26738692; - //BA.debugLineNum = 26738692;BA.debugLine="WriteString(ESC & \"3\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"3"); -RDebugUtils.currentLine=26738693; - //BA.debugLineNum = 26738693;BA.debugLine="Dim params(1) As Byte"; + //BA.debugLineNum = 1365;BA.debugLine="WriteString(ESC & \"3\")"; +_writestring(_esc+"3"); + //BA.debugLineNum = 1366;BA.debugLine="Dim params(1) As Byte"; _params = new byte[(int) (1)]; ; -RDebugUtils.currentLine=26738694; - //BA.debugLineNum = 26738694;BA.debugLine="params(0) = spacing"; + //BA.debugLineNum = 1367;BA.debugLine="params(0) = spacing"; _params[(int) (0)] = (byte) (_spacing); -RDebugUtils.currentLine=26738695; - //BA.debugLineNum = 26738695;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); + //BA.debugLineNum = 1368;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); }; -RDebugUtils.currentLine=26738697; - //BA.debugLineNum = 26738697;BA.debugLine="End Sub"; + //BA.debugLineNum = 1370;BA.debugLine="End Sub"; return ""; } -public String _setprintwidth(reparto_izca.keymon.lat.escposprinter __ref,int _width) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setprintwidth", false)) - {return ((String) Debug.delegate(ba, "setprintwidth", new Object[] {_width}));} +public String _setprintwidth(int _width) throws Exception{ int _dh = 0; int _dl = 0; byte[] _params = null; -RDebugUtils.currentLine=26673152; - //BA.debugLineNum = 26673152;BA.debugLine="Public Sub setPrintWidth(width As Int)"; -RDebugUtils.currentLine=26673153; - //BA.debugLineNum = 26673153;BA.debugLine="Dim dh As Int = width / 256"; + //BA.debugLineNum = 1349;BA.debugLine="Public Sub setPrintWidth(width As Int)"; + //BA.debugLineNum = 1350;BA.debugLine="Dim dh As Int = width / 256"; _dh = (int) (_width/(double)256); -RDebugUtils.currentLine=26673154; - //BA.debugLineNum = 26673154;BA.debugLine="Dim dl As Int = width - dh"; + //BA.debugLineNum = 1351;BA.debugLine="Dim dl As Int = width - dh"; _dl = (int) (_width-_dh); -RDebugUtils.currentLine=26673155; - //BA.debugLineNum = 26673155;BA.debugLine="WriteString(GS & \"W\")"; -__ref._writestring /*String*/ (null,__ref._gs /*String*/ +"W"); -RDebugUtils.currentLine=26673156; - //BA.debugLineNum = 26673156;BA.debugLine="Dim params(2) As Byte"; + //BA.debugLineNum = 1352;BA.debugLine="WriteString(GS & \"W\")"; +_writestring(_gs+"W"); + //BA.debugLineNum = 1353;BA.debugLine="Dim params(2) As Byte"; _params = new byte[(int) (2)]; ; -RDebugUtils.currentLine=26673157; - //BA.debugLineNum = 26673157;BA.debugLine="params(0) = dl"; + //BA.debugLineNum = 1354;BA.debugLine="params(0) = dl"; _params[(int) (0)] = (byte) (_dl); -RDebugUtils.currentLine=26673158; - //BA.debugLineNum = 26673158;BA.debugLine="params(1) = dh"; + //BA.debugLineNum = 1355;BA.debugLine="params(1) = dh"; _params[(int) (1)] = (byte) (_dh); -RDebugUtils.currentLine=26673159; - //BA.debugLineNum = 26673159;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=26673160; - //BA.debugLineNum = 26673160;BA.debugLine="End Sub"; + //BA.debugLineNum = 1356;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1357;BA.debugLine="End Sub"; return ""; } -public String _setrelativeprintposn(reparto_izca.keymon.lat.escposprinter __ref,int _relposn) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setrelativeprintposn", false)) - {return ((String) Debug.delegate(ba, "setrelativeprintposn", new Object[] {_relposn}));} +public String _setrelativeprintposn(int _relposn) throws Exception{ int _dh = 0; int _dl = 0; byte[] _params = null; -RDebugUtils.currentLine=27066368; - //BA.debugLineNum = 27066368;BA.debugLine="Public Sub setRelativePrintPosn(relposn As Int)"; -RDebugUtils.currentLine=27066369; - //BA.debugLineNum = 27066369;BA.debugLine="Dim dh As Int = relposn / 256"; + //BA.debugLineNum = 1413;BA.debugLine="Public Sub setRelativePrintPosn(relposn As Int)"; + //BA.debugLineNum = 1414;BA.debugLine="Dim dh As Int = relposn / 256"; _dh = (int) (_relposn/(double)256); -RDebugUtils.currentLine=27066370; - //BA.debugLineNum = 27066370;BA.debugLine="Dim dl As Int = relposn - dh"; + //BA.debugLineNum = 1415;BA.debugLine="Dim dl As Int = relposn - dh"; _dl = (int) (_relposn-_dh); -RDebugUtils.currentLine=27066371; - //BA.debugLineNum = 27066371;BA.debugLine="WriteString(ESC & \"\\\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"\\"); -RDebugUtils.currentLine=27066372; - //BA.debugLineNum = 27066372;BA.debugLine="Dim params(2) As Byte"; + //BA.debugLineNum = 1416;BA.debugLine="WriteString(ESC & \"\\\")"; +_writestring(_esc+"\\"); + //BA.debugLineNum = 1417;BA.debugLine="Dim params(2) As Byte"; _params = new byte[(int) (2)]; ; -RDebugUtils.currentLine=27066373; - //BA.debugLineNum = 27066373;BA.debugLine="params(0) = dl"; + //BA.debugLineNum = 1418;BA.debugLine="params(0) = dl"; _params[(int) (0)] = (byte) (_dl); -RDebugUtils.currentLine=27066374; - //BA.debugLineNum = 27066374;BA.debugLine="params(1) = dh"; + //BA.debugLineNum = 1419;BA.debugLine="params(1) = dh"; _params[(int) (1)] = (byte) (_dh); -RDebugUtils.currentLine=27066375; - //BA.debugLineNum = 27066375;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=27066376; - //BA.debugLineNum = 27066376;BA.debugLine="End Sub"; + //BA.debugLineNum = 1420;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 1421;BA.debugLine="End Sub"; return ""; } -public String _settabpositions(reparto_izca.keymon.lat.escposprinter __ref,int[] _tabs) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "settabpositions", false)) - {return ((String) Debug.delegate(ba, "settabpositions", new Object[] {_tabs}));} +public String _settabpositions(int[] _tabs) throws Exception{ byte[] _data = null; int _i = 0; -RDebugUtils.currentLine=27000832; - //BA.debugLineNum = 27000832;BA.debugLine="Public Sub setTabPositions(tabs() As Int)"; -RDebugUtils.currentLine=27000833; - //BA.debugLineNum = 27000833;BA.debugLine="WriteString(ESC & \"D\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"D"); -RDebugUtils.currentLine=27000834; - //BA.debugLineNum = 27000834;BA.debugLine="Dim data(tabs.Length+1) As Byte"; + //BA.debugLineNum = 1399;BA.debugLine="Public Sub setTabPositions(tabs() As Int)"; + //BA.debugLineNum = 1400;BA.debugLine="WriteString(ESC & \"D\")"; +_writestring(_esc+"D"); + //BA.debugLineNum = 1401;BA.debugLine="Dim data(tabs.Length+1) As Byte"; _data = new byte[(int) (_tabs.length+1)]; ; -RDebugUtils.currentLine=27000835; - //BA.debugLineNum = 27000835;BA.debugLine="For i = 0 To tabs.Length - 1"; + //BA.debugLineNum = 1402;BA.debugLine="For i = 0 To tabs.Length - 1"; { final int step3 = 1; final int limit3 = (int) (_tabs.length-1); _i = (int) (0) ; for (;_i <= limit3 ;_i = _i + step3 ) { -RDebugUtils.currentLine=27000836; - //BA.debugLineNum = 27000836;BA.debugLine="data(i) = tabs(i)"; + //BA.debugLineNum = 1403;BA.debugLine="data(i) = tabs(i)"; _data[_i] = (byte) (_tabs[_i]); } }; -RDebugUtils.currentLine=27000838; - //BA.debugLineNum = 27000838;BA.debugLine="data(tabs.Length) = 0"; + //BA.debugLineNum = 1405;BA.debugLine="data(tabs.Length) = 0"; _data[_tabs.length] = (byte) (0); -RDebugUtils.currentLine=27000839; - //BA.debugLineNum = 27000839;BA.debugLine="WriteBytes(data)"; -__ref._writebytes /*String*/ (null,_data); -RDebugUtils.currentLine=27000840; - //BA.debugLineNum = 27000840;BA.debugLine="End Sub"; + //BA.debugLineNum = 1406;BA.debugLine="WriteBytes(data)"; +_writebytes(_data); + //BA.debugLineNum = 1407;BA.debugLine="End Sub"; return ""; } -public String _setusecustomcharacters(reparto_izca.keymon.lat.escposprinter __ref,boolean _custom) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "setusecustomcharacters", false)) - {return ((String) Debug.delegate(ba, "setusecustomcharacters", new Object[] {_custom}));} -RDebugUtils.currentLine=27394048; - //BA.debugLineNum = 27394048;BA.debugLine="Public Sub setUseCustomCharacters(custom As Boolea"; -RDebugUtils.currentLine=27394049; - //BA.debugLineNum = 27394049;BA.debugLine="If custom Then"; +public String _setusecustomcharacters(boolean _custom) throws Exception{ + //BA.debugLineNum = 1473;BA.debugLine="Public Sub setUseCustomCharacters(custom As Boolea"; + //BA.debugLineNum = 1474;BA.debugLine="If custom Then"; if (_custom) { -RDebugUtils.currentLine=27394050; - //BA.debugLineNum = 27394050;BA.debugLine="WriteString(ESC & \"%1\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"%1"); + //BA.debugLineNum = 1475;BA.debugLine="WriteString(ESC & \"%1\")"; +_writestring(_esc+"%1"); }else { -RDebugUtils.currentLine=27394052; - //BA.debugLineNum = 27394052;BA.debugLine="WriteString(ESC & \"%0\")"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"%0"); + //BA.debugLineNum = 1477;BA.debugLine="WriteString(ESC & \"%0\")"; +_writestring(_esc+"%0"); }; -RDebugUtils.currentLine=27394054; - //BA.debugLineNum = 27394054;BA.debugLine="End Sub"; + //BA.debugLineNum = 1479;BA.debugLine="End Sub"; return ""; } -public reparto_izca.keymon.lat.escposprinter._animage _thresholdimage(reparto_izca.keymon.lat.escposprinter __ref,reparto_izca.keymon.lat.escposprinter._animage _img,int _threshold) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "thresholdimage", false)) - {return ((reparto_izca.keymon.lat.escposprinter._animage) Debug.delegate(ba, "thresholdimage", new Object[] {_img,_threshold}));} +public reparto_izca.keymon.lat.escposprinter._animage _thresholdimage(reparto_izca.keymon.lat.escposprinter._animage _img,int _threshold) throws Exception{ byte[] _pixels = null; int _i = 0; int _lum = 0; reparto_izca.keymon.lat.escposprinter._animage _ret = null; -RDebugUtils.currentLine=28377088; - //BA.debugLineNum = 28377088;BA.debugLine="Sub ThresholdImage(img As AnImage, threshold As In"; -RDebugUtils.currentLine=28377089; - //BA.debugLineNum = 28377089;BA.debugLine="Dim pixels(img.Data.Length) As Byte"; + //BA.debugLineNum = 1884;BA.debugLine="Sub ThresholdImage(img As AnImage, threshold As In"; + //BA.debugLineNum = 1885;BA.debugLine="Dim pixels(img.Data.Length) As Byte"; _pixels = new byte[_img.Data /*byte[]*/ .length]; ; -RDebugUtils.currentLine=28377090; - //BA.debugLineNum = 28377090;BA.debugLine="For i = 0 To pixels.Length - 1"; + //BA.debugLineNum = 1886;BA.debugLine="For i = 0 To pixels.Length - 1"; { final int step2 = 1; final int limit2 = (int) (_pixels.length-1); _i = (int) (0) ; for (;_i <= limit2 ;_i = _i + step2 ) { -RDebugUtils.currentLine=28377091; - //BA.debugLineNum = 28377091;BA.debugLine="Dim lum As Int = Bit.And(img.Data(i), 0xff) ' by"; + //BA.debugLineNum = 1887;BA.debugLine="Dim lum As Int = Bit.And(img.Data(i), 0xff) ' by"; _lum = __c.Bit.And((int) (_img.Data /*byte[]*/ [_i]),((int)0xff)); -RDebugUtils.currentLine=28377092; - //BA.debugLineNum = 28377092;BA.debugLine="If lum < threshold Then"; + //BA.debugLineNum = 1888;BA.debugLine="If lum < threshold Then"; if (_lum<_threshold) { -RDebugUtils.currentLine=28377093; - //BA.debugLineNum = 28377093;BA.debugLine="lum = 1"; + //BA.debugLineNum = 1889;BA.debugLine="lum = 1"; _lum = (int) (1); }else { -RDebugUtils.currentLine=28377095; - //BA.debugLineNum = 28377095;BA.debugLine="lum = 0"; + //BA.debugLineNum = 1891;BA.debugLine="lum = 0"; _lum = (int) (0); }; -RDebugUtils.currentLine=28377097; - //BA.debugLineNum = 28377097;BA.debugLine="pixels(i) = lum"; + //BA.debugLineNum = 1893;BA.debugLine="pixels(i) = lum"; _pixels[_i] = (byte) (_lum); } }; -RDebugUtils.currentLine=28377099; - //BA.debugLineNum = 28377099;BA.debugLine="Dim ret As AnImage"; + //BA.debugLineNum = 1895;BA.debugLine="Dim ret As AnImage"; _ret = new reparto_izca.keymon.lat.escposprinter._animage(); -RDebugUtils.currentLine=28377100; - //BA.debugLineNum = 28377100;BA.debugLine="ret.Width = img.Width"; + //BA.debugLineNum = 1896;BA.debugLine="ret.Width = img.Width"; _ret.Width /*int*/ = _img.Width /*int*/ ; -RDebugUtils.currentLine=28377101; - //BA.debugLineNum = 28377101;BA.debugLine="ret.Height = img.Height"; + //BA.debugLineNum = 1897;BA.debugLine="ret.Height = img.Height"; _ret.Height /*int*/ = _img.Height /*int*/ ; -RDebugUtils.currentLine=28377102; - //BA.debugLineNum = 28377102;BA.debugLine="ret.Data = pixels"; + //BA.debugLineNum = 1898;BA.debugLine="ret.Data = pixels"; _ret.Data /*byte[]*/ = _pixels; -RDebugUtils.currentLine=28377103; - //BA.debugLineNum = 28377103;BA.debugLine="Return ret"; + //BA.debugLineNum = 1899;BA.debugLine="Return ret"; if (true) return _ret; -RDebugUtils.currentLine=28377104; - //BA.debugLineNum = 28377104;BA.debugLine="End Sub"; + //BA.debugLineNum = 1900;BA.debugLine="End Sub"; return null; } -public String _writeqrcode(reparto_izca.keymon.lat.escposprinter __ref,int _size,String _ec,int _scale,String _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "writeqrcode", false)) - {return ((String) Debug.delegate(ba, "writeqrcode", new Object[] {_size,_ec,_scale,_data}));} +public String _writebarcode(String _bartype,String _data) throws Exception{ +byte[] _databytes = null; +int _dlow = 0; +byte[] _params = null; + //BA.debugLineNum = 2220;BA.debugLine="Public Sub WriteBarCode(bartype As String, data As"; + //BA.debugLineNum = 2221;BA.debugLine="Dim databytes() As Byte = data.GetBytes(\"ASCII\")"; +_databytes = _data.getBytes("ASCII"); + //BA.debugLineNum = 2222;BA.debugLine="Dim dlow As Int = databytes.Length"; +_dlow = _databytes.length; + //BA.debugLineNum = 2223;BA.debugLine="Log(\"Barcode \" & bartype & \", Size \" & dlow & \","; +__c.LogImpl("029425667","Barcode "+_bartype+", Size "+BA.NumberToString(_dlow)+", "+_data,0); + //BA.debugLineNum = 2224;BA.debugLine="WriteString(GS & \"k\" & bartype.ToUpperCase.CharAt"; +_writestring(_gs+"k"+BA.ObjectToString(_bartype.toUpperCase().charAt((int) (0)))); + //BA.debugLineNum = 2225;BA.debugLine="Dim params(1) As Byte"; +_params = new byte[(int) (1)]; +; + //BA.debugLineNum = 2226;BA.debugLine="params(0) = dlow"; +_params[(int) (0)] = (byte) (_dlow); + //BA.debugLineNum = 2227;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 2228;BA.debugLine="WriteBytes(databytes)"; +_writebytes(_databytes); + //BA.debugLineNum = 2229;BA.debugLine="End Sub"; +return ""; +} +public String _writebytes(byte[] _data) throws Exception{ + //BA.debugLineNum = 1425;BA.debugLine="Public Sub WriteBytes(data() As Byte)"; + //BA.debugLineNum = 1426;BA.debugLine="If Connected Then"; +if (_connected) { + //BA.debugLineNum = 1427;BA.debugLine="Astream.Write(data)"; +_astream.Write(_data); + }; + //BA.debugLineNum = 1429;BA.debugLine="End Sub"; +return ""; +} +public String _writeqrcode(int _size,String _ec,int _scale,String _data) throws Exception{ byte[] _databytes = null; int _dhigh = 0; int _dlow = 0; byte[] _params = null; -RDebugUtils.currentLine=29229056; - //BA.debugLineNum = 29229056;BA.debugLine="Public Sub WriteQRCode(size As Int, EC As String,"; -RDebugUtils.currentLine=29229057; - //BA.debugLineNum = 29229057;BA.debugLine="Dim databytes() As Byte = data.GetBytes(\"ISO-8859"; + //BA.debugLineNum = 2236;BA.debugLine="Public Sub WriteQRCode(size As Int, EC As String,"; + //BA.debugLineNum = 2237;BA.debugLine="Dim databytes() As Byte = data.GetBytes(\"ISO-8859"; _databytes = _data.getBytes("ISO-8859-1"); -RDebugUtils.currentLine=29229058; - //BA.debugLineNum = 29229058;BA.debugLine="Dim dhigh As Int = databytes.Length / 256"; + //BA.debugLineNum = 2238;BA.debugLine="Dim dhigh As Int = databytes.Length / 256"; _dhigh = (int) (_databytes.length/(double)256); -RDebugUtils.currentLine=29229059; - //BA.debugLineNum = 29229059;BA.debugLine="Dim dlow As Int = databytes.Length - dhigh*256"; + //BA.debugLineNum = 2239;BA.debugLine="Dim dlow As Int = databytes.Length - dhigh*256"; _dlow = (int) (_databytes.length-_dhigh*256); -RDebugUtils.currentLine=29229060; - //BA.debugLineNum = 29229060;BA.debugLine="Log(\"QR Code : Size \" & size & \", EC \" & EC & \","; -__c.LogImpl("229229060","QR Code : Size "+BA.NumberToString(_size)+", EC "+_ec+", Scale "+BA.NumberToString(_scale)+", Size "+BA.NumberToString(_dlow)+" "+BA.NumberToString(_dhigh)+" : Data = "+_data,0); -RDebugUtils.currentLine=29229061; - //BA.debugLineNum = 29229061;BA.debugLine="Dim params(3) As Byte"; + //BA.debugLineNum = 2240;BA.debugLine="Log(\"QR Code : Size \" & size & \", EC \" & EC & \","; +__c.LogImpl("029491204","QR Code : Size "+BA.NumberToString(_size)+", EC "+_ec+", Scale "+BA.NumberToString(_scale)+", Size "+BA.NumberToString(_dlow)+" "+BA.NumberToString(_dhigh)+" : Data = "+_data,0); + //BA.debugLineNum = 2241;BA.debugLine="Dim params(3) As Byte"; _params = new byte[(int) (3)]; ; -RDebugUtils.currentLine=29229062; - //BA.debugLineNum = 29229062;BA.debugLine="params(0) = scale"; + //BA.debugLineNum = 2242;BA.debugLine="params(0) = scale"; _params[(int) (0)] = (byte) (_scale); -RDebugUtils.currentLine=29229063; - //BA.debugLineNum = 29229063;BA.debugLine="params(1) = dlow"; + //BA.debugLineNum = 2243;BA.debugLine="params(1) = dlow"; _params[(int) (1)] = (byte) (_dlow); -RDebugUtils.currentLine=29229064; - //BA.debugLineNum = 29229064;BA.debugLine="params(2) = dhigh"; + //BA.debugLineNum = 2244;BA.debugLine="params(2) = dhigh"; _params[(int) (2)] = (byte) (_dhigh); -RDebugUtils.currentLine=29229065; - //BA.debugLineNum = 29229065;BA.debugLine="WriteString(ESC & \"Z\" & Chr(size) & EC.ToUpperCas"; -__ref._writestring /*String*/ (null,__ref._esc /*String*/ +"Z"+BA.ObjectToString(__c.Chr(_size))+BA.ObjectToString(_ec.toUpperCase().charAt((int) (0)))); -RDebugUtils.currentLine=29229066; - //BA.debugLineNum = 29229066;BA.debugLine="WriteBytes(params)"; -__ref._writebytes /*String*/ (null,_params); -RDebugUtils.currentLine=29229067; - //BA.debugLineNum = 29229067;BA.debugLine="WriteBytes(databytes)"; -__ref._writebytes /*String*/ (null,_databytes); -RDebugUtils.currentLine=29229068; - //BA.debugLineNum = 29229068;BA.debugLine="End Sub"; + //BA.debugLineNum = 2245;BA.debugLine="WriteString(ESC & \"Z\" & Chr(size) & EC.ToUpperCas"; +_writestring(_esc+"Z"+BA.ObjectToString(__c.Chr(_size))+BA.ObjectToString(_ec.toUpperCase().charAt((int) (0)))); + //BA.debugLineNum = 2246;BA.debugLine="WriteBytes(params)"; +_writebytes(_params); + //BA.debugLineNum = 2247;BA.debugLine="WriteBytes(databytes)"; +_writebytes(_databytes); + //BA.debugLineNum = 2248;BA.debugLine="End Sub"; return ""; } -public String _writestring2(reparto_izca.keymon.lat.escposprinter __ref,String _data,String _encoding) throws Exception{ -__ref = this; -RDebugUtils.currentModule="escposprinter"; -if (Debug.shouldDelegate(ba, "writestring2", false)) - {return ((String) Debug.delegate(ba, "writestring2", new Object[] {_data,_encoding}));} -RDebugUtils.currentLine=27262976; - //BA.debugLineNum = 27262976;BA.debugLine="Public Sub WriteString2(data As String, encoding A"; -RDebugUtils.currentLine=27262977; - //BA.debugLineNum = 27262977;BA.debugLine="Try"; -try {RDebugUtils.currentLine=27262978; - //BA.debugLineNum = 27262978;BA.debugLine="If Connected Then"; -if (__ref._connected /*boolean*/ ) { -RDebugUtils.currentLine=27262979; - //BA.debugLineNum = 27262979;BA.debugLine="Astream.Write(data.GetBytes(encoding))"; -__ref._astream /*anywheresoftware.b4a.randomaccessfile.AsyncStreams*/ .Write(_data.getBytes(_encoding)); +public String _writestring(String _data) throws Exception{ + //BA.debugLineNum = 1435;BA.debugLine="Public Sub WriteString(data As String)"; + //BA.debugLineNum = 1436;BA.debugLine="WriteString2(data, \"IBM437\")"; +_writestring2(_data,"IBM437"); + //BA.debugLineNum = 1437;BA.debugLine="End Sub"; +return ""; +} +public String _writestring2(String _data,String _encoding) throws Exception{ + //BA.debugLineNum = 1443;BA.debugLine="Public Sub WriteString2(data As String, encoding A"; + //BA.debugLineNum = 1444;BA.debugLine="Try"; +try { //BA.debugLineNum = 1445;BA.debugLine="If Connected Then"; +if (_connected) { + //BA.debugLineNum = 1446;BA.debugLine="Astream.Write(data.GetBytes(encoding))"; +_astream.Write(_data.getBytes(_encoding)); }; } catch (Exception e6) { - ba.setLastException(e6);RDebugUtils.currentLine=27262982; - //BA.debugLineNum = 27262982;BA.debugLine="Log(\"Printer error : \" & LastException.Message)"; -__c.LogImpl("227262982","Printer error : "+__c.LastException(getActivityBA()).getMessage(),0); -RDebugUtils.currentLine=27262983; - //BA.debugLineNum = 27262983;BA.debugLine="AStream_Error"; -__ref._astream_error /*String*/ (null); + ba.setLastException(e6); //BA.debugLineNum = 1449;BA.debugLine="Log(\"Printer error : \" & LastException.Message)"; +__c.LogImpl("027525126","Printer error : "+__c.LastException(getActivityBA()).getMessage(),0); + //BA.debugLineNum = 1450;BA.debugLine="AStream_Error"; +_astream_error(); }; -RDebugUtils.currentLine=27262985; - //BA.debugLineNum = 27262985;BA.debugLine="End Sub"; + //BA.debugLineNum = 1452;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/fileprovider.java b/B4A/Objects/src/reparto_izca/keymon/lat/fileprovider.java index 178ceaf..fbcc5b9 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/fileprovider.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/fileprovider.java @@ -10,7 +10,7 @@ public class fileprovider extends B4AClass.ImplB4AClass implements BA.SubDelegat private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.fileprovider"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.fileprovider"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class fileprovider extends B4AClass.ImplB4AClass implements BA.SubDelegat ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _sharedfolder = ""; public boolean _usefileprovider = false; public anywheresoftware.b4a.objects.RuntimePermissions _rp = null; @@ -48,130 +41,88 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public Object _getfileuri(reparto_izca.keymon.lat.fileprovider __ref,String _filename) throws Exception{ -__ref = this; -RDebugUtils.currentModule="fileprovider"; -if (Debug.shouldDelegate(ba, "getfileuri", true)) - {return ((Object) Debug.delegate(ba, "getfileuri", new Object[] {_filename}));} +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; -RDebugUtils.currentLine=42139648; - //BA.debugLineNum = 42139648;BA.debugLine="Public Sub GetFileUri (FileName As String) As Obje"; -RDebugUtils.currentLine=42139650; - //BA.debugLineNum = 42139650;BA.debugLine="If UseFileProvider = False Then"; -if (__ref._usefileprovider /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=42139651; - //BA.debugLineNum = 42139651;BA.debugLine="Dim uri As JavaObject"; + //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(); -RDebugUtils.currentLine=42139652; - //BA.debugLineNum = 42139652;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(__ref._sharedfolder /*String*/ ,_filename))}); + //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 { -RDebugUtils.currentLine=42139654; - //BA.debugLineNum = 42139654;BA.debugLine="Dim f As JavaObject"; + //BA.debugLineNum = 28;BA.debugLine="Dim f As JavaObject"; _f = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=42139655; - //BA.debugLineNum = 42139655;BA.debugLine="f.InitializeNewInstance(\"java.io.File\", Array(Sh"; -_f.InitializeNewInstance("java.io.File",new Object[]{(Object)(__ref._sharedfolder /*String*/ ),(Object)(_filename)}); -RDebugUtils.currentLine=42139656; - //BA.debugLineNum = 42139656;BA.debugLine="Dim fp As 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(); -RDebugUtils.currentLine=42139657; - //BA.debugLineNum = 42139657;BA.debugLine="Dim context As JavaObject"; + //BA.debugLineNum = 31;BA.debugLine="Dim context As JavaObject"; _context = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=42139658; - //BA.debugLineNum = 42139658;BA.debugLine="context.InitializeContext"; + //BA.debugLineNum = 32;BA.debugLine="context.InitializeContext"; _context.InitializeContext(ba); -RDebugUtils.currentLine=42139659; - //BA.debugLineNum = 42139659;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content."; + //BA.debugLineNum = 33;BA.debugLine="fp.InitializeStatic(\"android.support.v4.content."; _fp.InitializeStatic("androidx.core.content.FileProvider"); -RDebugUtils.currentLine=42139660; - //BA.debugLineNum = 42139660;BA.debugLine="Return fp.RunMethod(\"getUriForFile\", Array(conte"; + //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())}); }; -RDebugUtils.currentLine=42139662; - //BA.debugLineNum = 42139662;BA.debugLine="End Sub"; + //BA.debugLineNum = 36;BA.debugLine="End Sub"; return null; } -public String _initialize(reparto_izca.keymon.lat.fileprovider __ref,anywheresoftware.b4a.BA _ba) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="fileprovider"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba}));} anywheresoftware.b4a.phone.Phone _p = null; -RDebugUtils.currentLine=42074112; - //BA.debugLineNum = 42074112;BA.debugLine="Public Sub Initialize"; -RDebugUtils.currentLine=42074113; - //BA.debugLineNum = 42074113;BA.debugLine="Dim p As Phone"; + //BA.debugLineNum = 8;BA.debugLine="Public Sub Initialize"; + //BA.debugLineNum = 9;BA.debugLine="Dim p As Phone"; _p = new anywheresoftware.b4a.phone.Phone(); -RDebugUtils.currentLine=42074114; - //BA.debugLineNum = 42074114;BA.debugLine="If p.SdkVersion >= 24 Or File.ExternalWritable ="; + //BA.debugLineNum = 10;BA.debugLine="If p.SdkVersion >= 24 Or File.ExternalWritable ="; if (_p.getSdkVersion()>=24 || __c.File.getExternalWritable()==__c.False) { -RDebugUtils.currentLine=42074115; - //BA.debugLineNum = 42074115;BA.debugLine="UseFileProvider = True"; -__ref._usefileprovider /*boolean*/ = __c.True; -RDebugUtils.currentLine=42074116; - //BA.debugLineNum = 42074116;BA.debugLine="SharedFolder = File.Combine(File.DirInternal, \"s"; -__ref._sharedfolder /*String*/ = __c.File.Combine(__c.File.getDirInternal(),"shared"); -RDebugUtils.currentLine=42074117; - //BA.debugLineNum = 42074117;BA.debugLine="File.MakeDir(\"\", SharedFolder)"; -__c.File.MakeDir("",__ref._sharedfolder /*String*/ ); + //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 { -RDebugUtils.currentLine=42074119; - //BA.debugLineNum = 42074119;BA.debugLine="UseFileProvider = False"; -__ref._usefileprovider /*boolean*/ = __c.False; -RDebugUtils.currentLine=42074120; - //BA.debugLineNum = 42074120;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha"; -__ref._sharedfolder /*String*/ = __ref._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .GetSafeDirDefaultExternal("shared"); + //BA.debugLineNum = 15;BA.debugLine="UseFileProvider = False"; +_usefileprovider = __c.False; + //BA.debugLineNum = 16;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"sha"; +_sharedfolder = _rp.GetSafeDirDefaultExternal("shared"); }; -RDebugUtils.currentLine=42074122; - //BA.debugLineNum = 42074122;BA.debugLine="Log($\"Using FileProvider? ${UseFileProvider}\"$)"; -__c.LogImpl("942074122",("Using FileProvider? "+__c.SmartStringFormatter("",(Object)(__ref._usefileprovider /*boolean*/ ))+""),0); -RDebugUtils.currentLine=42074123; - //BA.debugLineNum = 42074123;BA.debugLine="End Sub"; + //BA.debugLineNum = 18;BA.debugLine="Log($\"Using FileProvider? ${UseFileProvider}\"$)"; +__c.LogImpl("950593802",("Using FileProvider? "+__c.SmartStringFormatter("",(Object)(_usefileprovider))+""),0); + //BA.debugLineNum = 19;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.fileprovider __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="fileprovider"; -RDebugUtils.currentLine=42008576; - //BA.debugLineNum = 42008576;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=42008577; - //BA.debugLineNum = 42008577;BA.debugLine="Public SharedFolder As String"; -_sharedfolder = ""; -RDebugUtils.currentLine=42008578; - //BA.debugLineNum = 42008578;BA.debugLine="Public UseFileProvider As Boolean"; -_usefileprovider = false; -RDebugUtils.currentLine=42008579; - //BA.debugLineNum = 42008579;BA.debugLine="Private rp As RuntimePermissions"; -_rp = new anywheresoftware.b4a.objects.RuntimePermissions(); -RDebugUtils.currentLine=42008580; - //BA.debugLineNum = 42008580;BA.debugLine="End Sub"; -return ""; -} -public String _setfileuriasintentdata(reparto_izca.keymon.lat.fileprovider __ref,anywheresoftware.b4a.objects.IntentWrapper _intent,String _filename) throws Exception{ -__ref = this; -RDebugUtils.currentModule="fileprovider"; -if (Debug.shouldDelegate(ba, "setfileuriasintentdata", true)) - {return ((String) Debug.delegate(ba, "setfileuriasintentdata", new Object[] {_intent,_filename}));} +public String _setfileuriasintentdata(anywheresoftware.b4a.objects.IntentWrapper _intent,String _filename) throws Exception{ anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=42205184; - //BA.debugLineNum = 42205184;BA.debugLine="Public Sub SetFileUriAsIntentData (Intent As Inten"; -RDebugUtils.currentLine=42205185; - //BA.debugLineNum = 42205185;BA.debugLine="Dim jo As JavaObject = Intent"; + //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())); -RDebugUtils.currentLine=42205186; - //BA.debugLineNum = 42205186;BA.debugLine="jo.RunMethod(\"setData\", Array(GetFileUri(FileName"; -_jo.RunMethod("setData",new Object[]{__ref._getfileuri /*Object*/ (null,_filename)}); -RDebugUtils.currentLine=42205187; - //BA.debugLineNum = 42205187;BA.debugLine="Intent.Flags = Bit.Or(Intent.Flags, 1) 'FLAG_GRAN"; + //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))); -RDebugUtils.currentLine=42205188; - //BA.debugLineNum = 42205188;BA.debugLine="End Sub"; + //BA.debugLineNum = 44;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/foto.java b/B4A/Objects/src/reparto_izca/keymon/lat/foto.java index 85c04ce..6b01bdf 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/foto.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/foto.java @@ -34,7 +34,7 @@ public class foto extends Activity implements B4AActivity{ super.onCreate(savedInstanceState); mostCurrent = this; if (processBA == null) { - processBA = new anywheresoftware.b4a.ShellBA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.foto"); + processBA = new BA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.foto"); processBA.loadHtSubs(this.getClass()); float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density; BALayout.setDeviceScale(deviceScale); @@ -335,15 +335,6 @@ public class foto extends Activity implements B4AActivity{ } - - -public static void initializeProcessGlobals() { - try { - Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null); - } catch (Exception e) { - throw new RuntimeException(e); - } -} public anywheresoftware.b4a.keywords.Common __c = null; public static boolean _frontcamera = false; public static anywheresoftware.b4a.gps.GPS _g = null; @@ -368,423 +359,312 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; + +public static void initializeProcessGlobals() { + try { + Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null); + } catch (Exception e) { + throw new RuntimeException(e); + } +} public static String _activity_create(boolean _firsttime) throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_create", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "activity_create", new Object[] {_firsttime}));} -RDebugUtils.currentLine=29687808; - //BA.debugLineNum = 29687808;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; -RDebugUtils.currentLine=29687809; - //BA.debugLineNum = 29687809;BA.debugLine="If(FirstTime) Then"; + //BA.debugLineNum = 27;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; + //BA.debugLineNum = 28;BA.debugLine="If(FirstTime) Then"; if ((_firsttime)) { -RDebugUtils.currentLine=29687810; - //BA.debugLineNum = 29687810;BA.debugLine="g.Initialize(\"GPS\")"; + //BA.debugLineNum = 29;BA.debugLine="g.Initialize(\"GPS\")"; _g.Initialize("GPS"); }; -RDebugUtils.currentLine=29687812; - //BA.debugLineNum = 29687812;BA.debugLine="Activity.LoadLayout(\"foto\")"; + //BA.debugLineNum = 31;BA.debugLine="Activity.LoadLayout(\"foto\")"; mostCurrent._activity.LoadLayout("foto",mostCurrent.activityBA); -RDebugUtils.currentLine=29687813; - //BA.debugLineNum = 29687813;BA.debugLine="c=Starter.skmt.ExecQuery(\"select cuenta from cuen"; + //BA.debugLineNum = 32;BA.debugLine="c=Starter.skmt.ExecQuery(\"select cuenta from cuen"; mostCurrent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select cuenta from cuentaa"))); -RDebugUtils.currentLine=29687814; - //BA.debugLineNum = 29687814;BA.debugLine="c.Position = 0"; + //BA.debugLineNum = 33;BA.debugLine="c.Position = 0"; mostCurrent._c.setPosition((int) (0)); -RDebugUtils.currentLine=29687815; - //BA.debugLineNum = 29687815;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; + //BA.debugLineNum = 34;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; mostCurrent._cuenta = mostCurrent._c.GetString("CUENTA"); -RDebugUtils.currentLine=29687816; - //BA.debugLineNum = 29687816;BA.debugLine="End Sub"; + //BA.debugLineNum = 35;BA.debugLine="End Sub"; return ""; } public static boolean _activity_keypress(int _key) throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_keypress", false)) - {return ((Boolean) Debug.delegate(mostCurrent.activityBA, "activity_keypress", new Object[] {_key}));} -RDebugUtils.currentLine=30539776; - //BA.debugLineNum = 30539776;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean"; -RDebugUtils.currentLine=30539778; - //BA.debugLineNum = 30539778;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then"; + //BA.debugLineNum = 174;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean"; + //BA.debugLineNum = 176;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then"; if (_key==anywheresoftware.b4a.keywords.Common.KeyCodes.KEYCODE_BACK) { -RDebugUtils.currentLine=30539780; - //BA.debugLineNum = 30539780;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 178;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Principal"); }; -RDebugUtils.currentLine=30539784; - //BA.debugLineNum = 30539784;BA.debugLine="Return False"; + //BA.debugLineNum = 182;BA.debugLine="Return False"; if (true) return anywheresoftware.b4a.keywords.Common.False; -RDebugUtils.currentLine=30539785; - //BA.debugLineNum = 30539785;BA.debugLine="End Sub"; + //BA.debugLineNum = 183;BA.debugLine="End Sub"; return false; } public static String _activity_pause(boolean _userclosed) throws Exception{ -RDebugUtils.currentModule="foto"; -RDebugUtils.currentLine=29884416; - //BA.debugLineNum = 29884416;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; -RDebugUtils.currentLine=29884417; - //BA.debugLineNum = 29884417;BA.debugLine="camEx.Release"; -mostCurrent._camex._release /*String*/ (null); -RDebugUtils.currentLine=29884418; - //BA.debugLineNum = 29884418;BA.debugLine="End Sub"; + //BA.debugLineNum = 46;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 47;BA.debugLine="camEx.Release"; +mostCurrent._camex._release /*String*/ (); + //BA.debugLineNum = 48;BA.debugLine="End Sub"; return ""; } public static String _activity_resume() throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_resume", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "activity_resume", null));} -RDebugUtils.currentLine=29753344; - //BA.debugLineNum = 29753344;BA.debugLine="Sub Activity_Resume"; -RDebugUtils.currentLine=29753345; - //BA.debugLineNum = 29753345;BA.debugLine="InitializeCamera"; + //BA.debugLineNum = 37;BA.debugLine="Sub Activity_Resume"; + //BA.debugLineNum = 38;BA.debugLine="InitializeCamera"; _initializecamera(); -RDebugUtils.currentLine=29753346; - //BA.debugLineNum = 29753346;BA.debugLine="End Sub"; -return ""; -} -public static String _initializecamera() throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "initializecamera", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "initializecamera", null));} -RDebugUtils.currentLine=29818880; - //BA.debugLineNum = 29818880;BA.debugLine="Private Sub InitializeCamera"; -RDebugUtils.currentLine=29818881; - //BA.debugLineNum = 29818881;BA.debugLine="camEx.Initialize(p_camara, frontCamera, Me, \"Came"; -mostCurrent._camex._initialize /*String*/ (null,mostCurrent.activityBA,mostCurrent._p_camara,_frontcamera,foto.getObject(),"Camera1"); -RDebugUtils.currentLine=29818882; - //BA.debugLineNum = 29818882;BA.debugLine="frontCamera = camEx.Front"; -_frontcamera = mostCurrent._camex._front /*boolean*/ ; -RDebugUtils.currentLine=29818883; - //BA.debugLineNum = 29818883;BA.debugLine="End Sub"; + //BA.debugLineNum = 39;BA.debugLine="End Sub"; return ""; } public static String _btneffect_click() throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "btneffect_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "btneffect_click", null));} anywheresoftware.b4a.objects.collections.List _effects = null; String _effect = ""; -RDebugUtils.currentLine=30343168; - //BA.debugLineNum = 30343168;BA.debugLine="Sub btnEffect_Click"; -RDebugUtils.currentLine=30343169; - //BA.debugLineNum = 30343169;BA.debugLine="Dim effects As List = camEx.GetSupportedColorEffe"; + //BA.debugLineNum = 138;BA.debugLine="Sub btnEffect_Click"; + //BA.debugLineNum = 139;BA.debugLine="Dim effects As List = camEx.GetSupportedColorEffe"; _effects = new anywheresoftware.b4a.objects.collections.List(); -_effects = mostCurrent._camex._getsupportedcoloreffects /*anywheresoftware.b4a.objects.collections.List*/ (null); -RDebugUtils.currentLine=30343170; - //BA.debugLineNum = 30343170;BA.debugLine="If effects.IsInitialized = False Then"; +_effects = mostCurrent._camex._getsupportedcoloreffects /*anywheresoftware.b4a.objects.collections.List*/ (); + //BA.debugLineNum = 140;BA.debugLine="If effects.IsInitialized = False Then"; if (_effects.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) { -RDebugUtils.currentLine=30343171; - //BA.debugLineNum = 30343171;BA.debugLine="ToastMessageShow(\"Effects not supported.\", False"; + //BA.debugLineNum = 141;BA.debugLine="ToastMessageShow(\"Effects not supported.\", False"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Effects not supported."),anywheresoftware.b4a.keywords.Common.False); -RDebugUtils.currentLine=30343172; - //BA.debugLineNum = 30343172;BA.debugLine="Return"; + //BA.debugLineNum = 142;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=30343174; - //BA.debugLineNum = 30343174;BA.debugLine="Dim effect As String = effects.Get((effects.Index"; -_effect = BA.ObjectToString(_effects.Get((int) ((_effects.IndexOf((Object)(mostCurrent._camex._getcoloreffect /*String*/ (null)))+1)%_effects.getSize()))); -RDebugUtils.currentLine=30343175; - //BA.debugLineNum = 30343175;BA.debugLine="camEx.SetColorEffect(effect)"; -mostCurrent._camex._setcoloreffect /*String*/ (null,_effect); -RDebugUtils.currentLine=30343176; - //BA.debugLineNum = 30343176;BA.debugLine="ToastMessageShow(effect, False)"; + //BA.debugLineNum = 144;BA.debugLine="Dim effect As String = effects.Get((effects.Index"; +_effect = BA.ObjectToString(_effects.Get((int) ((_effects.IndexOf((Object)(mostCurrent._camex._getcoloreffect /*String*/ ()))+1)%_effects.getSize()))); + //BA.debugLineNum = 145;BA.debugLine="camEx.SetColorEffect(effect)"; +mostCurrent._camex._setcoloreffect /*String*/ (_effect); + //BA.debugLineNum = 146;BA.debugLine="ToastMessageShow(effect, False)"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(_effect),anywheresoftware.b4a.keywords.Common.False); -RDebugUtils.currentLine=30343177; - //BA.debugLineNum = 30343177;BA.debugLine="camEx.CommitParameters"; -mostCurrent._camex._commitparameters /*String*/ (null); -RDebugUtils.currentLine=30343178; - //BA.debugLineNum = 30343178;BA.debugLine="End Sub"; + //BA.debugLineNum = 147;BA.debugLine="camEx.CommitParameters"; +mostCurrent._camex._commitparameters /*String*/ (); + //BA.debugLineNum = 148;BA.debugLine="End Sub"; return ""; } public static String _btnflash_click() throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "btnflash_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "btnflash_click", null));} float[] _f = null; anywheresoftware.b4a.objects.collections.List _flashmodes = null; String _flash = ""; -RDebugUtils.currentLine=30408704; - //BA.debugLineNum = 30408704;BA.debugLine="Sub btnFlash_Click"; -RDebugUtils.currentLine=30408705; - //BA.debugLineNum = 30408705;BA.debugLine="Dim f() As Float = camEx.GetFocusDistances"; -_f = mostCurrent._camex._getfocusdistances /*float[]*/ (null); -RDebugUtils.currentLine=30408706; - //BA.debugLineNum = 30408706;BA.debugLine="Log(f(0) & \", \" & f(1) & \", \" & f(2))"; -anywheresoftware.b4a.keywords.Common.LogImpl("230408706",BA.NumberToString(_f[(int) (0)])+", "+BA.NumberToString(_f[(int) (1)])+", "+BA.NumberToString(_f[(int) (2)]),0); -RDebugUtils.currentLine=30408707; - //BA.debugLineNum = 30408707;BA.debugLine="Dim flashModes As List = camEx.GetSupportedFlashM"; + //BA.debugLineNum = 150;BA.debugLine="Sub btnFlash_Click"; + //BA.debugLineNum = 151;BA.debugLine="Dim f() As Float = camEx.GetFocusDistances"; +_f = mostCurrent._camex._getfocusdistances /*float[]*/ (); + //BA.debugLineNum = 152;BA.debugLine="Log(f(0) & \", \" & f(1) & \", \" & f(2))"; +anywheresoftware.b4a.keywords.Common.LogImpl("030670850",BA.NumberToString(_f[(int) (0)])+", "+BA.NumberToString(_f[(int) (1)])+", "+BA.NumberToString(_f[(int) (2)]),0); + //BA.debugLineNum = 153;BA.debugLine="Dim flashModes As List = camEx.GetSupportedFlashM"; _flashmodes = new anywheresoftware.b4a.objects.collections.List(); -_flashmodes = mostCurrent._camex._getsupportedflashmodes /*anywheresoftware.b4a.objects.collections.List*/ (null); -RDebugUtils.currentLine=30408708; - //BA.debugLineNum = 30408708;BA.debugLine="If flashModes.IsInitialized = False Then"; +_flashmodes = mostCurrent._camex._getsupportedflashmodes /*anywheresoftware.b4a.objects.collections.List*/ (); + //BA.debugLineNum = 154;BA.debugLine="If flashModes.IsInitialized = False Then"; if (_flashmodes.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) { -RDebugUtils.currentLine=30408709; - //BA.debugLineNum = 30408709;BA.debugLine="ToastMessageShow(\"Flash not supported.\", False)"; + //BA.debugLineNum = 155;BA.debugLine="ToastMessageShow(\"Flash not supported.\", False)"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Flash not supported."),anywheresoftware.b4a.keywords.Common.False); -RDebugUtils.currentLine=30408710; - //BA.debugLineNum = 30408710;BA.debugLine="Return"; + //BA.debugLineNum = 156;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=30408712; - //BA.debugLineNum = 30408712;BA.debugLine="Dim flash As String = flashModes.Get((flashModes."; -_flash = BA.ObjectToString(_flashmodes.Get((int) ((_flashmodes.IndexOf((Object)(mostCurrent._camex._getflashmode /*String*/ (null)))+1)%_flashmodes.getSize()))); -RDebugUtils.currentLine=30408713; - //BA.debugLineNum = 30408713;BA.debugLine="camEx.SetFlashMode(flash)"; -mostCurrent._camex._setflashmode /*String*/ (null,_flash); -RDebugUtils.currentLine=30408714; - //BA.debugLineNum = 30408714;BA.debugLine="ToastMessageShow(flash, False)"; + //BA.debugLineNum = 158;BA.debugLine="Dim flash As String = flashModes.Get((flashModes."; +_flash = BA.ObjectToString(_flashmodes.Get((int) ((_flashmodes.IndexOf((Object)(mostCurrent._camex._getflashmode /*String*/ ()))+1)%_flashmodes.getSize()))); + //BA.debugLineNum = 159;BA.debugLine="camEx.SetFlashMode(flash)"; +mostCurrent._camex._setflashmode /*String*/ (_flash); + //BA.debugLineNum = 160;BA.debugLine="ToastMessageShow(flash, False)"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(_flash),anywheresoftware.b4a.keywords.Common.False); -RDebugUtils.currentLine=30408715; - //BA.debugLineNum = 30408715;BA.debugLine="camEx.CommitParameters"; -mostCurrent._camex._commitparameters /*String*/ (null); -RDebugUtils.currentLine=30408716; - //BA.debugLineNum = 30408716;BA.debugLine="End Sub"; + //BA.debugLineNum = 161;BA.debugLine="camEx.CommitParameters"; +mostCurrent._camex._commitparameters /*String*/ (); + //BA.debugLineNum = 162;BA.debugLine="End Sub"; return ""; } public static String _btnfocus_click() throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "btnfocus_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "btnfocus_click", null));} -RDebugUtils.currentLine=30146560; - //BA.debugLineNum = 30146560;BA.debugLine="Sub btnFocus_Click"; -RDebugUtils.currentLine=30146561; - //BA.debugLineNum = 30146561;BA.debugLine="camEx.FocusAndTakePicture"; -mostCurrent._camex._focusandtakepicture /*String*/ (null); -RDebugUtils.currentLine=30146562; - //BA.debugLineNum = 30146562;BA.debugLine="End Sub"; + //BA.debugLineNum = 78;BA.debugLine="Sub btnFocus_Click"; + //BA.debugLineNum = 79;BA.debugLine="camEx.FocusAndTakePicture"; +mostCurrent._camex._focusandtakepicture /*String*/ (); + //BA.debugLineNum = 80;BA.debugLine="End Sub"; return ""; } public static String _btnpicturesize_click() throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "btnpicturesize_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "btnpicturesize_click", null));} reparto_izca.keymon.lat.cameraexclass._camerasize[] _picturesizes = null; reparto_izca.keymon.lat.cameraexclass._camerasize _current = null; int _i = 0; reparto_izca.keymon.lat.cameraexclass._camerasize _ps = null; -RDebugUtils.currentLine=30474240; - //BA.debugLineNum = 30474240;BA.debugLine="Sub btnPictureSize_Click"; -RDebugUtils.currentLine=30474241; - //BA.debugLineNum = 30474241;BA.debugLine="Dim pictureSizes() As CameraSize = camEx.GetSuppo"; -_picturesizes = mostCurrent._camex._getsupportedpicturessizes /*reparto_izca.keymon.lat.cameraexclass._camerasize[]*/ (null); -RDebugUtils.currentLine=30474242; - //BA.debugLineNum = 30474242;BA.debugLine="Dim current As CameraSize = camEx.GetPictureSize"; -_current = mostCurrent._camex._getpicturesize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ (null); -RDebugUtils.currentLine=30474243; - //BA.debugLineNum = 30474243;BA.debugLine="For i = 0 To pictureSizes.Length - 1"; + //BA.debugLineNum = 163;BA.debugLine="Sub btnPictureSize_Click"; + //BA.debugLineNum = 164;BA.debugLine="Dim pictureSizes() As CameraSize = camEx.GetSuppo"; +_picturesizes = mostCurrent._camex._getsupportedpicturessizes /*reparto_izca.keymon.lat.cameraexclass._camerasize[]*/ (); + //BA.debugLineNum = 165;BA.debugLine="Dim current As CameraSize = camEx.GetPictureSize"; +_current = mostCurrent._camex._getpicturesize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ (); + //BA.debugLineNum = 166;BA.debugLine="For i = 0 To pictureSizes.Length - 1"; { final int step3 = 1; final int limit3 = (int) (_picturesizes.length /*int*/ -1); _i = (int) (0) ; for (;_i <= limit3 ;_i = _i + step3 ) { -RDebugUtils.currentLine=30474244; - //BA.debugLineNum = 30474244;BA.debugLine="If pictureSizes(i).Width = current.Width And pic"; + //BA.debugLineNum = 167;BA.debugLine="If pictureSizes(i).Width = current.Width And pic"; if (_picturesizes[_i].Width /*int*/ ==_current.Width /*int*/ && _picturesizes[_i].Height /*int*/ ==_current.Height /*int*/ ) { if (true) break;}; } }; -RDebugUtils.currentLine=30474246; - //BA.debugLineNum = 30474246;BA.debugLine="Dim ps As CameraSize = pictureSizes((i + 1) Mod p"; + //BA.debugLineNum = 169;BA.debugLine="Dim ps As CameraSize = pictureSizes((i + 1) Mod p"; _ps = _picturesizes[(int) ((_i+1)%_picturesizes.length /*int*/ )]; -RDebugUtils.currentLine=30474247; - //BA.debugLineNum = 30474247;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)"; -mostCurrent._camex._setpicturesize /*String*/ (null,_ps.Width /*int*/ ,_ps.Height /*int*/ ); -RDebugUtils.currentLine=30474248; - //BA.debugLineNum = 30474248;BA.debugLine="ToastMessageShow(ps.Width & \"x\" & ps.Height & i,"; + //BA.debugLineNum = 170;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)"; +mostCurrent._camex._setpicturesize /*String*/ (_ps.Width /*int*/ ,_ps.Height /*int*/ ); + //BA.debugLineNum = 171;BA.debugLine="ToastMessageShow(ps.Width & \"x\" & ps.Height & i,"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence(BA.NumberToString(_ps.Width /*int*/ )+"x"+BA.NumberToString(_ps.Height /*int*/ )+BA.NumberToString(_i)),anywheresoftware.b4a.keywords.Common.False); -RDebugUtils.currentLine=30474249; - //BA.debugLineNum = 30474249;BA.debugLine="camEx.CommitParameters"; -mostCurrent._camex._commitparameters /*String*/ (null); -RDebugUtils.currentLine=30474250; - //BA.debugLineNum = 30474250;BA.debugLine="End Sub"; + //BA.debugLineNum = 172;BA.debugLine="camEx.CommitParameters"; +mostCurrent._camex._commitparameters /*String*/ (); + //BA.debugLineNum = 173;BA.debugLine="End Sub"; return ""; } public static String _btntakepicture_click() throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "btntakepicture_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "btntakepicture_click", null));} reparto_izca.keymon.lat.cameraexclass._camerasize _ps = null; -RDebugUtils.currentLine=30081024; - //BA.debugLineNum = 30081024;BA.debugLine="Sub btnTakePicture_Click"; -RDebugUtils.currentLine=30081025; - //BA.debugLineNum = 30081025;BA.debugLine="Dim ps As CameraSize"; + //BA.debugLineNum = 68;BA.debugLine="Sub btnTakePicture_Click"; + //BA.debugLineNum = 69;BA.debugLine="Dim ps As CameraSize"; _ps = new reparto_izca.keymon.lat.cameraexclass._camerasize(); -RDebugUtils.currentLine=30081026; - //BA.debugLineNum = 30081026;BA.debugLine="ps.Width =640"; + //BA.debugLineNum = 70;BA.debugLine="ps.Width =640"; _ps.Width /*int*/ = (int) (640); -RDebugUtils.currentLine=30081027; - //BA.debugLineNum = 30081027;BA.debugLine="ps.Height =480"; + //BA.debugLineNum = 71;BA.debugLine="ps.Height =480"; _ps.Height /*int*/ = (int) (480); -RDebugUtils.currentLine=30081028; - //BA.debugLineNum = 30081028;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)"; -mostCurrent._camex._setpicturesize /*String*/ (null,_ps.Width /*int*/ ,_ps.Height /*int*/ ); -RDebugUtils.currentLine=30081030; - //BA.debugLineNum = 30081030;BA.debugLine="camEx.CommitParameters"; -mostCurrent._camex._commitparameters /*String*/ (null); -RDebugUtils.currentLine=30081031; - //BA.debugLineNum = 30081031;BA.debugLine="camEx.TakePicture"; -mostCurrent._camex._takepicture /*String*/ (null); -RDebugUtils.currentLine=30081032; - //BA.debugLineNum = 30081032;BA.debugLine="End Sub"; + //BA.debugLineNum = 72;BA.debugLine="camEx.SetPictureSize(ps.Width, ps.Height)"; +mostCurrent._camex._setpicturesize /*String*/ (_ps.Width /*int*/ ,_ps.Height /*int*/ ); + //BA.debugLineNum = 74;BA.debugLine="camEx.CommitParameters"; +mostCurrent._camex._commitparameters /*String*/ (); + //BA.debugLineNum = 75;BA.debugLine="camEx.TakePicture"; +mostCurrent._camex._takepicture /*String*/ (); + //BA.debugLineNum = 76;BA.debugLine="End Sub"; return ""; } public static String _camera1_picturetaken(byte[] _data) throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "camera1_picturetaken", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "camera1_picturetaken", new Object[] {_data}));} String _filename = ""; String _dir = ""; String _sdate = ""; String _stime = ""; int _i = 0; -RDebugUtils.currentLine=30212096; - //BA.debugLineNum = 30212096;BA.debugLine="Sub Camera1_PictureTaken (Data() As Byte)"; -RDebugUtils.currentLine=30212097; - //BA.debugLineNum = 30212097;BA.debugLine="Dim filename As String = \"1.jpg\""; + //BA.debugLineNum = 82;BA.debugLine="Sub Camera1_PictureTaken (Data() As Byte)"; + //BA.debugLineNum = 83;BA.debugLine="Dim filename As String = \"1.jpg\""; _filename = "1.jpg"; -RDebugUtils.currentLine=30212098; - //BA.debugLineNum = 30212098;BA.debugLine="Dim dir As String = File.DirInternal"; + //BA.debugLineNum = 84;BA.debugLine="Dim dir As String = File.DirInternal"; _dir = anywheresoftware.b4a.keywords.Common.File.getDirInternal(); -RDebugUtils.currentLine=30212100; - //BA.debugLineNum = 30212100;BA.debugLine="camEx.SavePictureToFile(Data, dir, filename)"; -mostCurrent._camex._savepicturetofile /*String*/ (null,_data,_dir,_filename); -RDebugUtils.currentLine=30212101; - //BA.debugLineNum = 30212101;BA.debugLine="camEx.StartPreview 'restart preview"; -mostCurrent._camex._startpreview /*String*/ (null); -RDebugUtils.currentLine=30212105; - //BA.debugLineNum = 30212105;BA.debugLine="Dim sDate,sTime As String"; + //BA.debugLineNum = 86;BA.debugLine="camEx.SavePictureToFile(Data, dir, filename)"; +mostCurrent._camex._savepicturetofile /*String*/ (_data,_dir,_filename); + //BA.debugLineNum = 87;BA.debugLine="camEx.StartPreview 'restart preview"; +mostCurrent._camex._startpreview /*String*/ (); + //BA.debugLineNum = 91;BA.debugLine="Dim sDate,sTime As String"; _sdate = ""; _stime = ""; -RDebugUtils.currentLine=30212108; - //BA.debugLineNum = 30212108;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; + //BA.debugLineNum = 94;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=30212109; - //BA.debugLineNum = 30212109;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; + //BA.debugLineNum = 95;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; _sdate = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); -RDebugUtils.currentLine=30212110; - //BA.debugLineNum = 30212110;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; + //BA.debugLineNum = 96;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; _stime = anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); -RDebugUtils.currentLine=30212111; - //BA.debugLineNum = 30212111;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen"; + //BA.debugLineNum = 97;BA.debugLine="c=Starter.skmt.ExecQuery(\"select CUENTA from cuen"; mostCurrent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CUENTA from cuentaa"))); -RDebugUtils.currentLine=30212112; - //BA.debugLineNum = 30212112;BA.debugLine="c.Position = 0"; + //BA.debugLineNum = 98;BA.debugLine="c.Position = 0"; mostCurrent._c.setPosition((int) (0)); -RDebugUtils.currentLine=30212113; - //BA.debugLineNum = 30212113;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; + //BA.debugLineNum = 99;BA.debugLine="cuenta = c.GetString(\"CUENTA\")"; mostCurrent._cuenta = mostCurrent._c.GetString("CUENTA"); -RDebugUtils.currentLine=30212114; - //BA.debugLineNum = 30212114;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; + //BA.debugLineNum = 100;BA.debugLine="c=Starter.skmt.ExecQuery(\"select USUARIO from usu"; mostCurrent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from usuarioa"))); -RDebugUtils.currentLine=30212115; - //BA.debugLineNum = 30212115;BA.debugLine="c.Position = 0"; + //BA.debugLineNum = 101;BA.debugLine="c.Position = 0"; mostCurrent._c.setPosition((int) (0)); -RDebugUtils.currentLine=30212116; - //BA.debugLineNum = 30212116;BA.debugLine="USUARIO = c.GetString(\"USUARIO\")"; + //BA.debugLineNum = 102;BA.debugLine="USUARIO = c.GetString(\"USUARIO\")"; mostCurrent._usuario = mostCurrent._c.GetString("USUARIO"); -RDebugUtils.currentLine=30212117; - //BA.debugLineNum = 30212117;BA.debugLine="c.Close"; + //BA.debugLineNum = 103;BA.debugLine="c.Close"; mostCurrent._c.Close(); -RDebugUtils.currentLine=30212118; - //BA.debugLineNum = 30212118;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM NOVENTA WH"; + //BA.debugLineNum = 104;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM NOVENTA WH"; mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM NOVENTA WHERE NV_CLIENTE IN (select cuenta from cuentaa)"); -RDebugUtils.currentLine=30212120; - //BA.debugLineNum = 30212120;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_CLIENTE,HVD_"; + //BA.debugLineNum = 106;BA.debugLine="c=Starter.skmt.ExecQuery(\"select HVD_CLIENTE,HVD_"; mostCurrent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_CLIENTE,HVD_PRONOMBRE,HVD_CANT,HVD_COSTO_TOT from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa) order by HVD_PRONOMBRE asc"))); -RDebugUtils.currentLine=30212122; - //BA.debugLineNum = 30212122;BA.debugLine="If c.RowCount>0 Then"; + //BA.debugLineNum = 108;BA.debugLine="If c.RowCount>0 Then"; if (mostCurrent._c.getRowCount()>0) { -RDebugUtils.currentLine=30212123; - //BA.debugLineNum = 30212123;BA.debugLine="For i=0 To c.RowCount -1"; + //BA.debugLineNum = 109;BA.debugLine="For i=0 To c.RowCount -1"; { final int step19 = 1; final int limit19 = (int) (mostCurrent._c.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit19 ;_i = _i + step19 ) { -RDebugUtils.currentLine=30212124; - //BA.debugLineNum = 30212124;BA.debugLine="c.Position=i"; + //BA.debugLineNum = 110;BA.debugLine="c.Position=i"; mostCurrent._c.setPosition(_i); -RDebugUtils.currentLine=30212125; - //BA.debugLineNum = 30212125;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto"; + //BA.debugLineNum = 111;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto"; mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT) select HVD_CLIENTE, HVD_PRONOMBRE, HVD_CANT, HVD_COSTO_TOT from hist_ventas where HVD_PRONOMBRE = ? and HVD_cliente in (Select CUENTA from cuentaa) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{mostCurrent._c.GetString("HVD_PRONOMBRE")})); -RDebugUtils.currentLine=30212127; - //BA.debugLineNum = 30212127;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod"; + //BA.debugLineNum = 113;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update cat_gunaprod"; mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update cat_gunaprod set cat_gp_almacen = cat_gp_almacen + ? where cat_gp_nombre = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(mostCurrent._c.GetString("HVD_CANT")),(Object)(mostCurrent._c.GetString("HVD_PRONOMBRE"))})); } }; }; -RDebugUtils.currentLine=30212138; - //BA.debugLineNum = 30212138;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA"; + //BA.debugLineNum = 124;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO NOVENTA"; mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO NOVENTA (NV_CLIENTE,NV_FECHA,NV_USER,NV_MOTIVO,NV_COMM,NV_LAT,NV_LON, NV_FOTO) VALUES(?,?,?,?,?,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(mostCurrent._cuenta),(Object)(_sdate+_stime),(Object)(mostCurrent._usuario),(Object)("CERRADO"),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._noventa /*reparto_izca.keymon.lat.c_noventa*/ ._comentario /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._lon_gps /*String*/ ),(Object)(_data)})); -RDebugUtils.currentLine=30212139; - //BA.debugLineNum = 30212139;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set g"; + //BA.debugLineNum = 125;BA.debugLine="Starter.skmt.ExecNonQuery($\"UPDATE kmt_info set g"; mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("UPDATE kmt_info set gestion = 3, HORAENT = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_sdate+" "+_stime))+"' where CAT_CL_CODIGO In (select cuenta from cuentaa)")); -RDebugUtils.currentLine=30212140; - //BA.debugLineNum = 30212140;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SET"; + //BA.debugLineNum = 126;BA.debugLine="Starter.skmt.ExecNonQuery(\"update HIST_VENTAS SET"; mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("update HIST_VENTAS SET HVD_RECHAZO = 1 WHERE HVD_CLIENTE IN (SELECT CUENTA FROM CUENTAA)"); -RDebugUtils.currentLine=30212141; - //BA.debugLineNum = 30212141;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 127;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Principal"); -RDebugUtils.currentLine=30212144; - //BA.debugLineNum = 30212144;BA.debugLine="End Sub"; + //BA.debugLineNum = 130;BA.debugLine="End Sub"; return ""; } public static String _camera1_ready(boolean _success) throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "camera1_ready", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "camera1_ready", new Object[] {_success}));} -RDebugUtils.currentLine=30015488; - //BA.debugLineNum = 30015488;BA.debugLine="Sub Camera1_Ready (Success As Boolean)"; -RDebugUtils.currentLine=30015489; - //BA.debugLineNum = 30015489;BA.debugLine="If Success Then"; + //BA.debugLineNum = 57;BA.debugLine="Sub Camera1_Ready (Success As Boolean)"; + //BA.debugLineNum = 58;BA.debugLine="If Success Then"; if (_success) { -RDebugUtils.currentLine=30015490; - //BA.debugLineNum = 30015490;BA.debugLine="camEx.SetJpegQuality(90)"; -mostCurrent._camex._setjpegquality /*String*/ (null,(int) (90)); -RDebugUtils.currentLine=30015491; - //BA.debugLineNum = 30015491;BA.debugLine="camEx.CommitParameters"; -mostCurrent._camex._commitparameters /*String*/ (null); -RDebugUtils.currentLine=30015492; - //BA.debugLineNum = 30015492;BA.debugLine="camEx.StartPreview"; -mostCurrent._camex._startpreview /*String*/ (null); -RDebugUtils.currentLine=30015493; - //BA.debugLineNum = 30015493;BA.debugLine="Log(camEx.GetPreviewSize)"; -anywheresoftware.b4a.keywords.Common.LogImpl("230015493",BA.ObjectToString(mostCurrent._camex._getpreviewsize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ (null)),0); + //BA.debugLineNum = 59;BA.debugLine="camEx.SetJpegQuality(90)"; +mostCurrent._camex._setjpegquality /*String*/ ((int) (90)); + //BA.debugLineNum = 60;BA.debugLine="camEx.CommitParameters"; +mostCurrent._camex._commitparameters /*String*/ (); + //BA.debugLineNum = 61;BA.debugLine="camEx.StartPreview"; +mostCurrent._camex._startpreview /*String*/ (); + //BA.debugLineNum = 62;BA.debugLine="Log(camEx.GetPreviewSize)"; +anywheresoftware.b4a.keywords.Common.LogImpl("030277637",BA.ObjectToString(mostCurrent._camex._getpreviewsize /*reparto_izca.keymon.lat.cameraexclass._camerasize*/ ()),0); }else { -RDebugUtils.currentLine=30015495; - //BA.debugLineNum = 30015495;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)"; + //BA.debugLineNum = 64;BA.debugLine="ToastMessageShow(\"Cannot open camera.\", True)"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Cannot open camera."),anywheresoftware.b4a.keywords.Common.True); }; -RDebugUtils.currentLine=30015497; - //BA.debugLineNum = 30015497;BA.debugLine="End Sub"; + //BA.debugLineNum = 66;BA.debugLine="End Sub"; return ""; } public static String _changecamera_click() throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "changecamera_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "changecamera_click", null));} -RDebugUtils.currentLine=30277632; - //BA.debugLineNum = 30277632;BA.debugLine="Sub ChangeCamera_Click"; -RDebugUtils.currentLine=30277633; - //BA.debugLineNum = 30277633;BA.debugLine="camEx.Release"; -mostCurrent._camex._release /*String*/ (null); -RDebugUtils.currentLine=30277634; - //BA.debugLineNum = 30277634;BA.debugLine="frontCamera = Not(frontCamera)"; + //BA.debugLineNum = 132;BA.debugLine="Sub ChangeCamera_Click"; + //BA.debugLineNum = 133;BA.debugLine="camEx.Release"; +mostCurrent._camex._release /*String*/ (); + //BA.debugLineNum = 134;BA.debugLine="frontCamera = Not(frontCamera)"; _frontcamera = anywheresoftware.b4a.keywords.Common.Not(_frontcamera); -RDebugUtils.currentLine=30277635; - //BA.debugLineNum = 30277635;BA.debugLine="InitializeCamera"; + //BA.debugLineNum = 135;BA.debugLine="InitializeCamera"; _initializecamera(); -RDebugUtils.currentLine=30277636; - //BA.debugLineNum = 30277636;BA.debugLine="End Sub"; + //BA.debugLineNum = 136;BA.debugLine="End Sub"; +return ""; +} +public static String _globals() throws Exception{ + //BA.debugLineNum = 14;BA.debugLine="Sub Globals"; + //BA.debugLineNum = 15;BA.debugLine="Private p_camara As Panel"; +mostCurrent._p_camara = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Private camEx As CameraExClass"; +mostCurrent._camex = new reparto_izca.keymon.lat.cameraexclass(); + //BA.debugLineNum = 17;BA.debugLine="Dim btnTakePicture As Button"; +mostCurrent._btntakepicture = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Dim c As Cursor"; +mostCurrent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 20;BA.debugLine="Dim cuenta As String"; +mostCurrent._cuenta = ""; + //BA.debugLineNum = 21;BA.debugLine="Dim lat_gps As String"; +mostCurrent._lat_gps = ""; + //BA.debugLineNum = 23;BA.debugLine="Dim USUARIO As String"; +mostCurrent._usuario = ""; + //BA.debugLineNum = 24;BA.debugLine="Dim MOTIVO As String"; +mostCurrent._motivo = ""; + //BA.debugLineNum = 25;BA.debugLine="End Sub"; return ""; } public static String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ -RDebugUtils.currentModule="foto"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "gps_locationchanged", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "gps_locationchanged", new Object[] {_location1}));} -RDebugUtils.currentLine=29949952; - //BA.debugLineNum = 29949952;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; -RDebugUtils.currentLine=29949957; - //BA.debugLineNum = 29949957;BA.debugLine="End Sub"; + //BA.debugLineNum = 50;BA.debugLine="Sub GPS_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 55;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public static String _initializecamera() throws Exception{ + //BA.debugLineNum = 41;BA.debugLine="Private Sub InitializeCamera"; + //BA.debugLineNum = 42;BA.debugLine="camEx.Initialize(p_camara, frontCamera, Me, \"Came"; +mostCurrent._camex._initialize /*String*/ (mostCurrent.activityBA,mostCurrent._p_camara,_frontcamera,foto.getObject(),"Camera1"); + //BA.debugLineNum = 43;BA.debugLine="frontCamera = camEx.Front"; +_frontcamera = mostCurrent._camex._front /*boolean*/ ; + //BA.debugLineNum = 44;BA.debugLine="End Sub"; +return ""; +} +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 7;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 8;BA.debugLine="Private frontCamera As Boolean = False"; +_frontcamera = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 10;BA.debugLine="Dim g As GPS"; +_g = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 12;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/httpjob.java b/B4A/Objects/src/reparto_izca/keymon/lat/httpjob.java index 232b7a3..ca5ec5c 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/httpjob.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/httpjob.java @@ -10,7 +10,7 @@ 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 anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.httpjob"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.httpjob"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,31 +23,7 @@ public class httpjob extends B4AClass.ImplB4AClass implements BA.SubDelegator{ ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -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 anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _jobname = ""; public boolean _success = false; public String _username = ""; @@ -75,622 +51,395 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _initialize(reparto_izca.keymon.lat.httpjob __ref,anywheresoftware.b4a.BA _ba,String _name,Object _targetmodule) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_name,_targetmodule}));} -RDebugUtils.currentLine=42991616; - //BA.debugLineNum = 42991616;BA.debugLine="Public Sub Initialize (Name As String, TargetModul"; -RDebugUtils.currentLine=42991617; - //BA.debugLineNum = 42991617;BA.debugLine="JobName = Name"; -__ref._jobname /*String*/ = _name; -RDebugUtils.currentLine=42991618; - //BA.debugLineNum = 42991618;BA.debugLine="target = TargetModule"; -__ref._target /*Object*/ = _targetmodule; -RDebugUtils.currentLine=42991626; - //BA.debugLineNum = 42991626;BA.debugLine="End Sub"; -return ""; +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 = ""; } -public String _download(reparto_izca.keymon.lat.httpjob __ref,String _link) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "download", true)) - {return ((String) Debug.delegate(ba, "download", new Object[] {_link}));} -RDebugUtils.currentLine=43778048; - //BA.debugLineNum = 43778048;BA.debugLine="Public Sub Download(Link As String)"; -RDebugUtils.currentLine=43778049; - //BA.debugLineNum = 43778049;BA.debugLine="Try"; -try {RDebugUtils.currentLine=43778050; - //BA.debugLineNum = 43778050;BA.debugLine="Link = AddScheme(Link)"; -_link = __ref._addscheme /*String*/ (null,_link); -RDebugUtils.currentLine=43778051; - //BA.debugLineNum = 43778051;BA.debugLine="req.InitializeGet(Link)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializeGet(_link); - } - catch (Exception e5) { - ba.setLastException(e5);RDebugUtils.currentLine=43778053; - //BA.debugLineNum = 43778053;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; -__c.LogImpl("943778053",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); -RDebugUtils.currentLine=43778054; - //BA.debugLineNum = 43778054;BA.debugLine="req.InitializeGet(InvalidURL)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializeGet(__ref._invalidurl /*String*/ ); - }; -RDebugUtils.currentLine=43778056; - //BA.debugLineNum = 43778056;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; -__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this); -RDebugUtils.currentLine=43778057; - //BA.debugLineNum = 43778057;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _getinputstream(reparto_izca.keymon.lat.httpjob __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "getinputstream", true)) - {return ((anywheresoftware.b4a.objects.streams.File.InputStreamWrapper) Debug.delegate(ba, "getinputstream", null));} -anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; -RDebugUtils.currentLine=44630016; - //BA.debugLineNum = 44630016;BA.debugLine="Public Sub GetInputStream As InputStream"; -RDebugUtils.currentLine=44630017; - //BA.debugLineNum = 44630017;BA.debugLine="Dim In As InputStream"; -_in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); -RDebugUtils.currentLine=44630018; - //BA.debugLineNum = 44630018;BA.debugLine="In = File.OpenInput(HttpUtils2Service.TempFolder,"; -_in = __c.File.OpenInput(_httputils2service._tempfolder /*String*/ ,__ref._taskid /*String*/ ); -RDebugUtils.currentLine=44630019; - //BA.debugLineNum = 44630019;BA.debugLine="Return In"; -if (true) return _in; -RDebugUtils.currentLine=44630020; - //BA.debugLineNum = 44630020;BA.debugLine="End Sub"; -return null; -} -public String _release(reparto_izca.keymon.lat.httpjob __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "release", true)) - {return ((String) Debug.delegate(ba, "release", null));} -RDebugUtils.currentLine=44105728; - //BA.debugLineNum = 44105728;BA.debugLine="Public Sub Release"; -RDebugUtils.currentLine=44105730; - //BA.debugLineNum = 44105730;BA.debugLine="File.Delete(HttpUtils2Service.TempFolder, taskId)"; -__c.File.Delete(_httputils2service._tempfolder /*String*/ ,__ref._taskid /*String*/ ); -RDebugUtils.currentLine=44105732; - //BA.debugLineNum = 44105732;BA.debugLine="End Sub"; -return ""; -} -public String _getstring(reparto_izca.keymon.lat.httpjob __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "getstring", true)) - {return ((String) Debug.delegate(ba, "getstring", null));} -RDebugUtils.currentLine=44171264; - //BA.debugLineNum = 44171264;BA.debugLine="Public Sub GetString As String"; -RDebugUtils.currentLine=44171265; - //BA.debugLineNum = 44171265;BA.debugLine="Return GetString2(\"UTF8\")"; -if (true) return __ref._getstring2 /*String*/ (null,"UTF8"); -RDebugUtils.currentLine=44171266; - //BA.debugLineNum = 44171266;BA.debugLine="End Sub"; -return ""; -} -public String _postbytes(reparto_izca.keymon.lat.httpjob __ref,String _link,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "postbytes", true)) - {return ((String) Debug.delegate(ba, "postbytes", new Object[] {_link,_data}));} -RDebugUtils.currentLine=43188224; - //BA.debugLineNum = 43188224;BA.debugLine="Public Sub PostBytes(Link As String, Data() As Byt"; -RDebugUtils.currentLine=43188225; - //BA.debugLineNum = 43188225;BA.debugLine="Try"; -try {RDebugUtils.currentLine=43188226; - //BA.debugLineNum = 43188226;BA.debugLine="Link = AddScheme(Link)"; -_link = __ref._addscheme /*String*/ (null,_link); -RDebugUtils.currentLine=43188227; - //BA.debugLineNum = 43188227;BA.debugLine="req.InitializePost2(Link, Data)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializePost2(_link,_data); - } - catch (Exception e5) { - ba.setLastException(e5);RDebugUtils.currentLine=43188229; - //BA.debugLineNum = 43188229;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; -__c.LogImpl("943188229",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); -RDebugUtils.currentLine=43188230; - //BA.debugLineNum = 43188230;BA.debugLine="req.InitializePost2(InvalidURL, Data)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializePost2(__ref._invalidurl /*String*/ ,_data); - }; -RDebugUtils.currentLine=43188232; - //BA.debugLineNum = 43188232;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; -__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this); -RDebugUtils.currentLine=43188233; - //BA.debugLineNum = 43188233;BA.debugLine="End Sub"; -return ""; -} -public String _complete(reparto_izca.keymon.lat.httpjob __ref,int _id) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "complete", true)) - {return ((String) Debug.delegate(ba, "complete", new Object[] {_id}));} -RDebugUtils.currentLine=44367872; - //BA.debugLineNum = 44367872;BA.debugLine="Public Sub Complete (id As Int)"; -RDebugUtils.currentLine=44367873; - //BA.debugLineNum = 44367873;BA.debugLine="taskId = id"; -__ref._taskid /*String*/ = BA.NumberToString(_id); -RDebugUtils.currentLine=44367874; - //BA.debugLineNum = 44367874;BA.debugLine="CallSubDelayed2(target, \"JobDone\", Me)"; -__c.CallSubDelayed2(ba,__ref._target /*Object*/ ,"JobDone",this); -RDebugUtils.currentLine=44367875; - //BA.debugLineNum = 44367875;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest _getrequest(reparto_izca.keymon.lat.httpjob __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "getrequest", true)) - {return ((anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest) Debug.delegate(ba, "getrequest", null));} -RDebugUtils.currentLine=44302336; - //BA.debugLineNum = 44302336;BA.debugLine="Public Sub GetRequest As OkHttpRequest"; -RDebugUtils.currentLine=44302337; - //BA.debugLineNum = 44302337;BA.debugLine="Return req"; -if (true) return __ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ ; -RDebugUtils.currentLine=44302338; - //BA.debugLineNum = 44302338;BA.debugLine="End Sub"; -return null; -} -public String _addscheme(reparto_izca.keymon.lat.httpjob __ref,String _link) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "addscheme", true)) - {return ((String) Debug.delegate(ba, "addscheme", new Object[] {_link}));} -RDebugUtils.currentLine=43057152; - //BA.debugLineNum = 43057152;BA.debugLine="Private Sub AddScheme (Link As String) As String"; -RDebugUtils.currentLine=43057153; - //BA.debugLineNum = 43057153;BA.debugLine="If DefaultScheme = \"\" Or Link.Contains(\":\") Then"; -if ((__ref._defaultscheme /*String*/ ).equals("") || _link.contains(":")) { +@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;}; -RDebugUtils.currentLine=43057154; - //BA.debugLineNum = 43057154;BA.debugLine="Return DefaultScheme & \"://\" & Link"; -if (true) return __ref._defaultscheme /*String*/ +"://"+_link; -RDebugUtils.currentLine=43057155; - //BA.debugLineNum = 43057155;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.httpjob __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -RDebugUtils.currentLine=42926080; - //BA.debugLineNum = 42926080;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=42926081; - //BA.debugLineNum = 42926081;BA.debugLine="Public JobName As String"; +public String _class_globals() throws Exception{ + //BA.debugLineNum = 2;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 3;BA.debugLine="Public JobName As String"; _jobname = ""; -RDebugUtils.currentLine=42926082; - //BA.debugLineNum = 42926082;BA.debugLine="Public Success As Boolean"; + //BA.debugLineNum = 4;BA.debugLine="Public Success As Boolean"; _success = false; -RDebugUtils.currentLine=42926083; - //BA.debugLineNum = 42926083;BA.debugLine="Public Username, Password As String"; + //BA.debugLineNum = 5;BA.debugLine="Public Username, Password As String"; _username = ""; _password = ""; -RDebugUtils.currentLine=42926084; - //BA.debugLineNum = 42926084;BA.debugLine="Public ErrorMessage As String"; + //BA.debugLineNum = 6;BA.debugLine="Public ErrorMessage As String"; _errormessage = ""; -RDebugUtils.currentLine=42926085; - //BA.debugLineNum = 42926085;BA.debugLine="Private target As Object"; + //BA.debugLineNum = 7;BA.debugLine="Private target As Object"; _target = new Object(); -RDebugUtils.currentLine=42926088; - //BA.debugLineNum = 42926088;BA.debugLine="Public taskId As String"; + //BA.debugLineNum = 10;BA.debugLine="Public taskId As String"; _taskid = ""; -RDebugUtils.currentLine=42926089; - //BA.debugLineNum = 42926089;BA.debugLine="Public Out As OutputStream"; + //BA.debugLineNum = 11;BA.debugLine="Public Out As OutputStream"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -RDebugUtils.currentLine=42926093; - //BA.debugLineNum = 42926093;BA.debugLine="Private req As OkHttpRequest"; + //BA.debugLineNum = 15;BA.debugLine="Private req As OkHttpRequest"; _req = new anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest(); -RDebugUtils.currentLine=42926094; - //BA.debugLineNum = 42926094;BA.debugLine="Public Response As OkHttpResponse"; + //BA.debugLineNum = 16;BA.debugLine="Public Response As OkHttpResponse"; _response = new anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpResponse(); -RDebugUtils.currentLine=42926103; - //BA.debugLineNum = 42926103;BA.debugLine="Public Tag As Object"; + //BA.debugLineNum = 25;BA.debugLine="Public Tag As Object"; _tag = new Object(); -RDebugUtils.currentLine=42926104; - //BA.debugLineNum = 42926104;BA.debugLine="Type MultipartFileData (Dir As String, FileName A"; + //BA.debugLineNum = 26;BA.debugLine="Type MultipartFileData (Dir As String, FileName A"; ; -RDebugUtils.currentLine=42926108; - //BA.debugLineNum = 42926108;BA.debugLine="Private Const InvalidURL As String = \"https://inv"; + //BA.debugLineNum = 30;BA.debugLine="Private Const InvalidURL As String = \"https://inv"; _invalidurl = "https://invalid-url/"; -RDebugUtils.currentLine=42926109; - //BA.debugLineNum = 42926109;BA.debugLine="Public DefaultScheme As String = \"https\""; + //BA.debugLineNum = 31;BA.debugLine="Public DefaultScheme As String = \"https\""; _defaultscheme = "https"; -RDebugUtils.currentLine=42926110; - //BA.debugLineNum = 42926110;BA.debugLine="End Sub"; + //BA.debugLineNum = 32;BA.debugLine="End Sub"; return ""; } -public String _delete(reparto_izca.keymon.lat.httpjob __ref,String _link) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "delete", true)) - {return ((String) Debug.delegate(ba, "delete", new Object[] {_link}));} -RDebugUtils.currentLine=43974656; - //BA.debugLineNum = 43974656;BA.debugLine="Public Sub Delete(Link As String)"; -RDebugUtils.currentLine=43974657; - //BA.debugLineNum = 43974657;BA.debugLine="Try"; -try {RDebugUtils.currentLine=43974658; - //BA.debugLineNum = 43974658;BA.debugLine="Link = AddScheme(Link)"; -_link = __ref._addscheme /*String*/ (null,_link); -RDebugUtils.currentLine=43974659; - //BA.debugLineNum = 43974659;BA.debugLine="req.InitializeDelete(Link)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializeDelete(_link); +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);RDebugUtils.currentLine=43974661; - //BA.debugLineNum = 43974661;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; -__c.LogImpl("943974661",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); -RDebugUtils.currentLine=43974662; - //BA.debugLineNum = 43974662;BA.debugLine="req.InitializeDelete(InvalidURL)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializeDelete(__ref._invalidurl /*String*/ ); + ba.setLastException(e5); //BA.debugLineNum = 266;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; +__c.LogImpl("952494341",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); + //BA.debugLineNum = 267;BA.debugLine="req.InitializeDelete(InvalidURL)"; +_req.InitializeDelete(_invalidurl); }; -RDebugUtils.currentLine=43974664; - //BA.debugLineNum = 43974664;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; + //BA.debugLineNum = 269;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; __c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this); -RDebugUtils.currentLine=43974665; - //BA.debugLineNum = 43974665;BA.debugLine="End Sub"; + //BA.debugLineNum = 270;BA.debugLine="End Sub"; return ""; } -public String _delete2(reparto_izca.keymon.lat.httpjob __ref,String _link,String[] _parameters) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "delete2", true)) - {return ((String) Debug.delegate(ba, "delete2", new Object[] {_link,_parameters}));} -RDebugUtils.currentLine=44040192; - //BA.debugLineNum = 44040192;BA.debugLine="Public Sub Delete2(Link As String, Parameters() As"; -RDebugUtils.currentLine=44040193; - //BA.debugLineNum = 44040193;BA.debugLine="Try"; -try {RDebugUtils.currentLine=44040194; - //BA.debugLineNum = 44040194;BA.debugLine="Link = AddScheme(Link)"; -_link = __ref._addscheme /*String*/ (null,_link); -RDebugUtils.currentLine=44040195; - //BA.debugLineNum = 44040195;BA.debugLine="req.InitializeDelete(escapeLink(Link, Parameters"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializeDelete(__ref._escapelink /*String*/ (null,_link,_parameters)); +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);RDebugUtils.currentLine=44040197; - //BA.debugLineNum = 44040197;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; -__c.LogImpl("944040197",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); -RDebugUtils.currentLine=44040198; - //BA.debugLineNum = 44040198;BA.debugLine="req.InitializeDelete(escapeLink(InvalidURL, Para"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializeDelete(__ref._escapelink /*String*/ (null,__ref._invalidurl /*String*/ ,_parameters)); + ba.setLastException(e5); //BA.debugLineNum = 277;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; +__c.LogImpl("952559877",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); + //BA.debugLineNum = 278;BA.debugLine="req.InitializeDelete(escapeLink(InvalidURL, Para"; +_req.InitializeDelete(_escapelink(_invalidurl,_parameters)); }; -RDebugUtils.currentLine=44040200; - //BA.debugLineNum = 44040200;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; + //BA.debugLineNum = 280;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; __c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this); -RDebugUtils.currentLine=44040201; - //BA.debugLineNum = 44040201;BA.debugLine="End Sub"; + //BA.debugLineNum = 281;BA.debugLine="End Sub"; return ""; } -public String _escapelink(reparto_izca.keymon.lat.httpjob __ref,String _link,String[] _parameters) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "escapelink", true)) - {return ((String) Debug.delegate(ba, "escapelink", new Object[] {_link,_parameters}));} +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("952297733",("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("952363269",("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; -RDebugUtils.currentLine=43909120; - //BA.debugLineNum = 43909120;BA.debugLine="Private Sub escapeLink(Link As String, Parameters("; -RDebugUtils.currentLine=43909121; - //BA.debugLineNum = 43909121;BA.debugLine="Dim sb As StringBuilder"; + //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(); -RDebugUtils.currentLine=43909122; - //BA.debugLineNum = 43909122;BA.debugLine="sb.Initialize"; + //BA.debugLineNum = 248;BA.debugLine="sb.Initialize"; _sb.Initialize(); -RDebugUtils.currentLine=43909123; - //BA.debugLineNum = 43909123;BA.debugLine="sb.Append(Link)"; + //BA.debugLineNum = 249;BA.debugLine="sb.Append(Link)"; _sb.Append(_link); -RDebugUtils.currentLine=43909124; - //BA.debugLineNum = 43909124;BA.debugLine="If Parameters.Length > 0 Then sb.Append(\"?\")"; + //BA.debugLineNum = 250;BA.debugLine="If Parameters.Length > 0 Then sb.Append(\"?\")"; if (_parameters.length>0) { _sb.Append("?");}; -RDebugUtils.currentLine=43909125; - //BA.debugLineNum = 43909125;BA.debugLine="Dim su As StringUtils"; + //BA.debugLineNum = 251;BA.debugLine="Dim su As StringUtils"; _su = new anywheresoftware.b4a.objects.StringUtils(); -RDebugUtils.currentLine=43909126; - //BA.debugLineNum = 43909126;BA.debugLine="For i = 0 To Parameters.Length - 1 Step 2"; + //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 ) { -RDebugUtils.currentLine=43909127; - //BA.debugLineNum = 43909127;BA.debugLine="If i > 0 Then sb.Append(\"&\")"; + //BA.debugLineNum = 253;BA.debugLine="If i > 0 Then sb.Append(\"&\")"; if (_i>0) { _sb.Append("&");}; -RDebugUtils.currentLine=43909128; - //BA.debugLineNum = 43909128;BA.debugLine="sb.Append(su.EncodeUrl(Parameters(i), \"UTF8\")).A"; + //BA.debugLineNum = 254;BA.debugLine="sb.Append(su.EncodeUrl(Parameters(i), \"UTF8\")).A"; _sb.Append(_su.EncodeUrl(_parameters[_i],"UTF8")).Append("="); -RDebugUtils.currentLine=43909129; - //BA.debugLineNum = 43909129;BA.debugLine="sb.Append(su.EncodeUrl(Parameters(i + 1), \"UTF8\""; + //BA.debugLineNum = 255;BA.debugLine="sb.Append(su.EncodeUrl(Parameters(i + 1), \"UTF8\""; _sb.Append(_su.EncodeUrl(_parameters[(int) (_i+1)],"UTF8")); } }; -RDebugUtils.currentLine=43909131; - //BA.debugLineNum = 43909131;BA.debugLine="Return sb.ToString"; + //BA.debugLineNum = 257;BA.debugLine="Return sb.ToString"; if (true) return _sb.ToString(); -RDebugUtils.currentLine=43909132; - //BA.debugLineNum = 43909132;BA.debugLine="End Sub"; + //BA.debugLineNum = 258;BA.debugLine="End Sub"; return ""; } -public String _download2(reparto_izca.keymon.lat.httpjob __ref,String _link,String[] _parameters) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "download2", true)) - {return ((String) Debug.delegate(ba, "download2", new Object[] {_link,_parameters}));} -RDebugUtils.currentLine=43843584; - //BA.debugLineNum = 43843584;BA.debugLine="Public Sub Download2(Link As String, Parameters()"; -RDebugUtils.currentLine=43843585; - //BA.debugLineNum = 43843585;BA.debugLine="Try"; -try {RDebugUtils.currentLine=43843586; - //BA.debugLineNum = 43843586;BA.debugLine="Link = AddScheme(Link)"; -_link = __ref._addscheme /*String*/ (null,_link); -RDebugUtils.currentLine=43843587; - //BA.debugLineNum = 43843587;BA.debugLine="req.InitializeGet(escapeLink(Link, Parameters))"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializeGet(__ref._escapelink /*String*/ (null,_link,_parameters)); - } - catch (Exception e5) { - ba.setLastException(e5);RDebugUtils.currentLine=43843589; - //BA.debugLineNum = 43843589;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; -__c.LogImpl("943843589",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); -RDebugUtils.currentLine=43843590; - //BA.debugLineNum = 43843590;BA.debugLine="req.InitializeGet(escapeLink(InvalidURL, Paramet"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializeGet(__ref._escapelink /*String*/ (null,__ref._invalidurl /*String*/ ,_parameters)); - }; -RDebugUtils.currentLine=43843592; - //BA.debugLineNum = 43843592;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; -__c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this); -RDebugUtils.currentLine=43843593; - //BA.debugLineNum = 43843593;BA.debugLine="End Sub"; -return ""; -} -public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _getbitmap(reparto_izca.keymon.lat.httpjob __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "getbitmap", true)) - {return ((anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) Debug.delegate(ba, "getbitmap", null));} +public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _getbitmap() throws Exception{ anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _b = null; -RDebugUtils.currentLine=44433408; - //BA.debugLineNum = 44433408;BA.debugLine="Public Sub GetBitmap As Bitmap"; -RDebugUtils.currentLine=44433409; - //BA.debugLineNum = 44433409;BA.debugLine="Dim b As Bitmap"; + //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(); -RDebugUtils.currentLine=44433410; - //BA.debugLineNum = 44433410;BA.debugLine="b = LoadBitmap(HttpUtils2Service.TempFolder, task"; -_b = __c.LoadBitmap(_httputils2service._tempfolder /*String*/ ,__ref._taskid /*String*/ ); -RDebugUtils.currentLine=44433411; - //BA.debugLineNum = 44433411;BA.debugLine="Return b"; + //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; -RDebugUtils.currentLine=44433412; - //BA.debugLineNum = 44433412;BA.debugLine="End Sub"; + //BA.debugLineNum = 334;BA.debugLine="End Sub"; return null; } -public anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _getbitmapresize(reparto_izca.keymon.lat.httpjob __ref,int _width,int _height,boolean _keepaspectratio) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "getbitmapresize", true)) - {return ((anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) Debug.delegate(ba, "getbitmapresize", new Object[] {_width,_height,_keepaspectratio}));} -RDebugUtils.currentLine=44564480; - //BA.debugLineNum = 44564480;BA.debugLine="Public Sub GetBitmapResize(Width As Int, Height As"; -RDebugUtils.currentLine=44564481; - //BA.debugLineNum = 44564481;BA.debugLine="Return LoadBitmapResize(HttpUtils2Service.TempFol"; -if (true) return __c.LoadBitmapResize(_httputils2service._tempfolder /*String*/ ,__ref._taskid /*String*/ ,_width,_height,_keepaspectratio); -RDebugUtils.currentLine=44564482; - //BA.debugLineNum = 44564482;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.httpjob __ref,int _width,int _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "getbitmapsample", true)) - {return ((anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) Debug.delegate(ba, "getbitmapsample", new Object[] {_width,_height}));} -RDebugUtils.currentLine=44498944; - //BA.debugLineNum = 44498944;BA.debugLine="Public Sub GetBitmapSample(Width As Int, Height As"; -RDebugUtils.currentLine=44498945; - //BA.debugLineNum = 44498945;BA.debugLine="Return LoadBitmapSample(HttpUtils2Service.TempFol"; -if (true) return __c.LoadBitmapSample(_httputils2service._tempfolder /*String*/ ,__ref._taskid /*String*/ ,_width,_height); -RDebugUtils.currentLine=44498946; - //BA.debugLineNum = 44498946;BA.debugLine="End Sub"; +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 String _getstring2(reparto_izca.keymon.lat.httpjob __ref,String _encoding) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "getstring2", true)) - {return ((String) Debug.delegate(ba, "getstring2", new Object[] {_encoding}));} +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 = ""; -RDebugUtils.currentLine=44236800; - //BA.debugLineNum = 44236800;BA.debugLine="Public Sub GetString2(Encoding As String) As Strin"; -RDebugUtils.currentLine=44236804; - //BA.debugLineNum = 44236804;BA.debugLine="Dim tr As TextReader"; + //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(); -RDebugUtils.currentLine=44236805; - //BA.debugLineNum = 44236805;BA.debugLine="tr.Initialize2(File.OpenInput(HttpUtils2Service.T"; -_tr.Initialize2((java.io.InputStream)(__c.File.OpenInput(_httputils2service._tempfolder /*String*/ ,__ref._taskid /*String*/ ).getObject()),_encoding); -RDebugUtils.currentLine=44236806; - //BA.debugLineNum = 44236806;BA.debugLine="Dim res As String = tr.ReadAll"; + //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(); -RDebugUtils.currentLine=44236807; - //BA.debugLineNum = 44236807;BA.debugLine="tr.Close"; + //BA.debugLineNum = 303;BA.debugLine="tr.Close"; _tr.Close(); -RDebugUtils.currentLine=44236808; - //BA.debugLineNum = 44236808;BA.debugLine="Return res"; + //BA.debugLineNum = 304;BA.debugLine="Return res"; if (true) return _res; -RDebugUtils.currentLine=44236810; - //BA.debugLineNum = 44236810;BA.debugLine="End Sub"; + //BA.debugLineNum = 306;BA.debugLine="End Sub"; return ""; } -public String _head(reparto_izca.keymon.lat.httpjob __ref,String _link) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "head", true)) - {return ((String) Debug.delegate(ba, "head", new Object[] {_link}));} -RDebugUtils.currentLine=43515904; - //BA.debugLineNum = 43515904;BA.debugLine="Public Sub Head(Link As String)"; -RDebugUtils.currentLine=43515905; - //BA.debugLineNum = 43515905;BA.debugLine="Try"; -try {RDebugUtils.currentLine=43515906; - //BA.debugLineNum = 43515906;BA.debugLine="Link = AddScheme(Link)"; -_link = __ref._addscheme /*String*/ (null,_link); -RDebugUtils.currentLine=43515907; - //BA.debugLineNum = 43515907;BA.debugLine="req.InitializeHead(Link)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializeHead(_link); +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);RDebugUtils.currentLine=43515909; - //BA.debugLineNum = 43515909;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; -__c.LogImpl("943515909",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); -RDebugUtils.currentLine=43515910; - //BA.debugLineNum = 43515910;BA.debugLine="req.InitializeHead(InvalidURL)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializeHead(__ref._invalidurl /*String*/ ); + ba.setLastException(e5); //BA.debugLineNum = 124;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; +__c.LogImpl("952035589",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); + //BA.debugLineNum = 125;BA.debugLine="req.InitializeHead(InvalidURL)"; +_req.InitializeHead(_invalidurl); }; -RDebugUtils.currentLine=43515912; - //BA.debugLineNum = 43515912;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; + //BA.debugLineNum = 127;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; __c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this); -RDebugUtils.currentLine=43515913; - //BA.debugLineNum = 43515913;BA.debugLine="End Sub"; + //BA.debugLineNum = 128;BA.debugLine="End Sub"; return ""; } -public boolean _multipartstartsection(reparto_izca.keymon.lat.httpjob __ref,anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _stream,boolean _empty) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "multipartstartsection", true)) - {return ((Boolean) Debug.delegate(ba, "multipartstartsection", new Object[] {_stream,_empty}));} -RDebugUtils.currentLine=43646976; - //BA.debugLineNum = 43646976;BA.debugLine="Private Sub MultipartStartSection (stream As Outpu"; -RDebugUtils.currentLine=43646977; - //BA.debugLineNum = 43646977;BA.debugLine="If empty = False Then"; +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) { -RDebugUtils.currentLine=43646978; - //BA.debugLineNum = 43646978;BA.debugLine="stream.WriteBytes(Array As Byte(13, 10), 0, 2)"; + //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 { -RDebugUtils.currentLine=43646980; - //BA.debugLineNum = 43646980;BA.debugLine="empty = False"; + //BA.debugLineNum = 183;BA.debugLine="empty = False"; _empty = __c.False; }; -RDebugUtils.currentLine=43646982; - //BA.debugLineNum = 43646982;BA.debugLine="Return empty"; + //BA.debugLineNum = 185;BA.debugLine="Return empty"; if (true) return _empty; -RDebugUtils.currentLine=43646983; - //BA.debugLineNum = 43646983;BA.debugLine="End Sub"; + //BA.debugLineNum = 186;BA.debugLine="End Sub"; return false; } -public String _patchbytes(reparto_izca.keymon.lat.httpjob __ref,String _link,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "patchbytes", true)) - {return ((String) Debug.delegate(ba, "patchbytes", new Object[] {_link,_data}));} -RDebugUtils.currentLine=43450368; - //BA.debugLineNum = 43450368;BA.debugLine="Public Sub PatchBytes(Link As String, Data() As By"; -RDebugUtils.currentLine=43450369; - //BA.debugLineNum = 43450369;BA.debugLine="Link = AddScheme(Link)"; -_link = __ref._addscheme /*String*/ (null,_link); -RDebugUtils.currentLine=43450377; - //BA.debugLineNum = 43450377;BA.debugLine="Try"; -try {RDebugUtils.currentLine=43450378; - //BA.debugLineNum = 43450378;BA.debugLine="req.InitializePatch2(Link, Data)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializePatch2(_link,_data); +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);RDebugUtils.currentLine=43450380; - //BA.debugLineNum = 43450380;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; -__c.LogImpl("943450380",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); -RDebugUtils.currentLine=43450381; - //BA.debugLineNum = 43450381;BA.debugLine="req.InitializePatch2(InvalidURL, Data)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializePatch2(__ref._invalidurl /*String*/ ,_data); + ba.setLastException(e5); //BA.debugLineNum = 109;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; +__c.LogImpl("951970060",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); + //BA.debugLineNum = 110;BA.debugLine="req.InitializePatch2(InvalidURL, Data)"; +_req.InitializePatch2(_invalidurl,_data); }; -RDebugUtils.currentLine=43450385; - //BA.debugLineNum = 43450385;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; + //BA.debugLineNum = 114;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; __c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this); -RDebugUtils.currentLine=43450386; - //BA.debugLineNum = 43450386;BA.debugLine="End Sub"; + //BA.debugLineNum = 115;BA.debugLine="End Sub"; return ""; } -public String _patchstring(reparto_izca.keymon.lat.httpjob __ref,String _link,String _text) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "patchstring", true)) - {return ((String) Debug.delegate(ba, "patchstring", new Object[] {_link,_text}));} -RDebugUtils.currentLine=43384832; - //BA.debugLineNum = 43384832;BA.debugLine="Public Sub PatchString(Link As String, Text As Str"; -RDebugUtils.currentLine=43384833; - //BA.debugLineNum = 43384833;BA.debugLine="PatchBytes(Link, Text.GetBytes(\"UTF8\"))"; -__ref._patchbytes /*String*/ (null,_link,_text.getBytes("UTF8")); -RDebugUtils.currentLine=43384834; - //BA.debugLineNum = 43384834;BA.debugLine="End Sub"; +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 _postfile(reparto_izca.keymon.lat.httpjob __ref,String _link,String _dir,String _filename) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "postfile", true)) - {return ((String) Debug.delegate(ba, "postfile", new Object[] {_link,_dir,_filename}));} +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("951707909",("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; -RDebugUtils.currentLine=43712512; - //BA.debugLineNum = 43712512;BA.debugLine="Public Sub PostFile(Link As String, Dir As String,"; -RDebugUtils.currentLine=43712513; - //BA.debugLineNum = 43712513;BA.debugLine="Link = AddScheme(Link)"; -_link = __ref._addscheme /*String*/ (null,_link); -RDebugUtils.currentLine=43712518; - //BA.debugLineNum = 43712518;BA.debugLine="Dim length As Int"; + //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; -RDebugUtils.currentLine=43712519; - //BA.debugLineNum = 43712519;BA.debugLine="If Dir = File.DirAssets Then"; + //BA.debugLineNum = 197;BA.debugLine="If Dir = File.DirAssets Then"; if ((_dir).equals(__c.File.getDirAssets())) { -RDebugUtils.currentLine=43712520; - //BA.debugLineNum = 43712520;BA.debugLine="Log(\"Cannot send files from the assets folder.\")"; -__c.LogImpl("943712520","Cannot send files from the assets folder.",0); -RDebugUtils.currentLine=43712521; - //BA.debugLineNum = 43712521;BA.debugLine="Return"; + //BA.debugLineNum = 198;BA.debugLine="Log(\"Cannot send files from the assets folder.\")"; +__c.LogImpl("952232200","Cannot send files from the assets folder.",0); + //BA.debugLineNum = 199;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=43712523; - //BA.debugLineNum = 43712523;BA.debugLine="length = File.Size(Dir, FileName)"; + //BA.debugLineNum = 201;BA.debugLine="length = File.Size(Dir, FileName)"; _length = (int) (__c.File.Size(_dir,_filename)); -RDebugUtils.currentLine=43712524; - //BA.debugLineNum = 43712524;BA.debugLine="Dim In As InputStream"; + //BA.debugLineNum = 202;BA.debugLine="Dim In As InputStream"; _in = new anywheresoftware.b4a.objects.streams.File.InputStreamWrapper(); -RDebugUtils.currentLine=43712525; - //BA.debugLineNum = 43712525;BA.debugLine="In = File.OpenInput(Dir, FileName)"; + //BA.debugLineNum = 203;BA.debugLine="In = File.OpenInput(Dir, FileName)"; _in = __c.File.OpenInput(_dir,_filename); -RDebugUtils.currentLine=43712526; - //BA.debugLineNum = 43712526;BA.debugLine="If length < 1000000 Then '1mb"; + //BA.debugLineNum = 204;BA.debugLine="If length < 1000000 Then '1mb"; if (_length<1000000) { -RDebugUtils.currentLine=43712529; - //BA.debugLineNum = 43712529;BA.debugLine="Dim out As OutputStream"; + //BA.debugLineNum = 207;BA.debugLine="Dim out As OutputStream"; _out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -RDebugUtils.currentLine=43712530; - //BA.debugLineNum = 43712530;BA.debugLine="out.InitializeToBytesArray(length)"; -__ref._out /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ .InitializeToBytesArray(_length); -RDebugUtils.currentLine=43712531; - //BA.debugLineNum = 43712531;BA.debugLine="File.Copy2(In, out)"; -__c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(__ref._out /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ .getObject())); -RDebugUtils.currentLine=43712532; - //BA.debugLineNum = 43712532;BA.debugLine="PostBytes(Link, out.ToBytesArray)"; -__ref._postbytes /*String*/ (null,_link,__ref._out /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ .ToBytesArray()); + //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 { -RDebugUtils.currentLine=43712534; - //BA.debugLineNum = 43712534;BA.debugLine="req.InitializePost(Link, In, length)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializePost(_link,(java.io.InputStream)(_in.getObject()),_length); -RDebugUtils.currentLine=43712535; - //BA.debugLineNum = 43712535;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\","; + //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); }; -RDebugUtils.currentLine=43712538; - //BA.debugLineNum = 43712538;BA.debugLine="End Sub"; + //BA.debugLineNum = 216;BA.debugLine="End Sub"; return ""; } -public String _postmultipart(reparto_izca.keymon.lat.httpjob __ref,String _link,anywheresoftware.b4a.objects.collections.Map _namevalues,anywheresoftware.b4a.objects.collections.List _files) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "postmultipart", true)) - {return ((String) Debug.delegate(ba, "postmultipart", new Object[] {_link,_namevalues,_files}));} +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; @@ -701,32 +450,23 @@ String _value = ""; String _s = ""; reparto_izca.keymon.lat.httpjob._multipartfiledata _fd = null; anywheresoftware.b4a.objects.streams.File.InputStreamWrapper _in = null; -RDebugUtils.currentLine=43581440; - //BA.debugLineNum = 43581440;BA.debugLine="Public Sub PostMultipart(Link As String, NameValue"; -RDebugUtils.currentLine=43581441; - //BA.debugLineNum = 43581441;BA.debugLine="Dim boundary As String = \"-----------------------"; + //BA.debugLineNum = 133;BA.debugLine="Public Sub PostMultipart(Link As String, NameValue"; + //BA.debugLineNum = 134;BA.debugLine="Dim boundary As String = \"-----------------------"; _boundary = "---------------------------1461124740692"; -RDebugUtils.currentLine=43581442; - //BA.debugLineNum = 43581442;BA.debugLine="Dim stream As OutputStream"; + //BA.debugLineNum = 135;BA.debugLine="Dim stream As OutputStream"; _stream = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -RDebugUtils.currentLine=43581443; - //BA.debugLineNum = 43581443;BA.debugLine="stream.InitializeToBytesArray(0)"; + //BA.debugLineNum = 136;BA.debugLine="stream.InitializeToBytesArray(0)"; _stream.InitializeToBytesArray((int) (0)); -RDebugUtils.currentLine=43581444; - //BA.debugLineNum = 43581444;BA.debugLine="Dim b() As Byte"; + //BA.debugLineNum = 137;BA.debugLine="Dim b() As Byte"; _b = new byte[(int) (0)]; ; -RDebugUtils.currentLine=43581445; - //BA.debugLineNum = 43581445;BA.debugLine="Dim eol As String = Chr(13) & Chr(10)"; + //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))); -RDebugUtils.currentLine=43581446; - //BA.debugLineNum = 43581446;BA.debugLine="Dim empty As Boolean = True"; + //BA.debugLineNum = 139;BA.debugLine="Dim empty As Boolean = True"; _empty = __c.True; -RDebugUtils.currentLine=43581447; - //BA.debugLineNum = 43581447;BA.debugLine="If NameValues <> Null And NameValues.IsInitialize"; + //BA.debugLineNum = 140;BA.debugLine="If NameValues <> Null And NameValues.IsInitialize"; if (_namevalues!= null && _namevalues.IsInitialized()) { -RDebugUtils.currentLine=43581448; - //BA.debugLineNum = 43581448;BA.debugLine="For Each key As String In NameValues.Keys"; + //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() @@ -734,29 +474,22 @@ final int groupLen8 = group8.getSize() ; for (; index8 < groupLen8;index8++){ _key = BA.ObjectToString(group8.Get(index8)); -RDebugUtils.currentLine=43581449; - //BA.debugLineNum = 43581449;BA.debugLine="Dim value As String = NameValues.Get(key)"; + //BA.debugLineNum = 142;BA.debugLine="Dim value As String = NameValues.Get(key)"; _value = BA.ObjectToString(_namevalues.Get((Object)(_key))); -RDebugUtils.currentLine=43581450; - //BA.debugLineNum = 43581450;BA.debugLine="empty = MultipartStartSection (stream, empty)"; -_empty = __ref._multipartstartsection /*boolean*/ (null,_stream,_empty); -RDebugUtils.currentLine=43581451; - //BA.debugLineNum = 43581451;BA.debugLine="Dim s As String = _ $\"--${boundary} Content-Dis"; + //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))+""); -RDebugUtils.currentLine=43581456; - //BA.debugLineNum = 43581456;BA.debugLine="b = s.Replace(CRLF, eol).GetBytes(\"UTF8\")"; + //BA.debugLineNum = 149;BA.debugLine="b = s.Replace(CRLF, eol).GetBytes(\"UTF8\")"; _b = _s.replace(__c.CRLF,_eol).getBytes("UTF8"); -RDebugUtils.currentLine=43581457; - //BA.debugLineNum = 43581457;BA.debugLine="stream.WriteBytes(b, 0, b.Length)"; + //BA.debugLineNum = 150;BA.debugLine="stream.WriteBytes(b, 0, b.Length)"; _stream.WriteBytes(_b,(int) (0),_b.length); } }; }; -RDebugUtils.currentLine=43581460; - //BA.debugLineNum = 43581460;BA.debugLine="If Files <> Null And Files.IsInitialized Then"; + //BA.debugLineNum = 153;BA.debugLine="If Files <> Null And Files.IsInitialized Then"; if (_files!= null && _files.IsInitialized()) { -RDebugUtils.currentLine=43581461; - //BA.debugLineNum = 43581461;BA.debugLine="For Each fd As MultipartFileData In Files"; + //BA.debugLineNum = 154;BA.debugLine="For Each fd As MultipartFileData In Files"; { final anywheresoftware.b4a.BA.IterableList group17 = _files; final int groupLen17 = group17.getSize() @@ -764,110 +497,81 @@ final int groupLen17 = group17.getSize() ; for (; index17 < groupLen17;index17++){ _fd = (reparto_izca.keymon.lat.httpjob._multipartfiledata)(group17.Get(index17)); -RDebugUtils.currentLine=43581462; - //BA.debugLineNum = 43581462;BA.debugLine="empty = MultipartStartSection (stream, empty)"; -_empty = __ref._multipartstartsection /*boolean*/ (null,_stream,_empty); -RDebugUtils.currentLine=43581463; - //BA.debugLineNum = 43581463;BA.debugLine="Dim s As String = _ $\"--${boundary} Content-Dis"; + //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"+""); -RDebugUtils.currentLine=43581469; - //BA.debugLineNum = 43581469;BA.debugLine="b = s.Replace(CRLF, eol).GetBytes(\"UTF8\")"; + //BA.debugLineNum = 162;BA.debugLine="b = s.Replace(CRLF, eol).GetBytes(\"UTF8\")"; _b = _s.replace(__c.CRLF,_eol).getBytes("UTF8"); -RDebugUtils.currentLine=43581470; - //BA.debugLineNum = 43581470;BA.debugLine="stream.WriteBytes(b, 0, b.Length)"; + //BA.debugLineNum = 163;BA.debugLine="stream.WriteBytes(b, 0, b.Length)"; _stream.WriteBytes(_b,(int) (0),_b.length); -RDebugUtils.currentLine=43581471; - //BA.debugLineNum = 43581471;BA.debugLine="Dim in As InputStream = File.OpenInput(fd.Dir,"; + //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*/ ); -RDebugUtils.currentLine=43581472; - //BA.debugLineNum = 43581472;BA.debugLine="File.Copy2(in, stream)"; + //BA.debugLineNum = 165;BA.debugLine="File.Copy2(in, stream)"; __c.File.Copy2((java.io.InputStream)(_in.getObject()),(java.io.OutputStream)(_stream.getObject())); } }; }; -RDebugUtils.currentLine=43581475; - //BA.debugLineNum = 43581475;BA.debugLine="empty = MultipartStartSection (stream, empty)"; -_empty = __ref._multipartstartsection /*boolean*/ (null,_stream,_empty); -RDebugUtils.currentLine=43581476; - //BA.debugLineNum = 43581476;BA.debugLine="s = _ $\"--${boundary}-- \"$"; + //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"+""); -RDebugUtils.currentLine=43581479; - //BA.debugLineNum = 43581479;BA.debugLine="b = s.Replace(CRLF, eol).GetBytes(\"UTF8\")"; + //BA.debugLineNum = 172;BA.debugLine="b = s.Replace(CRLF, eol).GetBytes(\"UTF8\")"; _b = _s.replace(__c.CRLF,_eol).getBytes("UTF8"); -RDebugUtils.currentLine=43581480; - //BA.debugLineNum = 43581480;BA.debugLine="stream.WriteBytes(b, 0, b.Length)"; + //BA.debugLineNum = 173;BA.debugLine="stream.WriteBytes(b, 0, b.Length)"; _stream.WriteBytes(_b,(int) (0),_b.length); -RDebugUtils.currentLine=43581481; - //BA.debugLineNum = 43581481;BA.debugLine="PostBytes(Link, stream.ToBytesArray)"; -__ref._postbytes /*String*/ (null,_link,_stream.ToBytesArray()); -RDebugUtils.currentLine=43581482; - //BA.debugLineNum = 43581482;BA.debugLine="req.SetContentType(\"multipart/form-data; boundary"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .SetContentType("multipart/form-data; boundary="+_boundary); -RDebugUtils.currentLine=43581483; - //BA.debugLineNum = 43581483;BA.debugLine="req.SetContentEncoding(\"UTF8\")"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .SetContentEncoding("UTF8"); -RDebugUtils.currentLine=43581484; - //BA.debugLineNum = 43581484;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.httpjob __ref,String _link,String _text) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "poststring", true)) - {return ((String) Debug.delegate(ba, "poststring", new Object[] {_link,_text}));} -RDebugUtils.currentLine=43122688; - //BA.debugLineNum = 43122688;BA.debugLine="Public Sub PostString(Link As String, Text As Stri"; -RDebugUtils.currentLine=43122689; - //BA.debugLineNum = 43122689;BA.debugLine="PostBytes(Link, Text.GetBytes(\"UTF8\"))"; -__ref._postbytes /*String*/ (null,_link,_text.getBytes("UTF8")); -RDebugUtils.currentLine=43122690; - //BA.debugLineNum = 43122690;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.httpjob __ref,String _link,byte[] _data) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "putbytes", true)) - {return ((String) Debug.delegate(ba, "putbytes", new Object[] {_link,_data}));} -RDebugUtils.currentLine=43319296; - //BA.debugLineNum = 43319296;BA.debugLine="Public Sub PutBytes(Link As String, Data() As Byte"; -RDebugUtils.currentLine=43319297; - //BA.debugLineNum = 43319297;BA.debugLine="Try"; -try {RDebugUtils.currentLine=43319298; - //BA.debugLineNum = 43319298;BA.debugLine="Link = AddScheme(Link)"; -_link = __ref._addscheme /*String*/ (null,_link); -RDebugUtils.currentLine=43319299; - //BA.debugLineNum = 43319299;BA.debugLine="req.InitializePut2(Link, Data)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializePut2(_link,_data); +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);RDebugUtils.currentLine=43319301; - //BA.debugLineNum = 43319301;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; -__c.LogImpl("943319301",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); -RDebugUtils.currentLine=43319302; - //BA.debugLineNum = 43319302;BA.debugLine="req.InitializePut2(InvalidURL, Data)"; -__ref._req /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ .InitializePut2(__ref._invalidurl /*String*/ ,_data); + ba.setLastException(e5); //BA.debugLineNum = 85;BA.debugLine="Log($\"Invalid link: ${Link}\"$)"; +__c.LogImpl("951838981",("Invalid link: "+__c.SmartStringFormatter("",(Object)(_link))+""),0); + //BA.debugLineNum = 86;BA.debugLine="req.InitializePut2(InvalidURL, Data)"; +_req.InitializePut2(_invalidurl,_data); }; -RDebugUtils.currentLine=43319304; - //BA.debugLineNum = 43319304;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; + //BA.debugLineNum = 88;BA.debugLine="CallSubDelayed2(HttpUtils2Service, \"SubmitJob\", M"; __c.CallSubDelayed2(ba,(Object)(_httputils2service.getObject()),"SubmitJob",this); -RDebugUtils.currentLine=43319305; - //BA.debugLineNum = 43319305;BA.debugLine="End Sub"; + //BA.debugLineNum = 89;BA.debugLine="End Sub"; return ""; } -public String _putstring(reparto_izca.keymon.lat.httpjob __ref,String _link,String _text) throws Exception{ -__ref = this; -RDebugUtils.currentModule="httpjob"; -if (Debug.shouldDelegate(ba, "putstring", true)) - {return ((String) Debug.delegate(ba, "putstring", new Object[] {_link,_text}));} -RDebugUtils.currentLine=43253760; - //BA.debugLineNum = 43253760;BA.debugLine="Public Sub PutString(Link As String, Text As Strin"; -RDebugUtils.currentLine=43253761; - //BA.debugLineNum = 43253761;BA.debugLine="PutBytes(Link, Text.GetBytes(\"UTF8\"))"; -__ref._putbytes /*String*/ (null,_link,_text.getBytes("UTF8")); -RDebugUtils.currentLine=43253762; - //BA.debugLineNum = 43253762;BA.debugLine="End Sub"; +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 ""; } -} \ No newline at end of file +public String _release() throws Exception{ + //BA.debugLineNum = 284;BA.debugLine="Public Sub Release"; + //BA.debugLineNum = 286;BA.debugLine="File.Delete(HttpUtils2Service.TempFolder, taskId)"; +__c.File.Delete(_httputils2service._tempfolder /*String*/ ,_taskid); + //BA.debugLineNum = 288;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/httputils2service.java b/B4A/Objects/src/reparto_izca/keymon/lat/httputils2service.java index c379858..38c19e3 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/httputils2service.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/httputils2service.java @@ -20,7 +20,7 @@ public class httputils2service extends android.content.BroadcastReceiver{ if (processBA == null) { - processBA = new anywheresoftware.b4a.ShellBA(context, null, null, anywheresoftware.b4a.BA.SharedProcessBA.ModuleType.RECEIVER, "reparto_izca.keymon.lat.httputils2service"); + processBA = new BA(context, null, null, anywheresoftware.b4a.BA.SharedProcessBA.ModuleType.RECEIVER, "reparto_izca.keymon.lat.httputils2service"); if (BA.isShellModeRuntimeCheck(processBA)) { processBA.raiseEvent2(null, true, "SHELL", false); } @@ -43,7 +43,6 @@ public class httputils2service extends android.content.BroadcastReceiver{ 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; @@ -63,257 +62,177 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; public static String _completejob(int _taskid,boolean _success,String _errormessage) throws Exception{ -RDebugUtils.currentModule="httputils2service"; -if (Debug.shouldDelegate(processBA, "completejob", false)) - {return ((String) Debug.delegate(processBA, "completejob", new Object[] {_taskid,_success,_errormessage}));} reparto_izca.keymon.lat.httpjob _job = null; -RDebugUtils.currentLine=42860544; - //BA.debugLineNum = 42860544;BA.debugLine="Sub CompleteJob(TaskId As Int, success As Boolean,"; -RDebugUtils.currentLine=42860548; - //BA.debugLineNum = 42860548;BA.debugLine="Dim job As HttpJob = TaskIdToJob.Get(TaskId)"; + //BA.debugLineNum = 152;BA.debugLine="Sub CompleteJob(TaskId As Int, success As Boolean,"; + //BA.debugLineNum = 156;BA.debugLine="Dim job As HttpJob = TaskIdToJob.Get(TaskId)"; _job = (reparto_izca.keymon.lat.httpjob)(_taskidtojob.Get((Object)(_taskid))); -RDebugUtils.currentLine=42860549; - //BA.debugLineNum = 42860549;BA.debugLine="If job = Null Then"; + //BA.debugLineNum = 157;BA.debugLine="If job = Null Then"; if (_job== null) { -RDebugUtils.currentLine=42860550; - //BA.debugLineNum = 42860550;BA.debugLine="Log(\"HttpUtils2Service: job completed multiple t"; -anywheresoftware.b4a.keywords.Common.LogImpl("242860550","HttpUtils2Service: job completed multiple times - "+BA.NumberToString(_taskid),0); -RDebugUtils.currentLine=42860551; - //BA.debugLineNum = 42860551;BA.debugLine="Return"; + //BA.debugLineNum = 158;BA.debugLine="Log(\"HttpUtils2Service: job completed multiple t"; +anywheresoftware.b4a.keywords.Common.LogImpl("051380230","HttpUtils2Service: job completed multiple times - "+BA.NumberToString(_taskid),0); + //BA.debugLineNum = 159;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=42860553; - //BA.debugLineNum = 42860553;BA.debugLine="TaskIdToJob.Remove(TaskId)"; + //BA.debugLineNum = 161;BA.debugLine="TaskIdToJob.Remove(TaskId)"; _taskidtojob.Remove((Object)(_taskid)); -RDebugUtils.currentLine=42860554; - //BA.debugLineNum = 42860554;BA.debugLine="job.success = success"; + //BA.debugLineNum = 162;BA.debugLine="job.success = success"; _job._success /*boolean*/ = _success; -RDebugUtils.currentLine=42860555; - //BA.debugLineNum = 42860555;BA.debugLine="job.errorMessage = errorMessage"; + //BA.debugLineNum = 163;BA.debugLine="job.errorMessage = errorMessage"; _job._errormessage /*String*/ = _errormessage; -RDebugUtils.currentLine=42860557; - //BA.debugLineNum = 42860557;BA.debugLine="job.Complete(TaskId)"; -_job._complete /*String*/ (null,_taskid); -RDebugUtils.currentLine=42860561; - //BA.debugLineNum = 42860561;BA.debugLine="End Sub"; + //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{ -RDebugUtils.currentModule="httputils2service"; -if (Debug.shouldDelegate(processBA, "hc_responseerror", false)) - {return ((String) Debug.delegate(processBA, "hc_responseerror", new Object[] {_response,_reason,_statuscode,_taskid}));} reparto_izca.keymon.lat.httpjob _job = null; -RDebugUtils.currentLine=42795008; - //BA.debugLineNum = 42795008;BA.debugLine="Sub hc_ResponseError (Response As OkHttpResponse,"; -RDebugUtils.currentLine=42795010; - //BA.debugLineNum = 42795010;BA.debugLine="Log($\"ResponseError. Reason: ${Reason}, Response:"; -anywheresoftware.b4a.keywords.Common.LogImpl("242795010",("ResponseError. Reason: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_reason))+", Response: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_response.getErrorResponse()))+""),0); -RDebugUtils.currentLine=42795012; - //BA.debugLineNum = 42795012;BA.debugLine="Response.Release"; + //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("051314690",("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(); -RDebugUtils.currentLine=42795013; - //BA.debugLineNum = 42795013;BA.debugLine="Dim job As HttpJob = TaskIdToJob.Get(TaskId)"; + //BA.debugLineNum = 120;BA.debugLine="Dim job As HttpJob = TaskIdToJob.Get(TaskId)"; _job = (reparto_izca.keymon.lat.httpjob)(_taskidtojob.Get((Object)(_taskid))); -RDebugUtils.currentLine=42795014; - //BA.debugLineNum = 42795014;BA.debugLine="If job = Null Then"; + //BA.debugLineNum = 121;BA.debugLine="If job = Null Then"; if (_job== null) { -RDebugUtils.currentLine=42795015; - //BA.debugLineNum = 42795015;BA.debugLine="Log(\"HttpUtils2Service (hc_ResponseError): job c"; -anywheresoftware.b4a.keywords.Common.LogImpl("242795015","HttpUtils2Service (hc_ResponseError): job completed multiple times - "+BA.NumberToString(_taskid),0); -RDebugUtils.currentLine=42795016; - //BA.debugLineNum = 42795016;BA.debugLine="Return"; + //BA.debugLineNum = 122;BA.debugLine="Log(\"HttpUtils2Service (hc_ResponseError): job c"; +anywheresoftware.b4a.keywords.Common.LogImpl("051314695","HttpUtils2Service (hc_ResponseError): job completed multiple times - "+BA.NumberToString(_taskid),0); + //BA.debugLineNum = 123;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=42795018; - //BA.debugLineNum = 42795018;BA.debugLine="job.Response = Response"; + //BA.debugLineNum = 125;BA.debugLine="job.Response = Response"; _job._response /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpResponse*/ = _response; -RDebugUtils.currentLine=42795019; - //BA.debugLineNum = 42795019;BA.debugLine="If Response.ErrorResponse <> \"\" Then"; + //BA.debugLineNum = 126;BA.debugLine="If Response.ErrorResponse <> \"\" Then"; if ((_response.getErrorResponse()).equals("") == false) { -RDebugUtils.currentLine=42795020; - //BA.debugLineNum = 42795020;BA.debugLine="CompleteJob(TaskId, False, Response.ErrorRespons"; + //BA.debugLineNum = 127;BA.debugLine="CompleteJob(TaskId, False, Response.ErrorRespons"; _completejob(_taskid,anywheresoftware.b4a.keywords.Common.False,_response.getErrorResponse()); }else { -RDebugUtils.currentLine=42795022; - //BA.debugLineNum = 42795022;BA.debugLine="CompleteJob(TaskId, False, Reason)"; + //BA.debugLineNum = 129;BA.debugLine="CompleteJob(TaskId, False, Reason)"; _completejob(_taskid,anywheresoftware.b4a.keywords.Common.False,_reason); }; -RDebugUtils.currentLine=42795024; - //BA.debugLineNum = 42795024;BA.debugLine="End Sub"; + //BA.debugLineNum = 131;BA.debugLine="End Sub"; return ""; } public static String _hc_responsesuccess(anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpResponse _response,int _taskid) throws Exception{ -RDebugUtils.currentModule="httputils2service"; -if (Debug.shouldDelegate(processBA, "hc_responsesuccess", false)) - {return ((String) Debug.delegate(processBA, "hc_responsesuccess", new Object[] {_response,_taskid}));} reparto_izca.keymon.lat.httpjob _job = null; anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; -RDebugUtils.currentLine=42663936; - //BA.debugLineNum = 42663936;BA.debugLine="Sub hc_ResponseSuccess (Response As OkHttpResponse"; -RDebugUtils.currentLine=42663937; - //BA.debugLineNum = 42663937;BA.debugLine="Dim job As HttpJob = TaskIdToJob.Get(TaskId)"; + //BA.debugLineNum = 92;BA.debugLine="Sub hc_ResponseSuccess (Response As OkHttpResponse"; + //BA.debugLineNum = 93;BA.debugLine="Dim job As HttpJob = TaskIdToJob.Get(TaskId)"; _job = (reparto_izca.keymon.lat.httpjob)(_taskidtojob.Get((Object)(_taskid))); -RDebugUtils.currentLine=42663938; - //BA.debugLineNum = 42663938;BA.debugLine="If job = Null Then"; + //BA.debugLineNum = 94;BA.debugLine="If job = Null Then"; if (_job== null) { -RDebugUtils.currentLine=42663939; - //BA.debugLineNum = 42663939;BA.debugLine="Log(\"HttpUtils2Service (hc_ResponseSuccess): job"; -anywheresoftware.b4a.keywords.Common.LogImpl("242663939","HttpUtils2Service (hc_ResponseSuccess): job completed multiple times - "+BA.NumberToString(_taskid),0); -RDebugUtils.currentLine=42663940; - //BA.debugLineNum = 42663940;BA.debugLine="Return"; + //BA.debugLineNum = 95;BA.debugLine="Log(\"HttpUtils2Service (hc_ResponseSuccess): job"; +anywheresoftware.b4a.keywords.Common.LogImpl("051183619","HttpUtils2Service (hc_ResponseSuccess): job completed multiple times - "+BA.NumberToString(_taskid),0); + //BA.debugLineNum = 96;BA.debugLine="Return"; if (true) return ""; }; -RDebugUtils.currentLine=42663942; - //BA.debugLineNum = 42663942;BA.debugLine="job.Response = Response"; + //BA.debugLineNum = 98;BA.debugLine="job.Response = Response"; _job._response /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpResponse*/ = _response; -RDebugUtils.currentLine=42663943; - //BA.debugLineNum = 42663943;BA.debugLine="Dim out As OutputStream = File.OpenOutput(TempFol"; + //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); -RDebugUtils.currentLine=42663945; - //BA.debugLineNum = 42663945;BA.debugLine="job.Out = out"; + //BA.debugLineNum = 101;BA.debugLine="job.Out = out"; _job._out /*anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper*/ = _out; -RDebugUtils.currentLine=42663947; - //BA.debugLineNum = 42663947;BA.debugLine="Response.GetAsynchronously(\"response\", out , _"; + //BA.debugLineNum = 103;BA.debugLine="Response.GetAsynchronously(\"response\", out , _"; _response.GetAsynchronously(processBA,"response",(java.io.OutputStream)(_out.getObject()),anywheresoftware.b4a.keywords.Common.True,_taskid); -RDebugUtils.currentLine=42663949; - //BA.debugLineNum = 42663949;BA.debugLine="End Sub"; + //BA.debugLineNum = 105;BA.debugLine="End Sub"; +return ""; +} +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 2;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 5;BA.debugLine="Public hc As OkHttpClient"; +_hc = new anywheresoftware.b4h.okhttp.OkHttpClientWrapper(); + //BA.debugLineNum = 9;BA.debugLine="Public TaskIdToJob As Map"; +_taskidtojob = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 19;BA.debugLine="Public TempFolder As String"; +_tempfolder = ""; + //BA.debugLineNum = 23;BA.debugLine="Private taskCounter As Int"; +_taskcounter = 0; + //BA.debugLineNum = 25;BA.debugLine="End Sub"; return ""; } public static String _receiver_receive(boolean _firsttime,anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{ -RDebugUtils.currentModule="httputils2service"; -if (Debug.shouldDelegate(processBA, "receiver_receive", false)) - {return ((String) Debug.delegate(processBA, "receiver_receive", new Object[] {_firsttime,_startingintent}));} -RDebugUtils.currentLine=42401792; - //BA.debugLineNum = 42401792;BA.debugLine="Private Sub Receiver_Receive (FirstTime As Boolean"; -RDebugUtils.currentLine=42401793; - //BA.debugLineNum = 42401793;BA.debugLine="If FirstTime Then"; + //BA.debugLineNum = 58;BA.debugLine="Private Sub Receiver_Receive (FirstTime As Boolean"; + //BA.debugLineNum = 59;BA.debugLine="If FirstTime Then"; if (_firsttime) { -RDebugUtils.currentLine=42401794; - //BA.debugLineNum = 42401794;BA.debugLine="Service_Create"; + //BA.debugLineNum = 60;BA.debugLine="Service_Create"; _service_create(); }; -RDebugUtils.currentLine=42401796; - //BA.debugLineNum = 42401796;BA.debugLine="End Sub"; -return ""; -} -public static String _service_create() throws Exception{ -RDebugUtils.currentModule="httputils2service"; -if (Debug.shouldDelegate(processBA, "service_create", false)) - {return ((String) Debug.delegate(processBA, "service_create", null));} -RDebugUtils.currentLine=42336256; - //BA.debugLineNum = 42336256;BA.debugLine="Sub Service_Create"; -RDebugUtils.currentLine=42336258; - //BA.debugLineNum = 42336258;BA.debugLine="TempFolder = File.DirInternalCache"; -_tempfolder = anywheresoftware.b4a.keywords.Common.File.getDirInternalCache(); -RDebugUtils.currentLine=42336259; - //BA.debugLineNum = 42336259;BA.debugLine="Try"; -try {RDebugUtils.currentLine=42336260; - //BA.debugLineNum = 42336260;BA.debugLine="File.WriteString(TempFolder, \"~test.test\", \"test"; -anywheresoftware.b4a.keywords.Common.File.WriteString(_tempfolder,"~test.test","test"); -RDebugUtils.currentLine=42336261; - //BA.debugLineNum = 42336261;BA.debugLine="File.Delete(TempFolder, \"~test.test\")"; -anywheresoftware.b4a.keywords.Common.File.Delete(_tempfolder,"~test.test"); - } - catch (Exception e6) { - processBA.setLastException(e6);RDebugUtils.currentLine=42336263; - //BA.debugLineNum = 42336263;BA.debugLine="Log(LastException)"; -anywheresoftware.b4a.keywords.Common.LogImpl("242336263",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0); -RDebugUtils.currentLine=42336264; - //BA.debugLineNum = 42336264;BA.debugLine="Log(\"Switching to File.DirInternal\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("242336264","Switching to File.DirInternal",0); -RDebugUtils.currentLine=42336265; - //BA.debugLineNum = 42336265;BA.debugLine="TempFolder = File.DirInternal"; -_tempfolder = anywheresoftware.b4a.keywords.Common.File.getDirInternal(); - }; -RDebugUtils.currentLine=42336270; - //BA.debugLineNum = 42336270;BA.debugLine="If hc.IsInitialized = False Then"; -if (_hc.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) { -RDebugUtils.currentLine=42336275; - //BA.debugLineNum = 42336275;BA.debugLine="hc.Initialize(\"hc\")"; -_hc.Initialize("hc"); - }; -RDebugUtils.currentLine=42336283; - //BA.debugLineNum = 42336283;BA.debugLine="TaskIdToJob.Initialize"; -_taskidtojob.Initialize(); -RDebugUtils.currentLine=42336285; - //BA.debugLineNum = 42336285;BA.debugLine="End Sub"; + //BA.debugLineNum = 62;BA.debugLine="End Sub"; return ""; } public static String _response_streamfinish(boolean _success,int _taskid) throws Exception{ -RDebugUtils.currentModule="httputils2service"; -if (Debug.shouldDelegate(processBA, "response_streamfinish", false)) - {return ((String) Debug.delegate(processBA, "response_streamfinish", new Object[] {_success,_taskid}));} -RDebugUtils.currentLine=42729472; - //BA.debugLineNum = 42729472;BA.debugLine="Private Sub Response_StreamFinish (Success As Bool"; -RDebugUtils.currentLine=42729473; - //BA.debugLineNum = 42729473;BA.debugLine="If Success Then"; + //BA.debugLineNum = 107;BA.debugLine="Private Sub Response_StreamFinish (Success As Bool"; + //BA.debugLineNum = 108;BA.debugLine="If Success Then"; if (_success) { -RDebugUtils.currentLine=42729474; - //BA.debugLineNum = 42729474;BA.debugLine="CompleteJob(TaskId, Success, \"\")"; + //BA.debugLineNum = 109;BA.debugLine="CompleteJob(TaskId, Success, \"\")"; _completejob(_taskid,_success,""); }else { -RDebugUtils.currentLine=42729476; - //BA.debugLineNum = 42729476;BA.debugLine="CompleteJob(TaskId, Success, LastException.Messa"; + //BA.debugLineNum = 111;BA.debugLine="CompleteJob(TaskId, Success, LastException.Messa"; _completejob(_taskid,_success,anywheresoftware.b4a.keywords.Common.LastException(processBA).getMessage()); }; -RDebugUtils.currentLine=42729478; - //BA.debugLineNum = 42729478;BA.debugLine="End Sub"; + //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("050855943",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(processBA)),0); + //BA.debugLineNum = 35;BA.debugLine="Log(\"Switching to File.DirInternal\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("050855944","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{ -RDebugUtils.currentModule="httputils2service"; -if (Debug.shouldDelegate(processBA, "service_destroy", false)) - {return ((String) Debug.delegate(processBA, "service_destroy", null));} -RDebugUtils.currentLine=42532864; - //BA.debugLineNum = 42532864;BA.debugLine="Sub Service_Destroy"; -RDebugUtils.currentLine=42532866; - //BA.debugLineNum = 42532866;BA.debugLine="End Sub"; + //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{ -RDebugUtils.currentModule="httputils2service"; -if (Debug.shouldDelegate(processBA, "service_start", false)) - {return ((String) Debug.delegate(processBA, "service_start", new Object[] {_startingintent}));} -RDebugUtils.currentLine=42467328; - //BA.debugLineNum = 42467328;BA.debugLine="Sub Service_Start (StartingIntent As Intent)"; -RDebugUtils.currentLine=42467330; - //BA.debugLineNum = 42467330;BA.debugLine="End Sub"; + //BA.debugLineNum = 64;BA.debugLine="Sub Service_Start (StartingIntent As Intent)"; + //BA.debugLineNum = 66;BA.debugLine="End Sub"; return ""; } public static String _submitjob(reparto_izca.keymon.lat.httpjob _job) throws Exception{ -RDebugUtils.currentModule="httputils2service"; -if (Debug.shouldDelegate(processBA, "submitjob", false)) - {return ((String) Debug.delegate(processBA, "submitjob", new Object[] {_job}));} int _taskid = 0; -RDebugUtils.currentLine=42598400; - //BA.debugLineNum = 42598400;BA.debugLine="Public Sub SubmitJob(job As HttpJob)"; -RDebugUtils.currentLine=42598401; - //BA.debugLineNum = 42598401;BA.debugLine="If TaskIdToJob.IsInitialized = False Then Service"; + //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();}; -RDebugUtils.currentLine=42598405; - //BA.debugLineNum = 42598405;BA.debugLine="taskCounter = taskCounter + 1"; + //BA.debugLineNum = 79;BA.debugLine="taskCounter = taskCounter + 1"; _taskcounter = (int) (_taskcounter+1); -RDebugUtils.currentLine=42598406; - //BA.debugLineNum = 42598406;BA.debugLine="Dim TaskId As Int = taskCounter"; + //BA.debugLineNum = 80;BA.debugLine="Dim TaskId As Int = taskCounter"; _taskid = _taskcounter; -RDebugUtils.currentLine=42598408; - //BA.debugLineNum = 42598408;BA.debugLine="TaskIdToJob.Put(TaskId, job)"; + //BA.debugLineNum = 82;BA.debugLine="TaskIdToJob.Put(TaskId, job)"; _taskidtojob.Put((Object)(_taskid),(Object)(_job)); -RDebugUtils.currentLine=42598409; - //BA.debugLineNum = 42598409;BA.debugLine="If job.Username <> \"\" And job.Password <> \"\" Then"; + //BA.debugLineNum = 83;BA.debugLine="If job.Username <> \"\" And job.Password <> \"\" Then"; if ((_job._username /*String*/ ).equals("") == false && (_job._password /*String*/ ).equals("") == false) { -RDebugUtils.currentLine=42598410; - //BA.debugLineNum = 42598410;BA.debugLine="hc.ExecuteCredentials(job.GetRequest, TaskId, jo"; -_hc.ExecuteCredentials(processBA,_job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ (null),_taskid,_job._username /*String*/ ,_job._password /*String*/ ); + //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 { -RDebugUtils.currentLine=42598412; - //BA.debugLineNum = 42598412;BA.debugLine="hc.Execute(job.GetRequest, TaskId)"; -_hc.Execute(processBA,_job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ (null),_taskid); + //BA.debugLineNum = 86;BA.debugLine="hc.Execute(job.GetRequest, TaskId)"; +_hc.Execute(processBA,_job._getrequest /*anywheresoftware.b4h.okhttp.OkHttpClientWrapper.OkHttpRequest*/ (),_taskid); }; -RDebugUtils.currentLine=42598414; - //BA.debugLineNum = 42598414;BA.debugLine="End Sub"; + //BA.debugLineNum = 88;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/madewithlove.java b/B4A/Objects/src/reparto_izca/keymon/lat/madewithlove.java index e2545c9..17e8114 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/madewithlove.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/madewithlove.java @@ -10,7 +10,7 @@ public class madewithlove extends B4AClass.ImplB4AClass implements BA.SubDelegat private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.madewithlove"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.madewithlove"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class madewithlove extends B4AClass.ImplB4AClass implements BA.SubDelegat ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -50,101 +43,66 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.madewithlove __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="madewithlove"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=62455808; - //BA.debugLineNum = 62455808;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A"; -RDebugUtils.currentLine=62455809; - //BA.debugLineNum = 62455809;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Wid"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetView((int) (0)).SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); -RDebugUtils.currentLine=62455810; - //BA.debugLineNum = 62455810;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.madewithlove __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="madewithlove"; -RDebugUtils.currentLine=62259200; - //BA.debugLineNum = 62259200;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=62259201; - //BA.debugLineNum = 62259201;BA.debugLine="Private mEventName As String 'ignore"; +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 = ""; -RDebugUtils.currentLine=62259202; - //BA.debugLineNum = 62259202;BA.debugLine="Private mCallBack As Object 'ignore"; + //BA.debugLineNum = 3;BA.debugLine="Private mCallBack As Object 'ignore"; _mcallback = new Object(); -RDebugUtils.currentLine=62259203; - //BA.debugLineNum = 62259203;BA.debugLine="Public mBase As B4XView"; + //BA.debugLineNum = 4;BA.debugLine="Public mBase As B4XView"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=62259204; - //BA.debugLineNum = 62259204;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 5;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=62259205; - //BA.debugLineNum = 62259205;BA.debugLine="Public Tag As Object"; + //BA.debugLineNum = 6;BA.debugLine="Public Tag As Object"; _tag = new Object(); -RDebugUtils.currentLine=62259206; - //BA.debugLineNum = 62259206;BA.debugLine="End Sub"; + //BA.debugLineNum = 7;BA.debugLine="End Sub"; return ""; } -public String _designercreateview(reparto_izca.keymon.lat.madewithlove __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="madewithlove"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} +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; -RDebugUtils.currentLine=62390272; - //BA.debugLineNum = 62390272;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=62390273; - //BA.debugLineNum = 62390273;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=62390274; - //BA.debugLineNum = 62390274;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=62390274; - //BA.debugLineNum = 62390274;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=62390275; - //BA.debugLineNum = 62390275;BA.debugLine="Dim xlbl As B4XView = Lbl"; + //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())); -RDebugUtils.currentLine=62390290; - //BA.debugLineNum = 62390290;BA.debugLine="Dim cs As CSBuilder"; + //BA.debugLineNum = 33;BA.debugLine="Dim cs As CSBuilder"; _cs = new anywheresoftware.b4a.objects.CSBuilder(); -RDebugUtils.currentLine=62390291; - //BA.debugLineNum = 62390291;BA.debugLine="cs.Initialize.Append(\"Made with \").Typeface(Typef"; -_cs.Initialize().Append(BA.ObjectToCharSequence("Made with ")).Typeface(__c.Typeface.getFONTAWESOME()).Color(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Red).Append(BA.ObjectToCharSequence(__c.Chr(((int)0xf004)))).Pop().Pop().Append(BA.ObjectToCharSequence(" in B4X")).PopAll(); -RDebugUtils.currentLine=62390292; - //BA.debugLineNum = 62390292;BA.debugLine="xlbl.Text = cs"; + //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())); -RDebugUtils.currentLine=62390293; - //BA.debugLineNum = 62390293;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"CENTER\")"; + //BA.debugLineNum = 36;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"CENTER\")"; _xlbl.SetTextAlignment("CENTER","CENTER"); -RDebugUtils.currentLine=62390294; - //BA.debugLineNum = 62390294;BA.debugLine="mBase.AddView(xlbl, 0, 0, mBase.Width, mBase.Heig"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_xlbl.getObject()),(int) (0),(int) (0),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=62390302; - //BA.debugLineNum = 62390302;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.madewithlove __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="madewithlove"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=62324736; - //BA.debugLineNum = 62324736;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=62324737; - //BA.debugLineNum = 62324737;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=62324738; - //BA.debugLineNum = 62324738;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=62324739; - //BA.debugLineNum = 62324739;BA.debugLine="End Sub"; + //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 ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/main.java b/B4A/Objects/src/reparto_izca/keymon/lat/main.java index 4e414db..a5e180f 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/main.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/main.java @@ -34,7 +34,7 @@ public class main extends Activity implements B4AActivity{ super.onCreate(savedInstanceState); mostCurrent = this; if (processBA == null) { - processBA = new anywheresoftware.b4a.ShellBA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.main"); + processBA = new BA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.main"); processBA.loadHtSubs(this.getClass()); float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density; BALayout.setDeviceScale(deviceScale); @@ -335,90 +335,6 @@ public class main extends Activity implements B4AActivity{ } - - -public static void initializeProcessGlobals() { - - if (main.processGlobalsRun == false) { - main.processGlobalsRun = true; - try { - b4a.example.dateutils._process_globals(); - - } catch (Exception e) { - throw new RuntimeException(e); - } - } -} -public static boolean isAnyActivityVisible() { - boolean vis = false; -vis = vis | (main.mostCurrent != null); -vis = vis | (foto.mostCurrent != null); -vis = vis | (mapa_cliente.mostCurrent != null); -vis = vis | (mapa_rutas.mostCurrent != null); -return vis;} - -private static BA killProgramHelper(BA ba) { - if (ba == null) - return null; - anywheresoftware.b4a.BA.SharedProcessBA sharedProcessBA = ba.sharedProcessBA; - if (sharedProcessBA == null || sharedProcessBA.activityBA == null) - return null; - return sharedProcessBA.activityBA.get(); -} -public static void killProgram() { - { - Activity __a = null; - if (main.previousOne != null) { - __a = main.previousOne.get(); - } - else { - BA ba = killProgramHelper(main.mostCurrent == null ? null : main.mostCurrent.processBA); - if (ba != null) __a = ba.activity; - } - if (__a != null) - __a.finish();} - -BA.applicationContext.stopService(new android.content.Intent(BA.applicationContext, appupdater.class)); - { - Activity __a = null; - if (foto.previousOne != null) { - __a = foto.previousOne.get(); - } - else { - BA ba = killProgramHelper(foto.mostCurrent == null ? null : foto.mostCurrent.processBA); - if (ba != null) __a = ba.activity; - } - if (__a != null) - __a.finish();} - - { - Activity __a = null; - if (mapa_cliente.previousOne != null) { - __a = mapa_cliente.previousOne.get(); - } - else { - BA ba = killProgramHelper(mapa_cliente.mostCurrent == null ? null : mapa_cliente.mostCurrent.processBA); - if (ba != null) __a = ba.activity; - } - if (__a != null) - __a.finish();} - - { - Activity __a = null; - if (mapa_rutas.previousOne != null) { - __a = mapa_rutas.previousOne.get(); - } - else { - BA ba = killProgramHelper(mapa_rutas.mostCurrent == null ? null : mapa_rutas.mostCurrent.processBA); - if (ba != null) __a = ba.activity; - } - if (__a != null) - __a.finish();} - -BA.applicationContext.stopService(new android.content.Intent(BA.applicationContext, starter.class)); -BA.applicationContext.stopService(new android.content.Intent(BA.applicationContext, tracker.class)); -BA.applicationContext.stopService(new android.content.Intent(BA.applicationContext, newinst2.class)); -} public anywheresoftware.b4a.keywords.Common __c = null; public static boolean _actionbarhomeclicked = false; public b4a.example.dateutils _dateutils = null; @@ -434,107 +350,109 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; + +public static boolean isAnyActivityVisible() { + boolean vis = false; +vis = vis | (main.mostCurrent != null); +vis = vis | (foto.mostCurrent != null); +vis = vis | (mapa_cliente.mostCurrent != null); +vis = vis | (mapa_rutas.mostCurrent != null); +return vis;} public static String _activity_actionbarhomeclick() throws Exception{ -RDebugUtils.currentModule="main"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_actionbarhomeclick", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "activity_actionbarhomeclick", null));} -RDebugUtils.currentLine=65994752; - //BA.debugLineNum = 65994752;BA.debugLine="Sub Activity_ActionBarHomeClick"; -RDebugUtils.currentLine=65994753; - //BA.debugLineNum = 65994753;BA.debugLine="ActionBarHomeClicked = True"; + //BA.debugLineNum = 34;BA.debugLine="Sub Activity_ActionBarHomeClick"; + //BA.debugLineNum = 35;BA.debugLine="ActionBarHomeClicked = True"; _actionbarhomeclicked = anywheresoftware.b4a.keywords.Common.True; -RDebugUtils.currentLine=65994754; - //BA.debugLineNum = 65994754;BA.debugLine="B4XPages.Delegate.Activity_ActionBarHomeClick"; -mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_actionbarhomeclick /*String*/ (null); -RDebugUtils.currentLine=65994755; - //BA.debugLineNum = 65994755;BA.debugLine="ActionBarHomeClicked = False"; + //BA.debugLineNum = 36;BA.debugLine="B4XPages.Delegate.Activity_ActionBarHomeClick"; +mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_actionbarhomeclick /*String*/ (); + //BA.debugLineNum = 37;BA.debugLine="ActionBarHomeClicked = False"; _actionbarhomeclicked = anywheresoftware.b4a.keywords.Common.False; -RDebugUtils.currentLine=65994756; - //BA.debugLineNum = 65994756;BA.debugLine="End Sub"; + //BA.debugLineNum = 38;BA.debugLine="End Sub"; return ""; } public static String _activity_create(boolean _firsttime) throws Exception{ -RDebugUtils.currentModule="main"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_create", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "activity_create", new Object[] {_firsttime}));} reparto_izca.keymon.lat.b4xpagesmanager _pm = null; -RDebugUtils.currentLine=131072; - //BA.debugLineNum = 131072;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; -RDebugUtils.currentLine=131073; - //BA.debugLineNum = 131073;BA.debugLine="Dim pm As B4XPagesManager"; + //BA.debugLineNum = 26;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; + //BA.debugLineNum = 27;BA.debugLine="Dim pm As B4XPagesManager"; _pm = new reparto_izca.keymon.lat.b4xpagesmanager(); -RDebugUtils.currentLine=131074; - //BA.debugLineNum = 131074;BA.debugLine="pm.Initialize(Activity)"; -_pm._initialize /*String*/ (null,mostCurrent.activityBA,mostCurrent._activity); -RDebugUtils.currentLine=131075; - //BA.debugLineNum = 131075;BA.debugLine="End Sub"; + //BA.debugLineNum = 28;BA.debugLine="pm.Initialize(Activity)"; +_pm._initialize /*String*/ (mostCurrent.activityBA,mostCurrent._activity); + //BA.debugLineNum = 29;BA.debugLine="End Sub"; return ""; } public static boolean _activity_keypress(int _keycode) throws Exception{ -RDebugUtils.currentModule="main"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_keypress", false)) - {return ((Boolean) Debug.delegate(mostCurrent.activityBA, "activity_keypress", new Object[] {_keycode}));} -RDebugUtils.currentLine=66060288; - //BA.debugLineNum = 66060288;BA.debugLine="Sub Activity_KeyPress (KeyCode As Int) As Boolean"; -RDebugUtils.currentLine=66060289; - //BA.debugLineNum = 66060289;BA.debugLine="Return B4XPages.Delegate.Activity_KeyPress(KeyCod"; -if (true) return mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_keypress /*boolean*/ (null,_keycode); -RDebugUtils.currentLine=66060290; - //BA.debugLineNum = 66060290;BA.debugLine="End Sub"; + //BA.debugLineNum = 40;BA.debugLine="Sub Activity_KeyPress (KeyCode As Int) As Boolean"; + //BA.debugLineNum = 41;BA.debugLine="Return B4XPages.Delegate.Activity_KeyPress(KeyCod"; +if (true) return mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_keypress /*boolean*/ (_keycode); + //BA.debugLineNum = 42;BA.debugLine="End Sub"; return false; } public static String _activity_pause(boolean _userclosed) throws Exception{ -RDebugUtils.currentModule="main"; -RDebugUtils.currentLine=262144; - //BA.debugLineNum = 262144;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; -RDebugUtils.currentLine=262145; - //BA.debugLineNum = 262145;BA.debugLine="B4XPages.Delegate.Activity_Pause"; -mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_pause /*String*/ (null); -RDebugUtils.currentLine=262146; - //BA.debugLineNum = 262146;BA.debugLine="End Sub"; + //BA.debugLineNum = 48;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 49;BA.debugLine="B4XPages.Delegate.Activity_Pause"; +mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_pause /*String*/ (); + //BA.debugLineNum = 50;BA.debugLine="End Sub"; return ""; } public static String _activity_permissionresult(String _permission,boolean _result) throws Exception{ -RDebugUtils.currentModule="main"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_permissionresult", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "activity_permissionresult", new Object[] {_permission,_result}));} -RDebugUtils.currentLine=66125824; - //BA.debugLineNum = 66125824;BA.debugLine="Sub Activity_PermissionResult (Permission As Strin"; -RDebugUtils.currentLine=66125825; - //BA.debugLineNum = 66125825;BA.debugLine="B4XPages.Delegate.Activity_PermissionResult(Permi"; -mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_permissionresult /*String*/ (null,_permission,_result); -RDebugUtils.currentLine=66125826; - //BA.debugLineNum = 66125826;BA.debugLine="End Sub"; + //BA.debugLineNum = 52;BA.debugLine="Sub Activity_PermissionResult (Permission As Strin"; + //BA.debugLineNum = 53;BA.debugLine="B4XPages.Delegate.Activity_PermissionResult(Permi"; +mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_permissionresult /*String*/ (_permission,_result); + //BA.debugLineNum = 54;BA.debugLine="End Sub"; return ""; } public static String _activity_resume() throws Exception{ -RDebugUtils.currentModule="main"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_resume", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "activity_resume", null));} -RDebugUtils.currentLine=196608; - //BA.debugLineNum = 196608;BA.debugLine="Sub Activity_Resume"; -RDebugUtils.currentLine=196609; - //BA.debugLineNum = 196609;BA.debugLine="B4XPages.Delegate.Activity_Resume"; -mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_resume /*String*/ (null); -RDebugUtils.currentLine=196610; - //BA.debugLineNum = 196610;BA.debugLine="End Sub"; + //BA.debugLineNum = 44;BA.debugLine="Sub Activity_Resume"; + //BA.debugLineNum = 45;BA.debugLine="B4XPages.Delegate.Activity_Resume"; +mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._activity_resume /*String*/ (); + //BA.debugLineNum = 46;BA.debugLine="End Sub"; return ""; } public static String _create_menu(Object _menu) throws Exception{ -RDebugUtils.currentModule="main"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "create_menu", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "create_menu", new Object[] {_menu}));} -RDebugUtils.currentLine=66191360; - //BA.debugLineNum = 66191360;BA.debugLine="Sub Create_Menu (Menu As Object)"; -RDebugUtils.currentLine=66191361; - //BA.debugLineNum = 66191361;BA.debugLine="B4XPages.Delegate.Create_Menu(Menu)"; -mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._create_menu /*String*/ (null,_menu); -RDebugUtils.currentLine=66191362; - //BA.debugLineNum = 66191362;BA.debugLine="End Sub"; + //BA.debugLineNum = 56;BA.debugLine="Sub Create_Menu (Menu As Object)"; + //BA.debugLineNum = 57;BA.debugLine="B4XPages.Delegate.Create_Menu(Menu)"; +mostCurrent._b4xpages._delegate /*reparto_izca.keymon.lat.b4xpagesdelegator*/ ._create_menu /*String*/ (_menu); + //BA.debugLineNum = 58;BA.debugLine="End Sub"; +return ""; +} +public static String _globals() throws Exception{ + //BA.debugLineNum = 22;BA.debugLine="Sub Globals"; + //BA.debugLineNum = 24;BA.debugLine="End Sub"; +return ""; +} + +public static void initializeProcessGlobals() { + + if (main.processGlobalsRun == false) { + main.processGlobalsRun = true; + try { + b4a.example.dateutils._process_globals(); +main._process_globals(); +appupdater._process_globals(); +foto._process_globals(); +mapa_cliente._process_globals(); +mapa_rutas._process_globals(); +starter._process_globals(); +subs._process_globals(); +tracker._process_globals(); +newinst2._process_globals(); +b4xpages._process_globals(); +b4xcollections._process_globals(); +httputils2service._process_globals(); +xuiviewsutils._process_globals(); + + } catch (Exception e) { + throw new RuntimeException(e); + } + } +}public static String _process_globals() throws Exception{ + //BA.debugLineNum = 18;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 19;BA.debugLine="Public ActionBarHomeClicked As Boolean"; +_actionbarhomeclicked = false; + //BA.debugLineNum = 20;BA.debugLine="End Sub"; return ""; } public boolean _onCreateOptionsMenu(android.view.Menu menu) { processBA.raiseEvent(null, "create_menu", menu); return true; } -} \ No newline at end of file +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/manageexternalstorage.java b/B4A/Objects/src/reparto_izca/keymon/lat/manageexternalstorage.java index 5c7dd60..df67582 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/manageexternalstorage.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/manageexternalstorage.java @@ -10,7 +10,7 @@ public class manageexternalstorage extends B4AClass.ImplB4AClass implements BA.S private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.manageexternalstorage"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.manageexternalstorage"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class manageexternalstorage extends B4AClass.ImplB4AClass implements BA.S ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public Object _ion = null; public Object _mcallback = null; public String _meventname = ""; @@ -48,174 +41,107 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _initialize(reparto_izca.keymon.lat.manageexternalstorage __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="manageexternalstorage"; -if (Debug.shouldDelegate(ba, "initialize", false)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=66322432; - //BA.debugLineNum = 66322432;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=66322433; - //BA.debugLineNum = 66322433;BA.debugLine="mCallback = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=66322434; - //BA.debugLineNum = 66322434;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=66322435; - //BA.debugLineNum = 66322435;BA.debugLine="End Sub"; -return ""; -} -public boolean _haspermission(reparto_izca.keymon.lat.manageexternalstorage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="manageexternalstorage"; -if (Debug.shouldDelegate(ba, "haspermission", false)) - {return ((Boolean) Debug.delegate(ba, "haspermission", null));} -boolean _has = false; -anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=66387968; - //BA.debugLineNum = 66387968;BA.debugLine="Public Sub HasPermission As Boolean"; -RDebugUtils.currentLine=66387969; - //BA.debugLineNum = 66387969;BA.debugLine="Dim has As Boolean"; -_has = false; -RDebugUtils.currentLine=66387970; - //BA.debugLineNum = 66387970;BA.debugLine="Dim jo As JavaObject"; -_jo = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=66387971; - //BA.debugLineNum = 66387971;BA.debugLine="jo.InitializeStatic(\"android.os.Environment\")"; -_jo.InitializeStatic("android.os.Environment"); -RDebugUtils.currentLine=66387972; - //BA.debugLineNum = 66387972;BA.debugLine="has = jo.RunMethod(\"isExternalStorageManager\", Nu"; -_has = BA.ObjectToBoolean(_jo.RunMethod("isExternalStorageManager",(Object[])(__c.Null))); -RDebugUtils.currentLine=66387973; - //BA.debugLineNum = 66387973;BA.debugLine="Return has"; -if (true) return _has; -RDebugUtils.currentLine=66387974; - //BA.debugLineNum = 66387974;BA.debugLine="End Sub"; -return false; -} -public String _getpermission(reparto_izca.keymon.lat.manageexternalstorage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="manageexternalstorage"; -if (Debug.shouldDelegate(ba, "getpermission", false)) - {return ((String) Debug.delegate(ba, "getpermission", null));} -anywheresoftware.b4a.objects.IntentWrapper _in = null; -RDebugUtils.currentLine=66453504; - //BA.debugLineNum = 66453504;BA.debugLine="Public Sub GetPermission"; -RDebugUtils.currentLine=66453505; - //BA.debugLineNum = 66453505;BA.debugLine="If HasPermission Then"; -if (__ref._haspermission /*boolean*/ (null)) { -RDebugUtils.currentLine=66453506; - //BA.debugLineNum = 66453506;BA.debugLine="RaiseEvent"; -__ref._raiseevent /*String*/ (null); -RDebugUtils.currentLine=66453507; - //BA.debugLineNum = 66453507;BA.debugLine="Return"; -if (true) return ""; - }; -RDebugUtils.currentLine=66453509; - //BA.debugLineNum = 66453509;BA.debugLine="Dim in As Intent"; -_in = new anywheresoftware.b4a.objects.IntentWrapper(); -RDebugUtils.currentLine=66453511; - //BA.debugLineNum = 66453511;BA.debugLine="in.Initialize(\"android.settings.MANAGE_APP_ALL_FI"; -_in.Initialize("android.settings.MANAGE_APP_ALL_FILES_ACCESS_PERMISSION",("package:"+__c.SmartStringFormatter("",(Object)(__c.Application.getPackageName()))+"")); -RDebugUtils.currentLine=66453512; - //BA.debugLineNum = 66453512;BA.debugLine="StartActivityForResult(in)"; -__ref._startactivityforresult /*String*/ (null,_in); -RDebugUtils.currentLine=66453513; - //BA.debugLineNum = 66453513;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.manageexternalstorage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="manageexternalstorage"; -RDebugUtils.currentLine=66256896; - //BA.debugLineNum = 66256896;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=66256897; - //BA.debugLineNum = 66256897;BA.debugLine="Private ion As Object"; +public String _class_globals() throws Exception{ + //BA.debugLineNum = 3;BA.debugLine="Sub Class_Globals"; + //BA.debugLineNum = 4;BA.debugLine="Private ion As Object"; _ion = new Object(); -RDebugUtils.currentLine=66256898; - //BA.debugLineNum = 66256898;BA.debugLine="Private mCallback As Object"; + //BA.debugLineNum = 5;BA.debugLine="Private mCallback As Object"; _mcallback = new Object(); -RDebugUtils.currentLine=66256899; - //BA.debugLineNum = 66256899;BA.debugLine="Private mEventName As String"; + //BA.debugLineNum = 6;BA.debugLine="Private mEventName As String"; _meventname = ""; -RDebugUtils.currentLine=66256901; - //BA.debugLineNum = 66256901;BA.debugLine="End Sub"; + //BA.debugLineNum = 8;BA.debugLine="End Sub"; return ""; } -public Object _getba(reparto_izca.keymon.lat.manageexternalstorage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="manageexternalstorage"; -if (Debug.shouldDelegate(ba, "getba", false)) - {return ((Object) Debug.delegate(ba, "getba", null));} +public Object _getba() throws Exception{ anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=66715648; - //BA.debugLineNum = 66715648;BA.debugLine="Private Sub GetBA As Object"; -RDebugUtils.currentLine=66715649; - //BA.debugLineNum = 66715649;BA.debugLine="Dim jo As JavaObject = Me"; + //BA.debugLineNum = 71;BA.debugLine="Private Sub GetBA As Object"; + //BA.debugLineNum = 72;BA.debugLine="Dim jo As JavaObject = Me"; _jo = new anywheresoftware.b4j.object.JavaObject(); _jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(this)); -RDebugUtils.currentLine=66715650; - //BA.debugLineNum = 66715650;BA.debugLine="Return jo.RunMethod(\"getBA\", Null)"; + //BA.debugLineNum = 73;BA.debugLine="Return jo.RunMethod(\"getBA\", Null)"; if (true) return _jo.RunMethod("getBA",(Object[])(__c.Null)); -RDebugUtils.currentLine=66715651; - //BA.debugLineNum = 66715651;BA.debugLine="End Sub"; + //BA.debugLineNum = 74;BA.debugLine="End Sub"; return null; } -public String _raiseevent(reparto_izca.keymon.lat.manageexternalstorage __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="manageexternalstorage"; -if (Debug.shouldDelegate(ba, "raiseevent", false)) - {return ((String) Debug.delegate(ba, "raiseevent", null));} -RDebugUtils.currentLine=66519040; - //BA.debugLineNum = 66519040;BA.debugLine="Private Sub RaiseEvent"; -RDebugUtils.currentLine=66519041; - //BA.debugLineNum = 66519041;BA.debugLine="Log(\"Calling : \" & mEventName & \"_StorageAvailab"; -__c.LogImpl("266519041","Calling : "+__ref._meventname /*String*/ +"_StorageAvailable",0); -RDebugUtils.currentLine=66519042; - //BA.debugLineNum = 66519042;BA.debugLine="CallSubDelayed(mCallback, mEventName & \"_StorageA"; -__c.CallSubDelayed(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_StorageAvailable"); -RDebugUtils.currentLine=66519043; - //BA.debugLineNum = 66519043;BA.debugLine="End Sub"; +public String _getpermission() throws Exception{ +anywheresoftware.b4a.objects.IntentWrapper _in = null; + //BA.debugLineNum = 41;BA.debugLine="Public Sub GetPermission"; + //BA.debugLineNum = 42;BA.debugLine="If HasPermission Then"; +if (_haspermission()) { + //BA.debugLineNum = 43;BA.debugLine="RaiseEvent"; +_raiseevent(); + //BA.debugLineNum = 44;BA.debugLine="Return"; +if (true) return ""; + }; + //BA.debugLineNum = 46;BA.debugLine="Dim in As Intent"; +_in = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 48;BA.debugLine="in.Initialize(\"android.settings.MANAGE_APP_ALL_FI"; +_in.Initialize("android.settings.MANAGE_APP_ALL_FILES_ACCESS_PERMISSION",("package:"+__c.SmartStringFormatter("",(Object)(__c.Application.getPackageName()))+"")); + //BA.debugLineNum = 49;BA.debugLine="StartActivityForResult(in)"; +_startactivityforresult(_in); + //BA.debugLineNum = 50;BA.debugLine="End Sub"; return ""; } -public String _startactivityforresult(reparto_izca.keymon.lat.manageexternalstorage __ref,anywheresoftware.b4a.objects.IntentWrapper _i) throws Exception{ -__ref = this; -RDebugUtils.currentModule="manageexternalstorage"; -if (Debug.shouldDelegate(ba, "startactivityforresult", false)) - {return ((String) Debug.delegate(ba, "startactivityforresult", new Object[] {_i}));} +public boolean _haspermission() throws Exception{ +boolean _has = false; anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=66650112; - //BA.debugLineNum = 66650112;BA.debugLine="Private Sub StartActivityForResult(i As Intent)"; -RDebugUtils.currentLine=66650113; - //BA.debugLineNum = 66650113;BA.debugLine="Dim jo As JavaObject = GetBA"; + //BA.debugLineNum = 30;BA.debugLine="Public Sub HasPermission As Boolean"; + //BA.debugLineNum = 31;BA.debugLine="Dim has As Boolean"; +_has = false; + //BA.debugLineNum = 32;BA.debugLine="Dim jo As JavaObject"; _jo = new anywheresoftware.b4j.object.JavaObject(); -_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(__ref._getba /*Object*/ (null))); -RDebugUtils.currentLine=66650114; - //BA.debugLineNum = 66650114;BA.debugLine="ion = jo.CreateEvent(\"anywheresoftware.b4a.IOnAct"; -__ref._ion /*Object*/ = _jo.CreateEvent(ba,"anywheresoftware.b4a.IOnActivityResult","ion",__c.Null); -RDebugUtils.currentLine=66650115; - //BA.debugLineNum = 66650115;BA.debugLine="jo.RunMethod(\"startActivityForResult\", Array As O"; -_jo.RunMethod("startActivityForResult",new Object[]{__ref._ion /*Object*/ ,(Object)(_i.getObject())}); -RDebugUtils.currentLine=66650116; - //BA.debugLineNum = 66650116;BA.debugLine="End Sub"; + //BA.debugLineNum = 33;BA.debugLine="jo.InitializeStatic(\"android.os.Environment\")"; +_jo.InitializeStatic("android.os.Environment"); + //BA.debugLineNum = 34;BA.debugLine="has = jo.RunMethod(\"isExternalStorageManager\", Nu"; +_has = BA.ObjectToBoolean(_jo.RunMethod("isExternalStorageManager",(Object[])(__c.Null))); + //BA.debugLineNum = 35;BA.debugLine="Return has"; +if (true) return _has; + //BA.debugLineNum = 36;BA.debugLine="End Sub"; +return false; +} +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ +innerInitialize(_ba); + //BA.debugLineNum = 22;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; + //BA.debugLineNum = 23;BA.debugLine="mCallback = Callback"; +_mcallback = _callback; + //BA.debugLineNum = 24;BA.debugLine="mEventName = EventName"; +_meventname = _eventname; + //BA.debugLineNum = 25;BA.debugLine="End Sub"; return ""; } -public Object _ion_event(reparto_izca.keymon.lat.manageexternalstorage __ref,String _methodname,Object[] _args) throws Exception{ -__ref = this; -RDebugUtils.currentModule="manageexternalstorage"; -if (Debug.shouldDelegate(ba, "ion_event", false)) - {return ((Object) Debug.delegate(ba, "ion_event", new Object[] {_methodname,_args}));} -RDebugUtils.currentLine=66584576; - //BA.debugLineNum = 66584576;BA.debugLine="Private Sub ion_Event (MethodName As String, Args("; -RDebugUtils.currentLine=66584577; - //BA.debugLineNum = 66584577;BA.debugLine="RaiseEvent"; -__ref._raiseevent /*String*/ (null); -RDebugUtils.currentLine=66584578; - //BA.debugLineNum = 66584578;BA.debugLine="Return Null"; +public Object _ion_event(String _methodname,Object[] _args) throws Exception{ + //BA.debugLineNum = 59;BA.debugLine="Private Sub ion_Event (MethodName As String, Args("; + //BA.debugLineNum = 60;BA.debugLine="RaiseEvent"; +_raiseevent(); + //BA.debugLineNum = 61;BA.debugLine="Return Null"; if (true) return __c.Null; -RDebugUtils.currentLine=66584579; - //BA.debugLineNum = 66584579;BA.debugLine="End Sub"; + //BA.debugLineNum = 62;BA.debugLine="End Sub"; return null; } -} \ No newline at end of file +public String _raiseevent() throws Exception{ + //BA.debugLineNum = 53;BA.debugLine="Private Sub RaiseEvent"; + //BA.debugLineNum = 54;BA.debugLine="Log(\"Calling : \" & mEventName & \"_StorageAvailab"; +__c.LogImpl("031129601","Calling : "+_meventname+"_StorageAvailable",0); + //BA.debugLineNum = 55;BA.debugLine="CallSubDelayed(mCallback, mEventName & \"_StorageA"; +__c.CallSubDelayed(ba,_mcallback,_meventname+"_StorageAvailable"); + //BA.debugLineNum = 56;BA.debugLine="End Sub"; +return ""; +} +public String _startactivityforresult(anywheresoftware.b4a.objects.IntentWrapper _i) throws Exception{ +anywheresoftware.b4j.object.JavaObject _jo = null; + //BA.debugLineNum = 65;BA.debugLine="Private Sub StartActivityForResult(i As Intent)"; + //BA.debugLineNum = 66;BA.debugLine="Dim jo As JavaObject = GetBA"; +_jo = new anywheresoftware.b4j.object.JavaObject(); +_jo = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(_getba())); + //BA.debugLineNum = 67;BA.debugLine="ion = jo.CreateEvent(\"anywheresoftware.b4a.IOnAct"; +_ion = _jo.CreateEvent(ba,"anywheresoftware.b4a.IOnActivityResult","ion",__c.Null); + //BA.debugLineNum = 68;BA.debugLine="jo.RunMethod(\"startActivityForResult\", Array As O"; +_jo.RunMethod("startActivityForResult",new Object[]{_ion,(Object)(_i.getObject())}); + //BA.debugLineNum = 69;BA.debugLine="End Sub"; +return ""; +} +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/mapa_cliente.java b/B4A/Objects/src/reparto_izca/keymon/lat/mapa_cliente.java index e3e647b..45ff7eb 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/mapa_cliente.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/mapa_cliente.java @@ -34,7 +34,7 @@ public class mapa_cliente extends Activity implements B4AActivity{ super.onCreate(savedInstanceState); mostCurrent = this; if (processBA == null) { - processBA = new anywheresoftware.b4a.ShellBA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.mapa_cliente"); + processBA = new BA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.mapa_cliente"); processBA.loadHtSubs(this.getClass()); float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density; BALayout.setDeviceScale(deviceScale); @@ -335,15 +335,6 @@ public class mapa_cliente extends Activity implements B4AActivity{ } - - -public static void initializeProcessGlobals() { - try { - Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null); - } catch (Exception e) { - throw new RuntimeException(e); - } -} public anywheresoftware.b4a.keywords.Common __c = null; public static anywheresoftware.b4a.gps.GPS _gps = null; public static anywheresoftware.b4a.objects.RuntimePermissions _rp = null; @@ -380,115 +371,119 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; + +public static void initializeProcessGlobals() { + try { + Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null); + } catch (Exception e) { + throw new RuntimeException(e); + } +} public static String _activity_create(boolean _firsttime) throws Exception{ -RDebugUtils.currentModule="mapa_cliente"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_create", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "activity_create", new Object[] {_firsttime}));} -RDebugUtils.currentLine=66912256; - //BA.debugLineNum = 66912256;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; -RDebugUtils.currentLine=66912257; - //BA.debugLineNum = 66912257;BA.debugLine="Activity.LoadLayout(\"mapa_cliente\")"; + //BA.debugLineNum = 34;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; + //BA.debugLineNum = 35;BA.debugLine="Activity.LoadLayout(\"mapa_cliente\")"; mostCurrent._activity.LoadLayout("mapa_cliente",mostCurrent.activityBA); -RDebugUtils.currentLine=66912258; - //BA.debugLineNum = 66912258;BA.debugLine="If MapFragment1.IsGooglePlayServicesAvailable = F"; + //BA.debugLineNum = 36;BA.debugLine="If MapFragment1.IsGooglePlayServicesAvailable = F"; if (mostCurrent._mapfragment1.IsGooglePlayServicesAvailable(mostCurrent.activityBA)==anywheresoftware.b4a.keywords.Common.False) { -RDebugUtils.currentLine=66912259; - //BA.debugLineNum = 66912259;BA.debugLine="ToastMessageShow(\"Please install Google Play Ser"; + //BA.debugLineNum = 37;BA.debugLine="ToastMessageShow(\"Please install Google Play Ser"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Please install Google Play Services."),anywheresoftware.b4a.keywords.Common.True); }; -RDebugUtils.currentLine=66912261; - //BA.debugLineNum = 66912261;BA.debugLine="End Sub"; + //BA.debugLineNum = 39;BA.debugLine="End Sub"; return ""; } public static String _activity_pause(boolean _userclosed) throws Exception{ -RDebugUtils.currentModule="mapa_cliente"; -RDebugUtils.currentLine=67174400; - //BA.debugLineNum = 67174400;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; -RDebugUtils.currentLine=67174401; - //BA.debugLineNum = 67174401;BA.debugLine="GPS.Stop"; + //BA.debugLineNum = 96;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 97;BA.debugLine="GPS.Stop"; _gps.Stop(); -RDebugUtils.currentLine=67174402; - //BA.debugLineNum = 67174402;BA.debugLine="End Sub"; + //BA.debugLineNum = 98;BA.debugLine="End Sub"; return ""; } public static String _activity_resume() throws Exception{ -RDebugUtils.currentModule="mapa_cliente"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_resume", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "activity_resume", null));} -RDebugUtils.currentLine=67108864; - //BA.debugLineNum = 67108864;BA.debugLine="Sub Activity_Resume"; -RDebugUtils.currentLine=67108865; - //BA.debugLineNum = 67108865;BA.debugLine="Subs.centraBoton(b_regresar, Activity.Width)"; + //BA.debugLineNum = 80;BA.debugLine="Sub Activity_Resume"; + //BA.debugLineNum = 81;BA.debugLine="Subs.centraBoton(b_regresar, Activity.Width)"; mostCurrent._subs._centraboton /*String*/ (mostCurrent.activityBA,mostCurrent._b_regresar,mostCurrent._activity.getWidth()); -RDebugUtils.currentLine=67108866; - //BA.debugLineNum = 67108866;BA.debugLine="GPS.Initialize(\"GPS\")"; + //BA.debugLineNum = 82;BA.debugLine="GPS.Initialize(\"GPS\")"; _gps.Initialize("GPS"); -RDebugUtils.currentLine=67108867; - //BA.debugLineNum = 67108867;BA.debugLine="If GPS.GPSEnabled = False Then"; + //BA.debugLineNum = 83;BA.debugLine="If GPS.GPSEnabled = False Then"; if (_gps.getGPSEnabled()==anywheresoftware.b4a.keywords.Common.False) { -RDebugUtils.currentLine=67108868; - //BA.debugLineNum = 67108868;BA.debugLine="ToastMessageShow(\"Debe Activar el GPS del Equipo"; + //BA.debugLineNum = 84;BA.debugLine="ToastMessageShow(\"Debe Activar el GPS del Equipo"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Debe Activar el GPS del Equipo."),anywheresoftware.b4a.keywords.Common.True); -RDebugUtils.currentLine=67108869; - //BA.debugLineNum = 67108869;BA.debugLine="StartActivity(GPS.LocationSettingsIntent)"; + //BA.debugLineNum = 85;BA.debugLine="StartActivity(GPS.LocationSettingsIntent)"; anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)(_gps.getLocationSettingsIntent())); }else { -RDebugUtils.currentLine=67108871; - //BA.debugLineNum = 67108871;BA.debugLine="GPS.Start(0, 0)"; + //BA.debugLineNum = 87;BA.debugLine="GPS.Start(0, 0)"; _gps.Start(processBA,(long) (0),(float) (0)); }; -RDebugUtils.currentLine=67108873; - //BA.debugLineNum = 67108873;BA.debugLine="Subs.centraPanel(p_principal, Activity.Width)"; + //BA.debugLineNum = 89;BA.debugLine="Subs.centraPanel(p_principal, Activity.Width)"; mostCurrent._subs._centrapanel /*String*/ (mostCurrent.activityBA,mostCurrent._p_principal,mostCurrent._activity.getWidth()); -RDebugUtils.currentLine=67108874; - //BA.debugLineNum = 67108874;BA.debugLine="p_principal.Height = Activity.Height * 0.95"; + //BA.debugLineNum = 90;BA.debugLine="p_principal.Height = Activity.Height * 0.95"; mostCurrent._p_principal.setHeight((int) (mostCurrent._activity.getHeight()*0.95)); -RDebugUtils.currentLine=67108875; - //BA.debugLineNum = 67108875;BA.debugLine="latmarker = B4XPages.MainPage.cliente.LATITUD"; + //BA.debugLineNum = 91;BA.debugLine="latmarker = B4XPages.MainPage.cliente.LATITUD"; mostCurrent._latmarker = mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._cliente /*reparto_izca.keymon.lat.c_cliente*/ ._latitud /*String*/ ; -RDebugUtils.currentLine=67108876; - //BA.debugLineNum = 67108876;BA.debugLine="longmarker = B4XPages.MainPage.cliente.LONGITUD"; + //BA.debugLineNum = 92;BA.debugLine="longmarker = B4XPages.MainPage.cliente.LONGITUD"; mostCurrent._longmarker = mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._cliente /*reparto_izca.keymon.lat.c_cliente*/ ._longitud /*String*/ ; -RDebugUtils.currentLine=67108877; - //BA.debugLineNum = 67108877;BA.debugLine="NOMBRE_TIENDA = B4XPages.MainPage.cliente.NOMBRE"; + //BA.debugLineNum = 93;BA.debugLine="NOMBRE_TIENDA = B4XPages.MainPage.cliente.NOMBRE"; mostCurrent._nombre_tienda = mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._cliente /*reparto_izca.keymon.lat.c_cliente*/ ._nombre /*String*/ ; -RDebugUtils.currentLine=67108878; - //BA.debugLineNum = 67108878;BA.debugLine="End Sub"; + //BA.debugLineNum = 94;BA.debugLine="End Sub"; return ""; } public static String _b_regresar_click() throws Exception{ -RDebugUtils.currentModule="mapa_cliente"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "b_regresar_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "b_regresar_click", null));} -RDebugUtils.currentLine=67305472; - //BA.debugLineNum = 67305472;BA.debugLine="Private Sub b_regresar_Click"; -RDebugUtils.currentLine=67305473; - //BA.debugLineNum = 67305473;BA.debugLine="Log(\"Pressed\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("267305473","Pressed",0); -RDebugUtils.currentLine=67305474; - //BA.debugLineNum = 67305474;BA.debugLine="Activity.Finish"; + //BA.debugLineNum = 105;BA.debugLine="Private Sub b_regresar_Click"; + //BA.debugLineNum = 106;BA.debugLine="Log(\"Pressed\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("031916033","Pressed",0); + //BA.debugLineNum = 107;BA.debugLine="Activity.Finish"; mostCurrent._activity.Finish(); -RDebugUtils.currentLine=67305475; - //BA.debugLineNum = 67305475;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; + //BA.debugLineNum = 108;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Cliente"); -RDebugUtils.currentLine=67305476; - //BA.debugLineNum = 67305476;BA.debugLine="End Sub"; + //BA.debugLineNum = 109;BA.debugLine="End Sub"; +return ""; +} +public static String _globals() throws Exception{ + //BA.debugLineNum = 14;BA.debugLine="Sub Globals"; + //BA.debugLineNum = 15;BA.debugLine="Private gmap As GoogleMap"; +mostCurrent._gmap = new anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper(); + //BA.debugLineNum = 16;BA.debugLine="Private MapFragment1 As MapFragment"; +mostCurrent._mapfragment1 = new anywheresoftware.b4a.objects.MapFragmentWrapper(); + //BA.debugLineNum = 17;BA.debugLine="Dim Latitud As Double = 0"; +_latitud = 0; + //BA.debugLineNum = 18;BA.debugLine="Dim Longitud As Double = 0"; +_longitud = 0; + //BA.debugLineNum = 19;BA.debugLine="Dim Lat2 As Double = 0"; +_lat2 = 0; + //BA.debugLineNum = 20;BA.debugLine="Dim Lon2 As Double = 0"; +_lon2 = 0; + //BA.debugLineNum = 21;BA.debugLine="Dim p1, p2 As Location"; +mostCurrent._p1 = new anywheresoftware.b4a.gps.LocationWrapper(); +mostCurrent._p2 = new anywheresoftware.b4a.gps.LocationWrapper(); + //BA.debugLineNum = 22;BA.debugLine="Dim Distance As Float"; +_distance = 0f; + //BA.debugLineNum = 23;BA.debugLine="Dim boton1 As Button"; +mostCurrent._boton1 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 24;BA.debugLine="Dim c As Cursor"; +mostCurrent._c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 25;BA.debugLine="Dim latmarker As String"; +mostCurrent._latmarker = ""; + //BA.debugLineNum = 26;BA.debugLine="Dim longmarker As String"; +mostCurrent._longmarker = ""; + //BA.debugLineNum = 27;BA.debugLine="Private l_long As Label"; +mostCurrent._l_long = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 28;BA.debugLine="Private l_lat As Label"; +mostCurrent._l_lat = new anywheresoftware.b4a.objects.LabelWrapper(); + //BA.debugLineNum = 29;BA.debugLine="Private NOMBRE_TIENDA As String"; +mostCurrent._nombre_tienda = ""; + //BA.debugLineNum = 30;BA.debugLine="Private p_principal As Panel"; +mostCurrent._p_principal = new anywheresoftware.b4a.objects.PanelWrapper(); + //BA.debugLineNum = 31;BA.debugLine="Private b_regresar As Button"; +mostCurrent._b_regresar = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 32;BA.debugLine="End Sub"; return ""; } public static String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _parametro) throws Exception{ -RDebugUtils.currentModule="mapa_cliente"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "gps_locationchanged", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "gps_locationchanged", new Object[] {_parametro}));} -RDebugUtils.currentLine=67043328; - //BA.debugLineNum = 67043328;BA.debugLine="Sub GPS_LocationChanged (Parametro As Location)"; -RDebugUtils.currentLine=67043347; - //BA.debugLineNum = 67043347;BA.debugLine="End Sub"; + //BA.debugLineNum = 59;BA.debugLine="Sub GPS_LocationChanged (Parametro As Location)"; + //BA.debugLineNum = 78;BA.debugLine="End Sub"; return ""; } public static void _mapfragment1_ready() throws Exception{ -RDebugUtils.currentModule="mapa_cliente"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "mapfragment1_ready", false)) - {Debug.delegate(mostCurrent.activityBA, "mapfragment1_ready", null); return;} ResumableSub_MapFragment1_Ready rsub = new ResumableSub_MapFragment1_Ready(null); rsub.resume(processBA, null); } @@ -505,7 +500,6 @@ anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper _aa = null @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="mapa_cliente"; while (true) { switch (state) { @@ -515,15 +509,12 @@ return; case 0: //C this.state = -1; -RDebugUtils.currentLine=66977793; - //BA.debugLineNum = 66977793;BA.debugLine="gmap = MapFragment1.GetMap"; + //BA.debugLineNum = 42;BA.debugLine="gmap = MapFragment1.GetMap"; parent.mostCurrent._gmap = parent.mostCurrent._mapfragment1.GetMap(); -RDebugUtils.currentLine=66977795; - //BA.debugLineNum = 66977795;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCA"; + //BA.debugLineNum = 44;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCA"; parent._rp.CheckAndRequest(processBA,parent._rp.PERMISSION_ACCESS_FINE_LOCATION); -RDebugUtils.currentLine=66977796; - //BA.debugLineNum = 66977796;BA.debugLine="Wait For Activity_PermissionResult (Permission As"; -anywheresoftware.b4a.keywords.Common.WaitFor("activity_permissionresult", processBA, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "mapa_cliente", "mapfragment1_ready"), null); + //BA.debugLineNum = 45;BA.debugLine="Wait For Activity_PermissionResult (Permission As"; +anywheresoftware.b4a.keywords.Common.WaitFor("activity_permissionresult", processBA, this, null); this.state = 1; return; case 1: @@ -532,53 +523,52 @@ this.state = -1; _permission = (String) result[0]; _result = (Boolean) result[1]; ; -RDebugUtils.currentLine=66977797; - //BA.debugLineNum = 66977797;BA.debugLine="gmap.MyLocationEnabled = Result"; + //BA.debugLineNum = 46;BA.debugLine="gmap.MyLocationEnabled = Result"; parent.mostCurrent._gmap.setMyLocationEnabled(_result); -RDebugUtils.currentLine=66977799; - //BA.debugLineNum = 66977799;BA.debugLine="Dim JavaMapsObject As JavaObject"; + //BA.debugLineNum = 48;BA.debugLine="Dim JavaMapsObject As JavaObject"; _javamapsobject = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=66977800; - //BA.debugLineNum = 66977800;BA.debugLine="JavaMapsObject = gmap.GetUiSettings"; + //BA.debugLineNum = 49;BA.debugLine="JavaMapsObject = gmap.GetUiSettings"; _javamapsobject = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(parent.mostCurrent._gmap.GetUiSettings().getObject())); -RDebugUtils.currentLine=66977801; - //BA.debugLineNum = 66977801;BA.debugLine="JavaMapsObject.RunMethod(\"setMapToolbarEnabled\","; + //BA.debugLineNum = 50;BA.debugLine="JavaMapsObject.RunMethod(\"setMapToolbarEnabled\","; _javamapsobject.RunMethod("setMapToolbarEnabled",new Object[]{(Object)(anywheresoftware.b4a.keywords.Common.True)}); -RDebugUtils.currentLine=66977802; - //BA.debugLineNum = 66977802;BA.debugLine="Dim marcador1 As Marker = gmap.AddMarker (latmark"; + //BA.debugLineNum = 51;BA.debugLine="Dim marcador1 As Marker = gmap.AddMarker (latmark"; _marcador1 = new anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper(); _marcador1 = parent.mostCurrent._gmap.AddMarker((double)(Double.parseDouble(parent.mostCurrent._latmarker)),(double)(Double.parseDouble(parent.mostCurrent._longmarker)),"TIENDA"); -RDebugUtils.currentLine=66977803; - //BA.debugLineNum = 66977803;BA.debugLine="marcador1.Snippet = B4XPages.MainPage.cliente.NOM"; + //BA.debugLineNum = 52;BA.debugLine="marcador1.Snippet = B4XPages.MainPage.cliente.NOM"; _marcador1.setSnippet(parent.mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (mostCurrent.activityBA)._cliente /*reparto_izca.keymon.lat.c_cliente*/ ._nombre /*String*/ ); -RDebugUtils.currentLine=66977805; - //BA.debugLineNum = 66977805;BA.debugLine="Dim aa As CameraPosition"; + //BA.debugLineNum = 54;BA.debugLine="Dim aa As CameraPosition"; _aa = new anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper(); -RDebugUtils.currentLine=66977806; - //BA.debugLineNum = 66977806;BA.debugLine="aa.Initialize(latmarker,longmarker,15)''' RECOMEN"; + //BA.debugLineNum = 55;BA.debugLine="aa.Initialize(latmarker,longmarker,15)''' RECOMEN"; _aa.Initialize((double)(Double.parseDouble(parent.mostCurrent._latmarker)),(double)(Double.parseDouble(parent.mostCurrent._longmarker)),(float) (15)); -RDebugUtils.currentLine=66977807; - //BA.debugLineNum = 66977807;BA.debugLine="gmap.AnimateCamera(aa)"; + //BA.debugLineNum = 56;BA.debugLine="gmap.AnimateCamera(aa)"; parent.mostCurrent._gmap.AnimateCamera((com.google.android.gms.maps.model.CameraPosition)(_aa.getObject())); -RDebugUtils.currentLine=66977808; - //BA.debugLineNum = 66977808;BA.debugLine="End Sub"; + //BA.debugLineNum = 57;BA.debugLine="End Sub"; if (true) break; } } } } -public static String _reg_click() throws Exception{ -RDebugUtils.currentModule="mapa_cliente"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "reg_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "reg_click", null));} -RDebugUtils.currentLine=67239936; - //BA.debugLineNum = 67239936;BA.debugLine="Sub reg_Click"; -RDebugUtils.currentLine=67239938; - //BA.debugLineNum = 67239938;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; -mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Cliente"); -RDebugUtils.currentLine=67239939; - //BA.debugLineNum = 67239939;BA.debugLine="End Sub"; +public static void _activity_permissionresult(String _permission,boolean _result) throws Exception{ +} +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 7;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 8;BA.debugLine="Dim GPS As GPS"; +_gps = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 9;BA.debugLine="Dim rp As RuntimePermissions"; +_rp = new anywheresoftware.b4a.objects.RuntimePermissions(); + //BA.debugLineNum = 10;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 11;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 12;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public static String _reg_click() throws Exception{ + //BA.debugLineNum = 100;BA.debugLine="Sub reg_Click"; + //BA.debugLineNum = 102;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; +mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Cliente"); + //BA.debugLineNum = 103;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/mapa_rutas.java b/B4A/Objects/src/reparto_izca/keymon/lat/mapa_rutas.java index cdc508b..5755764 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/mapa_rutas.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/mapa_rutas.java @@ -34,7 +34,7 @@ public class mapa_rutas extends Activity implements B4AActivity{ super.onCreate(savedInstanceState); mostCurrent = this; if (processBA == null) { - processBA = new anywheresoftware.b4a.ShellBA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.mapa_rutas"); + processBA = new BA(this.getApplicationContext(), null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.mapa_rutas"); processBA.loadHtSubs(this.getClass()); float deviceScale = getApplicationContext().getResources().getDisplayMetrics().density; BALayout.setDeviceScale(deviceScale); @@ -335,15 +335,6 @@ public class mapa_rutas extends Activity implements B4AActivity{ } - - -public static void initializeProcessGlobals() { - try { - Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null); - } catch (Exception e) { - throw new RuntimeException(e); - } -} public anywheresoftware.b4a.keywords.Common __c = null; public static anywheresoftware.b4a.gps.GPS _gps = null; public static anywheresoftware.b4a.objects.RuntimePermissions _rp = null; @@ -402,129 +393,221 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; + +public static void initializeProcessGlobals() { + try { + Class.forName(BA.applicationContext.getPackageName() + ".main").getMethod("initializeProcessGlobals").invoke(null, null); + } catch (Exception e) { + throw new RuntimeException(e); + } +} public static String _activity_create(boolean _firsttime) throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_create", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "activity_create", new Object[] {_firsttime}));} -RDebugUtils.currentLine=67502080; - //BA.debugLineNum = 67502080;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; -RDebugUtils.currentLine=67502082; - //BA.debugLineNum = 67502082;BA.debugLine="Activity.LoadLayout(\"MAPA_RUTAS\")"; + //BA.debugLineNum = 57;BA.debugLine="Sub Activity_Create(FirstTime As Boolean)"; + //BA.debugLineNum = 59;BA.debugLine="Activity.LoadLayout(\"MAPA_RUTAS\")"; mostCurrent._activity.LoadLayout("MAPA_RUTAS",mostCurrent.activityBA); -RDebugUtils.currentLine=67502093; - //BA.debugLineNum = 67502093;BA.debugLine="If MapFragment1.IsGooglePlayServicesAvailable = F"; + //BA.debugLineNum = 70;BA.debugLine="If MapFragment1.IsGooglePlayServicesAvailable = F"; if (mostCurrent._mapfragment1.IsGooglePlayServicesAvailable(mostCurrent.activityBA)==anywheresoftware.b4a.keywords.Common.False) { -RDebugUtils.currentLine=67502094; - //BA.debugLineNum = 67502094;BA.debugLine="ToastMessageShow(\"Please install Google Play Ser"; + //BA.debugLineNum = 71;BA.debugLine="ToastMessageShow(\"Please install Google Play Ser"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Please install Google Play Services."),anywheresoftware.b4a.keywords.Common.True); }; -RDebugUtils.currentLine=67502105; - //BA.debugLineNum = 67502105;BA.debugLine="MARK_AZUL.IsInitialized"; + //BA.debugLineNum = 82;BA.debugLine="MARK_AZUL.IsInitialized"; mostCurrent._mark_azul.IsInitialized(); -RDebugUtils.currentLine=67502106; - //BA.debugLineNum = 67502106;BA.debugLine="MARK_ROJO.IsInitialized"; + //BA.debugLineNum = 83;BA.debugLine="MARK_ROJO.IsInitialized"; mostCurrent._mark_rojo.IsInitialized(); -RDebugUtils.currentLine=67502107; - //BA.debugLineNum = 67502107;BA.debugLine="MARK_VERDE.IsInitialized"; + //BA.debugLineNum = 84;BA.debugLine="MARK_VERDE.IsInitialized"; mostCurrent._mark_verde.IsInitialized(); -RDebugUtils.currentLine=67502109; - //BA.debugLineNum = 67502109;BA.debugLine="LIST_AZUL.Initialize"; + //BA.debugLineNum = 86;BA.debugLine="LIST_AZUL.Initialize"; mostCurrent._list_azul.Initialize(); -RDebugUtils.currentLine=67502110; - //BA.debugLineNum = 67502110;BA.debugLine="LIST_ROJO.Initialize"; + //BA.debugLineNum = 87;BA.debugLine="LIST_ROJO.Initialize"; mostCurrent._list_rojo.Initialize(); -RDebugUtils.currentLine=67502111; - //BA.debugLineNum = 67502111;BA.debugLine="LIST_VERDE.Initialize"; + //BA.debugLineNum = 88;BA.debugLine="LIST_VERDE.Initialize"; mostCurrent._list_verde.Initialize(); -RDebugUtils.currentLine=67502113; - //BA.debugLineNum = 67502113;BA.debugLine="verde = 0"; + //BA.debugLineNum = 90;BA.debugLine="verde = 0"; mostCurrent._verde = BA.NumberToString(0); -RDebugUtils.currentLine=67502114; - //BA.debugLineNum = 67502114;BA.debugLine="azul = 0"; + //BA.debugLineNum = 91;BA.debugLine="azul = 0"; mostCurrent._azul = BA.NumberToString(0); -RDebugUtils.currentLine=67502115; - //BA.debugLineNum = 67502115;BA.debugLine="rojo = 0"; + //BA.debugLineNum = 92;BA.debugLine="rojo = 0"; mostCurrent._rojo = BA.NumberToString(0); -RDebugUtils.currentLine=67502116; - //BA.debugLineNum = 67502116;BA.debugLine="todos = 1"; + //BA.debugLineNum = 93;BA.debugLine="todos = 1"; mostCurrent._todos = BA.NumberToString(1); -RDebugUtils.currentLine=67502130; - //BA.debugLineNum = 67502130;BA.debugLine="End Sub"; + //BA.debugLineNum = 107;BA.debugLine="End Sub"; return ""; } public static boolean _activity_keypress(int _key) throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_keypress", false)) - {return ((Boolean) Debug.delegate(mostCurrent.activityBA, "activity_keypress", new Object[] {_key}));} -RDebugUtils.currentLine=68157440; - //BA.debugLineNum = 68157440;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean 'ign"; -RDebugUtils.currentLine=68157442; - //BA.debugLineNum = 68157442;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then"; + //BA.debugLineNum = 352;BA.debugLine="Sub Activity_KeyPress (key As Int) As Boolean 'ign"; + //BA.debugLineNum = 354;BA.debugLine="If key=KeyCodes.KEYCODE_BACK Then"; if (_key==anywheresoftware.b4a.keywords.Common.KeyCodes.KEYCODE_BACK) { -RDebugUtils.currentLine=68157444; - //BA.debugLineNum = 68157444;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; + //BA.debugLineNum = 356;BA.debugLine="B4XPages.ShowPage(\"Principal\")"; mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Principal"); -RDebugUtils.currentLine=68157445; - //BA.debugLineNum = 68157445;BA.debugLine="Return False"; + //BA.debugLineNum = 357;BA.debugLine="Return False"; if (true) return anywheresoftware.b4a.keywords.Common.False; }; -RDebugUtils.currentLine=68157449; - //BA.debugLineNum = 68157449;BA.debugLine="End Sub"; + //BA.debugLineNum = 361;BA.debugLine="End Sub"; return false; } public static String _activity_pause(boolean _userclosed) throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -RDebugUtils.currentLine=67829760; - //BA.debugLineNum = 67829760;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; -RDebugUtils.currentLine=67829761; - //BA.debugLineNum = 67829761;BA.debugLine="GPS.Stop"; + //BA.debugLineNum = 312;BA.debugLine="Sub Activity_Pause (UserClosed As Boolean)"; + //BA.debugLineNum = 313;BA.debugLine="GPS.Stop"; _gps.Stop(); -RDebugUtils.currentLine=67829762; - //BA.debugLineNum = 67829762;BA.debugLine="End Sub"; + //BA.debugLineNum = 314;BA.debugLine="End Sub"; return ""; } public static String _activity_resume() throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "activity_resume", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "activity_resume", null));} -RDebugUtils.currentLine=67764224; - //BA.debugLineNum = 67764224;BA.debugLine="Sub Activity_Resume"; -RDebugUtils.currentLine=67764231; - //BA.debugLineNum = 67764231;BA.debugLine="End Sub"; + //BA.debugLineNum = 303;BA.debugLine="Sub Activity_Resume"; + //BA.debugLineNum = 310;BA.debugLine="End Sub"; return ""; } public static String _b_azul_click() throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "b_azul_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "b_azul_click", null));} -RDebugUtils.currentLine=68091904; - //BA.debugLineNum = 68091904;BA.debugLine="Sub B_AZUL_Click"; -RDebugUtils.currentLine=68091905; - //BA.debugLineNum = 68091905;BA.debugLine="azul = 1"; + //BA.debugLineNum = 342;BA.debugLine="Sub B_AZUL_Click"; + //BA.debugLineNum = 343;BA.debugLine="azul = 1"; mostCurrent._azul = BA.NumberToString(1); -RDebugUtils.currentLine=68091906; - //BA.debugLineNum = 68091906;BA.debugLine="verde = 0"; + //BA.debugLineNum = 344;BA.debugLine="verde = 0"; mostCurrent._verde = BA.NumberToString(0); -RDebugUtils.currentLine=68091907; - //BA.debugLineNum = 68091907;BA.debugLine="rojo = 0"; + //BA.debugLineNum = 345;BA.debugLine="rojo = 0"; mostCurrent._rojo = BA.NumberToString(0); -RDebugUtils.currentLine=68091908; - //BA.debugLineNum = 68091908;BA.debugLine="todos = 0"; + //BA.debugLineNum = 346;BA.debugLine="todos = 0"; mostCurrent._todos = BA.NumberToString(0); -RDebugUtils.currentLine=68091909; - //BA.debugLineNum = 68091909;BA.debugLine="gmap.Clear"; + //BA.debugLineNum = 347;BA.debugLine="gmap.Clear"; mostCurrent._gmap.Clear(); -RDebugUtils.currentLine=68091910; - //BA.debugLineNum = 68091910;BA.debugLine="MapFragment1_Ready"; + //BA.debugLineNum = 348;BA.debugLine="MapFragment1_Ready"; _mapfragment1_ready(); -RDebugUtils.currentLine=68091911; - //BA.debugLineNum = 68091911;BA.debugLine="End Sub"; + //BA.debugLineNum = 349;BA.debugLine="End Sub"; +return ""; +} +public static String _b_rojo_click() throws Exception{ + //BA.debugLineNum = 333;BA.debugLine="Sub B_ROJO_Click"; + //BA.debugLineNum = 334;BA.debugLine="rojo = 1"; +mostCurrent._rojo = BA.NumberToString(1); + //BA.debugLineNum = 335;BA.debugLine="verde = 0"; +mostCurrent._verde = BA.NumberToString(0); + //BA.debugLineNum = 336;BA.debugLine="azul = 0"; +mostCurrent._azul = BA.NumberToString(0); + //BA.debugLineNum = 337;BA.debugLine="todos = 0"; +mostCurrent._todos = BA.NumberToString(0); + //BA.debugLineNum = 338;BA.debugLine="gmap.Clear"; +mostCurrent._gmap.Clear(); + //BA.debugLineNum = 339;BA.debugLine="MapFragment1_Ready"; +_mapfragment1_ready(); + //BA.debugLineNum = 340;BA.debugLine="End Sub"; +return ""; +} +public static String _b_todos_click() throws Exception{ + //BA.debugLineNum = 316;BA.debugLine="Sub B_TODOS_Click"; + //BA.debugLineNum = 317;BA.debugLine="todos =1"; +mostCurrent._todos = BA.NumberToString(1); + //BA.debugLineNum = 318;BA.debugLine="verde = 0"; +mostCurrent._verde = BA.NumberToString(0); + //BA.debugLineNum = 319;BA.debugLine="azul = 0"; +mostCurrent._azul = BA.NumberToString(0); + //BA.debugLineNum = 320;BA.debugLine="rojo = 0"; +mostCurrent._rojo = BA.NumberToString(0); + //BA.debugLineNum = 321;BA.debugLine="MapFragment1_Ready"; +_mapfragment1_ready(); + //BA.debugLineNum = 322;BA.debugLine="End Sub"; +return ""; +} +public static String _b_verde_click() throws Exception{ + //BA.debugLineNum = 324;BA.debugLine="Sub B_VERDE_Click"; + //BA.debugLineNum = 325;BA.debugLine="verde = 1"; +mostCurrent._verde = BA.NumberToString(1); + //BA.debugLineNum = 326;BA.debugLine="azul = 0"; +mostCurrent._azul = BA.NumberToString(0); + //BA.debugLineNum = 327;BA.debugLine="rojo = 0"; +mostCurrent._rojo = BA.NumberToString(0); + //BA.debugLineNum = 328;BA.debugLine="todos = 0"; +mostCurrent._todos = BA.NumberToString(0); + //BA.debugLineNum = 329;BA.debugLine="gmap.Clear"; +mostCurrent._gmap.Clear(); + //BA.debugLineNum = 330;BA.debugLine="MapFragment1_Ready"; +_mapfragment1_ready(); + //BA.debugLineNum = 331;BA.debugLine="End Sub"; +return ""; +} +public static String _globals() throws Exception{ + //BA.debugLineNum = 17;BA.debugLine="Sub Globals"; + //BA.debugLineNum = 18;BA.debugLine="Private gmap As GoogleMap"; +mostCurrent._gmap = new anywheresoftware.b4a.objects.MapFragmentWrapper.GoogleMapWrapper(); + //BA.debugLineNum = 19;BA.debugLine="Private MapFragment1 As MapFragment"; +mostCurrent._mapfragment1 = new anywheresoftware.b4a.objects.MapFragmentWrapper(); + //BA.debugLineNum = 20;BA.debugLine="Dim Latitud As Double = 0"; +_latitud = 0; + //BA.debugLineNum = 21;BA.debugLine="Dim Longitud As Double = 0"; +_longitud = 0; + //BA.debugLineNum = 22;BA.debugLine="Dim Lat2 As Double = 0"; +_lat2 = 0; + //BA.debugLineNum = 23;BA.debugLine="Dim Lon2 As Double = 0"; +_lon2 = 0; + //BA.debugLineNum = 24;BA.debugLine="Dim p1, p2 As Location"; +mostCurrent._p1 = new anywheresoftware.b4a.gps.LocationWrapper(); +mostCurrent._p2 = new anywheresoftware.b4a.gps.LocationWrapper(); + //BA.debugLineNum = 25;BA.debugLine="Dim Distance As Float"; +_distance = 0f; + //BA.debugLineNum = 26;BA.debugLine="Dim boton1 As Button"; +mostCurrent._boton1 = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 27;BA.debugLine="Dim HUE_BLUE As Float"; +_hue_blue = 0f; + //BA.debugLineNum = 28;BA.debugLine="Dim HUE_RED As Float"; +_hue_red = 0f; + //BA.debugLineNum = 29;BA.debugLine="Dim HUE_GREEN As Float"; +_hue_green = 0f; + //BA.debugLineNum = 30;BA.debugLine="Private B_AZUL As Button"; +mostCurrent._b_azul = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 31;BA.debugLine="Private B_ROJO As Button"; +mostCurrent._b_rojo = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 32;BA.debugLine="Private B_VERDE As Button"; +mostCurrent._b_verde = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 33;BA.debugLine="Private B_TODOS As Button"; +mostCurrent._b_todos = new anywheresoftware.b4a.objects.ButtonWrapper(); + //BA.debugLineNum = 34;BA.debugLine="Dim Tienda As String"; +mostCurrent._tienda = ""; + //BA.debugLineNum = 35;BA.debugLine="Dim ruta, rutaAnt As String"; +mostCurrent._ruta = ""; +mostCurrent._rutaant = ""; + //BA.debugLineNum = 36;BA.debugLine="Dim LatitudRu As Double"; +_latitudru = 0; + //BA.debugLineNum = 37;BA.debugLine="Dim LongitudRU As Double"; +_longitudru = 0; + //BA.debugLineNum = 38;BA.debugLine="Dim LIST_AZUL As List"; +mostCurrent._list_azul = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 39;BA.debugLine="Dim LIST_ROJO As List"; +mostCurrent._list_rojo = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 40;BA.debugLine="Dim LIST_VERDE As List"; +mostCurrent._list_verde = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 41;BA.debugLine="Dim MARK_AZUL As Marker"; +mostCurrent._mark_azul = new anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper(); + //BA.debugLineNum = 42;BA.debugLine="Dim MARK_ROJO As Marker"; +mostCurrent._mark_rojo = new anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper(); + //BA.debugLineNum = 43;BA.debugLine="Dim MARK_VERDE As Marker"; +mostCurrent._mark_verde = new anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper(); + //BA.debugLineNum = 44;BA.debugLine="Dim MARK_CEDIS As Marker"; +mostCurrent._mark_cedis = new anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper(); + //BA.debugLineNum = 45;BA.debugLine="Dim rojo As String"; +mostCurrent._rojo = ""; + //BA.debugLineNum = 46;BA.debugLine="Dim azul As String"; +mostCurrent._azul = ""; + //BA.debugLineNum = 47;BA.debugLine="Dim verde As String"; +mostCurrent._verde = ""; + //BA.debugLineNum = 48;BA.debugLine="Dim todos As String"; +mostCurrent._todos = ""; + //BA.debugLineNum = 49;BA.debugLine="Dim NumSerie As Int"; +_numserie = 0; + //BA.debugLineNum = 50;BA.debugLine="Dim OnInfoWindowClickListener1 As OnInfoWindowCli"; +mostCurrent._oninfowindowclicklistener1 = new uk.co.martinpearman.b4a.com.google.android.gms.maps.googlemap.OnInfoWindowClickListener(); + //BA.debugLineNum = 51;BA.debugLine="Dim GoogleMapEXTRA As GoogleMapsExtras"; +mostCurrent._googlemapextra = new uk.co.martinpearman.b4a.googlemapsextras.GoogleMapsExtras(); + //BA.debugLineNum = 52;BA.debugLine="Dim CODIGO As String"; +mostCurrent._codigo = ""; + //BA.debugLineNum = 53;BA.debugLine="Private SEMANA As String"; +mostCurrent._semana = ""; + //BA.debugLineNum = 55;BA.debugLine="End Sub"; +return ""; +} +public static String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _parametro) throws Exception{ + //BA.debugLineNum = 282;BA.debugLine="Sub GPS_LocationChanged (Parametro As Location)"; + //BA.debugLineNum = 301;BA.debugLine="End Sub"; return ""; } public static void _mapfragment1_ready() throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "mapfragment1_ready", false)) - {Debug.delegate(mostCurrent.activityBA, "mapfragment1_ready", null); return;} ResumableSub_MapFragment1_Ready rsub = new ResumableSub_MapFragment1_Ready(null); rsub.resume(processBA, null); } @@ -556,7 +639,6 @@ int limit119; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; while (true) { switch (state) { @@ -566,18 +648,14 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=67567617; - //BA.debugLineNum = 67567617;BA.debugLine="gmap = MapFragment1.GetMap"; + //BA.debugLineNum = 110;BA.debugLine="gmap = MapFragment1.GetMap"; parent.mostCurrent._gmap = parent.mostCurrent._mapfragment1.GetMap(); -RDebugUtils.currentLine=67567618; - //BA.debugLineNum = 67567618;BA.debugLine="gmap.IsInitialized"; + //BA.debugLineNum = 111;BA.debugLine="gmap.IsInitialized"; parent.mostCurrent._gmap.IsInitialized(); -RDebugUtils.currentLine=67567619; - //BA.debugLineNum = 67567619;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCA"; + //BA.debugLineNum = 112;BA.debugLine="rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCA"; parent._rp.CheckAndRequest(processBA,parent._rp.PERMISSION_ACCESS_FINE_LOCATION); -RDebugUtils.currentLine=67567620; - //BA.debugLineNum = 67567620;BA.debugLine="Wait For Activity_PermissionResult (Permission As"; -anywheresoftware.b4a.keywords.Common.WaitFor("activity_permissionresult", processBA, new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "mapa_rutas", "mapfragment1_ready"), null); + //BA.debugLineNum = 113;BA.debugLine="Wait For Activity_PermissionResult (Permission As"; +anywheresoftware.b4a.keywords.Common.WaitFor("activity_permissionresult", processBA, this, null); this.state = 126; return; case 126: @@ -586,26 +664,19 @@ this.state = 1; _permission = (String) result[0]; _result = (Boolean) result[1]; ; -RDebugUtils.currentLine=67567621; - //BA.debugLineNum = 67567621;BA.debugLine="gmap.MyLocationEnabled = Result"; + //BA.debugLineNum = 114;BA.debugLine="gmap.MyLocationEnabled = Result"; parent.mostCurrent._gmap.setMyLocationEnabled(_result); -RDebugUtils.currentLine=67567623; - //BA.debugLineNum = 67567623;BA.debugLine="Dim JavaMapsObject As JavaObject"; + //BA.debugLineNum = 116;BA.debugLine="Dim JavaMapsObject As JavaObject"; _javamapsobject = new anywheresoftware.b4j.object.JavaObject(); -RDebugUtils.currentLine=67567624; - //BA.debugLineNum = 67567624;BA.debugLine="JavaMapsObject = gmap.GetUiSettings"; + //BA.debugLineNum = 117;BA.debugLine="JavaMapsObject = gmap.GetUiSettings"; _javamapsobject = (anywheresoftware.b4j.object.JavaObject) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.object.JavaObject(), (java.lang.Object)(parent.mostCurrent._gmap.GetUiSettings().getObject())); -RDebugUtils.currentLine=67567625; - //BA.debugLineNum = 67567625;BA.debugLine="JavaMapsObject.RunMethod(\"setMapToolbarEnabled\","; + //BA.debugLineNum = 118;BA.debugLine="JavaMapsObject.RunMethod(\"setMapToolbarEnabled\","; _javamapsobject.RunMethod("setMapToolbarEnabled",new Object[]{(Object)(anywheresoftware.b4a.keywords.Common.True)}); -RDebugUtils.currentLine=67567627; - //BA.debugLineNum = 67567627;BA.debugLine="Private esteAzul As Int = 0"; + //BA.debugLineNum = 120;BA.debugLine="Private esteAzul As Int = 0"; _esteazul = (int) (0); -RDebugUtils.currentLine=67567628; - //BA.debugLineNum = 67567628;BA.debugLine="Private esteAzul2 As String"; + //BA.debugLineNum = 121;BA.debugLine="Private esteAzul2 As String"; _esteazul2 = ""; -RDebugUtils.currentLine=67567629; - //BA.debugLineNum = 67567629;BA.debugLine="If azul = 1 Or todos = 1 Then"; + //BA.debugLineNum = 122;BA.debugLine="If azul = 1 Or todos = 1 Then"; if (true) break; case 1: @@ -618,17 +689,13 @@ this.state = 3; case 3: //C this.state = 4; -RDebugUtils.currentLine=67567630; - //BA.debugLineNum = 67567630;BA.debugLine="c.IsInitialized"; + //BA.debugLineNum = 123;BA.debugLine="c.IsInitialized"; parent._c.IsInitialized(); -RDebugUtils.currentLine=67567631; - //BA.debugLineNum = 67567631;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO"; + //BA.debugLineNum = 124;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO"; parent._c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, IFNULL(SECUENCIA,0) AS SECUENCIA, CAT_CL_NOMBRE, CAT_CL_LAT, CAT_CL_LONG, CAT_CL_RUTA from kmt_info where gestion = 0 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO NOT IN ('63403','100000') order by CAT_CL_RUTA"))); -RDebugUtils.currentLine=67567632; - //BA.debugLineNum = 67567632;BA.debugLine="rutaAnt = \"\""; + //BA.debugLineNum = 125;BA.debugLine="rutaAnt = \"\""; parent.mostCurrent._rutaant = ""; -RDebugUtils.currentLine=67567633; - //BA.debugLineNum = 67567633;BA.debugLine="For i = 0 To c.RowCount -1"; + //BA.debugLineNum = 126;BA.debugLine="For i = 0 To c.RowCount -1"; if (true) break; case 4: @@ -655,26 +722,19 @@ if (true) break; case 6: //C this.state = 7; -RDebugUtils.currentLine=67567634; - //BA.debugLineNum = 67567634;BA.debugLine="c.Position = i"; + //BA.debugLineNum = 127;BA.debugLine="c.Position = i"; parent._c.setPosition(_i); -RDebugUtils.currentLine=67567635; - //BA.debugLineNum = 67567635;BA.debugLine="LatitudRu = c.GetString(\"CAT_CL_LAT\")"; + //BA.debugLineNum = 128;BA.debugLine="LatitudRu = c.GetString(\"CAT_CL_LAT\")"; parent._latitudru = (double)(Double.parseDouble(parent._c.GetString("CAT_CL_LAT"))); -RDebugUtils.currentLine=67567636; - //BA.debugLineNum = 67567636;BA.debugLine="LongitudRU = c.GetString(\"CAT_CL_LONG\")"; + //BA.debugLineNum = 129;BA.debugLine="LongitudRU = c.GetString(\"CAT_CL_LONG\")"; parent._longitudru = (double)(Double.parseDouble(parent._c.GetString("CAT_CL_LONG"))); -RDebugUtils.currentLine=67567637; - //BA.debugLineNum = 67567637;BA.debugLine="CODIGO=c.GetString(\"CAT_CL_CODIGO\")"; + //BA.debugLineNum = 130;BA.debugLine="CODIGO=c.GetString(\"CAT_CL_CODIGO\")"; parent.mostCurrent._codigo = parent._c.GetString("CAT_CL_CODIGO"); -RDebugUtils.currentLine=67567638; - //BA.debugLineNum = 67567638;BA.debugLine="Tienda= c.GetString(\"CAT_CL_NOMBRE\")"; + //BA.debugLineNum = 131;BA.debugLine="Tienda= c.GetString(\"CAT_CL_NOMBRE\")"; parent.mostCurrent._tienda = parent._c.GetString("CAT_CL_NOMBRE"); -RDebugUtils.currentLine=67567639; - //BA.debugLineNum = 67567639;BA.debugLine="ruta = c.GetString(\"CAT_CL_RUTA\")"; + //BA.debugLineNum = 132;BA.debugLine="ruta = c.GetString(\"CAT_CL_RUTA\")"; parent.mostCurrent._ruta = parent._c.GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=67567640; - //BA.debugLineNum = 67567640;BA.debugLine="If c.GetString(\"SECUENCIA\") = \"null\" Then"; + //BA.debugLineNum = 133;BA.debugLine="If c.GetString(\"SECUENCIA\") = \"null\" Then"; if (true) break; case 7: @@ -689,16 +749,14 @@ this.state = 11; case 9: //C this.state = 12; -RDebugUtils.currentLine=67567641; - //BA.debugLineNum = 67567641;BA.debugLine="NumSerie = 0"; + //BA.debugLineNum = 134;BA.debugLine="NumSerie = 0"; parent._numserie = (int) (0); if (true) break; case 11: //C this.state = 12; -RDebugUtils.currentLine=67567643; - //BA.debugLineNum = 67567643;BA.debugLine="NumSerie = c.GetString(\"SECUENCIA\")"; + //BA.debugLineNum = 136;BA.debugLine="NumSerie = c.GetString(\"SECUENCIA\")"; parent._numserie = (int)(Double.parseDouble(parent._c.GetString("SECUENCIA"))); if (true) break; @@ -706,12 +764,10 @@ case 12: //C this.state = 13; ; -RDebugUtils.currentLine=67567645; - //BA.debugLineNum = 67567645;BA.debugLine="Private s As Cursor = Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 138;BA.debugLine="Private s As Cursor = Starter.skmt.ExecQuery($\""; _s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select indice from waypoints where codigo = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent.mostCurrent._codigo))+"'")))); -RDebugUtils.currentLine=67567646; - //BA.debugLineNum = 67567646;BA.debugLine="If s.RowCount > 0 Then"; + //BA.debugLineNum = 139;BA.debugLine="If s.RowCount > 0 Then"; if (true) break; case 13: @@ -724,16 +780,13 @@ this.state = 15; case 15: //C this.state = 16; -RDebugUtils.currentLine=67567647; - //BA.debugLineNum = 67567647;BA.debugLine="s.Position = 0"; + //BA.debugLineNum = 140;BA.debugLine="s.Position = 0"; _s.setPosition((int) (0)); -RDebugUtils.currentLine=67567648; - //BA.debugLineNum = 67567648;BA.debugLine="NumSerie = s.GetString(\"indice\")"; + //BA.debugLineNum = 141;BA.debugLine="NumSerie = s.GetString(\"indice\")"; parent._numserie = (int)(Double.parseDouble(_s.GetString("indice"))); if (true) break; ; -RDebugUtils.currentLine=67567650; - //BA.debugLineNum = 67567650;BA.debugLine="If rutaAnt <> ruta Then esteAzul = esteAzul + 1"; + //BA.debugLineNum = 143;BA.debugLine="If rutaAnt <> ruta Then esteAzul = esteAzul + 1"; case 16: //if @@ -752,8 +805,7 @@ case 21: //C this.state = 22; ; -RDebugUtils.currentLine=67567657; - //BA.debugLineNum = 67567657;BA.debugLine="If esteAzul = 1 Then esteAzul2= \"marker-azul.pn"; + //BA.debugLineNum = 150;BA.debugLine="If esteAzul = 1 Then esteAzul2= \"marker-azul.pn"; if (true) break; case 22: @@ -773,8 +825,7 @@ case 27: //C this.state = 28; ; -RDebugUtils.currentLine=67567658; - //BA.debugLineNum = 67567658;BA.debugLine="If esteAzul = 2 Then esteAzul2= \"marker-azul1.p"; + //BA.debugLineNum = 151;BA.debugLine="If esteAzul = 2 Then esteAzul2= \"marker-azul1.p"; if (true) break; case 28: @@ -794,8 +845,7 @@ case 33: //C this.state = 34; ; -RDebugUtils.currentLine=67567659; - //BA.debugLineNum = 67567659;BA.debugLine="If esteAzul = 3 Then esteAzul2= \"marker-azul2.p"; + //BA.debugLineNum = 152;BA.debugLine="If esteAzul = 3 Then esteAzul2= \"marker-azul2.p"; if (true) break; case 34: @@ -815,8 +865,7 @@ case 39: //C this.state = 40; ; -RDebugUtils.currentLine=67567660; - //BA.debugLineNum = 67567660;BA.debugLine="If esteAzul = 4 Then esteAzul2= \"marker-azul3.p"; + //BA.debugLineNum = 153;BA.debugLine="If esteAzul = 4 Then esteAzul2= \"marker-azul3.p"; if (true) break; case 40: @@ -836,8 +885,7 @@ case 45: //C this.state = 46; ; -RDebugUtils.currentLine=67567661; - //BA.debugLineNum = 67567661;BA.debugLine="If esteAzul = 5 Then esteAzul2= \"marker-azul4.p"; + //BA.debugLineNum = 154;BA.debugLine="If esteAzul = 5 Then esteAzul2= \"marker-azul4.p"; if (true) break; case 46: @@ -857,14 +905,11 @@ case 51: //C this.state = 128; ; -RDebugUtils.currentLine=67567666; - //BA.debugLineNum = 67567666;BA.debugLine="MARK_AZUL = gmap.AddMarker3(LatitudRu,LongitudR"; + //BA.debugLineNum = 159;BA.debugLine="MARK_AZUL = gmap.AddMarker3(LatitudRu,LongitudR"; parent.mostCurrent._mark_azul = parent.mostCurrent._gmap.AddMarker3(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,(android.graphics.Bitmap)(parent.mostCurrent._subs._createbitmapwithnumber /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ (mostCurrent.activityBA,anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),_esteazul2),parent._numserie).getObject())); -RDebugUtils.currentLine=67567667; - //BA.debugLineNum = 67567667;BA.debugLine="MARK_AZUL.Snippet = \"R: \" & ruta & \" - \" & Tien"; + //BA.debugLineNum = 160;BA.debugLine="MARK_AZUL.Snippet = \"R: \" & ruta & \" - \" & Tien"; parent.mostCurrent._mark_azul.setSnippet("R: "+parent.mostCurrent._ruta+" - "+parent.mostCurrent._tienda); -RDebugUtils.currentLine=67567668; - //BA.debugLineNum = 67567668;BA.debugLine="rutaAnt = ruta"; + //BA.debugLineNum = 161;BA.debugLine="rutaAnt = ruta"; parent.mostCurrent._rutaant = parent.mostCurrent._ruta; if (true) break; if (true) break; @@ -873,11 +918,9 @@ case 52: //C this.state = 53; ; -RDebugUtils.currentLine=67567670; - //BA.debugLineNum = 67567670;BA.debugLine="c .Close"; + //BA.debugLineNum = 163;BA.debugLine="c .Close"; parent._c.Close(); -RDebugUtils.currentLine=67567671; - //BA.debugLineNum = 67567671;BA.debugLine="If MARK_AZUL.IsInitialized Then LIST_AZUL.Add(MA"; + //BA.debugLineNum = 164;BA.debugLine="If MARK_AZUL.IsInitialized Then LIST_AZUL.Add(MA"; if (true) break; case 53: @@ -899,8 +942,7 @@ this.state = 59; ; if (true) break; ; -RDebugUtils.currentLine=67567674; - //BA.debugLineNum = 67567674;BA.debugLine="If verde = 1 Or todos = 1 Then"; + //BA.debugLineNum = 167;BA.debugLine="If verde = 1 Or todos = 1 Then"; case 59: //if @@ -914,17 +956,13 @@ this.state = 77; case 61: //C this.state = 62; -RDebugUtils.currentLine=67567675; - //BA.debugLineNum = 67567675;BA.debugLine="rutaAnt = \"\""; + //BA.debugLineNum = 168;BA.debugLine="rutaAnt = \"\""; parent.mostCurrent._rutaant = ""; -RDebugUtils.currentLine=67567676; - //BA.debugLineNum = 67567676;BA.debugLine="c2.IsInitialized"; + //BA.debugLineNum = 169;BA.debugLine="c2.IsInitialized"; parent._c2.IsInitialized(); -RDebugUtils.currentLine=67567677; - //BA.debugLineNum = 67567677;BA.debugLine="c2=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO,"; + //BA.debugLineNum = 170;BA.debugLine="c2=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO,"; parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, IFNULL(SECUENCIA,0) AS SECUENCIA, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 2 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO NOT IN ('63403','100000') order by CAT_CL_RUTA"))); -RDebugUtils.currentLine=67567678; - //BA.debugLineNum = 67567678;BA.debugLine="For i = 0 To c2.RowCount -1"; + //BA.debugLineNum = 171;BA.debugLine="For i = 0 To c2.RowCount -1"; if (true) break; case 62: @@ -951,26 +989,19 @@ if (true) break; case 64: //C this.state = 65; -RDebugUtils.currentLine=67567679; - //BA.debugLineNum = 67567679;BA.debugLine="c2.Position = i"; + //BA.debugLineNum = 172;BA.debugLine="c2.Position = i"; parent._c2.setPosition(_i); -RDebugUtils.currentLine=67567680; - //BA.debugLineNum = 67567680;BA.debugLine="LongitudRU = c2.GetString(\"CAT_CL_LONG\")"; + //BA.debugLineNum = 173;BA.debugLine="LongitudRU = c2.GetString(\"CAT_CL_LONG\")"; parent._longitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LONG"))); -RDebugUtils.currentLine=67567681; - //BA.debugLineNum = 67567681;BA.debugLine="LatitudRu = c2.GetString(\"CAT_CL_LAT\")"; + //BA.debugLineNum = 174;BA.debugLine="LatitudRu = c2.GetString(\"CAT_CL_LAT\")"; parent._latitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LAT"))); -RDebugUtils.currentLine=67567682; - //BA.debugLineNum = 67567682;BA.debugLine="CODIGO=c2.GetString(\"CAT_CL_CODIGO\")"; + //BA.debugLineNum = 175;BA.debugLine="CODIGO=c2.GetString(\"CAT_CL_CODIGO\")"; parent.mostCurrent._codigo = parent._c2.GetString("CAT_CL_CODIGO"); -RDebugUtils.currentLine=67567683; - //BA.debugLineNum = 67567683;BA.debugLine="Tienda= c2.GetString(\"CAT_CL_NOMBRE\")"; + //BA.debugLineNum = 176;BA.debugLine="Tienda= c2.GetString(\"CAT_CL_NOMBRE\")"; parent.mostCurrent._tienda = parent._c2.GetString("CAT_CL_NOMBRE"); -RDebugUtils.currentLine=67567684; - //BA.debugLineNum = 67567684;BA.debugLine="ruta = c2.GetString(\"CAT_CL_RUTA\")"; + //BA.debugLineNum = 177;BA.debugLine="ruta = c2.GetString(\"CAT_CL_RUTA\")"; parent.mostCurrent._ruta = parent._c2.GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=67567685; - //BA.debugLineNum = 67567685;BA.debugLine="If c2.GetString(\"SECUENCIA\") = \"null\" Then"; + //BA.debugLineNum = 178;BA.debugLine="If c2.GetString(\"SECUENCIA\") = \"null\" Then"; if (true) break; case 65: @@ -985,16 +1016,14 @@ this.state = 69; case 67: //C this.state = 70; -RDebugUtils.currentLine=67567686; - //BA.debugLineNum = 67567686;BA.debugLine="NumSerie = 0"; + //BA.debugLineNum = 179;BA.debugLine="NumSerie = 0"; parent._numserie = (int) (0); if (true) break; case 69: //C this.state = 70; -RDebugUtils.currentLine=67567688; - //BA.debugLineNum = 67567688;BA.debugLine="NumSerie = c2.GetString(\"SECUENCIA\")"; + //BA.debugLineNum = 181;BA.debugLine="NumSerie = c2.GetString(\"SECUENCIA\")"; parent._numserie = (int)(Double.parseDouble(parent._c2.GetString("SECUENCIA"))); if (true) break; @@ -1002,12 +1031,10 @@ case 70: //C this.state = 71; ; -RDebugUtils.currentLine=67567690; - //BA.debugLineNum = 67567690;BA.debugLine="Private s As Cursor = Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 183;BA.debugLine="Private s As Cursor = Starter.skmt.ExecQuery($\""; _s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select indice from waypoints where codigo = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent.mostCurrent._codigo))+"'")))); -RDebugUtils.currentLine=67567691; - //BA.debugLineNum = 67567691;BA.debugLine="If s.RowCount > 0 Then"; + //BA.debugLineNum = 184;BA.debugLine="If s.RowCount > 0 Then"; if (true) break; case 71: @@ -1020,11 +1047,9 @@ this.state = 73; case 73: //C this.state = 74; -RDebugUtils.currentLine=67567692; - //BA.debugLineNum = 67567692;BA.debugLine="s.Position = 0"; + //BA.debugLineNum = 185;BA.debugLine="s.Position = 0"; _s.setPosition((int) (0)); -RDebugUtils.currentLine=67567693; - //BA.debugLineNum = 67567693;BA.debugLine="NumSerie = s.GetString(\"indice\")"; + //BA.debugLineNum = 186;BA.debugLine="NumSerie = s.GetString(\"indice\")"; parent._numserie = (int)(Double.parseDouble(_s.GetString("indice"))); if (true) break; @@ -1032,11 +1057,9 @@ case 74: //C this.state = 130; ; -RDebugUtils.currentLine=67567695; - //BA.debugLineNum = 67567695;BA.debugLine="MARK_VERDE = gmap.AddMarker3(LatitudRu,Longitud"; + //BA.debugLineNum = 188;BA.debugLine="MARK_VERDE = gmap.AddMarker3(LatitudRu,Longitud"; parent.mostCurrent._mark_verde = parent.mostCurrent._gmap.AddMarker3(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,(android.graphics.Bitmap)(parent.mostCurrent._subs._createbitmapwithnumber /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ (mostCurrent.activityBA,anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"marker-verde.png"),parent._numserie).getObject())); -RDebugUtils.currentLine=67567697; - //BA.debugLineNum = 67567697;BA.debugLine="MARK_VERDE.Snippet = \"R:\" & ruta & \", \" & Tiend"; + //BA.debugLineNum = 190;BA.debugLine="MARK_VERDE.Snippet = \"R:\" & ruta & \", \" & Tiend"; parent.mostCurrent._mark_verde.setSnippet("R:"+parent.mostCurrent._ruta+", "+parent.mostCurrent._tienda); if (true) break; if (true) break; @@ -1050,8 +1073,7 @@ this.state = 92; case 77: //C this.state = 78; -RDebugUtils.currentLine=67567700; - //BA.debugLineNum = 67567700;BA.debugLine="If verde = 1 Or todos = 1 Then"; + //BA.debugLineNum = 193;BA.debugLine="If verde = 1 Or todos = 1 Then"; if (true) break; case 78: @@ -1064,17 +1086,13 @@ this.state = 80; case 80: //C this.state = 81; -RDebugUtils.currentLine=67567701; - //BA.debugLineNum = 67567701;BA.debugLine="rutaAnt = \"\""; + //BA.debugLineNum = 194;BA.debugLine="rutaAnt = \"\""; parent.mostCurrent._rutaant = ""; -RDebugUtils.currentLine=67567702; - //BA.debugLineNum = 67567702;BA.debugLine="c2.IsInitialized"; + //BA.debugLineNum = 195;BA.debugLine="c2.IsInitialized"; parent._c2.IsInitialized(); -RDebugUtils.currentLine=67567703; - //BA.debugLineNum = 67567703;BA.debugLine="c2=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO"; + //BA.debugLineNum = 196;BA.debugLine="c2=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO"; parent._c2 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 2 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO NOT IN ('63403','100000') order by CAT_CL_RUTA"))); -RDebugUtils.currentLine=67567704; - //BA.debugLineNum = 67567704;BA.debugLine="For i = 0 To c2.RowCount -1"; + //BA.debugLineNum = 197;BA.debugLine="For i = 0 To c2.RowCount -1"; if (true) break; case 81: @@ -1101,29 +1119,21 @@ if (true) break; case 83: //C this.state = 132; -RDebugUtils.currentLine=67567705; - //BA.debugLineNum = 67567705;BA.debugLine="c2.Position = i"; + //BA.debugLineNum = 198;BA.debugLine="c2.Position = i"; parent._c2.setPosition(_i); -RDebugUtils.currentLine=67567706; - //BA.debugLineNum = 67567706;BA.debugLine="LongitudRU = c2.GetString(\"CAT_CL_LONG\")"; + //BA.debugLineNum = 199;BA.debugLine="LongitudRU = c2.GetString(\"CAT_CL_LONG\")"; parent._longitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LONG"))); -RDebugUtils.currentLine=67567707; - //BA.debugLineNum = 67567707;BA.debugLine="LatitudRu = c2.GetString(\"CAT_CL_LAT\")"; + //BA.debugLineNum = 200;BA.debugLine="LatitudRu = c2.GetString(\"CAT_CL_LAT\")"; parent._latitudru = (double)(Double.parseDouble(parent._c2.GetString("CAT_CL_LAT"))); -RDebugUtils.currentLine=67567708; - //BA.debugLineNum = 67567708;BA.debugLine="CODIGO=c2.GetString(\"CAT_CL_CODIGO\")"; + //BA.debugLineNum = 201;BA.debugLine="CODIGO=c2.GetString(\"CAT_CL_CODIGO\")"; parent.mostCurrent._codigo = parent._c2.GetString("CAT_CL_CODIGO"); -RDebugUtils.currentLine=67567709; - //BA.debugLineNum = 67567709;BA.debugLine="Tienda= c2.GetString(\"CAT_CL_NOMBRE\")"; + //BA.debugLineNum = 202;BA.debugLine="Tienda= c2.GetString(\"CAT_CL_NOMBRE\")"; parent.mostCurrent._tienda = parent._c2.GetString("CAT_CL_NOMBRE"); -RDebugUtils.currentLine=67567710; - //BA.debugLineNum = 67567710;BA.debugLine="ruta = c2.GetString(\"CAT_CL_RUTA\")"; + //BA.debugLineNum = 203;BA.debugLine="ruta = c2.GetString(\"CAT_CL_RUTA\")"; parent.mostCurrent._ruta = parent._c2.GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=67567711; - //BA.debugLineNum = 67567711;BA.debugLine="MARK_VERDE = gmap.AddMarker2(LatitudRu,Longitu"; + //BA.debugLineNum = 204;BA.debugLine="MARK_VERDE = gmap.AddMarker2(LatitudRu,Longitu"; parent.mostCurrent._mark_verde = parent.mostCurrent._gmap.AddMarker2(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,parent.mostCurrent._gmap.HUE_GREEN); -RDebugUtils.currentLine=67567712; - //BA.debugLineNum = 67567712;BA.debugLine="MARK_VERDE.Snippet = \"R:\" & ruta & \", \" & Tien"; + //BA.debugLineNum = 205;BA.debugLine="MARK_VERDE.Snippet = \"R:\" & ruta & \", \" & Tien"; parent.mostCurrent._mark_verde.setSnippet("R:"+parent.mostCurrent._ruta+", "+parent.mostCurrent._tienda); if (true) break; if (true) break; @@ -1132,11 +1142,9 @@ case 84: //C this.state = 85; ; -RDebugUtils.currentLine=67567714; - //BA.debugLineNum = 67567714;BA.debugLine="c2 .Close"; + //BA.debugLineNum = 207;BA.debugLine="c2 .Close"; parent._c2.Close(); -RDebugUtils.currentLine=67567715; - //BA.debugLineNum = 67567715;BA.debugLine="If MARK_VERDE.IsInitialized Then LIST_VERDE.Add"; + //BA.debugLineNum = 208;BA.debugLine="If MARK_VERDE.IsInitialized Then LIST_VERDE.Add"; if (true) break; case 85: @@ -1168,14 +1176,11 @@ case 92: //C this.state = 93; ; -RDebugUtils.currentLine=67567719; - //BA.debugLineNum = 67567719;BA.debugLine="Private esteRojo As Int = 0"; + //BA.debugLineNum = 212;BA.debugLine="Private esteRojo As Int = 0"; _esterojo = (int) (0); -RDebugUtils.currentLine=67567720; - //BA.debugLineNum = 67567720;BA.debugLine="Private esteRojo2 As String"; + //BA.debugLineNum = 213;BA.debugLine="Private esteRojo2 As String"; _esterojo2 = ""; -RDebugUtils.currentLine=67567721; - //BA.debugLineNum = 67567721;BA.debugLine="If rojo = 1 Or todos = 1 Then"; + //BA.debugLineNum = 214;BA.debugLine="If rojo = 1 Or todos = 1 Then"; if (true) break; case 93: @@ -1190,17 +1195,13 @@ this.state = 111; case 95: //C this.state = 96; -RDebugUtils.currentLine=67567722; - //BA.debugLineNum = 67567722;BA.debugLine="rutaAnt = \"\""; + //BA.debugLineNum = 215;BA.debugLine="rutaAnt = \"\""; parent.mostCurrent._rutaant = ""; -RDebugUtils.currentLine=67567723; - //BA.debugLineNum = 67567723;BA.debugLine="c3.IsInitialized"; + //BA.debugLineNum = 216;BA.debugLine="c3.IsInitialized"; parent._c3.IsInitialized(); -RDebugUtils.currentLine=67567724; - //BA.debugLineNum = 67567724;BA.debugLine="c3=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO,"; + //BA.debugLineNum = 217;BA.debugLine="c3=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO,"; parent._c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, IFNULL(SECUENCIA,0) AS SECUENCIA, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 3 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO NOT IN ('63403','100000') order by CAT_CL_RUTA"))); -RDebugUtils.currentLine=67567725; - //BA.debugLineNum = 67567725;BA.debugLine="For i = 0 To c3.RowCount -1"; + //BA.debugLineNum = 218;BA.debugLine="For i = 0 To c3.RowCount -1"; if (true) break; case 96: @@ -1227,26 +1228,19 @@ if (true) break; case 98: //C this.state = 99; -RDebugUtils.currentLine=67567726; - //BA.debugLineNum = 67567726;BA.debugLine="c3.Position = i"; + //BA.debugLineNum = 219;BA.debugLine="c3.Position = i"; parent._c3.setPosition(_i); -RDebugUtils.currentLine=67567727; - //BA.debugLineNum = 67567727;BA.debugLine="LongitudRU = c3.GetDouble(\"CAT_CL_LONG\")"; + //BA.debugLineNum = 220;BA.debugLine="LongitudRU = c3.GetDouble(\"CAT_CL_LONG\")"; parent._longitudru = parent._c3.GetDouble("CAT_CL_LONG"); -RDebugUtils.currentLine=67567728; - //BA.debugLineNum = 67567728;BA.debugLine="LatitudRu = c3.GetDouble(\"CAT_CL_LAT\")"; + //BA.debugLineNum = 221;BA.debugLine="LatitudRu = c3.GetDouble(\"CAT_CL_LAT\")"; parent._latitudru = parent._c3.GetDouble("CAT_CL_LAT"); -RDebugUtils.currentLine=67567729; - //BA.debugLineNum = 67567729;BA.debugLine="Tienda= c3.GetString(\"CAT_CL_NOMBRE\")"; + //BA.debugLineNum = 222;BA.debugLine="Tienda= c3.GetString(\"CAT_CL_NOMBRE\")"; parent.mostCurrent._tienda = parent._c3.GetString("CAT_CL_NOMBRE"); -RDebugUtils.currentLine=67567730; - //BA.debugLineNum = 67567730;BA.debugLine="ruta = c3.GetString(\"CAT_CL_RUTA\")"; + //BA.debugLineNum = 223;BA.debugLine="ruta = c3.GetString(\"CAT_CL_RUTA\")"; parent.mostCurrent._ruta = parent._c3.GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=67567731; - //BA.debugLineNum = 67567731;BA.debugLine="CODIGO=c3.GetString(\"CAT_CL_CODIGO\")"; + //BA.debugLineNum = 224;BA.debugLine="CODIGO=c3.GetString(\"CAT_CL_CODIGO\")"; parent.mostCurrent._codigo = parent._c3.GetString("CAT_CL_CODIGO"); -RDebugUtils.currentLine=67567732; - //BA.debugLineNum = 67567732;BA.debugLine="If c3.GetString(\"SECUENCIA\") = \"null\" Then"; + //BA.debugLineNum = 225;BA.debugLine="If c3.GetString(\"SECUENCIA\") = \"null\" Then"; if (true) break; case 99: @@ -1261,16 +1255,14 @@ this.state = 103; case 101: //C this.state = 104; -RDebugUtils.currentLine=67567733; - //BA.debugLineNum = 67567733;BA.debugLine="NumSerie = 0"; + //BA.debugLineNum = 226;BA.debugLine="NumSerie = 0"; parent._numserie = (int) (0); if (true) break; case 103: //C this.state = 104; -RDebugUtils.currentLine=67567735; - //BA.debugLineNum = 67567735;BA.debugLine="NumSerie = c3.GetString(\"SECUENCIA\")"; + //BA.debugLineNum = 228;BA.debugLine="NumSerie = c3.GetString(\"SECUENCIA\")"; parent._numserie = (int)(Double.parseDouble(parent._c3.GetString("SECUENCIA"))); if (true) break; @@ -1278,12 +1270,10 @@ case 104: //C this.state = 105; ; -RDebugUtils.currentLine=67567737; - //BA.debugLineNum = 67567737;BA.debugLine="Private s As Cursor = Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 230;BA.debugLine="Private s As Cursor = Starter.skmt.ExecQuery($\""; _s = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _s = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select indice from waypoints where codigo = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(parent.mostCurrent._codigo))+"'")))); -RDebugUtils.currentLine=67567738; - //BA.debugLineNum = 67567738;BA.debugLine="If s.RowCount > 0 Then"; + //BA.debugLineNum = 231;BA.debugLine="If s.RowCount > 0 Then"; if (true) break; case 105: @@ -1296,11 +1286,9 @@ this.state = 107; case 107: //C this.state = 108; -RDebugUtils.currentLine=67567739; - //BA.debugLineNum = 67567739;BA.debugLine="s.Position = 0"; + //BA.debugLineNum = 232;BA.debugLine="s.Position = 0"; _s.setPosition((int) (0)); -RDebugUtils.currentLine=67567740; - //BA.debugLineNum = 67567740;BA.debugLine="NumSerie = s.GetString(\"indice\")"; + //BA.debugLineNum = 233;BA.debugLine="NumSerie = s.GetString(\"indice\")"; parent._numserie = (int)(Double.parseDouble(_s.GetString("indice"))); if (true) break; @@ -1308,11 +1296,9 @@ case 108: //C this.state = 134; ; -RDebugUtils.currentLine=67567742; - //BA.debugLineNum = 67567742;BA.debugLine="MARK_ROJO = gmap.AddMarker3(LatitudRu,LongitudR"; + //BA.debugLineNum = 235;BA.debugLine="MARK_ROJO = gmap.AddMarker3(LatitudRu,LongitudR"; parent.mostCurrent._mark_rojo = parent.mostCurrent._gmap.AddMarker3(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,(android.graphics.Bitmap)(parent.mostCurrent._subs._createbitmapwithnumber /*anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper*/ (mostCurrent.activityBA,anywheresoftware.b4a.keywords.Common.LoadBitmap(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"marker-rojo.png"),parent._numserie).getObject())); -RDebugUtils.currentLine=67567745; - //BA.debugLineNum = 67567745;BA.debugLine="MARK_ROJO.Snippet= \"R:\" & ruta & \", \" & Tienda"; + //BA.debugLineNum = 238;BA.debugLine="MARK_ROJO.Snippet= \"R:\" & ruta & \", \" & Tienda"; parent.mostCurrent._mark_rojo.setSnippet("R:"+parent.mostCurrent._ruta+", "+parent.mostCurrent._tienda); if (true) break; if (true) break; @@ -1326,8 +1312,7 @@ this.state = 125; case 111: //C this.state = 112; -RDebugUtils.currentLine=67567748; - //BA.debugLineNum = 67567748;BA.debugLine="If rojo = 1 Or todos = 1 Then"; + //BA.debugLineNum = 241;BA.debugLine="If rojo = 1 Or todos = 1 Then"; if (true) break; case 112: @@ -1340,17 +1325,13 @@ this.state = 114; case 114: //C this.state = 115; -RDebugUtils.currentLine=67567749; - //BA.debugLineNum = 67567749;BA.debugLine="rutaAnt = \"\""; + //BA.debugLineNum = 242;BA.debugLine="rutaAnt = \"\""; parent.mostCurrent._rutaant = ""; -RDebugUtils.currentLine=67567750; - //BA.debugLineNum = 67567750;BA.debugLine="c3.IsInitialized"; + //BA.debugLineNum = 243;BA.debugLine="c3.IsInitialized"; parent._c3.IsInitialized(); -RDebugUtils.currentLine=67567751; - //BA.debugLineNum = 67567751;BA.debugLine="c3=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO"; + //BA.debugLineNum = 244;BA.debugLine="c3=Starter.skmt.ExecQuery(\"select CAT_CL_CODIGO"; parent._c3 = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(parent.mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_CODIGO, CAT_CL_NOMBRE, CAT_CL_LONG, CAT_CL_LAT, CAT_CL_RUTA from kmt_info where gestion = 3 and CAT_CL_LAT is not null and CAT_CL_LONG is not null and CAT_CL_LAT <> 0 and CAT_CL_LONG <> 0 AND CAT_CL_CODIGO NOT IN ('63403','100000') order by CAT_CL_RUTA"))); -RDebugUtils.currentLine=67567752; - //BA.debugLineNum = 67567752;BA.debugLine="For i = 0 To c3.RowCount -1"; + //BA.debugLineNum = 245;BA.debugLine="For i = 0 To c3.RowCount -1"; if (true) break; case 115: @@ -1377,35 +1358,26 @@ if (true) break; case 117: //C this.state = 136; -RDebugUtils.currentLine=67567753; - //BA.debugLineNum = 67567753;BA.debugLine="c3.Position = i"; + //BA.debugLineNum = 246;BA.debugLine="c3.Position = i"; parent._c3.setPosition(_i); -RDebugUtils.currentLine=67567754; - //BA.debugLineNum = 67567754;BA.debugLine="LongitudRU = c3.GetDouble(\"CAT_CL_LONG\")"; + //BA.debugLineNum = 247;BA.debugLine="LongitudRU = c3.GetDouble(\"CAT_CL_LONG\")"; parent._longitudru = parent._c3.GetDouble("CAT_CL_LONG"); -RDebugUtils.currentLine=67567755; - //BA.debugLineNum = 67567755;BA.debugLine="LatitudRu = c3.GetDouble(\"CAT_CL_LAT\")"; + //BA.debugLineNum = 248;BA.debugLine="LatitudRu = c3.GetDouble(\"CAT_CL_LAT\")"; parent._latitudru = parent._c3.GetDouble("CAT_CL_LAT"); -RDebugUtils.currentLine=67567756; - //BA.debugLineNum = 67567756;BA.debugLine="Tienda= c3.GetString(\"CAT_CL_NOMBRE\")"; + //BA.debugLineNum = 249;BA.debugLine="Tienda= c3.GetString(\"CAT_CL_NOMBRE\")"; parent.mostCurrent._tienda = parent._c3.GetString("CAT_CL_NOMBRE"); -RDebugUtils.currentLine=67567757; - //BA.debugLineNum = 67567757;BA.debugLine="ruta = c2.GetString(\"CAT_CL_RUTA\")"; + //BA.debugLineNum = 250;BA.debugLine="ruta = c2.GetString(\"CAT_CL_RUTA\")"; parent.mostCurrent._ruta = parent._c2.GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=67567758; - //BA.debugLineNum = 67567758;BA.debugLine="CODIGO=c3.GetString(\"CAT_CL_CODIGO\")"; + //BA.debugLineNum = 251;BA.debugLine="CODIGO=c3.GetString(\"CAT_CL_CODIGO\")"; parent.mostCurrent._codigo = parent._c3.GetString("CAT_CL_CODIGO"); -RDebugUtils.currentLine=67567759; - //BA.debugLineNum = 67567759;BA.debugLine="MARK_ROJO = gmap.AddMarker2(LatitudRu,Longitud"; + //BA.debugLineNum = 252;BA.debugLine="MARK_ROJO = gmap.AddMarker2(LatitudRu,Longitud"; parent.mostCurrent._mark_rojo = parent.mostCurrent._gmap.AddMarker2(parent._latitudru,parent._longitudru,parent.mostCurrent._codigo,parent.mostCurrent._gmap.HUE_RED); -RDebugUtils.currentLine=67567760; - //BA.debugLineNum = 67567760;BA.debugLine="MARK_ROJO.Snippet= \"R:\" & ruta & \", \" & Tienda"; + //BA.debugLineNum = 253;BA.debugLine="MARK_ROJO.Snippet= \"R:\" & ruta & \", \" & Tienda"; parent.mostCurrent._mark_rojo.setSnippet("R:"+parent.mostCurrent._ruta+", "+parent.mostCurrent._tienda); if (true) break; if (true) break; ; -RDebugUtils.currentLine=67567762; - //BA.debugLineNum = 67567762;BA.debugLine="If MARK_ROJO.IsInitialized Then LIST_ROJO.Add(M"; + //BA.debugLineNum = 255;BA.debugLine="If MARK_ROJO.IsInitialized Then LIST_ROJO.Add(M"; case 118: //if @@ -1424,8 +1396,7 @@ case 123: //C this.state = 124; ; -RDebugUtils.currentLine=67567763; - //BA.debugLineNum = 67567763;BA.debugLine="c3.Close"; + //BA.debugLineNum = 256;BA.debugLine="c3.Close"; parent._c3.Close(); if (true) break; @@ -1439,143 +1410,55 @@ case 125: //C this.state = -1; ; -RDebugUtils.currentLine=67567771; - //BA.debugLineNum = 67567771;BA.debugLine="Dim aa As CameraPosition"; + //BA.debugLineNum = 264;BA.debugLine="Dim aa As CameraPosition"; _aa = new anywheresoftware.b4a.objects.MapFragmentWrapper.CameraPositionWrapper(); -RDebugUtils.currentLine=67567772; - //BA.debugLineNum = 67567772;BA.debugLine="aa.Initialize(LatitudRu,LongitudRU,15)''' RECOMEN"; + //BA.debugLineNum = 265;BA.debugLine="aa.Initialize(LatitudRu,LongitudRU,15)''' RECOMEN"; _aa.Initialize(parent._latitudru,parent._longitudru,(float) (15)); -RDebugUtils.currentLine=67567773; - //BA.debugLineNum = 67567773;BA.debugLine="gmap.AnimateCamera(aa)"; + //BA.debugLineNum = 266;BA.debugLine="gmap.AnimateCamera(aa)"; parent.mostCurrent._gmap.AnimateCamera((com.google.android.gms.maps.model.CameraPosition)(_aa.getObject())); -RDebugUtils.currentLine=67567776; - //BA.debugLineNum = 67567776;BA.debugLine="Dim OnInfoWindowClickListener1 As OnInfoWindowCli"; + //BA.debugLineNum = 269;BA.debugLine="Dim OnInfoWindowClickListener1 As OnInfoWindowCli"; parent.mostCurrent._oninfowindowclicklistener1 = new uk.co.martinpearman.b4a.com.google.android.gms.maps.googlemap.OnInfoWindowClickListener(); -RDebugUtils.currentLine=67567777; - //BA.debugLineNum = 67567777;BA.debugLine="OnInfoWindowClickListener1.Initialize(\"OnInfoWind"; + //BA.debugLineNum = 270;BA.debugLine="OnInfoWindowClickListener1.Initialize(\"OnInfoWind"; parent.mostCurrent._oninfowindowclicklistener1.Initialize(mostCurrent.activityBA,"OnInfoWindowClickListener1"); -RDebugUtils.currentLine=67567778; - //BA.debugLineNum = 67567778;BA.debugLine="GoogleMapEXTRA.SetOnInfoWindowClickListener(gmap,"; + //BA.debugLineNum = 271;BA.debugLine="GoogleMapEXTRA.SetOnInfoWindowClickListener(gmap,"; parent.mostCurrent._googlemapextra.SetOnInfoWindowClickListener((com.google.android.gms.maps.GoogleMap)(parent.mostCurrent._gmap.getObject()),(com.google.android.gms.maps.GoogleMap.OnInfoWindowClickListener)(parent.mostCurrent._oninfowindowclicklistener1.getObject())); -RDebugUtils.currentLine=67567779; - //BA.debugLineNum = 67567779;BA.debugLine="End Sub"; + //BA.debugLineNum = 272;BA.debugLine="End Sub"; if (true) break; } } } } -public static String _b_rojo_click() throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "b_rojo_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "b_rojo_click", null));} -RDebugUtils.currentLine=68026368; - //BA.debugLineNum = 68026368;BA.debugLine="Sub B_ROJO_Click"; -RDebugUtils.currentLine=68026369; - //BA.debugLineNum = 68026369;BA.debugLine="rojo = 1"; -mostCurrent._rojo = BA.NumberToString(1); -RDebugUtils.currentLine=68026370; - //BA.debugLineNum = 68026370;BA.debugLine="verde = 0"; -mostCurrent._verde = BA.NumberToString(0); -RDebugUtils.currentLine=68026371; - //BA.debugLineNum = 68026371;BA.debugLine="azul = 0"; -mostCurrent._azul = BA.NumberToString(0); -RDebugUtils.currentLine=68026372; - //BA.debugLineNum = 68026372;BA.debugLine="todos = 0"; -mostCurrent._todos = BA.NumberToString(0); -RDebugUtils.currentLine=68026373; - //BA.debugLineNum = 68026373;BA.debugLine="gmap.Clear"; -mostCurrent._gmap.Clear(); -RDebugUtils.currentLine=68026374; - //BA.debugLineNum = 68026374;BA.debugLine="MapFragment1_Ready"; -_mapfragment1_ready(); -RDebugUtils.currentLine=68026375; - //BA.debugLineNum = 68026375;BA.debugLine="End Sub"; -return ""; -} -public static String _b_todos_click() throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "b_todos_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "b_todos_click", null));} -RDebugUtils.currentLine=67895296; - //BA.debugLineNum = 67895296;BA.debugLine="Sub B_TODOS_Click"; -RDebugUtils.currentLine=67895297; - //BA.debugLineNum = 67895297;BA.debugLine="todos =1"; -mostCurrent._todos = BA.NumberToString(1); -RDebugUtils.currentLine=67895298; - //BA.debugLineNum = 67895298;BA.debugLine="verde = 0"; -mostCurrent._verde = BA.NumberToString(0); -RDebugUtils.currentLine=67895299; - //BA.debugLineNum = 67895299;BA.debugLine="azul = 0"; -mostCurrent._azul = BA.NumberToString(0); -RDebugUtils.currentLine=67895300; - //BA.debugLineNum = 67895300;BA.debugLine="rojo = 0"; -mostCurrent._rojo = BA.NumberToString(0); -RDebugUtils.currentLine=67895301; - //BA.debugLineNum = 67895301;BA.debugLine="MapFragment1_Ready"; -_mapfragment1_ready(); -RDebugUtils.currentLine=67895302; - //BA.debugLineNum = 67895302;BA.debugLine="End Sub"; -return ""; -} -public static String _b_verde_click() throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "b_verde_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "b_verde_click", null));} -RDebugUtils.currentLine=67960832; - //BA.debugLineNum = 67960832;BA.debugLine="Sub B_VERDE_Click"; -RDebugUtils.currentLine=67960833; - //BA.debugLineNum = 67960833;BA.debugLine="verde = 1"; -mostCurrent._verde = BA.NumberToString(1); -RDebugUtils.currentLine=67960834; - //BA.debugLineNum = 67960834;BA.debugLine="azul = 0"; -mostCurrent._azul = BA.NumberToString(0); -RDebugUtils.currentLine=67960835; - //BA.debugLineNum = 67960835;BA.debugLine="rojo = 0"; -mostCurrent._rojo = BA.NumberToString(0); -RDebugUtils.currentLine=67960836; - //BA.debugLineNum = 67960836;BA.debugLine="todos = 0"; -mostCurrent._todos = BA.NumberToString(0); -RDebugUtils.currentLine=67960837; - //BA.debugLineNum = 67960837;BA.debugLine="gmap.Clear"; -mostCurrent._gmap.Clear(); -RDebugUtils.currentLine=67960838; - //BA.debugLineNum = 67960838;BA.debugLine="MapFragment1_Ready"; -_mapfragment1_ready(); -RDebugUtils.currentLine=67960839; - //BA.debugLineNum = 67960839;BA.debugLine="End Sub"; -return ""; -} -public static String _gps_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _parametro) throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "gps_locationchanged", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "gps_locationchanged", new Object[] {_parametro}));} -RDebugUtils.currentLine=67698688; - //BA.debugLineNum = 67698688;BA.debugLine="Sub GPS_LocationChanged (Parametro As Location)"; -RDebugUtils.currentLine=67698707; - //BA.debugLineNum = 67698707;BA.debugLine="End Sub"; -return ""; +public static void _activity_permissionresult(String _permission,boolean _result) throws Exception{ } public static String _oninfowindowclicklistener1_click(anywheresoftware.b4a.objects.MapFragmentWrapper.MarkerWrapper _marker1) throws Exception{ -RDebugUtils.currentModule="mapa_rutas"; -if (Debug.shouldDelegate(mostCurrent.activityBA, "oninfowindowclicklistener1_click", false)) - {return ((String) Debug.delegate(mostCurrent.activityBA, "oninfowindowclicklistener1_click", new Object[] {_marker1}));} -RDebugUtils.currentLine=67633152; - //BA.debugLineNum = 67633152;BA.debugLine="Sub OnInfoWindowClickListener1_click(Marker1 As Ma"; -RDebugUtils.currentLine=67633153; - //BA.debugLineNum = 67633153;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; + //BA.debugLineNum = 275;BA.debugLine="Sub OnInfoWindowClickListener1_click(Marker1 As Ma"; + //BA.debugLineNum = 276;BA.debugLine="Starter.skmt.ExecNonQuery(\"delete from CUENTAA\")"; mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("delete from CUENTAA"); -RDebugUtils.currentLine=67633154; - //BA.debugLineNum = 67633154;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V"; + //BA.debugLineNum = 277;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO CUENTAA V"; mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO CUENTAA VALUES (?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_marker1.getTitle())})); -RDebugUtils.currentLine=67633155; - //BA.debugLineNum = 67633155;BA.debugLine="Activity.Finish"; + //BA.debugLineNum = 278;BA.debugLine="Activity.Finish"; mostCurrent._activity.Finish(); -RDebugUtils.currentLine=67633156; - //BA.debugLineNum = 67633156;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; + //BA.debugLineNum = 279;BA.debugLine="B4XPages.ShowPage(\"Cliente\")"; mostCurrent._b4xpages._showpage /*String*/ (mostCurrent.activityBA,"Cliente"); -RDebugUtils.currentLine=67633157; - //BA.debugLineNum = 67633157;BA.debugLine="End Sub"; + //BA.debugLineNum = 280;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 7;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 8;BA.debugLine="Dim GPS As GPS"; +_gps = new anywheresoftware.b4a.gps.GPS(); + //BA.debugLineNum = 9;BA.debugLine="Dim rp As RuntimePermissions"; +_rp = new anywheresoftware.b4a.objects.RuntimePermissions(); + //BA.debugLineNum = 11;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 12;BA.debugLine="Dim c2 As Cursor"; +_c2 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 13;BA.debugLine="Dim c22 As Cursor"; +_c22 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 14;BA.debugLine="Dim c3 As Cursor"; +_c3 = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 15;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/newinst2.java b/B4A/Objects/src/reparto_izca/keymon/lat/newinst2.java index 4373590..a5e6be2 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/newinst2.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/newinst2.java @@ -14,7 +14,7 @@ public class newinst2 extends android.app.Service{ 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, anywheresoftware.b4a.ShellBA.class); + ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, false, BA.class); } } @@ -29,7 +29,7 @@ public class newinst2 extends android.app.Service{ super.onCreate(); mostCurrent = this; if (processBA == null) { - processBA = new anywheresoftware.b4a.ShellBA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.newinst2"); + processBA = new BA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.newinst2"); if (BA.isShellModeRuntimeCheck(processBA)) { processBA.raiseEvent2(null, true, "SHELL", false); } @@ -127,8 +127,7 @@ public class newinst2 extends android.app.Service{ @Override public android.os.IBinder onBind(android.content.Intent intent) { return null; - } -public anywheresoftware.b4a.keywords.Common __c = null; + }public anywheresoftware.b4a.keywords.Common __c = null; public static String _pkg = ""; public static boolean _svcverbose = false; public static int _logcolor1 = 0; @@ -146,117 +145,84 @@ public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; public static String _getpackagename() throws Exception{ -RDebugUtils.currentModule="newinst2"; -if (Debug.shouldDelegate(processBA, "getpackagename", false)) - {return ((String) Debug.delegate(processBA, "getpackagename", null));} anywheresoftware.b4a.agraham.reflection.Reflection _r = null; -RDebugUtils.currentLine=33226752; - //BA.debugLineNum = 33226752;BA.debugLine="Sub GetPackageName As String"; -RDebugUtils.currentLine=33226753; - //BA.debugLineNum = 33226753;BA.debugLine="Dim r As Reflector"; + //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(); -RDebugUtils.currentLine=33226754; - //BA.debugLineNum = 33226754;BA.debugLine="Return r.GetStaticField(\"anywheresoftware.b4a.BA\""; + //BA.debugLineNum = 40;BA.debugLine="Return r.GetStaticField(\"anywheresoftware.b4a.BA\""; if (true) return BA.ObjectToString(_r.GetStaticField("anywheresoftware.b4a.BA","packageName")); -RDebugUtils.currentLine=33226755; - //BA.debugLineNum = 33226755;BA.debugLine="End Sub"; + //BA.debugLineNum = 41;BA.debugLine="End Sub"; return ""; } public static String _myappreload() throws Exception{ -RDebugUtils.currentModule="newinst2"; -if (Debug.shouldDelegate(processBA, "myappreload", false)) - {return ((String) Debug.delegate(processBA, "myappreload", null));} -RDebugUtils.currentLine=33292288; - //BA.debugLineNum = 33292288;BA.debugLine="Sub MyAppReload"; -RDebugUtils.currentLine=33292289; - //BA.debugLineNum = 33292289;BA.debugLine="If svcVerbose Then Log(\"-- AppUpdating.NewInst2:"; + //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("233292289","-- AppUpdating.NewInst2: processing MyAppReload",0);}; -RDebugUtils.currentLine=33292290; - //BA.debugLineNum = 33292290;BA.debugLine="If IsPaused(\"main\") Then"; +anywheresoftware.b4a.keywords.Common.LogImpl("041811969","-- AppUpdating.NewInst2: processing MyAppReload",0);}; + //BA.debugLineNum = 45;BA.debugLine="If IsPaused(\"main\") Then"; if (anywheresoftware.b4a.keywords.Common.IsPaused(processBA,(Object)("main"))) { -RDebugUtils.currentLine=33292291; - //BA.debugLineNum = 33292291;BA.debugLine="StartActivity(\"main\")"; + //BA.debugLineNum = 46;BA.debugLine="StartActivity(\"main\")"; anywheresoftware.b4a.keywords.Common.StartActivity(processBA,(Object)("main")); }; -RDebugUtils.currentLine=33292295; - //BA.debugLineNum = 33292295;BA.debugLine="End Sub"; + //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{ -RDebugUtils.currentModule="newinst2"; -if (Debug.shouldDelegate(processBA, "service_create", false)) - {return ((String) Debug.delegate(processBA, "service_create", null));} -RDebugUtils.currentLine=33030144; - //BA.debugLineNum = 33030144;BA.debugLine="Sub Service_Create"; -RDebugUtils.currentLine=33030145; - //BA.debugLineNum = 33030145;BA.debugLine="LogColor(\"---- AppUpdating.newinst2: service crea"; -anywheresoftware.b4a.keywords.Common.LogImpl("233030145","---- AppUpdating.newinst2: service created",_logcolor1); -RDebugUtils.currentLine=33030146; - //BA.debugLineNum = 33030146;BA.debugLine="pkg = \"\""; + //BA.debugLineNum = 13;BA.debugLine="Sub Service_Create"; + //BA.debugLineNum = 14;BA.debugLine="LogColor(\"---- AppUpdating.newinst2: service crea"; +anywheresoftware.b4a.keywords.Common.LogImpl("041549825","---- AppUpdating.newinst2: service created",_logcolor1); + //BA.debugLineNum = 15;BA.debugLine="pkg = \"\""; _pkg = ""; -RDebugUtils.currentLine=33030147; - //BA.debugLineNum = 33030147;BA.debugLine="svcVerbose = False"; + //BA.debugLineNum = 16;BA.debugLine="svcVerbose = False"; _svcverbose = anywheresoftware.b4a.keywords.Common.False; -RDebugUtils.currentLine=33030148; - //BA.debugLineNum = 33030148;BA.debugLine="End Sub"; + //BA.debugLineNum = 17;BA.debugLine="End Sub"; return ""; } public static String _service_destroy() throws Exception{ -RDebugUtils.currentModule="newinst2"; -if (Debug.shouldDelegate(processBA, "service_destroy", false)) - {return ((String) Debug.delegate(processBA, "service_destroy", null));} -RDebugUtils.currentLine=33161216; - //BA.debugLineNum = 33161216;BA.debugLine="Sub Service_Destroy"; -RDebugUtils.currentLine=33161217; - //BA.debugLineNum = 33161217;BA.debugLine="End Sub"; + //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{ -RDebugUtils.currentModule="newinst2"; -if (Debug.shouldDelegate(processBA, "service_start", false)) - {return ((String) Debug.delegate(processBA, "service_start", new Object[] {_startingintent}));} -RDebugUtils.currentLine=33095680; - //BA.debugLineNum = 33095680;BA.debugLine="Sub Service_Start (StartingIntent As Intent)"; -RDebugUtils.currentLine=33095681; - //BA.debugLineNum = 33095681;BA.debugLine="LogColor(\"---- AppUpdating.newinst2: service_star"; -anywheresoftware.b4a.keywords.Common.LogImpl("233095681","---- AppUpdating.newinst2: service_started",_logcolor1); -RDebugUtils.currentLine=33095682; - //BA.debugLineNum = 33095682;BA.debugLine="If svcVerbose Then"; + //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("041615361","---- AppUpdating.newinst2: service_started",_logcolor1); + //BA.debugLineNum = 21;BA.debugLine="If svcVerbose Then"; if (_svcverbose) { -RDebugUtils.currentLine=33095683; - //BA.debugLineNum = 33095683;BA.debugLine="Log($\"${TAB}intent: ${StartingIntent}\"$)"; -anywheresoftware.b4a.keywords.Common.LogImpl("233095683",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"intent: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.getObject()))+""),0); -RDebugUtils.currentLine=33095684; - //BA.debugLineNum = 33095684;BA.debugLine="Log($\"${TAB}action: ${StartingIntent.Action}\"$)"; -anywheresoftware.b4a.keywords.Common.LogImpl("233095684",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"action: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.getAction()))+""),0); -RDebugUtils.currentLine=33095685; - //BA.debugLineNum = 33095685;BA.debugLine="Log($\"${TAB}extra: ${StartingIntent.ExtrasToStri"; -anywheresoftware.b4a.keywords.Common.LogImpl("233095685",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"extra: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.ExtrasToString()))+""),0); -RDebugUtils.currentLine=33095686; - //BA.debugLineNum = 33095686;BA.debugLine="Log($\"${TAB}data: ${StartingIntent.GetData}\"$)"; -anywheresoftware.b4a.keywords.Common.LogImpl("233095686",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"data: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.GetData()))+""),0); + //BA.debugLineNum = 22;BA.debugLine="Log($\"${TAB}intent: ${StartingIntent}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("041615363",(""+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("041615364",(""+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("041615365",(""+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("041615366",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"data: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_startingintent.GetData()))+""),0); }; -RDebugUtils.currentLine=33095688; - //BA.debugLineNum = 33095688;BA.debugLine="If StartingIntent.Action = \"android.intent.action"; + //BA.debugLineNum = 27;BA.debugLine="If StartingIntent.Action = \"android.intent.action"; if ((_startingintent.getAction()).equals("android.intent.action.MY_PACKAGE_REPLACED")) { -RDebugUtils.currentLine=33095689; - //BA.debugLineNum = 33095689;BA.debugLine="If svcVerbose Then Log($\"${TAB}Intent MY_PACKAGE"; + //BA.debugLineNum = 28;BA.debugLine="If svcVerbose Then Log($\"${TAB}Intent MY_PACKAGE"; if (_svcverbose) { -anywheresoftware.b4a.keywords.Common.LogImpl("233095689",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"Intent MY_PACKAGE_REPLACED received!"),0);}; -RDebugUtils.currentLine=33095690; - //BA.debugLineNum = 33095690;BA.debugLine="pkg = GetPackageName"; +anywheresoftware.b4a.keywords.Common.LogImpl("041615369",(""+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(); -RDebugUtils.currentLine=33095691; - //BA.debugLineNum = 33095691;BA.debugLine="If svcVerbose Then Log($\"${TAB}package: ${pkg}\"$"; + //BA.debugLineNum = 30;BA.debugLine="If svcVerbose Then Log($\"${TAB}package: ${pkg}\"$"; if (_svcverbose) { -anywheresoftware.b4a.keywords.Common.LogImpl("233095691",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(anywheresoftware.b4a.keywords.Common.TAB))+"package: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_pkg))+""),0);}; -RDebugUtils.currentLine=33095692; - //BA.debugLineNum = 33095692;BA.debugLine="MyAppReload"; +anywheresoftware.b4a.keywords.Common.LogImpl("041615371",(""+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(); }; -RDebugUtils.currentLine=33095694; - //BA.debugLineNum = 33095694;BA.debugLine="End Sub"; + //BA.debugLineNum = 33;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/roundslider.java b/B4A/Objects/src/reparto_izca/keymon/lat/roundslider.java index ada709a..17f0b80 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/roundslider.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/roundslider.java @@ -10,7 +10,7 @@ public class roundslider extends B4AClass.ImplB4AClass implements BA.SubDelegato private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.roundslider"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.roundslider"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class roundslider extends B4AClass.ImplB4AClass implements BA.SubDelegato ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -66,105 +59,156 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.roundslider __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=63569920; - //BA.debugLineNum = 63569920;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A"; -RDebugUtils.currentLine=63569921; - //BA.debugLineNum = 63569921;BA.debugLine="cvs.Resize(Width, Height)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Resize((float) (_width),(float) (_height)); -RDebugUtils.currentLine=63569922; - //BA.debugLineNum = 63569922;BA.debugLine="pnl.SetLayoutAnimated(0, 0, 0, Width, Height)"; -__ref._pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); -RDebugUtils.currentLine=63569923; - //BA.debugLineNum = 63569923;BA.debugLine="If thumb.IsInitialized = False Then CreateThumb"; -if (__ref._thumb /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .IsInitialized()==__c.False) { -__ref._createthumb /*String*/ (null);}; -RDebugUtils.currentLine=63569924; - //BA.debugLineNum = 63569924;BA.debugLine="CircleRect.Initialize(ThumbSize + stroke, ThumbSi"; -__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .Initialize((float) (__ref._thumbsize /*int*/ +__ref._stroke /*int*/ ),(float) (__ref._thumbsize /*int*/ +__ref._stroke /*int*/ ),(float) (_width-__ref._thumbsize /*int*/ -__ref._stroke /*int*/ ),(float) (_height-__ref._thumbsize /*int*/ -__ref._stroke /*int*/ )); -RDebugUtils.currentLine=63569925; - //BA.debugLineNum = 63569925;BA.debugLine="xlbl.SetLayoutAnimated(0, CircleRect.Left, Circle"; -__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetLayoutAnimated((int) (0),(int) (__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getLeft()),(int) (__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getTop()),(int) (__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getWidth()),(int) (__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getHeight())); -RDebugUtils.currentLine=63569926; - //BA.debugLineNum = 63569926;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=63569927; - //BA.debugLineNum = 63569927;BA.debugLine="End Sub"; +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 _createthumb(reparto_izca.keymon.lat.roundslider __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "createthumb", true)) - {return ((String) Debug.delegate(ba, "createthumb", null));} +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; -RDebugUtils.currentLine=63504384; - //BA.debugLineNum = 63504384;BA.debugLine="Private Sub CreateThumb"; -RDebugUtils.currentLine=63504385; - //BA.debugLineNum = 63504385;BA.debugLine="Dim p As BCPath"; + //BA.debugLineNum = 70;BA.debugLine="Private Sub CreateThumb"; + //BA.debugLineNum = 71;BA.debugLine="Dim p As BCPath"; _p = new b4a.example.bcpath(); -RDebugUtils.currentLine=63504386; - //BA.debugLineNum = 63504386;BA.debugLine="Dim r As Int = 80dip"; + //BA.debugLineNum = 72;BA.debugLine="Dim r As Int = 80dip"; _r = __c.DipToCurrent((int) (80)); -RDebugUtils.currentLine=63504387; - //BA.debugLineNum = 63504387;BA.debugLine="Dim g As Int = 8dip"; + //BA.debugLineNum = 73;BA.debugLine="Dim g As Int = 8dip"; _g = __c.DipToCurrent((int) (8)); -RDebugUtils.currentLine=63504388; - //BA.debugLineNum = 63504388;BA.debugLine="Dim l As Int = 28dip"; + //BA.debugLineNum = 74;BA.debugLine="Dim l As Int = 28dip"; _l = __c.DipToCurrent((int) (28)); -RDebugUtils.currentLine=63504389; - //BA.debugLineNum = 63504389;BA.debugLine="Dim bc As BitmapCreator"; + //BA.debugLineNum = 75;BA.debugLine="Dim bc As BitmapCreator"; _bc = new b4a.example.bitmapcreator(); -RDebugUtils.currentLine=63504390; - //BA.debugLineNum = 63504390;BA.debugLine="bc.Initialize(2 * r + g + 3dip, 2 * r + l + g)"; + //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)); -RDebugUtils.currentLine=63504391; - //BA.debugLineNum = 63504391;BA.debugLine="p.Initialize(r - l + g, 2 * r - 2dip + 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)); -RDebugUtils.currentLine=63504392; - //BA.debugLineNum = 63504392;BA.debugLine="p.LineTo(r + l + g, 2 * r - 2dip + 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)); -RDebugUtils.currentLine=63504393; - //BA.debugLineNum = 63504393;BA.debugLine="p.LineTo(r + g, 2 * r + l + g)"; + //BA.debugLineNum = 79;BA.debugLine="p.LineTo(r + g, 2 * r + l + g)"; _p._lineto((float) (_r+_g),(float) (2*_r+_l+_g)); -RDebugUtils.currentLine=63504394; - //BA.debugLineNum = 63504394;BA.debugLine="p.LineTo(r - l + g, 2 * r - 2dip + 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)); -RDebugUtils.currentLine=63504395; - //BA.debugLineNum = 63504395;BA.debugLine="bc.DrawPath(p, mThumbBorderColor, True, 0)"; -_bc._drawpath(_p,__ref._mthumbbordercolor /*int*/ ,__c.True,(int) (0)); -RDebugUtils.currentLine=63504396; - //BA.debugLineNum = 63504396;BA.debugLine="bc.DrawCircle(r + g, r + g, r, mThumbInnerColor,"; -_bc._drawcircle((float) (_r+_g),(float) (_r+_g),(float) (_r),__ref._mthumbinnercolor /*int*/ ,__c.True,(int) (0)); -RDebugUtils.currentLine=63504397; - //BA.debugLineNum = 63504397;BA.debugLine="bc.DrawCircle(r + g, r + g, r, mThumbBorderColor,"; -_bc._drawcircle((float) (_r+_g),(float) (_r+_g),(float) (_r),__ref._mthumbbordercolor /*int*/ ,__c.False,__c.DipToCurrent((int) (10))); -RDebugUtils.currentLine=63504398; - //BA.debugLineNum = 63504398;BA.debugLine="thumb = bc.Bitmap"; -__ref._thumb /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ = _bc._getbitmap(); -RDebugUtils.currentLine=63504399; - //BA.debugLineNum = 63504399;BA.debugLine="ThumbSize = thumb.Height / 4"; -__ref._thumbsize /*int*/ = (int) (__ref._thumb /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getHeight()/(double)4); -RDebugUtils.currentLine=63504400; - //BA.debugLineNum = 63504400;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"CENTER\")"; -__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetTextAlignment("CENTER","CENTER"); -RDebugUtils.currentLine=63504401; - //BA.debugLineNum = 63504401;BA.debugLine="End Sub"; + //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 _draw(reparto_izca.keymon.lat.roundslider __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "draw", true)) - {return ((String) Debug.delegate(ba, "draw", null));} +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; @@ -173,415 +217,178 @@ anywheresoftware.b4a.objects.B4XCanvas.B4XRect _dest = null; int _r = 0; int _cx = 0; int _cy = 0; -RDebugUtils.currentLine=63635456; - //BA.debugLineNum = 63635456;BA.debugLine="Public Sub Draw"; -RDebugUtils.currentLine=63635457; - //BA.debugLineNum = 63635457;BA.debugLine="cvs.ClearRect(cvs.TargetRect)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=63635458; - //BA.debugLineNum = 63635458;BA.debugLine="Dim radius As Int = CircleRect.Width / 2"; -_radius = (int) (__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getWidth()/(double)2); -RDebugUtils.currentLine=63635459; - //BA.debugLineNum = 63635459;BA.debugLine="cvs.DrawCircle(CircleRect.CenterX, CircleRect.Cen"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle(__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterX(),__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterY(),(float) (_radius),__ref._mcirclenonvaluecolor /*int*/ ,__c.False,(float) (__ref._stroke /*int*/ )); -RDebugUtils.currentLine=63635460; - //BA.debugLineNum = 63635460;BA.debugLine="Dim p As B4XPath"; + //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(); -RDebugUtils.currentLine=63635461; - //BA.debugLineNum = 63635461;BA.debugLine="Dim angle As Int = (mValue - mMin) / (mMax - mMin"; -_angle = (int) ((__ref._mvalue /*int*/ -__ref._mmin /*int*/ )/(double)(__ref._mmax /*int*/ -__ref._mmin /*int*/ )*360); -RDebugUtils.currentLine=63635462; - //BA.debugLineNum = 63635462;BA.debugLine="Dim B4JStrokeOffset As Int"; + //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; -RDebugUtils.currentLine=63635463; - //BA.debugLineNum = 63635463;BA.debugLine="If xui.IsB4J Then B4JStrokeOffset = stroke / 2"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) { -_b4jstrokeoffset = (int) (__ref._stroke /*int*/ /(double)2);}; -RDebugUtils.currentLine=63635464; - //BA.debugLineNum = 63635464;BA.debugLine="If mValue = mMax Then"; -if (__ref._mvalue /*int*/ ==__ref._mmax /*int*/ ) { -RDebugUtils.currentLine=63635465; - //BA.debugLineNum = 63635465;BA.debugLine="cvs.DrawCircle(CircleRect.CenterX, CircleRect.Ce"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle(__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterX(),__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterY(),(float) (_radius),__ref._valuecolor /*int*/ ,__c.False,(float) (__ref._stroke /*int*/ )); + //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 { -RDebugUtils.currentLine=63635467; - //BA.debugLineNum = 63635467;BA.debugLine="p.InitializeArc(CircleRect.CenterX, CircleRect.C"; -_p.InitializeArc(__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterX(),__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterY(),(float) (_radius+_b4jstrokeoffset),(float) (-90),(float) (_angle)); -RDebugUtils.currentLine=63635468; - //BA.debugLineNum = 63635468;BA.debugLine="cvs.DrawPath(p, ValueColor, False, stroke)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawPath(_p,__ref._valuecolor /*int*/ ,__c.False,(float) (__ref._stroke /*int*/ )); + //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)); }; -RDebugUtils.currentLine=63635470; - //BA.debugLineNum = 63635470;BA.debugLine="cvs.DrawCircle(CircleRect.CenterX, CircleRect.Cen"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawCircle(__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterX(),__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterY(),(float) (_radius-_b4jstrokeoffset),__ref._mcirclefillcolor /*int*/ ,__c.True,(float) (0)); -RDebugUtils.currentLine=63635471; - //BA.debugLineNum = 63635471;BA.debugLine="Dim dest As B4XRect"; + //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(); -RDebugUtils.currentLine=63635472; - //BA.debugLineNum = 63635472;BA.debugLine="Dim r As Int = radius + ThumbSize / 2 + stroke /"; -_r = (int) (_radius+__ref._thumbsize /*int*/ /(double)2+__ref._stroke /*int*/ /(double)2); -RDebugUtils.currentLine=63635473; - //BA.debugLineNum = 63635473;BA.debugLine="Dim cx As Int = CircleRect.CenterX + r * CosD(ang"; -_cx = (int) (__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterX()+_r*__c.CosD(_angle-90)); -RDebugUtils.currentLine=63635474; - //BA.debugLineNum = 63635474;BA.debugLine="Dim cy As Int = CircleRect.CenterY + r * SinD(ang"; -_cy = (int) (__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterY()+_r*__c.SinD(_angle-90)); -RDebugUtils.currentLine=63635475; - //BA.debugLineNum = 63635475;BA.debugLine="dest.Initialize(cx - thumb.Width / 8, cy - ThumbS"; -_dest.Initialize((float) (_cx-__ref._thumb /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getWidth()/(double)8),(float) (_cy-__ref._thumbsize /*int*/ /(double)2),(float) (_cx+__ref._thumb /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getWidth()/(double)8),(float) (_cy+__ref._thumbsize /*int*/ /(double)2)); -RDebugUtils.currentLine=63635476; - //BA.debugLineNum = 63635476;BA.debugLine="cvs.DrawBitmapRotated(thumb, dest, angle)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawBitmapRotated((android.graphics.Bitmap)(__ref._thumb /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper*/ .getObject()),_dest,(float) (_angle)); -RDebugUtils.currentLine=63635477; - //BA.debugLineNum = 63635477;BA.debugLine="cvs.Invalidate"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=63635478; - //BA.debugLineNum = 63635478;BA.debugLine="xlbl.Text = mValue"; -__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setText(BA.ObjectToCharSequence(__ref._mvalue /*int*/ )); -RDebugUtils.currentLine=63635479; - //BA.debugLineNum = 63635479;BA.debugLine="End Sub"; + //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 String _class_globals(reparto_izca.keymon.lat.roundslider __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -RDebugUtils.currentLine=63176704; - //BA.debugLineNum = 63176704;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=63176705; - //BA.debugLineNum = 63176705;BA.debugLine="Private mEventName As String 'ignore"; -_meventname = ""; -RDebugUtils.currentLine=63176706; - //BA.debugLineNum = 63176706;BA.debugLine="Private mCallBack As Object 'ignore"; -_mcallback = new Object(); -RDebugUtils.currentLine=63176707; - //BA.debugLineNum = 63176707;BA.debugLine="Public mBase As B4XView 'ignore"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=63176708; - //BA.debugLineNum = 63176708;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=63176709; - //BA.debugLineNum = 63176709;BA.debugLine="Private cvs As B4XCanvas"; -_cvs = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=63176710; - //BA.debugLineNum = 63176710;BA.debugLine="Private mValue As Int = 75"; -_mvalue = (int) (75); -RDebugUtils.currentLine=63176711; - //BA.debugLineNum = 63176711;BA.debugLine="Private mMin, mMax As Int"; -_mmin = 0; -_mmax = 0; -RDebugUtils.currentLine=63176712; - //BA.debugLineNum = 63176712;BA.debugLine="Private thumb As B4XBitmap"; -_thumb = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XBitmapWrapper(); -RDebugUtils.currentLine=63176713; - //BA.debugLineNum = 63176713;BA.debugLine="Private pnl As B4XView"; -_pnl = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=63176714; - //BA.debugLineNum = 63176714;BA.debugLine="Private xlbl As B4XView"; -_xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=63176715; - //BA.debugLineNum = 63176715;BA.debugLine="Private CircleRect As B4XRect"; -_circlerect = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect(); -RDebugUtils.currentLine=63176716; - //BA.debugLineNum = 63176716;BA.debugLine="Private ValueColor As Int"; -_valuecolor = 0; -RDebugUtils.currentLine=63176717; - //BA.debugLineNum = 63176717;BA.debugLine="Private stroke As Int"; -_stroke = 0; -RDebugUtils.currentLine=63176718; - //BA.debugLineNum = 63176718;BA.debugLine="Private ThumbSize As Int"; -_thumbsize = 0; -RDebugUtils.currentLine=63176719; - //BA.debugLineNum = 63176719;BA.debugLine="Public Tag As Object"; -_tag = new Object(); -RDebugUtils.currentLine=63176720; - //BA.debugLineNum = 63176720;BA.debugLine="Private mThumbBorderColor As Int = 0xFF5B5B5B"; -_mthumbbordercolor = ((int)0xff5b5b5b); -RDebugUtils.currentLine=63176721; - //BA.debugLineNum = 63176721;BA.debugLine="Private mThumbInnerColor As Int = xui.Color_White"; -_mthumbinnercolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -RDebugUtils.currentLine=63176722; - //BA.debugLineNum = 63176722;BA.debugLine="Private mCircleFillColor As Int = xui.Color_White"; -_mcirclefillcolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_White; -RDebugUtils.currentLine=63176723; - //BA.debugLineNum = 63176723;BA.debugLine="Private mCircleNonValueColor As Int = 0xFFB6B6B6"; -_mcirclenonvaluecolor = ((int)0xffb6b6b6); -RDebugUtils.currentLine=63176724; - //BA.debugLineNum = 63176724;BA.debugLine="Private mRollOver As Boolean"; -_mrollover = false; -RDebugUtils.currentLine=63176725; - //BA.debugLineNum = 63176725;BA.debugLine="End Sub"; -return ""; -} -public String _designercreateview(reparto_izca.keymon.lat.roundslider __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} -RDebugUtils.currentLine=63307776; - //BA.debugLineNum = 63307776;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=63307777; - //BA.debugLineNum = 63307777;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=63307778; - //BA.debugLineNum = 63307778;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=63307778; - //BA.debugLineNum = 63307778;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=63307779; - //BA.debugLineNum = 63307779;BA.debugLine="cvs.Initialize(mBase)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=63307780; - //BA.debugLineNum = 63307780;BA.debugLine="mMin = Props.Get(\"Min\")"; -__ref._mmin /*int*/ = (int)(BA.ObjectToNumber(_props.Get((Object)("Min")))); -RDebugUtils.currentLine=63307781; - //BA.debugLineNum = 63307781;BA.debugLine="mMax = Props.Get(\"Max\")"; -__ref._mmax /*int*/ = (int)(BA.ObjectToNumber(_props.Get((Object)("Max")))); -RDebugUtils.currentLine=63307782; - //BA.debugLineNum = 63307782;BA.debugLine="mValue = mMin"; -__ref._mvalue /*int*/ = __ref._mmin /*int*/ ; -RDebugUtils.currentLine=63307783; - //BA.debugLineNum = 63307783;BA.debugLine="pnl = xui.CreatePanel(\"pnl\")"; -__ref._pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"pnl"); -RDebugUtils.currentLine=63307784; - //BA.debugLineNum = 63307784;BA.debugLine="xlbl = Lbl"; -__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject())); -RDebugUtils.currentLine=63307785; - //BA.debugLineNum = 63307785;BA.debugLine="xlbl.Visible = True"; -__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=63307786; - //BA.debugLineNum = 63307786;BA.debugLine="mBase.AddView(xlbl, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=63307787; - //BA.debugLineNum = 63307787;BA.debugLine="mBase.AddView(pnl, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=63307788; - //BA.debugLineNum = 63307788;BA.debugLine="ValueColor = xui.PaintOrColorToColor(Props.Get(\"V"; -__ref._valuecolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("ValueColor"))); -RDebugUtils.currentLine=63307789; - //BA.debugLineNum = 63307789;BA.debugLine="mRollOver = Props.GetDefault(\"RollOver\", False)"; -__ref._mrollover /*boolean*/ = BA.ObjectToBoolean(_props.GetDefault((Object)("RollOver"),(Object)(__c.False))); -RDebugUtils.currentLine=63307790; - //BA.debugLineNum = 63307790;BA.debugLine="If xui.IsB4A Or xui.IsB4i Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4A() || __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4i()) { -RDebugUtils.currentLine=63307791; - //BA.debugLineNum = 63307791;BA.debugLine="stroke = 8dip"; -__ref._stroke /*int*/ = __c.DipToCurrent((int) (8)); - }else -{RDebugUtils.currentLine=63307792; - //BA.debugLineNum = 63307792;BA.debugLine="Else If xui.IsB4J Then"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .getIsB4J()) { -RDebugUtils.currentLine=63307793; - //BA.debugLineNum = 63307793;BA.debugLine="stroke = 6dip"; -__ref._stroke /*int*/ = __c.DipToCurrent((int) (6)); - }} -; -RDebugUtils.currentLine=63307795; - //BA.debugLineNum = 63307795;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)"; -__ref._base_resize /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=63307796; - //BA.debugLineNum = 63307796;BA.debugLine="End Sub"; -return ""; -} -public int _getvalue(reparto_izca.keymon.lat.roundslider __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "getvalue", true)) - {return ((Integer) Debug.delegate(ba, "getvalue", null));} -RDebugUtils.currentLine=63897600; - //BA.debugLineNum = 63897600;BA.debugLine="Public Sub getValue As Int"; -RDebugUtils.currentLine=63897601; - //BA.debugLineNum = 63897601;BA.debugLine="Return mValue"; -if (true) return __ref._mvalue /*int*/ ; -RDebugUtils.currentLine=63897602; - //BA.debugLineNum = 63897602;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.roundslider __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=63242240; - //BA.debugLineNum = 63242240;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=63242241; - //BA.debugLineNum = 63242241;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=63242242; - //BA.debugLineNum = 63242242;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=63242243; - //BA.debugLineNum = 63242243;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.roundslider __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "pnl_touch", true)) - {return ((String) Debug.delegate(ba, "pnl_touch", new Object[] {_action,_x,_y}));} +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; -RDebugUtils.currentLine=63700992; - //BA.debugLineNum = 63700992;BA.debugLine="Private Sub pnl_Touch (Action As Int, X As Float,"; -RDebugUtils.currentLine=63700993; - //BA.debugLineNum = 63700993;BA.debugLine="If Action = pnl.TOUCH_ACTION_MOVE_NOTOUCH Then Re"; -if (_action==__ref._pnl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_MOVE_NOTOUCH) { + //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 "";}; -RDebugUtils.currentLine=63700994; - //BA.debugLineNum = 63700994;BA.debugLine="Dim dx As Int = x - CircleRect.CenterX"; -_dx = (int) (_x-__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterX()); -RDebugUtils.currentLine=63700995; - //BA.debugLineNum = 63700995;BA.debugLine="Dim dy As Int = y - CircleRect.CenterY"; -_dy = (int) (_y-__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getCenterY()); -RDebugUtils.currentLine=63700996; - //BA.debugLineNum = 63700996;BA.debugLine="Dim dist As Float = Sqrt(Power(dx, 2) + Power(dy,"; + //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))); -RDebugUtils.currentLine=63700997; - //BA.debugLineNum = 63700997;BA.debugLine="If dist > CircleRect.Width / 2 Then"; -if (_dist>__ref._circlerect /*anywheresoftware.b4a.objects.B4XCanvas.B4XRect*/ .getWidth()/(double)2) { -RDebugUtils.currentLine=63700998; - //BA.debugLineNum = 63700998;BA.debugLine="Dim angle As Int = Round(ATan2D(dy, dx))"; + //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))); -RDebugUtils.currentLine=63700999; - //BA.debugLineNum = 63700999;BA.debugLine="angle = angle + 90"; + //BA.debugLineNum = 130;BA.debugLine="angle = angle + 90"; _angle = (int) (_angle+90); -RDebugUtils.currentLine=63701000; - //BA.debugLineNum = 63701000;BA.debugLine="angle = (angle + 360) Mod 360"; + //BA.debugLineNum = 131;BA.debugLine="angle = (angle + 360) Mod 360"; _angle = (int) ((_angle+360)%360); -RDebugUtils.currentLine=63701001; - //BA.debugLineNum = 63701001;BA.debugLine="Dim NewValue As Int = mMin + angle / 360 * (mMax"; -_newvalue = (int) (__ref._mmin /*int*/ +_angle/(double)360*(__ref._mmax /*int*/ -__ref._mmin /*int*/ )); -RDebugUtils.currentLine=63701002; - //BA.debugLineNum = 63701002;BA.debugLine="NewValue = Max(mMin, Min(mMax, NewValue))"; -_newvalue = (int) (__c.Max(__ref._mmin /*int*/ ,__c.Min(__ref._mmax /*int*/ ,_newvalue))); -RDebugUtils.currentLine=63701003; - //BA.debugLineNum = 63701003;BA.debugLine="If NewValue <> mValue Then"; -if (_newvalue!=__ref._mvalue /*int*/ ) { -RDebugUtils.currentLine=63701004; - //BA.debugLineNum = 63701004;BA.debugLine="If mRollOver = False Then"; -if (__ref._mrollover /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=63701005; - //BA.debugLineNum = 63701005;BA.debugLine="If Abs(NewValue - mValue) > (mMax - mMin) / 2"; -if (__c.Abs(_newvalue-__ref._mvalue /*int*/ )>(__ref._mmax /*int*/ -__ref._mmin /*int*/ )/(double)2) { -RDebugUtils.currentLine=63701006; - //BA.debugLineNum = 63701006;BA.debugLine="If mValue >= (mMax + mMin) / 2 Then"; -if (__ref._mvalue /*int*/ >=(__ref._mmax /*int*/ +__ref._mmin /*int*/ )/(double)2) { -RDebugUtils.currentLine=63701007; - //BA.debugLineNum = 63701007;BA.debugLine="mValue = mMax"; -__ref._mvalue /*int*/ = __ref._mmax /*int*/ ; + //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 { -RDebugUtils.currentLine=63701009; - //BA.debugLineNum = 63701009;BA.debugLine="mValue = mMin"; -__ref._mvalue /*int*/ = __ref._mmin /*int*/ ; + //BA.debugLineNum = 140;BA.debugLine="mValue = mMin"; +_mvalue = _mmin; }; }else { -RDebugUtils.currentLine=63701012; - //BA.debugLineNum = 63701012;BA.debugLine="mValue = NewValue"; -__ref._mvalue /*int*/ = _newvalue; + //BA.debugLineNum = 143;BA.debugLine="mValue = NewValue"; +_mvalue = _newvalue; }; }else { -RDebugUtils.currentLine=63701015; - //BA.debugLineNum = 63701015;BA.debugLine="mValue = NewValue"; -__ref._mvalue /*int*/ = _newvalue; + //BA.debugLineNum = 146;BA.debugLine="mValue = NewValue"; +_mvalue = _newvalue; }; -RDebugUtils.currentLine=63701017; - //BA.debugLineNum = 63701017;BA.debugLine="If xui.SubExists(mCallBack, mEventName & \"_Valu"; -if (__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_ValueChanged",(int) (1))) { -RDebugUtils.currentLine=63701018; - //BA.debugLineNum = 63701018;BA.debugLine="CallSub2(mCallBack, mEventName & \"_ValueChange"; -__c.CallSubNew2(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_ValueChanged",(Object)(__ref._mvalue /*int*/ )); + //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)); }; }; -RDebugUtils.currentLine=63701021; - //BA.debugLineNum = 63701021;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); + //BA.debugLineNum = 152;BA.debugLine="Draw"; +_draw(); }; -RDebugUtils.currentLine=63701023; - //BA.debugLineNum = 63701023;BA.debugLine="End Sub"; + //BA.debugLineNum = 154;BA.debugLine="End Sub"; return ""; } -public String _setcirclecolor(reparto_izca.keymon.lat.roundslider __ref,int _nonvaluecolor,int _innercolor) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "setcirclecolor", true)) - {return ((String) Debug.delegate(ba, "setcirclecolor", new Object[] {_nonvaluecolor,_innercolor}));} -RDebugUtils.currentLine=63438848; - //BA.debugLineNum = 63438848;BA.debugLine="Public Sub SetCircleColor (NonValueColor As Int, I"; -RDebugUtils.currentLine=63438849; - //BA.debugLineNum = 63438849;BA.debugLine="mCircleNonValueColor = NonValueColor"; -__ref._mcirclenonvaluecolor /*int*/ = _nonvaluecolor; -RDebugUtils.currentLine=63438850; - //BA.debugLineNum = 63438850;BA.debugLine="mCircleFillColor = InnerColor"; -__ref._mcirclefillcolor /*int*/ = _innercolor; -RDebugUtils.currentLine=63438851; - //BA.debugLineNum = 63438851;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=63438852; - //BA.debugLineNum = 63438852;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.roundslider __ref,int _newmin,int _newmax) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "setrange", true)) - {return ((String) Debug.delegate(ba, "setrange", new Object[] {_newmin,_newmax}));} -RDebugUtils.currentLine=63832064; - //BA.debugLineNum = 63832064;BA.debugLine="Public Sub SetRange(NewMin As Int, NewMax As Int)"; -RDebugUtils.currentLine=63832065; - //BA.debugLineNum = 63832065;BA.debugLine="mMin = NewMin"; -__ref._mmin /*int*/ = _newmin; -RDebugUtils.currentLine=63832066; - //BA.debugLineNum = 63832066;BA.debugLine="mMax = NewMax"; -__ref._mmax /*int*/ = _newmax; -RDebugUtils.currentLine=63832067; - //BA.debugLineNum = 63832067;BA.debugLine="setValue(mValue)"; -__ref._setvalue /*String*/ (null,__ref._mvalue /*int*/ ); -RDebugUtils.currentLine=63832068; - //BA.debugLineNum = 63832068;BA.debugLine="End Sub"; +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 _setvalue(reparto_izca.keymon.lat.roundslider __ref,int _v) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "setvalue", true)) - {return ((String) Debug.delegate(ba, "setvalue", new Object[] {_v}));} -RDebugUtils.currentLine=63766528; - //BA.debugLineNum = 63766528;BA.debugLine="Public Sub setValue (v As Int)"; -RDebugUtils.currentLine=63766529; - //BA.debugLineNum = 63766529;BA.debugLine="mValue = Max(mMin, Min(mMax, v))"; -__ref._mvalue /*int*/ = (int) (__c.Max(__ref._mmin /*int*/ ,__c.Min(__ref._mmax /*int*/ ,_v))); -RDebugUtils.currentLine=63766530; - //BA.debugLineNum = 63766530;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=63766531; - //BA.debugLineNum = 63766531;BA.debugLine="End Sub"; +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 _setthumbcolor(reparto_izca.keymon.lat.roundslider __ref,int _bordercolor,int _innercolor) throws Exception{ -__ref = this; -RDebugUtils.currentModule="roundslider"; -if (Debug.shouldDelegate(ba, "setthumbcolor", true)) - {return ((String) Debug.delegate(ba, "setthumbcolor", new Object[] {_bordercolor,_innercolor}));} -RDebugUtils.currentLine=63373312; - //BA.debugLineNum = 63373312;BA.debugLine="Public Sub SetThumbColor(BorderColor As Int, Inner"; -RDebugUtils.currentLine=63373313; - //BA.debugLineNum = 63373313;BA.debugLine="mThumbBorderColor = BorderColor"; -__ref._mthumbbordercolor /*int*/ = _bordercolor; -RDebugUtils.currentLine=63373314; - //BA.debugLineNum = 63373314;BA.debugLine="mThumbInnerColor = InnerColor"; -__ref._mthumbinnercolor /*int*/ = _innercolor; -RDebugUtils.currentLine=63373315; - //BA.debugLineNum = 63373315;BA.debugLine="CreateThumb"; -__ref._createthumb /*String*/ (null); -RDebugUtils.currentLine=63373316; - //BA.debugLineNum = 63373316;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=63373317; - //BA.debugLineNum = 63373317;BA.debugLine="End Sub"; +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 ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/scrollinglabel.java b/B4A/Objects/src/reparto_izca/keymon/lat/scrollinglabel.java index a70e58c..7609c1b 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/scrollinglabel.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/scrollinglabel.java @@ -10,7 +10,7 @@ public class scrollinglabel extends B4AClass.ImplB4AClass implements BA.SubDeleg private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.scrollinglabel"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.scrollinglabel"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class scrollinglabel extends B4AClass.ImplB4AClass implements BA.SubDeleg ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -57,28 +50,115 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.scrollinglabel __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="scrollinglabel"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} -RDebugUtils.currentLine=64159744; - //BA.debugLineNum = 64159744;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A"; -RDebugUtils.currentLine=64159745; - //BA.debugLineNum = 64159745;BA.debugLine="mBase.GetView(0).SetLayoutAnimated(0, 0, 0, Width"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetView((int) (0)).SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); -RDebugUtils.currentLine=64159746; - //BA.debugLineNum = 64159746;BA.debugLine="setText(mText)"; -__ref._settext /*String*/ (null,__ref._mtext /*String*/ ); -RDebugUtils.currentLine=64159747; - //BA.debugLineNum = 64159747;BA.debugLine="End Sub"; +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 _settext(reparto_izca.keymon.lat.scrollinglabel __ref,String _t) throws Exception{ -__ref = this; -RDebugUtils.currentModule="scrollinglabel"; -if (Debug.shouldDelegate(ba, "settext", true)) - {return ((String) Debug.delegate(ba, "settext", new Object[] {_t}));} +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; @@ -87,321 +167,109 @@ float _originaltextwidth = 0f; anywheresoftware.b4a.objects.LabelWrapper _lbl = null; String _duplicatetext = ""; float _width = 0f; -RDebugUtils.currentLine=64225280; - //BA.debugLineNum = 64225280;BA.debugLine="Public Sub setText(t As String)"; -RDebugUtils.currentLine=64225281; - //BA.debugLineNum = 64225281;BA.debugLine="Dim NeedToCreateNewLabel As Boolean = True"; + //BA.debugLineNum = 45;BA.debugLine="Public Sub setText(t As String)"; + //BA.debugLineNum = 46;BA.debugLine="Dim NeedToCreateNewLabel As Boolean = True"; _needtocreatenewlabel = __c.True; -RDebugUtils.currentLine=64225282; - //BA.debugLineNum = 64225282;BA.debugLine="Dim parent As B4XView = mBase.GetView(0)"; + //BA.debugLineNum = 47;BA.debugLine="Dim parent As B4XView = mBase.GetView(0)"; _parent = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_parent = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetView((int) (0)); -RDebugUtils.currentLine=64225283; - //BA.debugLineNum = 64225283;BA.debugLine="If parent.NumberOfViews > 0 Then"; +_parent = _mbase.GetView((int) (0)); + //BA.debugLineNum = 48;BA.debugLine="If parent.NumberOfViews > 0 Then"; if (_parent.getNumberOfViews()>0) { -RDebugUtils.currentLine=64225285; - //BA.debugLineNum = 64225285;BA.debugLine="Dim p As B4XView = parent.GetView(0)"; + //BA.debugLineNum = 50;BA.debugLine="Dim p As B4XView = parent.GetView(0)"; _p = new anywheresoftware.b4a.objects.B4XViewWrapper(); _p = _parent.GetView((int) (0)); -RDebugUtils.currentLine=64225286; - //BA.debugLineNum = 64225286;BA.debugLine="If p.Tag = \"static\" Then"; + //BA.debugLineNum = 51;BA.debugLine="If p.Tag = \"static\" Then"; if ((_p.getTag()).equals((Object)("static"))) { -RDebugUtils.currentLine=64225287; - //BA.debugLineNum = 64225287;BA.debugLine="NeedToCreateNewLabel = False"; + //BA.debugLineNum = 52;BA.debugLine="NeedToCreateNewLabel = False"; _needtocreatenewlabel = __c.False; -RDebugUtils.currentLine=64225288; - //BA.debugLineNum = 64225288;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, parent.Width, pare"; + //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()); -RDebugUtils.currentLine=64225289; - //BA.debugLineNum = 64225289;BA.debugLine="Dim xlbl As B4XView = p.GetView(0)"; + //BA.debugLineNum = 54;BA.debugLine="Dim xlbl As B4XView = p.GetView(0)"; _xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper(); _xlbl = _p.GetView((int) (0)); -RDebugUtils.currentLine=64225290; - //BA.debugLineNum = 64225290;BA.debugLine="xlbl.SetLayoutAnimated(0, 0, 0, parent.Width, p"; + //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()); }; }; -RDebugUtils.currentLine=64225294; - //BA.debugLineNum = 64225294;BA.debugLine="Dim originalTextWidth As Float = MeasureTextWidth"; -_originaltextwidth = __ref._measuretextwidth /*float*/ (null,_t,__ref._fnt /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ); -RDebugUtils.currentLine=64225295; - //BA.debugLineNum = 64225295;BA.debugLine="mText = t"; -__ref._mtext /*String*/ = _t; -RDebugUtils.currentLine=64225296; - //BA.debugLineNum = 64225296;BA.debugLine="If NeedToCreateNewLabel Then"; + //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) { -RDebugUtils.currentLine=64225297; - //BA.debugLineNum = 64225297;BA.debugLine="parent.RemoveAllViews"; + //BA.debugLineNum = 62;BA.debugLine="parent.RemoveAllViews"; _parent.RemoveAllViews(); -RDebugUtils.currentLine=64225298; - //BA.debugLineNum = 64225298;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; + //BA.debugLineNum = 63;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; _p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=64225299; - //BA.debugLineNum = 64225299;BA.debugLine="parent.AddView(p, 0, 0, parent.Width, parent.Hei"; +_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()); -RDebugUtils.currentLine=64225300; - //BA.debugLineNum = 64225300;BA.debugLine="Dim lbl As Label"; + //BA.debugLineNum = 65;BA.debugLine="Dim lbl As Label"; _lbl = new anywheresoftware.b4a.objects.LabelWrapper(); -RDebugUtils.currentLine=64225301; - //BA.debugLineNum = 64225301;BA.debugLine="lbl.Initialize(\"\")"; + //BA.debugLineNum = 66;BA.debugLine="lbl.Initialize(\"\")"; _lbl.Initialize(ba,""); -RDebugUtils.currentLine=64225303; - //BA.debugLineNum = 64225303;BA.debugLine="lbl.SingleLine = True"; + //BA.debugLineNum = 68;BA.debugLine="lbl.SingleLine = True"; _lbl.setSingleLine(__c.True); -RDebugUtils.currentLine=64225304; - //BA.debugLineNum = 64225304;BA.debugLine="lbl.Padding = Array As Int(0, 0, 0, 0)"; + //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)}); -RDebugUtils.currentLine=64225306; - //BA.debugLineNum = 64225306;BA.debugLine="Dim xlbl As B4XView = lbl"; + //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())); -RDebugUtils.currentLine=64225307; - //BA.debugLineNum = 64225307;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"LEFT\")"; + //BA.debugLineNum = 72;BA.debugLine="xlbl.SetTextAlignment(\"CENTER\", \"LEFT\")"; _xlbl.SetTextAlignment("CENTER","LEFT"); -RDebugUtils.currentLine=64225308; - //BA.debugLineNum = 64225308;BA.debugLine="xlbl.Font = fnt"; -_xlbl.setFont(__ref._fnt /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ); -RDebugUtils.currentLine=64225310; - //BA.debugLineNum = 64225310;BA.debugLine="p.AddView(xlbl, 0, 0, mBase.Width, mBase.Height)"; -_p.AddView((android.view.View)(_xlbl.getObject()),(int) (0),(int) (0),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); + //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()); }; -RDebugUtils.currentLine=64225312; - //BA.debugLineNum = 64225312;BA.debugLine="xlbl.TextColor = mTextColor"; -_xlbl.setTextColor(__ref._mtextcolor /*int*/ ); -RDebugUtils.currentLine=64225313; - //BA.debugLineNum = 64225313;BA.debugLine="If originalTextWidth <= mBase.Width Then"; -if (_originaltextwidth<=__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()) { -RDebugUtils.currentLine=64225314; - //BA.debugLineNum = 64225314;BA.debugLine="xlbl.Text = t"; + //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)); -RDebugUtils.currentLine=64225315; - //BA.debugLineNum = 64225315;BA.debugLine="p.Tag = \"static\""; + //BA.debugLineNum = 80;BA.debugLine="p.Tag = \"static\""; _p.setTag((Object)("static")); -RDebugUtils.currentLine=64225316; - //BA.debugLineNum = 64225316;BA.debugLine="StopScrolling"; -__ref._stopscrolling /*String*/ (null); + //BA.debugLineNum = 81;BA.debugLine="StopScrolling"; +_stopscrolling(); }else { -RDebugUtils.currentLine=64225318; - //BA.debugLineNum = 64225318;BA.debugLine="p.Tag = \"\""; + //BA.debugLineNum = 83;BA.debugLine="p.Tag = \"\""; _p.setTag((Object)("")); -RDebugUtils.currentLine=64225319; - //BA.debugLineNum = 64225319;BA.debugLine="Dim duplicateText As String = t & \" \" & t"; + //BA.debugLineNum = 84;BA.debugLine="Dim duplicateText As String = t & \" \" & t"; _duplicatetext = _t+" "+_t; -RDebugUtils.currentLine=64225320; - //BA.debugLineNum = 64225320;BA.debugLine="Dim Width As Float = MeasureTextWidth(duplicateT"; -_width = __ref._measuretextwidth /*float*/ (null,_duplicatetext,__ref._fnt /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ ); -RDebugUtils.currentLine=64225321; - //BA.debugLineNum = 64225321;BA.debugLine="p.Width = Width"; + //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)); -RDebugUtils.currentLine=64225322; - //BA.debugLineNum = 64225322;BA.debugLine="xlbl.Width = Width"; + //BA.debugLineNum = 87;BA.debugLine="xlbl.Width = Width"; _xlbl.setWidth((int) (_width)); -RDebugUtils.currentLine=64225323; - //BA.debugLineNum = 64225323;BA.debugLine="xlbl.Text = duplicateText"; + //BA.debugLineNum = 88;BA.debugLine="xlbl.Text = duplicateText"; _xlbl.setText(BA.ObjectToCharSequence(_duplicatetext)); -RDebugUtils.currentLine=64225324; - //BA.debugLineNum = 64225324;BA.debugLine="StartScrolling (p, originalTextWidth)"; -__ref._startscrolling /*void*/ (null,_p,_originaltextwidth); + //BA.debugLineNum = 89;BA.debugLine="StartScrolling (p, originalTextWidth)"; +_startscrolling(_p,_originaltextwidth); }; -RDebugUtils.currentLine=64225326; - //BA.debugLineNum = 64225326;BA.debugLine="End Sub"; + //BA.debugLineNum = 91;BA.debugLine="End Sub"; return ""; } -public String _class_globals(reparto_izca.keymon.lat.scrollinglabel __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="scrollinglabel"; -RDebugUtils.currentLine=63963136; - //BA.debugLineNum = 63963136;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=63963137; - //BA.debugLineNum = 63963137;BA.debugLine="Private mEventName As String 'ignore"; -_meventname = ""; -RDebugUtils.currentLine=63963138; - //BA.debugLineNum = 63963138;BA.debugLine="Private mCallBack As Object 'ignore"; -_mcallback = new Object(); -RDebugUtils.currentLine=63963139; - //BA.debugLineNum = 63963139;BA.debugLine="Public mBase As B4XView"; -_mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=63963140; - //BA.debugLineNum = 63963140;BA.debugLine="Private xui As XUI 'ignore"; -_xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=63963141; - //BA.debugLineNum = 63963141;BA.debugLine="Private mText As String"; -_mtext = ""; -RDebugUtils.currentLine=63963142; - //BA.debugLineNum = 63963142;BA.debugLine="Private taskIndex As Int"; -_taskindex = 0; -RDebugUtils.currentLine=63963143; - //BA.debugLineNum = 63963143;BA.debugLine="Private fnt As B4XFont"; -_fnt = new anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont(); -RDebugUtils.currentLine=63963144; - //BA.debugLineNum = 63963144;BA.debugLine="Private cvs As B4XCanvas"; -_cvs = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=63963145; - //BA.debugLineNum = 63963145;BA.debugLine="Public Tag As Object"; -_tag = new Object(); -RDebugUtils.currentLine=63963146; - //BA.debugLineNum = 63963146;BA.debugLine="Public WidthPerSecond As Int = 100dip"; -_widthpersecond = __c.DipToCurrent((int) (100)); -RDebugUtils.currentLine=63963147; - //BA.debugLineNum = 63963147;BA.debugLine="Public StartPositionDelay As Int = 1000"; -_startpositiondelay = (int) (1000); -RDebugUtils.currentLine=63963148; - //BA.debugLineNum = 63963148;BA.debugLine="Private mTextColor As Int = xui.Color_Black"; -_mtextcolor = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Black; -RDebugUtils.currentLine=63963149; - //BA.debugLineNum = 63963149;BA.debugLine="End Sub"; +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 String _designercreateview(reparto_izca.keymon.lat.scrollinglabel __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="scrollinglabel"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} -anywheresoftware.b4a.objects.B4XViewWrapper _p = null; -anywheresoftware.b4a.objects.B4XViewWrapper _l = null; -RDebugUtils.currentLine=64094208; - //BA.debugLineNum = 64094208;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=64094209; - //BA.debugLineNum = 64094209;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=64094210; - //BA.debugLineNum = 64094210;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=64094210; - //BA.debugLineNum = 64094210;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=64094212; - //BA.debugLineNum = 64094212;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; -_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=64094213; - //BA.debugLineNum = 64094213;BA.debugLine="mBase.AddView(p, 0, 0, mBase.Width, mBase.Height)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_p.getObject()),(int) (0),(int) (0),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=64094214; - //BA.debugLineNum = 64094214;BA.debugLine="mText = Lbl.Text"; -__ref._mtext /*String*/ = _lbl.getText(); -RDebugUtils.currentLine=64094215; - //BA.debugLineNum = 64094215;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())); -RDebugUtils.currentLine=64094216; - //BA.debugLineNum = 64094216;BA.debugLine="fnt = l.Font"; -__ref._fnt /*anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont*/ = _l.getFont(); -RDebugUtils.currentLine=64094217; - //BA.debugLineNum = 64094217;BA.debugLine="mTextColor = l.TextColor"; -__ref._mtextcolor /*int*/ = _l.getTextColor(); -RDebugUtils.currentLine=64094218; - //BA.debugLineNum = 64094218;BA.debugLine="If mTextColor = xui.Color_Transparent Then mTextC"; -if (__ref._mtextcolor /*int*/ ==__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent) { -__ref._mtextcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Black;}; -RDebugUtils.currentLine=64094219; - //BA.debugLineNum = 64094219;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"\")"; -_p = new anywheresoftware.b4a.objects.B4XViewWrapper(); -_p = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,""); -RDebugUtils.currentLine=64094220; - //BA.debugLineNum = 64094220;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))); -RDebugUtils.currentLine=64094221; - //BA.debugLineNum = 64094221;BA.debugLine="cvs.Initialize(p)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(_p); -RDebugUtils.currentLine=64094222; - //BA.debugLineNum = 64094222;BA.debugLine="setText(mText)"; -__ref._settext /*String*/ (null,__ref._mtext /*String*/ ); -RDebugUtils.currentLine=64094223; - //BA.debugLineNum = 64094223;BA.debugLine="End Sub"; -return ""; -} -public String _gettext(reparto_izca.keymon.lat.scrollinglabel __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="scrollinglabel"; -if (Debug.shouldDelegate(ba, "gettext", true)) - {return ((String) Debug.delegate(ba, "gettext", null));} -RDebugUtils.currentLine=64290816; - //BA.debugLineNum = 64290816;BA.debugLine="Public Sub getText As String"; -RDebugUtils.currentLine=64290817; - //BA.debugLineNum = 64290817;BA.debugLine="Return mText"; -if (true) return __ref._mtext /*String*/ ; -RDebugUtils.currentLine=64290818; - //BA.debugLineNum = 64290818;BA.debugLine="End Sub"; -return ""; -} -public int _gettextcolor(reparto_izca.keymon.lat.scrollinglabel __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="scrollinglabel"; -if (Debug.shouldDelegate(ba, "gettextcolor", true)) - {return ((Integer) Debug.delegate(ba, "gettextcolor", null));} -RDebugUtils.currentLine=64618496; - //BA.debugLineNum = 64618496;BA.debugLine="Public Sub getTextColor As Int"; -RDebugUtils.currentLine=64618497; - //BA.debugLineNum = 64618497;BA.debugLine="Return mTextColor"; -if (true) return __ref._mtextcolor /*int*/ ; -RDebugUtils.currentLine=64618498; - //BA.debugLineNum = 64618498;BA.debugLine="End Sub"; -return 0; -} -public String _initialize(reparto_izca.keymon.lat.scrollinglabel __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; -innerInitialize(_ba); -RDebugUtils.currentModule="scrollinglabel"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=64028672; - //BA.debugLineNum = 64028672;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=64028673; - //BA.debugLineNum = 64028673;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=64028674; - //BA.debugLineNum = 64028674;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=64028675; - //BA.debugLineNum = 64028675;BA.debugLine="End Sub"; -return ""; -} -public float _measuretextwidth(reparto_izca.keymon.lat.scrollinglabel __ref,String _s,anywheresoftware.b4a.objects.B4XViewWrapper.B4XFont _font1) throws Exception{ -__ref = this; -RDebugUtils.currentModule="scrollinglabel"; -if (Debug.shouldDelegate(ba, "measuretextwidth", true)) - {return ((Float) Debug.delegate(ba, "measuretextwidth", new Object[] {_s,_font1}));} -RDebugUtils.currentLine=64487424; - //BA.debugLineNum = 64487424;BA.debugLine="Private Sub MeasureTextWidth(s As String, font1 As"; -RDebugUtils.currentLine=64487425; - //BA.debugLineNum = 64487425;BA.debugLine="Return cvs.MeasureText(s, font1).Width"; -if (true) return __ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .MeasureText(_s,_font1).getWidth(); -RDebugUtils.currentLine=64487426; - //BA.debugLineNum = 64487426;BA.debugLine="End Sub"; -return 0f; -} -public String _stopscrolling(reparto_izca.keymon.lat.scrollinglabel __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="scrollinglabel"; -if (Debug.shouldDelegate(ba, "stopscrolling", true)) - {return ((String) Debug.delegate(ba, "stopscrolling", null));} -RDebugUtils.currentLine=64356352; - //BA.debugLineNum = 64356352;BA.debugLine="Private Sub StopScrolling"; -RDebugUtils.currentLine=64356353; - //BA.debugLineNum = 64356353;BA.debugLine="taskIndex = taskIndex + 1"; -__ref._taskindex /*int*/ = (int) (__ref._taskindex /*int*/ +1); -RDebugUtils.currentLine=64356354; - //BA.debugLineNum = 64356354;BA.debugLine="End Sub"; -return ""; -} -public void _startscrolling(reparto_izca.keymon.lat.scrollinglabel __ref,anywheresoftware.b4a.objects.B4XViewWrapper _p,float _originalwidth) throws Exception{ -RDebugUtils.currentModule="scrollinglabel"; -if (Debug.shouldDelegate(ba, "startscrolling", true)) - {Debug.delegate(ba, "startscrolling", new Object[] {_p,_originalwidth}); return;} -ResumableSub_StartScrolling rsub = new ResumableSub_StartScrolling(this,__ref,_p,_originalwidth); +public void _startscrolling(anywheresoftware.b4a.objects.B4XViewWrapper _p,float _originalwidth) throws Exception{ +ResumableSub_StartScrolling rsub = new ResumableSub_StartScrolling(this,_p,_originalwidth); rsub.resume(ba, null); } public static class ResumableSub_StartScrolling extends BA.ResumableSub { -public ResumableSub_StartScrolling(reparto_izca.keymon.lat.scrollinglabel parent,reparto_izca.keymon.lat.scrollinglabel __ref,anywheresoftware.b4a.objects.B4XViewWrapper _p,float _originalwidth) { +public ResumableSub_StartScrolling(reparto_izca.keymon.lat.scrollinglabel parent,anywheresoftware.b4a.objects.B4XViewWrapper _p,float _originalwidth) { this.parent = parent; -this.__ref = __ref; this._p = _p; this._originalwidth = _originalwidth; -this.__ref = parent; } -reparto_izca.keymon.lat.scrollinglabel __ref; reparto_izca.keymon.lat.scrollinglabel parent; anywheresoftware.b4a.objects.B4XViewWrapper _p; float _originalwidth; @@ -410,7 +278,6 @@ int _duration = 0; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="scrollinglabel"; while (true) { switch (state) { @@ -420,32 +287,27 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=64421889; - //BA.debugLineNum = 64421889;BA.debugLine="taskIndex = taskIndex + 1"; -__ref._taskindex /*int*/ = (int) (__ref._taskindex /*int*/ +1); -RDebugUtils.currentLine=64421890; - //BA.debugLineNum = 64421890;BA.debugLine="Dim myIndex As Int = taskIndex"; -_myindex = __ref._taskindex /*int*/ ; -RDebugUtils.currentLine=64421891; - //BA.debugLineNum = 64421891;BA.debugLine="Dim duration As Int = p.Width / WidthPerSecond *"; -_duration = (int) (_p.getWidth()/(double)__ref._widthpersecond /*int*/ *1000); -RDebugUtils.currentLine=64421892; - //BA.debugLineNum = 64421892;BA.debugLine="Sleep(StartPositionDelay)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "scrollinglabel", "startscrolling"),__ref._startpositiondelay /*int*/ ); + //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; ; -RDebugUtils.currentLine=64421893; - //BA.debugLineNum = 64421893;BA.debugLine="If myIndex <> taskIndex Then Return"; + //BA.debugLineNum = 106;BA.debugLine="If myIndex <> taskIndex Then Return"; if (true) break; case 1: //if this.state = 6; -if (_myindex!=__ref._taskindex /*int*/ ) { +if (_myindex!=parent._taskindex) { this.state = 3; ;}if (true) break; @@ -459,8 +321,7 @@ case 6: //C this.state = 7; ; -RDebugUtils.currentLine=64421894; - //BA.debugLineNum = 64421894;BA.debugLine="Do While True"; + //BA.debugLineNum = 107;BA.debugLine="Do While True"; if (true) break; case 7: @@ -475,26 +336,23 @@ if (true) break; case 9: //C this.state = 10; -RDebugUtils.currentLine=64421895; - //BA.debugLineNum = 64421895;BA.debugLine="p.SetLayoutAnimated(duration, -(p.Width - Origin"; + //BA.debugLineNum = 108;BA.debugLine="p.SetLayoutAnimated(duration, -(p.Width - Origin"; _p.SetLayoutAnimated(_duration,(int) (-(_p.getWidth()-_originalwidth)),_p.getTop(),_p.getWidth(),_p.getHeight()); -RDebugUtils.currentLine=64421896; - //BA.debugLineNum = 64421896;BA.debugLine="Sleep(duration)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "scrollinglabel", "startscrolling"),_duration); + //BA.debugLineNum = 109;BA.debugLine="Sleep(duration)"; +parent.__c.Sleep(ba,this,_duration); this.state = 24; return; case 24: //C this.state = 10; ; -RDebugUtils.currentLine=64421897; - //BA.debugLineNum = 64421897;BA.debugLine="If myIndex <> taskIndex Then Return"; + //BA.debugLineNum = 110;BA.debugLine="If myIndex <> taskIndex Then Return"; if (true) break; case 10: //if this.state = 15; -if (_myindex!=__ref._taskindex /*int*/ ) { +if (_myindex!=parent._taskindex) { this.state = 12; ;}if (true) break; @@ -508,23 +366,21 @@ case 15: //C this.state = 16; ; -RDebugUtils.currentLine=64421898; - //BA.debugLineNum = 64421898;BA.debugLine="Sleep(StartPositionDelay)"; -parent.__c.Sleep(ba,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "scrollinglabel", "startscrolling"),__ref._startpositiondelay /*int*/ ); + //BA.debugLineNum = 111;BA.debugLine="Sleep(StartPositionDelay)"; +parent.__c.Sleep(ba,this,parent._startpositiondelay); this.state = 25; return; case 25: //C this.state = 16; ; -RDebugUtils.currentLine=64421899; - //BA.debugLineNum = 64421899;BA.debugLine="If myIndex <> taskIndex Then Return"; + //BA.debugLineNum = 112;BA.debugLine="If myIndex <> taskIndex Then Return"; if (true) break; case 16: //if this.state = 21; -if (_myindex!=__ref._taskindex /*int*/ ) { +if (_myindex!=parent._taskindex) { this.state = 18; ;}if (true) break; @@ -538,8 +394,7 @@ case 21: //C this.state = 7; ; -RDebugUtils.currentLine=64421900; - //BA.debugLineNum = 64421900;BA.debugLine="p.SetLayoutAnimated(0, 0, p.Top, p.Width, p.Heig"; + //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; @@ -547,29 +402,22 @@ case 22: //C this.state = -1; ; -RDebugUtils.currentLine=64421902; - //BA.debugLineNum = 64421902;BA.debugLine="End Sub"; + //BA.debugLineNum = 115;BA.debugLine="End Sub"; if (true) break; } } } } -public String _settextcolor(reparto_izca.keymon.lat.scrollinglabel __ref,int _c) throws Exception{ -__ref = this; -RDebugUtils.currentModule="scrollinglabel"; -if (Debug.shouldDelegate(ba, "settextcolor", true)) - {return ((String) Debug.delegate(ba, "settextcolor", new Object[] {_c}));} -RDebugUtils.currentLine=64552960; - //BA.debugLineNum = 64552960;BA.debugLine="Public Sub setTextColor(c As Int)"; -RDebugUtils.currentLine=64552961; - //BA.debugLineNum = 64552961;BA.debugLine="mTextColor = c"; -__ref._mtextcolor /*int*/ = _c; -RDebugUtils.currentLine=64552962; - //BA.debugLineNum = 64552962;BA.debugLine="setText(mText)"; -__ref._settext /*String*/ (null,__ref._mtext /*String*/ ); -RDebugUtils.currentLine=64552963; - //BA.debugLineNum = 64552963;BA.debugLine="End Sub"; +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 ""; } -} \ No newline at end of file +public Object callSub(String sub, Object sender, Object[] args) throws Exception { +BA.senderHolder.set(sender); +return BA.SubDelegator.SubNotFound; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/starter.java b/B4A/Objects/src/reparto_izca/keymon/lat/starter.java index 8a52062..101d13c 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/starter.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/starter.java @@ -14,7 +14,7 @@ public class starter extends android.app.Service{ 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, anywheresoftware.b4a.ShellBA.class); + ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, true, BA.class); } } @@ -29,7 +29,7 @@ public class starter extends android.app.Service{ super.onCreate(); mostCurrent = this; if (processBA == null) { - processBA = new anywheresoftware.b4a.ShellBA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.starter"); + processBA = new BA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.starter"); if (BA.isShellModeRuntimeCheck(processBA)) { processBA.raiseEvent2(null, true, "SHELL", false); } @@ -127,8 +127,7 @@ public class starter extends android.app.Service{ @Override public android.os.IBinder onBind(android.content.Intent intent) { return null; - } -public anywheresoftware.b4a.keywords.Common __c = null; + }public anywheresoftware.b4a.keywords.Common __c = null; public static anywheresoftware.b4a.objects.RuntimePermissions _rp = null; public static uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper _flp = null; public static boolean _flpstarted = false; @@ -162,252 +161,203 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public static String _envia_ultima_gps() throws Exception{ -RDebugUtils.currentModule="starter"; -if (Debug.shouldDelegate(processBA, "envia_ultima_gps", false)) - {return ((String) Debug.delegate(processBA, "envia_ultima_gps", null));} -reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null; -RDebugUtils.currentLine=68681728; - //BA.debugLineNum = 68681728;BA.debugLine="Sub ENVIA_ULTIMA_GPS"; -RDebugUtils.currentLine=68681729; - //BA.debugLineNum = 68681729;BA.debugLine="If IsConnectedToInternet Then"; -if (_isconnectedtointernet()) { -RDebugUtils.currentLine=68681730; - //BA.debugLineNum = 68681730;BA.debugLine="Log(\"Con internet, enviamos UTR!\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("268681730","Con internet, enviamos UTR!",0); -RDebugUtils.currentLine=68681731; - //BA.debugLineNum = 68681731;BA.debugLine="Dim skmt As SQL"; -_skmt = new anywheresoftware.b4a.sql.SQL(); -RDebugUtils.currentLine=68681732; - //BA.debugLineNum = 68681732;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=68681733; - //BA.debugLineNum = 68681733;BA.debugLine="Dim reqManager As DBRequestManager"; -_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager(); -RDebugUtils.currentLine=68681734; - //BA.debugLineNum = 68681734;BA.debugLine="reqManager.Initialize(Me, server)"; -_reqmanager._initialize /*String*/ (null,processBA,starter.getObject(),_server); -RDebugUtils.currentLine=68681736; - //BA.debugLineNum = 68681736;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; -_skmt.Initialize(_ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True); -RDebugUtils.currentLine=68681738; - //BA.debugLineNum = 68681738;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; -_skmt.Initialize(_ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True); -RDebugUtils.currentLine=68681746; - //BA.debugLineNum = 68681746;BA.debugLine="If B4XPages.MainPage.logger Then LogColor(\"Inici"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("268681746","Iniciamos ENVIA_ULTIMA_GPS",anywheresoftware.b4a.keywords.Common.Colors.Red);}; -RDebugUtils.currentLine=68681747; - //BA.debugLineNum = 68681747;BA.debugLine="DateTime.TimeFormat = \"HHmmss\""; -anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat("HHmmss"); -RDebugUtils.currentLine=68681748; - //BA.debugLineNum = 68681748;BA.debugLine="B4XPages.MainPage.ultimaActualizacionGPS = DateT"; -mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._ultimaactualizaciongps /*String*/ = anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); -RDebugUtils.currentLine=68681749; - //BA.debugLineNum = 68681749;BA.debugLine="cmd.Initialize"; -_cmd.Initialize(); -RDebugUtils.currentLine=68681750; - //BA.debugLineNum = 68681750;BA.debugLine="cmd.Name = \"select_fechat\""; -_cmd.Name /*String*/ = "select_fechat"; -RDebugUtils.currentLine=68681751; - //BA.debugLineNum = 68681751;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"fechat\")"; -_reqmanager._executequery /*String*/ (null,_cmd,(int) (0),(Object)("fechat")); -RDebugUtils.currentLine=68681753; - //BA.debugLineNum = 68681753;BA.debugLine="Log(B4XPages.MainPage.montoActual&\" , \" &B4XPa"; -anywheresoftware.b4a.keywords.Common.LogImpl("268681753",mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoactual /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientestotal /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._visitadostotales /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._monto_entregadoactual /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._entregas /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._porvisitar /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rechazos /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ +" , "+BA.NumberToString(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._batt /*int*/ )+" , "+anywheresoftware.b4a.keywords.Common.Application.getVersionName()+" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._almacen /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rutapreventa /*String*/ ,0); -RDebugUtils.currentLine=68681754; - //BA.debugLineNum = 68681754;BA.debugLine="Dim cmd As DBCommand"; -_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); -RDebugUtils.currentLine=68681755; - //BA.debugLineNum = 68681755;BA.debugLine="cmd.Initialize"; -_cmd.Initialize(); -RDebugUtils.currentLine=68681756; - //BA.debugLineNum = 68681756;BA.debugLine="cmd.Name = \"UPDATE_IZCA_ACTUALR2_GPS\""; -_cmd.Name /*String*/ = "UPDATE_IZCA_ACTUALR2_GPS"; -RDebugUtils.currentLine=68681758; - //BA.debugLineNum = 68681758;BA.debugLine="cmd.Parameters = Array As Object(B4XPages.MainPa"; -_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoactual /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientestotal /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._visitadostotales /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._monto_entregadoactual /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._entregas /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._porvisitar /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rechazos /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._batt /*int*/ ),(Object)(anywheresoftware.b4a.keywords.Common.Application.getVersionName()),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._almacen /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rutapreventa /*String*/ )}; -RDebugUtils.currentLine=68681759; - //BA.debugLineNum = 68681759;BA.debugLine="If B4XPages.MainPage.logger Then Log($\"montoActu"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("268681759",("montoActual: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoactual /*String*/ ))+", cTotal: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientestotal /*String*/ ))+", cVenta: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientesventa /*String*/ ))+", cVisitados: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientesvisitados /*String*/ ))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ ))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ ))+", Batt: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._batt /*int*/ ))+", montoRechazado: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montorechazado /*String*/ ))+", montoEntregado: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoentregado /*String*/ ))+", porVisitar: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._porvisitar /*String*/ ))+", entregas: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._entregas /*String*/ ))+", rechazos: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rechazos /*String*/ ))+", Almacen: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._almacen /*String*/ ))+", Ruta: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rutapreventa /*String*/ ))+""),0);}; -RDebugUtils.currentLine=68681761; - //BA.debugLineNum = 68681761;BA.debugLine="reqManager.ExecuteCommand(cmd, \"inst_visitas\")"; -_reqmanager._executecommand /*String*/ (null,_cmd,(Object)("inst_visitas")); -RDebugUtils.currentLine=68681762; - //BA.debugLineNum = 68681762;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"})); -RDebugUtils.currentLine=68681765; - //BA.debugLineNum = 68681765;BA.debugLine="Timer1.Enabled = False"; -_timer1.setEnabled(anywheresoftware.b4a.keywords.Common.False); -RDebugUtils.currentLine=68681766; - //BA.debugLineNum = 68681766;BA.debugLine="Timer1.Interval = Interval * 1000"; -_timer1.setInterval((long) (_interval*1000)); -RDebugUtils.currentLine=68681767; - //BA.debugLineNum = 68681767;BA.debugLine="Timer1.Enabled = True"; -_timer1.setEnabled(anywheresoftware.b4a.keywords.Common.True); - }else { -RDebugUtils.currentLine=68681769; - //BA.debugLineNum = 68681769;BA.debugLine="Log(\"Sin conexión a internet, no se envió UTR!\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("268681769","Sin conexión a internet, no se envió UTR!",0); - }; -RDebugUtils.currentLine=68681771; - //BA.debugLineNum = 68681771;BA.debugLine="End Sub"; -return ""; -} public static boolean _application_error(anywheresoftware.b4a.objects.B4AException _error,String _stacktrace) throws Exception{ -RDebugUtils.currentModule="starter"; -if (Debug.shouldDelegate(processBA, "application_error", false)) - {return ((Boolean) Debug.delegate(processBA, "application_error", new Object[] {_error,_stacktrace}));} -RDebugUtils.currentLine=68485120; - //BA.debugLineNum = 68485120;BA.debugLine="Sub Application_Error (Error As Exception, StackTr"; -RDebugUtils.currentLine=68485121; - //BA.debugLineNum = 68485121;BA.debugLine="Return True"; + //BA.debugLineNum = 81;BA.debugLine="Sub Application_Error (Error As Exception, StackTr"; + //BA.debugLineNum = 82;BA.debugLine="Return True"; if (true) return anywheresoftware.b4a.keywords.Common.True; -RDebugUtils.currentLine=68485122; - //BA.debugLineNum = 68485122;BA.debugLine="End Sub"; + //BA.debugLineNum = 83;BA.debugLine="End Sub"; return false; } +public static String _envia_ultima_gps() throws Exception{ +reparto_izca.keymon.lat.dbrequestmanager._dbcommand _cmd = null; + //BA.debugLineNum = 95;BA.debugLine="Sub ENVIA_ULTIMA_GPS"; + //BA.debugLineNum = 96;BA.debugLine="If IsConnectedToInternet Then"; +if (_isconnectedtointernet()) { + //BA.debugLineNum = 97;BA.debugLine="Log(\"Con internet, enviamos UTR!\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("033292290","Con internet, enviamos UTR!",0); + //BA.debugLineNum = 98;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 99;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 100;BA.debugLine="Dim reqManager As DBRequestManager"; +_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager(); + //BA.debugLineNum = 101;BA.debugLine="reqManager.Initialize(Me, server)"; +_reqmanager._initialize /*String*/ (processBA,starter.getObject(),_server); + //BA.debugLineNum = 103;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; +_skmt.Initialize(_ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 105;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; +_skmt.Initialize(_ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 113;BA.debugLine="If B4XPages.MainPage.logger Then LogColor(\"Inici"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("033292306","Iniciamos ENVIA_ULTIMA_GPS",anywheresoftware.b4a.keywords.Common.Colors.Red);}; + //BA.debugLineNum = 114;BA.debugLine="DateTime.TimeFormat = \"HHmmss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 115;BA.debugLine="B4XPages.MainPage.ultimaActualizacionGPS = DateT"; +mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._ultimaactualizaciongps /*String*/ = anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 116;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 117;BA.debugLine="cmd.Name = \"select_fechat\""; +_cmd.Name /*String*/ = "select_fechat"; + //BA.debugLineNum = 118;BA.debugLine="reqManager.ExecuteQuery(cmd , 0, \"fechat\")"; +_reqmanager._executequery /*String*/ (_cmd,(int) (0),(Object)("fechat")); + //BA.debugLineNum = 120;BA.debugLine="Log(B4XPages.MainPage.montoActual&\" , \" &B4XPa"; +anywheresoftware.b4a.keywords.Common.LogImpl("033292313",mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoactual /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientestotal /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._visitadostotales /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._monto_entregadoactual /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._entregas /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._porvisitar /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rechazos /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ +" , "+BA.NumberToString(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._batt /*int*/ )+" , "+anywheresoftware.b4a.keywords.Common.Application.getVersionName()+" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._almacen /*String*/ +" , "+mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rutapreventa /*String*/ ,0); + //BA.debugLineNum = 121;BA.debugLine="Dim cmd As DBCommand"; +_cmd = new reparto_izca.keymon.lat.dbrequestmanager._dbcommand(); + //BA.debugLineNum = 122;BA.debugLine="cmd.Initialize"; +_cmd.Initialize(); + //BA.debugLineNum = 123;BA.debugLine="cmd.Name = \"UPDATE_IZCA_ACTUALR2_GPS\""; +_cmd.Name /*String*/ = "UPDATE_IZCA_ACTUALR2_GPS"; + //BA.debugLineNum = 125;BA.debugLine="cmd.Parameters = Array As Object(B4XPages.MainPa"; +_cmd.Parameters /*Object[]*/ = new Object[]{(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoactual /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientestotal /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._visitadostotales /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._monto_entregadoactual /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._entregas /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._porvisitar /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rechazos /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._batt /*int*/ ),(Object)(anywheresoftware.b4a.keywords.Common.Application.getVersionName()),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._almacen /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rutapreventa /*String*/ )}; + //BA.debugLineNum = 126;BA.debugLine="If B4XPages.MainPage.logger Then Log($\"montoActu"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("033292319",("montoActual: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoactual /*String*/ ))+", cTotal: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientestotal /*String*/ ))+", cVenta: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientesventa /*String*/ ))+", cVisitados: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._clientesvisitados /*String*/ ))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ ))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ ))+", Batt: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._batt /*int*/ ))+", montoRechazado: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montorechazado /*String*/ ))+", montoEntregado: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._montoentregado /*String*/ ))+", porVisitar: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._porvisitar /*String*/ ))+", entregas: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._entregas /*String*/ ))+", rechazos: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rechazos /*String*/ ))+", Almacen: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._almacen /*String*/ ))+", Ruta: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._rutapreventa /*String*/ ))+""),0);}; + //BA.debugLineNum = 128;BA.debugLine="reqManager.ExecuteCommand(cmd, \"inst_visitas\")"; +_reqmanager._executecommand /*String*/ (_cmd,(Object)("inst_visitas")); + //BA.debugLineNum = 129;BA.debugLine="skmt.ExecNonQuery2(\"Update cat_variables set CAT"; +_skmt.ExecNonQuery2("Update cat_variables set CAT_VA_VALOR = ? WHERE CAT_VA_DESCRIPCION = ?",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow()),"HoraIngreso"})); + //BA.debugLineNum = 132;BA.debugLine="Timer1.Enabled = False"; +_timer1.setEnabled(anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 133;BA.debugLine="Timer1.Interval = Interval * 1000"; +_timer1.setInterval((long) (_interval*1000)); + //BA.debugLineNum = 134;BA.debugLine="Timer1.Enabled = True"; +_timer1.setEnabled(anywheresoftware.b4a.keywords.Common.True); + }else { + //BA.debugLineNum = 136;BA.debugLine="Log(\"Sin conexión a internet, no se envió UTR!\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("033292329","Sin conexión a internet, no se envió UTR!",0); + }; + //BA.debugLineNum = 138;BA.debugLine="End Sub"; +return ""; +} public static boolean _isconnectedtointernet() throws Exception{ -RDebugUtils.currentModule="starter"; -if (Debug.shouldDelegate(processBA, "isconnectedtointernet", false)) - {return ((Boolean) Debug.delegate(processBA, "isconnectedtointernet", null));} anywheresoftware.b4a.agraham.reflection.Reflection _r = null; -RDebugUtils.currentLine=68747264; - //BA.debugLineNum = 68747264;BA.debugLine="Sub IsConnectedToInternet As Boolean 'ignore"; -RDebugUtils.currentLine=68747265; - //BA.debugLineNum = 68747265;BA.debugLine="Dim r As Reflector"; + //BA.debugLineNum = 145;BA.debugLine="Sub IsConnectedToInternet As Boolean 'ignore"; + //BA.debugLineNum = 146;BA.debugLine="Dim r As Reflector"; _r = new anywheresoftware.b4a.agraham.reflection.Reflection(); -RDebugUtils.currentLine=68747266; - //BA.debugLineNum = 68747266;BA.debugLine="r.Target = r.GetContext"; + //BA.debugLineNum = 147;BA.debugLine="r.Target = r.GetContext"; _r.Target = (Object)(_r.GetContext(processBA)); -RDebugUtils.currentLine=68747267; - //BA.debugLineNum = 68747267;BA.debugLine="r.Target = r.RunMethod2(\"getSystemService\", \"conn"; + //BA.debugLineNum = 148;BA.debugLine="r.Target = r.RunMethod2(\"getSystemService\", \"conn"; _r.Target = _r.RunMethod2("getSystemService","connectivity","java.lang.String"); -RDebugUtils.currentLine=68747268; - //BA.debugLineNum = 68747268;BA.debugLine="r.Target = r.RunMethod(\"getActiveNetworkInfo\")"; + //BA.debugLineNum = 149;BA.debugLine="r.Target = r.RunMethod(\"getActiveNetworkInfo\")"; _r.Target = _r.RunMethod("getActiveNetworkInfo"); -RDebugUtils.currentLine=68747269; - //BA.debugLineNum = 68747269;BA.debugLine="If r.Target <> Null Then"; + //BA.debugLineNum = 150;BA.debugLine="If r.Target <> Null Then"; if (_r.Target!= null) { -RDebugUtils.currentLine=68747270; - //BA.debugLineNum = 68747270;BA.debugLine="Return r.RunMethod(\"isConnectedOrConnecting\")"; + //BA.debugLineNum = 151;BA.debugLine="Return r.RunMethod(\"isConnectedOrConnecting\")"; if (true) return BA.ObjectToBoolean(_r.RunMethod("isConnectedOrConnecting")); }; -RDebugUtils.currentLine=68747272; - //BA.debugLineNum = 68747272;BA.debugLine="Return False"; + //BA.debugLineNum = 153;BA.debugLine="Return False"; if (true) return anywheresoftware.b4a.keywords.Common.False; -RDebugUtils.currentLine=68747273; - //BA.debugLineNum = 68747273;BA.debugLine="End Sub"; + //BA.debugLineNum = 154;BA.debugLine="End Sub"; return false; } public static String _jobdone(reparto_izca.keymon.lat.httpjob _job) throws Exception{ -RDebugUtils.currentModule="starter"; -if (Debug.shouldDelegate(processBA, "jobdone", false)) - {return ((String) Debug.delegate(processBA, "jobdone", new Object[] {_job}));} -RDebugUtils.currentLine=68812800; - //BA.debugLineNum = 68812800;BA.debugLine="Sub JobDone(Job As HttpJob)"; -RDebugUtils.currentLine=68812804; - //BA.debugLineNum = 68812804;BA.debugLine="If Job.Success = False Then"; + //BA.debugLineNum = 156;BA.debugLine="Sub JobDone(Job As HttpJob)"; + //BA.debugLineNum = 160;BA.debugLine="If Job.Success = False Then"; if (_job._success /*boolean*/ ==anywheresoftware.b4a.keywords.Common.False) { -RDebugUtils.currentLine=68812806; - //BA.debugLineNum = 68812806;BA.debugLine="If Job.ErrorMessage.Contains(\"failed to connect\""; + //BA.debugLineNum = 162;BA.debugLine="If Job.ErrorMessage.Contains(\"failed to connect\""; if (_job._errormessage /*String*/ .contains("failed to connect") || _job._errormessage /*String*/ .contains("Failed to connect")) { -RDebugUtils.currentLine=68812807; - //BA.debugLineNum = 68812807;BA.debugLine="ToastMessageShow(\"!Hubo un error contactando al"; + //BA.debugLineNum = 163;BA.debugLine="ToastMessageShow(\"!Hubo un error contactando al"; anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("!Hubo un error contactando al servidor, por favor revise su conexión!"),anywheresoftware.b4a.keywords.Common.True); }; }else { }; -RDebugUtils.currentLine=68812813; - //BA.debugLineNum = 68812813;BA.debugLine="End Sub"; + //BA.debugLineNum = 169;BA.debugLine="End Sub"; +return ""; +} +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 6;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 9;BA.debugLine="Public rp As RuntimePermissions"; +_rp = new anywheresoftware.b4a.objects.RuntimePermissions(); + //BA.debugLineNum = 10;BA.debugLine="Public FLP As FusedLocationProvider"; +_flp = new uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper(); + //BA.debugLineNum = 11;BA.debugLine="Private flpStarted As Boolean"; +_flpstarted = false; + //BA.debugLineNum = 12;BA.debugLine="Dim skmt As SQL"; +_skmt = new anywheresoftware.b4a.sql.SQL(); + //BA.debugLineNum = 13;BA.debugLine="Dim ruta As String"; +_ruta = ""; + //BA.debugLineNum = 14;BA.debugLine="Private BTAdmin As BluetoothAdmin"; +_btadmin = new anywheresoftware.b4a.objects.Serial.BluetoothAdmin(); + //BA.debugLineNum = 15;BA.debugLine="Public BluetoothState As Boolean"; +_bluetoothstate = false; + //BA.debugLineNum = 16;BA.debugLine="Dim Timer1 As Timer"; +_timer1 = new anywheresoftware.b4a.objects.Timer(); + //BA.debugLineNum = 17;BA.debugLine="Dim Interval As Int = 300"; +_interval = (int) (300); + //BA.debugLineNum = 21;BA.debugLine="Dim trackerActividad As String = \"501231235959\""; +_trackeractividad = "501231235959"; + //BA.debugLineNum = 22;BA.debugLine="Dim pushServiceActividad As String = \"50123123595"; +_pushserviceactividad = "501231235959"; + //BA.debugLineNum = 24;BA.debugLine="Dim MAC_IMPRESORA As String"; +_mac_impresora = ""; + //BA.debugLineNum = 25;BA.debugLine="Private logs As StringBuilder"; +_logs = new anywheresoftware.b4a.keywords.StringBuilderWrapper(); + //BA.debugLineNum = 26;BA.debugLine="Private logcat As LogCat"; +_logcat = new anywheresoftware.b4a.phone.Phone.LogCat(); + //BA.debugLineNum = 27;BA.debugLine="Public SharedFolder As String 'Para actualizar ap"; +_sharedfolder = ""; + //BA.debugLineNum = 28;BA.debugLine="Dim cedisLocation As Location"; +_cedislocation = new anywheresoftware.b4a.gps.LocationWrapper(); + //BA.debugLineNum = 29;BA.debugLine="Dim reqManager As DBRequestManager"; +_reqmanager = new reparto_izca.keymon.lat.dbrequestmanager(); + //BA.debugLineNum = 30;BA.debugLine="Dim server As String = \"http://keymon.net:1781\""; +_server = "http://keymon.net:1781"; + //BA.debugLineNum = 34;BA.debugLine="Dim muestraProgreso = 0"; +_muestraprogreso = BA.NumberToString(0); + //BA.debugLineNum = 35;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 36;BA.debugLine="End Sub"; return ""; } public static String _service_create() throws Exception{ -RDebugUtils.currentModule="starter"; -if (Debug.shouldDelegate(processBA, "service_create", false)) - {return ((String) Debug.delegate(processBA, "service_create", null));} -RDebugUtils.currentLine=68288512; - //BA.debugLineNum = 68288512;BA.debugLine="Sub Service_Create"; -RDebugUtils.currentLine=68288515; - //BA.debugLineNum = 68288515;BA.debugLine="ruta = File.DirInternal 'Ruta de la base de datos"; + //BA.debugLineNum = 38;BA.debugLine="Sub Service_Create"; + //BA.debugLineNum = 41;BA.debugLine="ruta = File.DirInternal 'Ruta de la base de datos"; _ruta = anywheresoftware.b4a.keywords.Common.File.getDirInternal(); -RDebugUtils.currentLine=68288517; - //BA.debugLineNum = 68288517;BA.debugLine="If Not(File.Exists(ruta, \"kmt.db\")) Then File.Cop"; + //BA.debugLineNum = 43;BA.debugLine="If Not(File.Exists(ruta, \"kmt.db\")) Then File.Cop"; if (anywheresoftware.b4a.keywords.Common.Not(anywheresoftware.b4a.keywords.Common.File.Exists(_ruta,"kmt.db"))) { anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"kmt.db",_ruta,"kmt.db");}; -RDebugUtils.currentLine=68288518; - //BA.debugLineNum = 68288518;BA.debugLine="Log(ruta)"; -anywheresoftware.b4a.keywords.Common.LogImpl("268288518",_ruta,0); -RDebugUtils.currentLine=68288519; - //BA.debugLineNum = 68288519;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; + //BA.debugLineNum = 44;BA.debugLine="Log(ruta)"; +anywheresoftware.b4a.keywords.Common.LogImpl("032899078",_ruta,0); + //BA.debugLineNum = 45;BA.debugLine="skmt.Initialize(ruta,\"kmt.db\", True)"; _skmt.Initialize(_ruta,"kmt.db",anywheresoftware.b4a.keywords.Common.True); -RDebugUtils.currentLine=68288533; - //BA.debugLineNum = 68288533;BA.debugLine="Timer1.Initialize(\"Timer1\", Interval * 1000)"; + //BA.debugLineNum = 59;BA.debugLine="Timer1.Initialize(\"Timer1\", Interval * 1000)"; _timer1.Initialize(processBA,"Timer1",(long) (_interval*1000)); -RDebugUtils.currentLine=68288534; - //BA.debugLineNum = 68288534;BA.debugLine="Timer1.Enabled = True"; + //BA.debugLineNum = 60;BA.debugLine="Timer1.Enabled = True"; _timer1.setEnabled(anywheresoftware.b4a.keywords.Common.True); -RDebugUtils.currentLine=68288535; - //BA.debugLineNum = 68288535;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"\")"; + //BA.debugLineNum = 61;BA.debugLine="SharedFolder = rp.GetSafeDirDefaultExternal(\"\")"; _sharedfolder = _rp.GetSafeDirDefaultExternal(""); -RDebugUtils.currentLine=68288536; - //BA.debugLineNum = 68288536;BA.debugLine="cedisLocation.Initialize"; + //BA.debugLineNum = 62;BA.debugLine="cedisLocation.Initialize"; _cedislocation.Initialize(); -RDebugUtils.currentLine=68288539; - //BA.debugLineNum = 68288539;BA.debugLine="cedisLocation.Latitude = \"0\""; + //BA.debugLineNum = 65;BA.debugLine="cedisLocation.Latitude = \"0\""; _cedislocation.setLatitude((double)(Double.parseDouble("0"))); -RDebugUtils.currentLine=68288540; - //BA.debugLineNum = 68288540;BA.debugLine="cedisLocation.Longitude = \"0\""; + //BA.debugLineNum = 66;BA.debugLine="cedisLocation.Longitude = \"0\""; _cedislocation.setLongitude((double)(Double.parseDouble("0"))); -RDebugUtils.currentLine=68288541; - //BA.debugLineNum = 68288541;BA.debugLine="End Sub"; + //BA.debugLineNum = 67;BA.debugLine="End Sub"; return ""; } public static String _service_destroy() throws Exception{ -RDebugUtils.currentModule="starter"; -if (Debug.shouldDelegate(processBA, "service_destroy", false)) - {return ((String) Debug.delegate(processBA, "service_destroy", null));} -RDebugUtils.currentLine=68550656; - //BA.debugLineNum = 68550656;BA.debugLine="Sub Service_Destroy"; -RDebugUtils.currentLine=68550658; - //BA.debugLineNum = 68550658;BA.debugLine="End Sub"; + //BA.debugLineNum = 85;BA.debugLine="Sub Service_Destroy"; + //BA.debugLineNum = 87;BA.debugLine="End Sub"; return ""; } public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{ -RDebugUtils.currentModule="starter"; -if (Debug.shouldDelegate(processBA, "service_start", false)) - {return ((String) Debug.delegate(processBA, "service_start", new Object[] {_startingintent}));} -RDebugUtils.currentLine=68354048; - //BA.debugLineNum = 68354048;BA.debugLine="Sub Service_Start (StartingIntent As Intent)"; -RDebugUtils.currentLine=68354049; - //BA.debugLineNum = 68354049;BA.debugLine="Service.StopAutomaticForeground 'Starter service"; + //BA.debugLineNum = 69;BA.debugLine="Sub Service_Start (StartingIntent As Intent)"; + //BA.debugLineNum = 70;BA.debugLine="Service.StopAutomaticForeground 'Starter service"; mostCurrent._service.StopAutomaticForeground(); -RDebugUtils.currentLine=68354053; - //BA.debugLineNum = 68354053;BA.debugLine="End Sub"; + //BA.debugLineNum = 74;BA.debugLine="End Sub"; return ""; } public static String _service_taskremoved() throws Exception{ -RDebugUtils.currentModule="starter"; -if (Debug.shouldDelegate(processBA, "service_taskremoved", false)) - {return ((String) Debug.delegate(processBA, "service_taskremoved", null));} -RDebugUtils.currentLine=68419584; - //BA.debugLineNum = 68419584;BA.debugLine="Sub Service_TaskRemoved"; -RDebugUtils.currentLine=68419586; - //BA.debugLineNum = 68419586;BA.debugLine="End Sub"; + //BA.debugLineNum = 76;BA.debugLine="Sub Service_TaskRemoved"; + //BA.debugLineNum = 78;BA.debugLine="End Sub"; return ""; } public static String _timer1_tick() throws Exception{ -RDebugUtils.currentModule="starter"; -if (Debug.shouldDelegate(processBA, "timer1_tick", false)) - {return ((String) Debug.delegate(processBA, "timer1_tick", null));} -RDebugUtils.currentLine=68616192; - //BA.debugLineNum = 68616192;BA.debugLine="Private Sub Timer1_Tick"; -RDebugUtils.currentLine=68616195; - //BA.debugLineNum = 68616195;BA.debugLine="ENVIA_ULTIMA_GPS"; + //BA.debugLineNum = 89;BA.debugLine="Private Sub Timer1_Tick"; + //BA.debugLineNum = 92;BA.debugLine="ENVIA_ULTIMA_GPS"; _envia_ultima_gps(); -RDebugUtils.currentLine=68616196; - //BA.debugLineNum = 68616196;BA.debugLine="End Sub"; + //BA.debugLineNum = 93;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/subs.java b/B4A/Objects/src/reparto_izca/keymon/lat/subs.java index adf0012..83dda75 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/subs.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/subs.java @@ -10,8 +10,7 @@ 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 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; @@ -34,912 +33,1317 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public static String _panelvisible(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.PanelWrapper _panel,int _top,int _left) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "panelvisible", false)) - {return ((String) Debug.delegate(null, "panelvisible", new Object[] {_ba,_panel,_top,_left}));} -RDebugUtils.currentLine=71237632; - //BA.debugLineNum = 71237632;BA.debugLine="Sub panelVisible(panel As Panel, top As Int, left"; -RDebugUtils.currentLine=71237633; - //BA.debugLineNum = 71237633;BA.debugLine="panel.BringToFront"; -_panel.BringToFront(); -RDebugUtils.currentLine=71237634; - //BA.debugLineNum = 71237634;BA.debugLine="panel.Visible = True"; -_panel.setVisible(anywheresoftware.b4a.keywords.Common.True); -RDebugUtils.currentLine=71237635; - //BA.debugLineNum = 71237635;BA.debugLine="panel.Top = top"; -_panel.setTop(_top); -RDebugUtils.currentLine=71237636; - //BA.debugLineNum = 71237636;BA.debugLine="panel.Left = left"; -_panel.setLeft(_left); -RDebugUtils.currentLine=71237637; - //BA.debugLineNum = 71237637;BA.debugLine="End Sub"; -return ""; -} -public static String _centrapanel(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.PanelWrapper _elemento,int _anchoelementosuperior) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "centrapanel", false)) - {return ((String) Debug.delegate(null, "centrapanel", new Object[] {_ba,_elemento,_anchoelementosuperior}));} -RDebugUtils.currentLine=71565312; - //BA.debugLineNum = 71565312;BA.debugLine="Sub centraPanel(elemento As Panel, anchoElementoSu"; -RDebugUtils.currentLine=71565313; - //BA.debugLineNum = 71565313;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e"; -_elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2))); -RDebugUtils.currentLine=71565314; - //BA.debugLineNum = 71565314;BA.debugLine="End Sub"; -return ""; -} public static String _agregacolumna(anywheresoftware.b4a.BA _ba,String _tabla,String _columna,String _tipo) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "agregacolumna", false)) - {return ((String) Debug.delegate(null, "agregacolumna", new Object[] {_ba,_tabla,_columna,_tipo}));} anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; -RDebugUtils.currentLine=72941568; - //BA.debugLineNum = 72941568;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri"; -RDebugUtils.currentLine=72941569; - //BA.debugLineNum = 72941569;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev"; -try {RDebugUtils.currentLine=72941570; - //BA.debugLineNum = 72941570;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery($\"S"; + //BA.debugLineNum = 966;BA.debugLine="Sub agregaColumna(tabla As String, columna As Stri"; + //BA.debugLineNum = 967;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev"; +try { //BA.debugLineNum = 968;BA.debugLine="Private c As Cursor = Starter.skmt.ExecQuery($\"S"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("SELECT COUNT(*) AS fCol FROM pragma_table_info('"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+"') WHERE name='"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+"'")))); -RDebugUtils.currentLine=72941571; - //BA.debugLineNum = 72941571;BA.debugLine="c.Position = 0"; + //BA.debugLineNum = 969;BA.debugLine="c.Position = 0"; _c.setPosition((int) (0)); -RDebugUtils.currentLine=72941572; - //BA.debugLineNum = 72941572;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c"; + //BA.debugLineNum = 970;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c"; if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=72941573; - //BA.debugLineNum = 72941573;BA.debugLine="Starter.skmt.ExecNonQuery($\"ALTER TABLE ${tabla"; + //BA.debugLineNum = 971;BA.debugLine="Starter.skmt.ExecNonQuery($\"ALTER TABLE ${tabla"; mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+" "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipo))+"")); -RDebugUtils.currentLine=72941574; - //BA.debugLineNum = 72941574;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a"; -anywheresoftware.b4a.keywords.Common.LogImpl("272941574",("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); + //BA.debugLineNum = 972;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a"; +anywheresoftware.b4a.keywords.Common.LogImpl("037552134",("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);RDebugUtils.currentLine=72941577; - //BA.debugLineNum = 72941577;BA.debugLine="Try"; -try {RDebugUtils.currentLine=72941578; - //BA.debugLineNum = 72941578;BA.debugLine="Starter.skmt.ExecNonQuery($\"ALTER TABLE ${tabla"; + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e9); //BA.debugLineNum = 975;BA.debugLine="Try"; +try { //BA.debugLineNum = 976;BA.debugLine="Starter.skmt.ExecNonQuery($\"ALTER TABLE ${tabla"; mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("ALTER TABLE "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tabla))+" ADD COLUMN "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_columna))+" "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_tipo))+"")); -RDebugUtils.currentLine=72941579; - //BA.debugLineNum = 72941579;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a"; -anywheresoftware.b4a.keywords.Common.LogImpl("272941579",("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); + //BA.debugLineNum = 977;BA.debugLine="Log($\"Columna \"${columna} ${tipo}\", agregada a"; +anywheresoftware.b4a.keywords.Common.LogImpl("037552139",("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);RDebugUtils.currentLine=72941581; - //BA.debugLineNum = 72941581;BA.debugLine="Log(LastException)"; -anywheresoftware.b4a.keywords.Common.LogImpl("272941581",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e13); //BA.debugLineNum = 979;BA.debugLine="Log(LastException)"; +anywheresoftware.b4a.keywords.Common.LogImpl("037552141",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); }; }; -RDebugUtils.currentLine=72941584; - //BA.debugLineNum = 72941584;BA.debugLine="End Sub"; + //BA.debugLineNum = 982;BA.debugLine="End Sub"; +return ""; +} +public static String _borraarribade100errores(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 441;BA.debugLine="Sub borraArribaDe100Errores 'ignore"; + //BA.debugLineNum = 442;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD"; +if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) { +_revisabd(_ba);}; + //BA.debugLineNum = 443;BA.debugLine="LogColor(\"Recortamos la tabla de Errores, limite"; +anywheresoftware.b4a.keywords.Common.LogImpl("035389442","Recortamos la tabla de Errores, limite de 100",anywheresoftware.b4a.keywords.Common.Colors.Magenta); + //BA.debugLineNum = 444;BA.debugLine="errorLog.ExecNonQuery(\"DELETE FROM errores WHERE"; +_errorlog.ExecNonQuery("DELETE FROM errores WHERE fecha NOT in (SELECT fecha FROM errores ORDER BY fecha desc LIMIT 99 )"); + //BA.debugLineNum = 445;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")"; +_errorlog.ExecNonQuery("vacuum;"); + //BA.debugLineNum = 447;BA.debugLine="End Sub"; +return ""; +} +public static String _borraarribade600renglonesbitacora(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 450;BA.debugLine="Sub borraArribaDe600RenglonesBitacora 'ignore"; + //BA.debugLineNum = 451;BA.debugLine="revisaBD"; +_revisabd(_ba); + //BA.debugLineNum = 452;BA.debugLine="LogColor(\"Recortamos la tabla de la Bitacora, lim"; +anywheresoftware.b4a.keywords.Common.LogImpl("035454978","Recortamos la tabla de la Bitacora, limite de 600",anywheresoftware.b4a.keywords.Common.Colors.Magenta); + //BA.debugLineNum = 453;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 454;BA.debugLine="c = kmt.ExecQuery(\"select fecha from bitacora\")"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("select fecha from bitacora"))); + //BA.debugLineNum = 455;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 456;BA.debugLine="If c.RowCount > 650 Then"; +if (_c.getRowCount()>650) { + //BA.debugLineNum = 457;BA.debugLine="kmt.ExecNonQuery(\"DELETE FROM bitacora WHERE fec"; +_kmt.ExecNonQuery("DELETE FROM bitacora WHERE fecha NOT in (SELECT fecha FROM bitacora ORDER BY fecha desc LIMIT 599 )"); + //BA.debugLineNum = 458;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")"; +_kmt.ExecNonQuery("vacuum;"); + }; + //BA.debugLineNum = 461;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 462;BA.debugLine="End Sub"; +return ""; +} +public static String _borralogdb(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 329;BA.debugLine="Sub borraLogDB 'ignore"; + //BA.debugLineNum = 330;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)"; +anywheresoftware.b4a.keywords.Common.LogImpl("035061761","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta); + //BA.debugLineNum = 331;BA.debugLine="kmt.ExecNonQuery(\"delete from bitacora\")"; +_kmt.ExecNonQuery("delete from bitacora"); + //BA.debugLineNum = 332;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")"; +_kmt.ExecNonQuery("vacuum;"); + //BA.debugLineNum = 333;BA.debugLine="End Sub"; +return ""; +} +public static String _borramosarchivogps(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; +String _s = ""; +byte[] _t = null; + //BA.debugLineNum = 186;BA.debugLine="Sub borramosArchivoGPS 'ignore"; + //BA.debugLineNum = 187;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); +_out = anywheresoftware.b4a.keywords.Common.File.OpenOutput(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"gps.txt",anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 188;BA.debugLine="Dim s As String = \"\""; +_s = ""; + //BA.debugLineNum = 189;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")"; +_t = _s.getBytes("UTF-8"); + //BA.debugLineNum = 190;BA.debugLine="out.WriteBytes(t, 0, t.Length)"; +_out.WriteBytes(_t,(int) (0),_t.length); + //BA.debugLineNum = 191;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 192;BA.debugLine="End Sub"; return ""; } public static String _centraboton(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ButtonWrapper _elemento,int _anchoelementosuperior) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "centraboton", false)) - {return ((String) Debug.delegate(null, "centraboton", new Object[] {_ba,_elemento,_anchoelementosuperior}));} -RDebugUtils.currentLine=71696384; - //BA.debugLineNum = 71696384;BA.debugLine="Sub centraBoton(elemento As Button, anchoElementoS"; -RDebugUtils.currentLine=71696385; - //BA.debugLineNum = 71696385;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e"; + //BA.debugLineNum = 619;BA.debugLine="Sub centraBoton(elemento As Button, anchoElementoS"; + //BA.debugLineNum = 620;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e"; _elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2))); -RDebugUtils.currentLine=71696386; - //BA.debugLineNum = 71696386;BA.debugLine="End Sub"; + //BA.debugLineNum = 621;BA.debugLine="End Sub"; +return ""; +} +public static String _centraetiqueta(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.LabelWrapper _elemento,int _anchoelementosuperior) throws Exception{ + //BA.debugLineNum = 614;BA.debugLine="Sub centraEtiqueta(elemento As Label, anchoElement"; + //BA.debugLineNum = 615;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e"; +_elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2))); + //BA.debugLineNum = 616;BA.debugLine="End Sub"; +return ""; +} +public static String _centralistview(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ListViewWrapper _elemento,int _anchoelementosuperior) throws Exception{ + //BA.debugLineNum = 604;BA.debugLine="Sub centraListView(elemento As ListView, anchoElem"; + //BA.debugLineNum = 605;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e"; +_elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2))); + //BA.debugLineNum = 606;BA.debugLine="End Sub"; +return ""; +} +public static String _centrapanel(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.PanelWrapper _elemento,int _anchoelementosuperior) throws Exception{ + //BA.debugLineNum = 609;BA.debugLine="Sub centraPanel(elemento As Panel, anchoElementoSu"; + //BA.debugLineNum = 610;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e"; +_elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2))); + //BA.debugLineNum = 611;BA.debugLine="End Sub"; +return ""; +} +public static String _compress(anywheresoftware.b4a.BA _ba,String _str) throws Exception{ +byte[] _compressed = null; +String _base64 = ""; + //BA.debugLineNum = 39;BA.debugLine="Sub compress(str As String) As String 'ignore"; + //BA.debugLineNum = 41;BA.debugLine="Dim compressed() As Byte = GZip.compress(str)"; +_compressed = _gzip.compress(_str); + //BA.debugLineNum = 44;BA.debugLine="Dim base64 As String = su.EncodeBase64(compressed"; +_base64 = _su.EncodeBase64(_compressed); + //BA.debugLineNum = 45;BA.debugLine="Log($\"Comprimido: ${base64.Length}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("033619974",("Comprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0); + //BA.debugLineNum = 47;BA.debugLine="Return base64"; +if (true) return _base64; + //BA.debugLineNum = 48;BA.debugLine="End Sub"; +return ""; +} +public static String _copiadb(anywheresoftware.b4a.BA _ba,boolean _result) throws Exception{ +String _p = ""; +String _thedir = ""; + //BA.debugLineNum = 538;BA.debugLine="Sub copiaDB(result As Boolean) 'ignore"; + //BA.debugLineNum = 539;BA.debugLine="If result Then"; +if (_result) { + //BA.debugLineNum = 540;BA.debugLine="Dim p As String"; +_p = ""; + //BA.debugLineNum = 541;BA.debugLine="If File.ExternalWritable Then"; +if (anywheresoftware.b4a.keywords.Common.File.getExternalWritable()) { + //BA.debugLineNum = 542;BA.debugLine="p = File.DirInternal"; +_p = anywheresoftware.b4a.keywords.Common.File.getDirInternal(); + }else { + //BA.debugLineNum = 545;BA.debugLine="p = File.DirInternal"; +_p = anywheresoftware.b4a.keywords.Common.File.getDirInternal(); + }; + //BA.debugLineNum = 548;BA.debugLine="Dim theDir As String"; +_thedir = ""; + //BA.debugLineNum = 549;BA.debugLine="Try"; +try { //BA.debugLineNum = 550;BA.debugLine="File.MakeDir(File.DirInternal,\"kmts\")"; +anywheresoftware.b4a.keywords.Common.File.MakeDir(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmts"); + //BA.debugLineNum = 551;BA.debugLine="theDir = \"/kmts\""; +_thedir = "/kmts"; + } + catch (Exception e13) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e13); //BA.debugLineNum = 553;BA.debugLine="theDir = \"\""; +_thedir = ""; + }; + //BA.debugLineNum = 555;BA.debugLine="Try"; +try { //BA.debugLineNum = 556;BA.debugLine="File.Copy(File.DirInternal,\"kmt.db\",File.DirInt"; +anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmt.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal()+_thedir,"guna_rep_kmt.db"); + //BA.debugLineNum = 557;BA.debugLine="ToastMessageShow(\"BD copiada!\", False)"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("BD copiada!"),anywheresoftware.b4a.keywords.Common.False); + } + catch (Exception e19) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e19); //BA.debugLineNum = 559;BA.debugLine="ToastMessageShow(\"No se pudo hacer la copia: \"&"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("No se pudo hacer la copia: "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba))),anywheresoftware.b4a.keywords.Common.True); + }; + //BA.debugLineNum = 561;BA.debugLine="Log(\"rootExternal=\"&p)"; +anywheresoftware.b4a.keywords.Common.LogImpl("035782679","rootExternal="+_p,0); + //BA.debugLineNum = 562;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)"; +anywheresoftware.b4a.keywords.Common.LogImpl("035782680","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0); + //BA.debugLineNum = 563;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)"; +anywheresoftware.b4a.keywords.Common.LogImpl("035782681","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0); + }else { + //BA.debugLineNum = 565;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos"),anywheresoftware.b4a.keywords.Common.False); + }; + //BA.debugLineNum = 567;BA.debugLine="End Sub"; +return ""; +} +public static anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _createbitmapwithnumber(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _originalbitmap,int _number) throws Exception{ +anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _newbitmap = null; +anywheresoftware.b4a.objects.drawable.CanvasWrapper _canvas = null; +anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper _destrect = null; + //BA.debugLineNum = 1058;BA.debugLine="Sub CreateBitmapWithNumber(OriginalBitmap As Bitma"; + //BA.debugLineNum = 1059;BA.debugLine="Dim NewBitmap As Bitmap"; +_newbitmap = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); + //BA.debugLineNum = 1060;BA.debugLine="NewBitmap.InitializeMutable(OriginalBitmap.Width,"; +_newbitmap.InitializeMutable(_originalbitmap.getWidth(),_originalbitmap.getHeight()); + //BA.debugLineNum = 1062;BA.debugLine="Dim Canvas As Canvas"; +_canvas = new anywheresoftware.b4a.objects.drawable.CanvasWrapper(); + //BA.debugLineNum = 1063;BA.debugLine="Canvas.Initialize2(NewBitmap)"; +_canvas.Initialize2((android.graphics.Bitmap)(_newbitmap.getObject())); + //BA.debugLineNum = 1066;BA.debugLine="Dim DestRect As Rect"; +_destrect = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper(); + //BA.debugLineNum = 1067;BA.debugLine="DestRect.Initialize(0, 0, OriginalBitmap.Width, O"; +_destrect.Initialize((int) (0),(int) (0),_originalbitmap.getWidth(),_originalbitmap.getHeight()); + //BA.debugLineNum = 1070;BA.debugLine="Canvas.DrawBitmap(OriginalBitmap, Null, DestRect)"; +_canvas.DrawBitmap((android.graphics.Bitmap)(_originalbitmap.getObject()),(android.graphics.Rect)(anywheresoftware.b4a.keywords.Common.Null),(android.graphics.Rect)(_destrect.getObject())); + //BA.debugLineNum = 1073;BA.debugLine="Canvas.DrawText(Number, (OriginalBitmap.Width / 2"; +_canvas.DrawText(_ba,BA.NumberToString(_number),(float) ((_originalbitmap.getWidth()/(double)2)),(float) ((_originalbitmap.getHeight()/(double)2.4)),anywheresoftware.b4a.keywords.Common.Typeface.DEFAULT,(float) (20),anywheresoftware.b4a.keywords.Common.Colors.White,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER")); + //BA.debugLineNum = 1075;BA.debugLine="Return NewBitmap"; +if (true) return _newbitmap; + //BA.debugLineNum = 1076;BA.debugLine="End Sub"; +return null; +} +public static String _dameerroresjson(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.sql.SQL _sql,int _maxerrores,boolean _comprimido) throws Exception{ +anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator _j = null; +String _lim = ""; +anywheresoftware.b4a.sql.SQL.ResultSetWrapper _cur = null; +anywheresoftware.b4a.objects.collections.List _l = null; +int _i = 0; +anywheresoftware.b4a.objects.collections.Map _m = null; +anywheresoftware.b4a.objects.collections.Map _m2 = null; + //BA.debugLineNum = 475;BA.debugLine="Sub dameErroresJSON(SQL As SQL, maxErrores As Int,"; + //BA.debugLineNum = 476;BA.debugLine="Log(\"dameErroresJSON\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("035586049","dameErroresJSON",0); + //BA.debugLineNum = 477;BA.debugLine="Private j As JSONGenerator"; +_j = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator(); + //BA.debugLineNum = 478;BA.debugLine="Private lim As String"; +_lim = ""; + //BA.debugLineNum = 479;BA.debugLine="Private cur As ResultSet"; +_cur = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); + //BA.debugLineNum = 480;BA.debugLine="Private l As List"; +_l = new anywheresoftware.b4a.objects.collections.List(); + //BA.debugLineNum = 481;BA.debugLine="Private i As Int = 0"; +_i = (int) (0); + //BA.debugLineNum = 482;BA.debugLine="l.Initialize"; +_l.Initialize(); + //BA.debugLineNum = 483;BA.debugLine="Dim m, m2 As Map"; +_m = new anywheresoftware.b4a.objects.collections.Map(); +_m2 = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 484;BA.debugLine="m2.Initialize"; +_m2.Initialize(); + //BA.debugLineNum = 485;BA.debugLine="If maxErrores = 0 Then lim = \"\" Else lim = \"limit"; +if (_maxerrores==0) { +_lim = "";} +else { +_lim = "limit "+BA.NumberToString(_maxerrores);}; + //BA.debugLineNum = 486;BA.debugLine="cur = SQL.ExecQuery(\"select * from errores order"; +_cur = (anywheresoftware.b4a.sql.SQL.ResultSetWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(), (android.database.Cursor)(_sql.ExecQuery("select * from errores order by fecha desc "+_lim))); + //BA.debugLineNum = 487;BA.debugLine="Do While cur.NextRow"; +while (_cur.NextRow()) { + //BA.debugLineNum = 488;BA.debugLine="m.Initialize"; +_m.Initialize(); + //BA.debugLineNum = 489;BA.debugLine="m.Put(\"fecha\", cur.GetString(\"fecha\"))"; +_m.Put((Object)("fecha"),(Object)(_cur.GetString("fecha"))); + //BA.debugLineNum = 490;BA.debugLine="m.Put(\"error\", cur.GetString(\"error\"))"; +_m.Put((Object)("error"),(Object)(_cur.GetString("error"))); + //BA.debugLineNum = 491;BA.debugLine="m2.Put(i,m)"; +_m2.Put((Object)(_i),(Object)(_m.getObject())); + //BA.debugLineNum = 492;BA.debugLine="i = i + 1"; +_i = (int) (_i+1); + } +; + //BA.debugLineNum = 494;BA.debugLine="cur.Close"; +_cur.Close(); + //BA.debugLineNum = 495;BA.debugLine="j.Initialize(m2)"; +_j.Initialize(_m2); + //BA.debugLineNum = 496;BA.debugLine="Log(j.ToString)"; +anywheresoftware.b4a.keywords.Common.LogImpl("035586069",_j.ToString(),0); + //BA.debugLineNum = 497;BA.debugLine="If comprimido Then"; +if (_comprimido) { + //BA.debugLineNum = 498;BA.debugLine="Return compress(j.ToString)"; +if (true) return _compress(_ba,_j.ToString()); + }else { + //BA.debugLineNum = 500;BA.debugLine="Return j.ToString"; +if (true) return _j.ToString(); + }; + //BA.debugLineNum = 502;BA.debugLine="End Sub"; +return ""; +} +public static String _dameruta(anywheresoftware.b4a.BA _ba,String _inicioruta,String _origenruta) throws Exception{ +String _fechainicio = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _ruta2 = ""; +int _i = 0; + //BA.debugLineNum = 142;BA.debugLine="Sub dameRuta(inicioRuta As String, origenRuta As S"; + //BA.debugLineNum = 144;BA.debugLine="Dim fechaInicio As String"; +_fechainicio = ""; + //BA.debugLineNum = 145;BA.debugLine="Try 'incioRuta es numero"; +try { //BA.debugLineNum = 146;BA.debugLine="inicioRuta = inicioRuta * 1"; +_inicioruta = BA.NumberToString((double)(Double.parseDouble(_inicioruta))*1); + //BA.debugLineNum = 148;BA.debugLine="fechaInicio = fechaKMT(DateTime.Now - (DateTime."; +_fechainicio = _fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()-(anywheresoftware.b4a.keywords.Common.DateTime.TicksPerHour*(double)(Double.parseDouble(_inicioruta))))); + } + catch (Exception e6) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e6); //BA.debugLineNum = 150;BA.debugLine="fechaInicio = fechaInicioHoy"; +_fechainicio = _fechainiciohoy(_ba); + }; + //BA.debugLineNum = 153;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"fechaInicio"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("034144267","fechaInicio: "+_fechainicio+" | rutaHrsAtras="+BA.NumberToString(_rutahrsatras),0);}; + //BA.debugLineNum = 154;BA.debugLine="Dim c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 155;BA.debugLine="If kmt.IsInitialized = False Then kmt.Initialize("; +if (_kmt.IsInitialized()==anywheresoftware.b4a.keywords.Common.False) { +_kmt.Initialize(mostCurrent._starter._ruta /*String*/ ,"kmt.db",anywheresoftware.b4a.keywords.Common.True);}; + //BA.debugLineNum = 156;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"select FECH"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("034144270","select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints),0);}; + //BA.debugLineNum = 157;BA.debugLine="c = kmt.ExecQuery(\"select FECHA, LAT, LON from \"&"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints)))); + //BA.debugLineNum = 158;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 159;BA.debugLine="Dim ruta2 As String = \"\""; +_ruta2 = ""; + //BA.debugLineNum = 160;BA.debugLine="If c.RowCount>0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 161;BA.debugLine="For i=0 To c.RowCount -1"; +{ +final int step16 = 1; +final int limit16 = (int) (_c.getRowCount()-1); +_i = (int) (0) ; +for (;_i <= limit16 ;_i = _i + step16 ) { + //BA.debugLineNum = 162;BA.debugLine="c.Position=i"; +_c.setPosition(_i); + //BA.debugLineNum = 163;BA.debugLine="ruta2=ruta2&CRLF&c.GetString(\"LAT\")&\",\"&c.GetSt"; +_ruta2 = _ruta2+anywheresoftware.b4a.keywords.Common.CRLF+_c.GetString("LAT")+","+_c.GetString("LON")+","+_c.GetString("FECHA"); + //BA.debugLineNum = 164;BA.debugLine="B4XPages.MainPage.fechaRuta = c.GetString(\"FECH"; +mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._fecharuta /*String*/ = _c.GetString("FECHA"); + } +}; + }; + //BA.debugLineNum = 167;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 168;BA.debugLine="Return compress(ruta2)"; +if (true) return _compress(_ba,_ruta2); + //BA.debugLineNum = 169;BA.debugLine="End Sub"; +return ""; +} +public static String _dameusuariodedb(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _u = ""; + //BA.debugLineNum = 583;BA.debugLine="Sub dameUsuarioDeDB As String 'ignore"; + //BA.debugLineNum = 584;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 585;BA.debugLine="Private u As String = \"SinUsuario\""; +_u = "SinUsuario"; + //BA.debugLineNum = 586;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD"; +if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) { +_revisabd(_ba);}; + //BA.debugLineNum = 587;BA.debugLine="c=kmt.ExecQuery(\"select USUARIO from usuarioa\")"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 588;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 589;BA.debugLine="If c.RowCount > 0 Then u = c.GetString(\"USUARIO\")"; +if (_c.getRowCount()>0) { +_u = _c.GetString("USUARIO");}; + //BA.debugLineNum = 590;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 591;BA.debugLine="Return u"; +if (true) return _u; + //BA.debugLineNum = 592;BA.debugLine="End Sub"; +return ""; +} +public static String _decompress(anywheresoftware.b4a.BA _ba,String _base64) throws Exception{ +byte[] _decompressedbytes = null; +anywheresoftware.b4a.agraham.byteconverter.ByteConverter _bc = null; +String _uncompressed = ""; + //BA.debugLineNum = 51;BA.debugLine="Sub decompress(base64 As String) As String 'ignore"; + //BA.debugLineNum = 52;BA.debugLine="Dim decompressedbytes() As Byte = su.DecodeBase64"; +_decompressedbytes = _su.DecodeBase64(_base64); + //BA.debugLineNum = 54;BA.debugLine="Dim bc As ByteConverter"; +_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter(); + //BA.debugLineNum = 55;BA.debugLine="Dim uncompressed As String = bc.StringFromBytes(d"; +_uncompressed = _bc.StringFromBytes(_decompressedbytes,"UTF8"); + //BA.debugLineNum = 56;BA.debugLine="Log($\"Descomprimido: ${uncompressed.Length}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("033685509",("Descomprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0); + //BA.debugLineNum = 58;BA.debugLine="Return uncompressed"; +if (true) return _uncompressed; + //BA.debugLineNum = 59;BA.debugLine="End Sub"; +return ""; +} +public static String _deleteerrorlog_db(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 178;BA.debugLine="Sub deleteErrorLog_DB 'ignore"; + //BA.debugLineNum = 179;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD"; +if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) { +_revisabd(_ba);}; + //BA.debugLineNum = 180;BA.debugLine="errorLog.ExecNonQuery(\"delete from errores\")"; +_errorlog.ExecNonQuery("delete from errores"); + //BA.debugLineNum = 181;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")"; +_errorlog.ExecNonQuery("vacuum;"); + //BA.debugLineNum = 182;BA.debugLine="ToastMessageShow(\"Borrada\", False)"; +anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Borrada"),anywheresoftware.b4a.keywords.Common.False); + //BA.debugLineNum = 183;BA.debugLine="End Sub"; +return ""; +} +public static String _deletegps_db(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 172;BA.debugLine="Sub deleteGPS_DB 'ignore"; + //BA.debugLineNum = 173;BA.debugLine="kmt.ExecNonQuery(\"delete from RUTA_GPS\")"; +_kmt.ExecNonQuery("delete from RUTA_GPS"); + //BA.debugLineNum = 174;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")"; +_kmt.ExecNonQuery("vacuum;"); + //BA.debugLineNum = 175;BA.debugLine="End Sub"; +return ""; +} +public static String _fechainiciohoy(anywheresoftware.b4a.BA _ba) throws Exception{ +String _origformat = ""; +String _h = ""; + //BA.debugLineNum = 288;BA.debugLine="Sub fechaInicioHoy As String 'ignore"; + //BA.debugLineNum = 289;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 290;BA.debugLine="DateTime.DateFormat=\"yyMMdd\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMdd"); + //BA.debugLineNum = 291;BA.debugLine="Private h As String = DateTime.Date(DateTime.Now"; +_h = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow())+"000000"; + //BA.debugLineNum = 292;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 293;BA.debugLine="Log(\"Hoy=\"&h)"; +anywheresoftware.b4a.keywords.Common.LogImpl("034799621","Hoy="+_h,0); + //BA.debugLineNum = 294;BA.debugLine="Return h"; +if (true) return _h; + //BA.debugLineNum = 295;BA.debugLine="End Sub"; +return ""; +} +public static String _fechakmt(anywheresoftware.b4a.BA _ba,String _fecha) throws Exception{ +String _origformat = ""; +String _nuevafecha = ""; + //BA.debugLineNum = 62;BA.debugLine="Sub fechaKMT(fecha As String) As String 'ignore"; + //BA.debugLineNum = 64;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 65;BA.debugLine="DateTime.DateFormat=\"yyMMddHHmmss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMddHHmmss"); + //BA.debugLineNum = 66;BA.debugLine="Dim nuevaFecha As String=DateTime.Date(fecha)"; +_nuevafecha = anywheresoftware.b4a.keywords.Common.DateTime.Date((long)(Double.parseDouble(_fecha))); + //BA.debugLineNum = 67;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 69;BA.debugLine="Return nuevaFecha"; +if (true) return _nuevafecha; + //BA.debugLineNum = 70;BA.debugLine="End Sub"; +return ""; +} +public static long _fechakmt2ticks(anywheresoftware.b4a.BA _ba,String _fkmt) throws Exception{ +String _partefecha = ""; +String _partehora = ""; +String _origformat = ""; +long _ticks = 0L; + //BA.debugLineNum = 505;BA.debugLine="Sub fechaKMT2Ticks(fKMT As String) As Long 'ignore"; + //BA.debugLineNum = 506;BA.debugLine="Try"; +try { //BA.debugLineNum = 507;BA.debugLine="If fKMT.Length = 12 Then"; +if (_fkmt.length()==12) { + //BA.debugLineNum = 508;BA.debugLine="Private parteFecha As String = fKMT.SubString2("; +_partefecha = _fkmt.substring((int) (0),(int) (6)); + //BA.debugLineNum = 509;BA.debugLine="Private parteHora As String = fKMT.SubString(6)"; +_partehora = _fkmt.substring((int) (6)); + //BA.debugLineNum = 510;BA.debugLine="Private OrigFormat As String = DateTime.DateFor"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 511;BA.debugLine="DateTime.DateFormat=\"yyMMdd\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMdd"); + //BA.debugLineNum = 512;BA.debugLine="DateTime.TimeFormat=\"HHmmss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 513;BA.debugLine="Private ticks As Long = DateTime.DateTimeParse("; +_ticks = anywheresoftware.b4a.keywords.Common.DateTime.DateTimeParse(_partefecha,_partehora); + //BA.debugLineNum = 515;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 516;BA.debugLine="Return ticks"; +if (true) return _ticks; + }else { + //BA.debugLineNum = 518;BA.debugLine="Log(\"Formato de fecha incorrecto, debe de ser '"; +anywheresoftware.b4a.keywords.Common.LogImpl("035651597","Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"+_fkmt+"' largo="+BA.NumberToString(_fkmt.length()),0); + //BA.debugLineNum = 519;BA.debugLine="Return 0"; +if (true) return (long) (0); + }; + } + catch (Exception e16) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e16); //BA.debugLineNum = 522;BA.debugLine="Log(LastException)"; +anywheresoftware.b4a.keywords.Common.LogImpl("035651601",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); + //BA.debugLineNum = 523;BA.debugLine="LogColor($\"Fecha dada: ${fKMT}, Parte Fecha: ${p"; +anywheresoftware.b4a.keywords.Common.LogImpl("035651602",("Fecha dada: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fkmt))+", Parte Fecha: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_partefecha))+", Parte Hora: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_partehora))+""),anywheresoftware.b4a.keywords.Common.Colors.Red); + //BA.debugLineNum = 524;BA.debugLine="Return 0"; +if (true) return (long) (0); + }; + //BA.debugLineNum = 526;BA.debugLine="End Sub"; +return 0L; +} +public static String _getphnid(anywheresoftware.b4a.BA _ba) throws Exception{ +String _t = ""; +String _s = ""; + //BA.debugLineNum = 19;BA.debugLine="Sub getPhnId As String 'ignore"; + //BA.debugLineNum = 21;BA.debugLine="devModel = phn.Model"; +_devmodel = _phn.getModel(); + //BA.debugLineNum = 22;BA.debugLine="If devModel.Length <= 3 Then 'Si phn.Model esta e"; +if (_devmodel.length()<=3) { + //BA.debugLineNum = 23;BA.debugLine="Dim t As String = phn.GetSettings(\"android_id\")"; +_t = _phn.GetSettings("android_id"); + //BA.debugLineNum = 24;BA.debugLine="devModel = t"; +_devmodel = _t; + }; + //BA.debugLineNum = 26;BA.debugLine="If devModel.Length >= 3 Then 'Si tenemos valor pa"; +if (_devmodel.length()>=3) { + //BA.debugLineNum = 27;BA.debugLine="File.WriteString(File.DirInternal, \"phnId.txt\","; +anywheresoftware.b4a.keywords.Common.File.WriteString(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"phnId.txt",_devmodel); + }else if(_devmodel.length()<3) { + //BA.debugLineNum = 30;BA.debugLine="Dim s As String = File.ReadString(File.DirIntern"; +_s = anywheresoftware.b4a.keywords.Common.File.ReadString(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"phnId.txt"); + //BA.debugLineNum = 31;BA.debugLine="devModel = s"; +_devmodel = _s; + }; + //BA.debugLineNum = 35;BA.debugLine="Return devModel"; +if (true) return _devmodel; + //BA.debugLineNum = 36;BA.debugLine="End Sub"; +return ""; +} +public static String _getssid(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 224;BA.debugLine="Sub getSSID 'ignore"; + //BA.debugLineNum = 229;BA.debugLine="End Sub"; +return ""; +} +public static String _guardainfoenarchivo(anywheresoftware.b4a.BA _ba,String _coords) throws Exception{ +String _origformat = ""; +String _lastupdate = ""; +String _ubic = ""; +anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; +String _s = ""; +byte[] _t = null; + //BA.debugLineNum = 112;BA.debugLine="Sub guardaInfoEnArchivo(coords As String) 'ignore"; + //BA.debugLineNum = 114;BA.debugLine="Dim OrigFormat As String=DateTime.DateFormat 'sa"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 115;BA.debugLine="DateTime.DateFormat=\"MMM-dd HH:mm:ss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MMM-dd HH:mm:ss"); + //BA.debugLineNum = 116;BA.debugLine="Dim lastUpdate As String=DateTime.Date(DateTime.N"; +_lastupdate = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 117;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 119;BA.debugLine="Dim ubic As String = coords&\",\"&lastUpdate"; +_ubic = _coords+","+_lastupdate; + //BA.debugLineNum = 120;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di"; +_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); +_out = anywheresoftware.b4a.keywords.Common.File.OpenOutput(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"gps.txt",anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 121;BA.debugLine="Dim s As String = ubic & CRLF"; +_s = _ubic+anywheresoftware.b4a.keywords.Common.CRLF; + //BA.debugLineNum = 122;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")"; +_t = _s.getBytes("UTF-8"); + //BA.debugLineNum = 123;BA.debugLine="out.WriteBytes(t, 0, t.Length)"; +_out.WriteBytes(_t,(int) (0),_t.length); + //BA.debugLineNum = 124;BA.debugLine="out.Close"; +_out.Close(); + //BA.debugLineNum = 125;BA.debugLine="End Sub"; +return ""; +} +public static String _guardainfoenbd(anywheresoftware.b4a.BA _ba,String _coords) throws Exception{ +String[] _latlon = null; + //BA.debugLineNum = 128;BA.debugLine="Sub guardaInfoEnBD(coords As String) 'ignore"; + //BA.debugLineNum = 129;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Guardamos u"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("034078721","Guardamos ubicacion en BD - "+_coords,0);}; + //BA.debugLineNum = 130;BA.debugLine="Try"; +try { //BA.debugLineNum = 131;BA.debugLine="Dim latlon() As String = Regex.Split(\"\\|\", coord"; +_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",_coords); + //BA.debugLineNum = 132;BA.debugLine="If latlon.Length < 2 Then latlon = Regex.Split(\""; +if (_latlon.length<2) { +_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split(",",_coords);}; + //BA.debugLineNum = 134;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD"; +if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) { +_revisabd(_ba);}; + //BA.debugLineNum = 135;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO RUTA_GPS(fecha, l"; +_kmt.ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_latlon[(int) (2)]),(Object)(_latlon[(int) (0)]),(Object)(_latlon[(int) (1)])})); + } + catch (Exception e8) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e8); //BA.debugLineNum = 137;BA.debugLine="Log(LastException)"; +anywheresoftware.b4a.keywords.Common.LogImpl("034078729",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); + }; + //BA.debugLineNum = 139;BA.debugLine="End Sub"; +return ""; +} +public static String _hmskmt(anywheresoftware.b4a.BA _ba) throws Exception{ +String _origformat = ""; +String _nuevahora = ""; + //BA.debugLineNum = 73;BA.debugLine="Sub hmsKMT As String 'ignore"; + //BA.debugLineNum = 75;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 76;BA.debugLine="DateTime.DateFormat=\"HHmmss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("HHmmss"); + //BA.debugLineNum = 77;BA.debugLine="Private nuevaHora As String=DateTime.Date(DateTim"; +_nuevahora = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 78;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 80;BA.debugLine="Return nuevaHora"; +if (true) return _nuevahora; + //BA.debugLineNum = 81;BA.debugLine="End Sub"; +return ""; +} +public static String _insertaenerrores(anywheresoftware.b4a.BA _ba,String _error) throws Exception{ + //BA.debugLineNum = 577;BA.debugLine="Sub insertaEnErrores(error As String) 'ignore"; + //BA.debugLineNum = 578;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD"; +if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) { +_revisabd(_ba);}; + //BA.debugLineNum = 579;BA.debugLine="errorLog.ExecNonQuery2(\"INSERT INTO errores(fecha"; +_errorlog.ExecNonQuery2("INSERT INTO errores(fecha, error) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)(_error)})); + //BA.debugLineNum = 580;BA.debugLine="End Sub"; +return ""; +} +public static String _insertarenglonespruebaenerrorlog(anywheresoftware.b4a.BA _ba) throws Exception{ +int _x = 0; + //BA.debugLineNum = 465;BA.debugLine="Sub insertaRenglonesPruebaEnErrorLog 'ignore"; + //BA.debugLineNum = 466;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD"; +if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) { +_revisabd(_ba);}; + //BA.debugLineNum = 467;BA.debugLine="Log(\"insertamos 50 renglones a errorLog\")"; +anywheresoftware.b4a.keywords.Common.LogImpl("035520514","insertamos 50 renglones a errorLog",0); + //BA.debugLineNum = 468;BA.debugLine="For x = 1 To 50"; +{ +final int step3 = 1; +final int limit3 = (int) (50); +_x = (int) (1) ; +for (;_x <= limit3 ;_x = _x + step3 ) { + //BA.debugLineNum = 469;BA.debugLine="errorLog.ExecNonQuery2(\"INSERT INTO errores(fech"; +_errorlog.ExecNonQuery2("INSERT INTO errores(fecha, error) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)("abc")})); + //BA.debugLineNum = 470;BA.debugLine="Log(x)"; +anywheresoftware.b4a.keywords.Common.LogImpl("035520517",BA.NumberToString(_x),0); + } +}; + //BA.debugLineNum = 472;BA.debugLine="End Sub"; +return ""; +} +public static String _installapk(anywheresoftware.b4a.BA _ba,String _dir,String _apk) throws Exception{ +anywheresoftware.b4a.objects.IntentWrapper _i = null; + //BA.debugLineNum = 528;BA.debugLine="Sub InstallAPK(dir As String, apk As String) 'igno"; + //BA.debugLineNum = 529;BA.debugLine="If File.Exists(dir, apk) Then"; +if (anywheresoftware.b4a.keywords.Common.File.Exists(_dir,_apk)) { + //BA.debugLineNum = 530;BA.debugLine="Dim i As Intent"; +_i = new anywheresoftware.b4a.objects.IntentWrapper(); + //BA.debugLineNum = 531;BA.debugLine="i.Initialize(i.ACTION_VIEW, \"file://\" & File.Com"; +_i.Initialize(_i.ACTION_VIEW,"file://"+anywheresoftware.b4a.keywords.Common.File.Combine(_dir,_apk)); + //BA.debugLineNum = 532;BA.debugLine="i.SetType(\"application/vnd.android.package-archi"; +_i.SetType("application/vnd.android.package-archive"); + //BA.debugLineNum = 533;BA.debugLine="StartActivity(i)"; +anywheresoftware.b4a.keywords.Common.StartActivity((_ba.processBA == null ? _ba : _ba.processBA),(Object)(_i.getObject())); + }; + //BA.debugLineNum = 535;BA.debugLine="End Sub"; +return ""; +} +public static anywheresoftware.b4a.objects.collections.Map _json2map(anywheresoftware.b4a.BA _ba,String _thejson) throws Exception{ +anywheresoftware.b4a.objects.collections.JSONParser _json = null; +anywheresoftware.b4a.objects.collections.Map _m = null; + //BA.debugLineNum = 232;BA.debugLine="Sub JSON2Map(theJson As String) As Map 'ignore"; + //BA.debugLineNum = 234;BA.debugLine="Try"; +try { //BA.debugLineNum = 235;BA.debugLine="Private json As JSONParser"; +_json = new anywheresoftware.b4a.objects.collections.JSONParser(); + //BA.debugLineNum = 236;BA.debugLine="json.Initialize(theJson)"; +_json.Initialize(_thejson); + //BA.debugLineNum = 237;BA.debugLine="Return json.NextObject"; +if (true) return _json.NextObject(); + } + catch (Exception e6) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e6); //BA.debugLineNum = 239;BA.debugLine="Log(LastException)"; +anywheresoftware.b4a.keywords.Common.LogImpl("034537479",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); + //BA.debugLineNum = 240;BA.debugLine="log2DB(\"JSON2Map: \"&LastException)"; +_log2db(_ba,"JSON2Map: "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba))); + //BA.debugLineNum = 241;BA.debugLine="Private m As Map = CreateMap(\"title\":\"Error gene"; +_m = new anywheresoftware.b4a.objects.collections.Map(); +_m = anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("title"),(Object)("Error generating JSON"),(Object)("t"),(Object)("Error"),(Object)("Message"),(Object)(anywheresoftware.b4a.keywords.Common.LastException(_ba).getObject()),(Object)("text"),(Object)(anywheresoftware.b4a.keywords.Common.LastException(_ba).getObject())}); + //BA.debugLineNum = 242;BA.debugLine="Return m"; +if (true) return _m; + }; + //BA.debugLineNum = 244;BA.debugLine="End Sub"; +return null; +} +public static String _log2db(anywheresoftware.b4a.BA _ba,String _texto) throws Exception{ + //BA.debugLineNum = 298;BA.debugLine="Sub log2DB(texto As String) 'ignore"; + //BA.debugLineNum = 299;BA.debugLine="LogColor(fechaKMT(DateTime.Now)&\" - log2BD: '\"&te"; +anywheresoftware.b4a.keywords.Common.LogImpl("034865153",_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))+" - log2BD: '"+_texto+"'",anywheresoftware.b4a.keywords.Common.Colors.Magenta); + //BA.debugLineNum = 300;BA.debugLine="If kmt.IsInitialized Then kmt.ExecNonQuery2(\"INSE"; +if (_kmt.IsInitialized()) { +_kmt.ExecNonQuery2("INSERT INTO bitacora(fecha, texto) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)(_texto)}));}; + //BA.debugLineNum = 301;BA.debugLine="End Sub"; +return ""; +} +public static String _mandamosloc(anywheresoftware.b4a.BA _ba,String _coords) throws Exception{ + //BA.debugLineNum = 269;BA.debugLine="Sub mandamosLoc(coords As String) 'ignore"; + //BA.debugLineNum = 285;BA.debugLine="End Sub"; +return ""; +} +public static String _map2json(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.Map _m) throws Exception{ +anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator _jg = null; +String _t = ""; + //BA.debugLineNum = 247;BA.debugLine="Sub map2JSON(m As Map) As String 'ignore"; + //BA.debugLineNum = 250;BA.debugLine="Dim jg As JSONGenerator"; +_jg = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator(); + //BA.debugLineNum = 251;BA.debugLine="jg.Initialize(m)"; +_jg.Initialize(_m); + //BA.debugLineNum = 252;BA.debugLine="Dim t As String = jg.ToString"; +_t = _jg.ToString(); + //BA.debugLineNum = 253;BA.debugLine="Return t"; +if (true) return _t; + //BA.debugLineNum = 254;BA.debugLine="End Sub"; +return ""; +} +public static boolean _masdexxmins(anywheresoftware.b4a.BA _ba,int _hora,int _mins) throws Exception{ + //BA.debugLineNum = 304;BA.debugLine="Sub masDeXXMins(hora As Int, mins As Int) As Boole"; + //BA.debugLineNum = 305;BA.debugLine="If (hora + mins * DateTime.TicksPerMinute) < Date"; +if ((_hora+_mins*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute) 0 Then"; +if (_chv.getRowCount()>0) { + //BA.debugLineNum = 834;BA.debugLine="chv.Position = 0"; +_chv.setPosition((int) (0)); + //BA.debugLineNum = 836;BA.debugLine="Private precio As String = traePrecio(prodId, t"; +_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba)); + //BA.debugLineNum = 837;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_traecliente(_ba),_chv.GetString("HVD_PRONOMBRE"),BA.NumberToString(1),_precio,_chv.GetString("HVD_FECHA"),_prodid,_precio,_traecliente(_ba)})); + //BA.debugLineNum = 838;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_traecliente(_ba),_chv.GetString("HVD_PRONOMBRE"),BA.NumberToString((double)(Double.parseDouble(_chv.GetString("HVD_CANT")))-1),BA.NumberToString(((double)(Double.parseDouble(_chv.GetString("HVD_CANT")))-1)*(double)(Double.parseDouble(_precio))),_chv.GetString("HVD_FECHA"),_prodid,_precio,_traecliente(_ba)})); + //BA.debugLineNum = 839;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = 0, HVD_COSTO_TOT = '0' where HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and HVD_CLIENTE in (Select CUENTA from cuentaa)")); + }; + }else { + //BA.debugLineNum = 842;BA.debugLine="Log($\"ACTUALIZAMOS REPARTO\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("037158930",("ACTUALIZAMOS REPARTO"),0); + //BA.debugLineNum = 843;BA.debugLine="Private precio As String = traePrecio(prodId, tr"; +_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba)); + //BA.debugLineNum = 844;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update HIST_VENTAS s"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = 0, HVD_COSTO_TOT = '0' WHERE HVD_PROID = ? and HVD_CLIENTE in (Select CUENTA from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_prodid})); + //BA.debugLineNum = 845;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); + //BA.debugLineNum = 846;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); + //BA.debugLineNum = 849;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_COSTO_TOT = REP_CANT * "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+", REP_PRECIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+"' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); + }; + //BA.debugLineNum = 851;BA.debugLine="End Sub"; +return ""; +} +public static String _prodventa(anywheresoftware.b4a.BA _ba,String _clienteoriginal,String _prodid) throws Exception{ +String _precio = ""; + //BA.debugLineNum = 793;BA.debugLine="Sub prodVenta(clienteOriginal As String, prodId As"; + //BA.debugLineNum = 795;BA.debugLine="Private precio As String = traePrecio(prodId, tra"; +_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba)); + //BA.debugLineNum = 796;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); + //BA.debugLineNum = 797;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); + //BA.debugLineNum = 798;BA.debugLine="Log($\"update reparto set REP_CANT = REP_CANT - 1"; +anywheresoftware.b4a.keywords.Common.LogImpl("037093381",("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"),0); + //BA.debugLineNum = 799;BA.debugLine="Log($\"update reparto set REP_CANT = REP_CANT + 1"; +anywheresoftware.b4a.keywords.Common.LogImpl("037093382",("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"),0); + //BA.debugLineNum = 800;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_COSTO_TOT = REP_CANT * "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+", REP_PRECIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+"' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); + //BA.debugLineNum = 821;BA.debugLine="End Sub"; +return ""; +} +public static String _revisabd(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; + //BA.debugLineNum = 195;BA.debugLine="Sub revisaBD 'ignore"; + //BA.debugLineNum = 196;BA.debugLine="If Not(File.Exists(Starter.ruta, \"kmt.db\")) Then"; +if (anywheresoftware.b4a.keywords.Common.Not(anywheresoftware.b4a.keywords.Common.File.Exists(mostCurrent._starter._ruta /*String*/ ,"kmt.db"))) { +anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirAssets(),"kmt.db",mostCurrent._starter._ruta /*String*/ ,"kmt.db");}; + //BA.debugLineNum = 197;BA.debugLine="If Not(kmt.IsInitialized) Then kmt.Initialize(Sta"; +if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) { +_kmt.Initialize(mostCurrent._starter._ruta /*String*/ ,"kmt.db",anywheresoftware.b4a.keywords.Common.True);}; + //BA.debugLineNum = 198;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS RUTA"; +_kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS RUTA_GPS(FECHA INTEGER, LAT TEXT, LON TEXT)"); + //BA.debugLineNum = 200;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS bita"; +_kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS bitacora(fecha INTEGER, texto TEXT)"); + //BA.debugLineNum = 202;BA.debugLine="kmt.ExecNonQuery(\"DROP TABLE IF EXISTS CAT_FOLIOS"; +_kmt.ExecNonQuery("DROP TABLE IF EXISTS CAT_FOLIOS"); + //BA.debugLineNum = 203;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS REPA"; +_kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS REPARTO_GEO (CLIENTE TEXT, USUARIO TEXT, FECHA_PUNTEO TEXT, LATITUD TEXT, LONGITUD TEXT, ALMACEN TEXT, RUTA_REPARTO TEXT, RUTA_PREV TEXT, FECHA_PREVENTA TEXT, MOTIVO TEXT, COMENTARIO TEXT, TIPO TEXT, ENVIO TEXT)"); + //BA.debugLineNum = 205;BA.debugLine="If Not(errorLog.IsInitialized) Then errorLog.Init"; +if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) { +_errorlog.Initialize(mostCurrent._starter._ruta /*String*/ ,"errorLog.db",anywheresoftware.b4a.keywords.Common.True);}; + //BA.debugLineNum = 206;BA.debugLine="errorLog.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS"; +_errorlog.ExecNonQuery("CREATE TABLE IF NOT EXISTS errores(fecha INTEGER, error TEXT)"); + //BA.debugLineNum = 208;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev"; +try { //BA.debugLineNum = 209;BA.debugLine="Dim c As Cursor=kmt.ExecQuery(\"SELECT COUNT(*) A"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("SELECT COUNT(*) AS fCol FROM pragma_table_info('noventa') WHERE name='NV_REPROGRAMAR'"))); + //BA.debugLineNum = 210;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 211;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c"; +if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { + //BA.debugLineNum = 212;BA.debugLine="kmt.ExecNonQuery(\"ALTER TABLE noventa ADD COLUM"; +_kmt.ExecNonQuery("ALTER TABLE noventa ADD COLUMN NV_REPROGRAMAR TEXT"); + }; + } + catch (Exception e16) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e16); //BA.debugLineNum = 215;BA.debugLine="Try"; +try { //BA.debugLineNum = 216;BA.debugLine="kmt.ExecNonQuery(\"ALTER TABLE noventa ADD COLUM"; +_kmt.ExecNonQuery("ALTER TABLE noventa ADD COLUMN NV_REPROGRAMAR TEXT"); + } + catch (Exception e19) { + (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e19); //BA.debugLineNum = 218;BA.debugLine="Log(LastException)"; +anywheresoftware.b4a.keywords.Common.LogImpl("034406423",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); + }; + }; + //BA.debugLineNum = 221;BA.debugLine="End Sub"; +return ""; +} +public static String _revisaflp(anywheresoftware.b4a.BA _ba) throws Exception{ +boolean _todobienflp = false; + //BA.debugLineNum = 372;BA.debugLine="Sub revisaFLP 'ignore"; + //BA.debugLineNum = 373;BA.debugLine="LogColor($\"**** **** Revisamos FLP - ${fechaKMT(D"; +anywheresoftware.b4a.keywords.Common.LogImpl("035258369",("**** **** Revisamos FLP - "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))))+"**** ****"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (78),(int) (0),(int) (227))); + //BA.debugLineNum = 374;BA.debugLine="Private todoBienFLP As Boolean = True"; +_todobienflp = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 375;BA.debugLine="If Not(Tracker.FLP.IsInitialized) Then"; +if (anywheresoftware.b4a.keywords.Common.Not(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsInitialized())) { + //BA.debugLineNum = 376;BA.debugLine="log2DB(\"revisaFLP: No esta inicializado ... 'Rei"; +_log2db(_ba,"revisaFLP: No esta inicializado ... 'Reinicializando FLP'"); + //BA.debugLineNum = 377;BA.debugLine="Tracker.FLP.Initialize(\"flp\")"; +mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .Initialize((_ba.processBA == null ? _ba : _ba.processBA),"flp"); + //BA.debugLineNum = 378;BA.debugLine="todoBienFLP = False"; +_todobienflp = anywheresoftware.b4a.keywords.Common.False; + }; + //BA.debugLineNum = 380;BA.debugLine="If Tracker.FLP.IsInitialized Then"; +if (mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsInitialized()) { + //BA.debugLineNum = 381;BA.debugLine="If Not(Tracker.FLP.IsConnected) Then"; +if (anywheresoftware.b4a.keywords.Common.Not(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsConnected())) { + //BA.debugLineNum = 382;BA.debugLine="log2DB(\"revisaFLP: No esta conectado ... 'Recon"; +_log2db(_ba,"revisaFLP: No esta conectado ... 'Reconectando FLP'"); + //BA.debugLineNum = 384;BA.debugLine="CallSubDelayed(Tracker,\"StartFLP\")"; +anywheresoftware.b4a.keywords.Common.CallSubDelayed((_ba.processBA == null ? _ba : _ba.processBA),(Object)(mostCurrent._tracker.getObject()),"StartFLP"); + //BA.debugLineNum = 385;BA.debugLine="todoBienFLP = False"; +_todobienflp = anywheresoftware.b4a.keywords.Common.False; + }; + //BA.debugLineNum = 387;BA.debugLine="If Tracker.FLP.IsConnected And _ Tracker.FLP."; +if (mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .IsConnected() && mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized() && mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().DistanceTo((android.location.Location)(mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .getObject()))>500) { + //BA.debugLineNum = 390;BA.debugLine="log2DB(\"revisaFLP: 'No se esta actualizando, lo"; +_log2db(_ba,"revisaFLP: 'No se esta actualizando, lo reiniciamos ...'"); + //BA.debugLineNum = 391;BA.debugLine="StartService(Tracker)"; +anywheresoftware.b4a.keywords.Common.StartService((_ba.processBA == null ? _ba : _ba.processBA),(Object)(mostCurrent._tracker.getObject())); + //BA.debugLineNum = 392;BA.debugLine="todoBienFLP = False"; +_todobienflp = anywheresoftware.b4a.keywords.Common.False; + }; + }; + //BA.debugLineNum = 395;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin errore"; +if (_todobienflp) { +anywheresoftware.b4a.keywords.Common.LogImpl("035258391"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);}; + //BA.debugLineNum = 397;BA.debugLine="End Sub"; +return ""; +} +public static String _revisapushservice(anywheresoftware.b4a.BA _ba) throws Exception{ + //BA.debugLineNum = 400;BA.debugLine="Sub revisaPushService 'ignore"; + //BA.debugLineNum = 438;BA.debugLine="End Sub"; +return ""; +} +public static String _revisauug(anywheresoftware.b4a.BA _ba) throws Exception{ +int _daa = 0; + //BA.debugLineNum = 358;BA.debugLine="Sub revisaUUG 'ignore"; + //BA.debugLineNum = 359;BA.debugLine="revisaFLP"; +_revisaflp(_ba); + //BA.debugLineNum = 360;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialized"; +if (mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { + //BA.debugLineNum = 361;BA.debugLine="Dim daa As Int = Tracker.UUGCoords.DistanceTo(Tr"; +_daa = (int) (mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .DistanceTo((android.location.Location)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getObject()))); + //BA.debugLineNum = 362;BA.debugLine="If B4XPages.MainPage.Logger Then LogColor($\"****"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("035192836",("**** UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_fechakmt(_ba,BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getTime()))))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));}; + //BA.debugLineNum = 363;BA.debugLine="If daa > 40 And Tracker.FLP.GetLastKnownLocation"; +if (_daa>40 && mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()<35) { + //BA.debugLineNum = 364;BA.debugLine="kmt.ExecNonQuery2(\"INSERT INTO RUTA_GPS(fecha,"; +_kmt.ExecNonQuery2("INSERT INTO RUTA_GPS(fecha, lat, lon) VALUES (?,?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getTime()))),(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLatitude()),(Object)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getLongitude())})); + //BA.debugLineNum = 365;BA.debugLine="If B4XPages.MainPage.Logger Then Log(\"++++ Dist"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("035192839","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()),0);}; + }; + //BA.debugLineNum = 367;BA.debugLine="Tracker.UUGCoords = Tracker.FLP.GetLastKnownLoca"; +mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ = mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation(); + }; + //BA.debugLineNum = 369;BA.debugLine="End Sub"; +return ""; +} +public static String _setdivider(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ListViewWrapper _lv,int _color,int _height) throws Exception{ +anywheresoftware.b4a.agraham.reflection.Reflection _r = null; +anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null; + //BA.debugLineNum = 594;BA.debugLine="Sub SetDivider(lv As ListView, Color As Int, Heigh"; + //BA.debugLineNum = 595;BA.debugLine="Dim r As Reflector"; +_r = new anywheresoftware.b4a.agraham.reflection.Reflection(); + //BA.debugLineNum = 596;BA.debugLine="r.Target = lv"; +_r.Target = (Object)(_lv.getObject()); + //BA.debugLineNum = 597;BA.debugLine="Dim CD As ColorDrawable"; +_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable(); + //BA.debugLineNum = 598;BA.debugLine="CD.Initialize(Color, 0)"; +_cd.Initialize(_color,(int) (0)); + //BA.debugLineNum = 599;BA.debugLine="r.RunMethod4(\"setDivider\", Array As Object(CD), A"; +_r.RunMethod4("setDivider",new Object[]{(Object)(_cd.getObject())},new String[]{"android.graphics.drawable.Drawable"}); + //BA.debugLineNum = 600;BA.debugLine="r.RunMethod2(\"setDividerHeight\", Height, \"java.la"; +_r.RunMethod2("setDividerHeight",BA.NumberToString(_height),"java.lang.int"); + //BA.debugLineNum = 601;BA.debugLine="End Sub"; return ""; } public static String _traealmacen(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traealmacen", false)) - {return ((String) Debug.delegate(null, "traealmacen", new Object[] {_ba}));} anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; String _a = ""; -RDebugUtils.currentLine=73072640; - //BA.debugLineNum = 73072640;BA.debugLine="Sub traeAlmacen As String 'ignore"; -RDebugUtils.currentLine=73072641; - //BA.debugLineNum = 73072641;BA.debugLine="Private c As Cursor"; + //BA.debugLineNum = 999;BA.debugLine="Sub traeAlmacen As String 'ignore"; + //BA.debugLineNum = 1000;BA.debugLine="Private c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=73072642; - //BA.debugLineNum = 73072642;BA.debugLine="Private a As String"; + //BA.debugLineNum = 1001;BA.debugLine="Private a As String"; _a = ""; -RDebugUtils.currentLine=73072643; - //BA.debugLineNum = 73072643;BA.debugLine="c = Starter.skmt.ExecQuery(\"select ID_ALMACEN fro"; + //BA.debugLineNum = 1002;BA.debugLine="c = Starter.skmt.ExecQuery(\"select ID_ALMACEN fro"; _c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select ID_ALMACEN from CAT_ALMACEN"))); -RDebugUtils.currentLine=73072644; - //BA.debugLineNum = 73072644;BA.debugLine="c.Position = 0"; + //BA.debugLineNum = 1003;BA.debugLine="c.Position = 0"; _c.setPosition((int) (0)); -RDebugUtils.currentLine=73072645; - //BA.debugLineNum = 73072645;BA.debugLine="a = C.GetString(\"ID_ALMACEN\")"; + //BA.debugLineNum = 1004;BA.debugLine="a = C.GetString(\"ID_ALMACEN\")"; _a = _c.GetString("ID_ALMACEN"); -RDebugUtils.currentLine=73072646; - //BA.debugLineNum = 73072646;BA.debugLine="c.Close"; + //BA.debugLineNum = 1005;BA.debugLine="c.Close"; _c.Close(); -RDebugUtils.currentLine=73072647; - //BA.debugLineNum = 73072647;BA.debugLine="Return a"; + //BA.debugLineNum = 1006;BA.debugLine="Return a"; if (true) return _a; -RDebugUtils.currentLine=73072648; - //BA.debugLineNum = 73072648;BA.debugLine="End Sub"; + //BA.debugLineNum = 1007;BA.debugLine="End Sub"; return ""; } +public static int _traecantidadrechazada(anywheresoftware.b4a.BA _ba,String _cliente,String _prodid) throws Exception{ +int _cant = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cr = null; + //BA.debugLineNum = 757;BA.debugLine="Sub traeCantidadRechazada(cliente As String, prodI"; + //BA.debugLineNum = 758;BA.debugLine="Private cant As Int = 0"; +_cant = (int) (0); + //BA.debugLineNum = 759;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S"; +_cr = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select rep_cliente, rep_prodid, REP_CANT, REP_RECHAZO from reparto where rep_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' and rep_prodid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and REP_RECHAZO = 1")))); + //BA.debugLineNum = 760;BA.debugLine="If cr.RowCount > 0 Then"; +if (_cr.getRowCount()>0) { + //BA.debugLineNum = 761;BA.debugLine="cr.Position = 0"; +_cr.setPosition((int) (0)); + //BA.debugLineNum = 762;BA.debugLine="cant = cr.GetString(\"REP_CANT\")"; +_cant = (int)(Double.parseDouble(_cr.GetString("REP_CANT"))); + }; + //BA.debugLineNum = 764;BA.debugLine="Log($\"${cliente}, ${prodId}, rowcont:${cr.RowCoun"; +anywheresoftware.b4a.keywords.Common.LogImpl("036896775",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+", rowcont:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cr.getRowCount()))+", cant: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+""),0); + //BA.debugLineNum = 765;BA.debugLine="Return cant"; +if (true) return _cant; + //BA.debugLineNum = 766;BA.debugLine="End Sub"; +return 0; +} +public static int _traecantidadvendida(anywheresoftware.b4a.BA _ba,String _cliente,String _prodid) throws Exception{ +int _cant = 0; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cr = null; + //BA.debugLineNum = 769;BA.debugLine="Sub traeCantidadVendida(cliente As String, prodId"; + //BA.debugLineNum = 770;BA.debugLine="Private cant As Int = 0"; +_cant = (int) (0); + //BA.debugLineNum = 771;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S"; +_cr = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select rep_cliente, rep_prodid, REP_CANT, REP_RECHAZO from reparto where rep_cli_orig = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' and rep_prodid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and REP_RECHAZO = 0 and REP_CANT > 0")))); + //BA.debugLineNum = 773;BA.debugLine="If cr.RowCount > 0 Then"; +if (_cr.getRowCount()>0) { + //BA.debugLineNum = 774;BA.debugLine="cr.Position = 0"; +_cr.setPosition((int) (0)); + //BA.debugLineNum = 775;BA.debugLine="cant = cr.GetString(\"REP_CANT\")"; +_cant = (int)(Double.parseDouble(_cr.GetString("REP_CANT"))); + }; + //BA.debugLineNum = 777;BA.debugLine="Return cant"; +if (true) return _cant; + //BA.debugLineNum = 778;BA.debugLine="End Sub"; +return 0; +} public static anywheresoftware.b4a.objects.collections.Map _traecantymonto2(anywheresoftware.b4a.BA _ba,String _cliente) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traecantymonto2", false)) - {return ((anywheresoftware.b4a.objects.collections.Map) Debug.delegate(null, "traecantymonto2", new Object[] {_ba,_cliente}));} int _cant = 0; float _monto = 0f; anywheresoftware.b4a.sql.SQL.CursorWrapper _ccym = null; int _i = 0; -RDebugUtils.currentLine=72679424; - //BA.debugLineNum = 72679424;BA.debugLine="Sub traeCantYMonto2(cliente As String) As Map"; -RDebugUtils.currentLine=72679426; - //BA.debugLineNum = 72679426;BA.debugLine="Private cant As Int = 0"; + //BA.debugLineNum = 881;BA.debugLine="Sub traeCantYMonto2(cliente As String) As Map"; + //BA.debugLineNum = 883;BA.debugLine="Private cant As Int = 0"; _cant = (int) (0); -RDebugUtils.currentLine=72679427; - //BA.debugLineNum = 72679427;BA.debugLine="Private monto As Float = 0"; + //BA.debugLineNum = 884;BA.debugLine="Private monto As Float = 0"; _monto = (float) (0); -RDebugUtils.currentLine=72679428; - //BA.debugLineNum = 72679428;BA.debugLine="Private ccym As Cursor = Starter.skmt.ExecQuery($"; + //BA.debugLineNum = 885;BA.debugLine="Private ccym As Cursor = Starter.skmt.ExecQuery($"; _ccym = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _ccym = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select hvd_codpromo, hvd_proid, HVD_CANT, (Select CAT_GP_PRECIO from cat_gunaprod where cat_gp_id = hvd_proid) As precio from HIST_VENTAS where HVD_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"'")))); -RDebugUtils.currentLine=72679429; - //BA.debugLineNum = 72679429;BA.debugLine="If ccym.RowCount > 0 Then"; + //BA.debugLineNum = 886;BA.debugLine="If ccym.RowCount > 0 Then"; if (_ccym.getRowCount()>0) { -RDebugUtils.currentLine=72679430; - //BA.debugLineNum = 72679430;BA.debugLine="For i=0 To ccym.RowCount -1"; + //BA.debugLineNum = 887;BA.debugLine="For i=0 To ccym.RowCount -1"; { final int step5 = 1; final int limit5 = (int) (_ccym.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit5 ;_i = _i + step5 ) { -RDebugUtils.currentLine=72679431; - //BA.debugLineNum = 72679431;BA.debugLine="ccym.Position = i"; + //BA.debugLineNum = 888;BA.debugLine="ccym.Position = i"; _ccym.setPosition(_i); -RDebugUtils.currentLine=72679432; - //BA.debugLineNum = 72679432;BA.debugLine="If ccym.GetString(\"HVD_CODPROMO\") <> ccym.GetSt"; + //BA.debugLineNum = 889;BA.debugLine="If ccym.GetString(\"HVD_CODPROMO\") <> ccym.GetSt"; if ((_ccym.GetString("HVD_CODPROMO")).equals(_ccym.GetString("HVD_PROID")) == false && _ccym.GetString("precio")!= null) { -RDebugUtils.currentLine=72679433; - //BA.debugLineNum = 72679433;BA.debugLine="cant = cant + ccym.GetString(\"HVD_CANT\")"; + //BA.debugLineNum = 890;BA.debugLine="cant = cant + ccym.GetString(\"HVD_CANT\")"; _cant = (int) (_cant+(double)(Double.parseDouble(_ccym.GetString("HVD_CANT")))); -RDebugUtils.currentLine=72679435; - //BA.debugLineNum = 72679435;BA.debugLine="monto = monto + (ccym.GetString(\"HVD_CANT\") *"; + //BA.debugLineNum = 892;BA.debugLine="monto = monto + (ccym.GetString(\"HVD_CANT\") *"; _monto = (float) (_monto+((double)(Double.parseDouble(_ccym.GetString("HVD_CANT")))*(double)(Double.parseDouble(_traeprecio(_ba,_ccym.GetString("HVD_PROID"),_ccym.GetString("HVD_CODPROMO")))))); }; } }; }; -RDebugUtils.currentLine=72679441; - //BA.debugLineNum = 72679441;BA.debugLine="ccym = Starter.skmt.ExecQuery($\"Select rep_prodid"; + //BA.debugLineNum = 898;BA.debugLine="ccym = Starter.skmt.ExecQuery($\"Select rep_prodid"; _ccym = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select rep_prodid, iFNULL(REP_CANT, 0) AS REP_CANT, iFNULL((Select CAT_GP_PRECIO from cat_gunaprod where cat_gp_id = rep_prodid),0) As precio from REPARTO where REP_CLIENTE in (Select cuenta from cuentaa) And REP_RECHAZO = '0' and REP_CANT > 0")))); -RDebugUtils.currentLine=72679442; - //BA.debugLineNum = 72679442;BA.debugLine="If ccym.RowCount > 0 Then"; + //BA.debugLineNum = 899;BA.debugLine="If ccym.RowCount > 0 Then"; if (_ccym.getRowCount()>0) { -RDebugUtils.currentLine=72679443; - //BA.debugLineNum = 72679443;BA.debugLine="For i=0 To ccym.RowCount -1"; + //BA.debugLineNum = 900;BA.debugLine="For i=0 To ccym.RowCount -1"; { final int step15 = 1; final int limit15 = (int) (_ccym.getRowCount()-1); _i = (int) (0) ; for (;_i <= limit15 ;_i = _i + step15 ) { -RDebugUtils.currentLine=72679444; - //BA.debugLineNum = 72679444;BA.debugLine="ccym.Position = i"; + //BA.debugLineNum = 901;BA.debugLine="ccym.Position = i"; _ccym.setPosition(_i); -RDebugUtils.currentLine=72679445; - //BA.debugLineNum = 72679445;BA.debugLine="If ccym.GetString(\"REP_CANT\") <> Null Then cant"; + //BA.debugLineNum = 902;BA.debugLine="If ccym.GetString(\"REP_CANT\") <> Null Then cant"; if (_ccym.GetString("REP_CANT")!= null) { _cant = (int) (_cant+(double)(Double.parseDouble(_ccym.GetString("REP_CANT"))));}; -RDebugUtils.currentLine=72679446; - //BA.debugLineNum = 72679446;BA.debugLine="monto = monto + (ccym.GetString(\"REP_CANT\") * c"; + //BA.debugLineNum = 903;BA.debugLine="monto = monto + (ccym.GetString(\"REP_CANT\") * c"; _monto = (float) (_monto+((double)(Double.parseDouble(_ccym.GetString("REP_CANT")))*(double)(Double.parseDouble(_ccym.GetString("precio"))))); } }; -RDebugUtils.currentLine=72679448; - //BA.debugLineNum = 72679448;BA.debugLine="Log($\"CANT=${cant}, MONTO=${monto}\"$)"; -anywheresoftware.b4a.keywords.Common.LogImpl("272679448",("CANT="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", MONTO="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_monto))+""),0); + //BA.debugLineNum = 905;BA.debugLine="Log($\"CANT=${cant}, MONTO=${monto}\"$)"; +anywheresoftware.b4a.keywords.Common.LogImpl("037290008",("CANT="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+", MONTO="+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_monto))+""),0); }; -RDebugUtils.currentLine=72679451; - //BA.debugLineNum = 72679451;BA.debugLine="ccym.Close"; + //BA.debugLineNum = 908;BA.debugLine="ccym.Close"; _ccym.Close(); -RDebugUtils.currentLine=72679452; - //BA.debugLineNum = 72679452;BA.debugLine="Return CreateMap(\"cantidad\":cant, \"monto\":monto)"; + //BA.debugLineNum = 909;BA.debugLine="Return CreateMap(\"cantidad\":cant, \"monto\":monto)"; if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)}); -RDebugUtils.currentLine=72679453; - //BA.debugLineNum = 72679453;BA.debugLine="End Sub"; + //BA.debugLineNum = 910;BA.debugLine="End Sub"; return null; } public static String _traecliente(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traecliente", false)) - {return ((String) Debug.delegate(null, "traecliente", new Object[] {_ba}));} anywheresoftware.b4a.sql.SQL.CursorWrapper _cli = null; String _cl = ""; -RDebugUtils.currentLine=72089600; - //BA.debugLineNum = 72089600;BA.debugLine="Sub traeCliente As String 'ignore"; -RDebugUtils.currentLine=72089601; - //BA.debugLineNum = 72089601;BA.debugLine="Private cli As Cursor = Starter.skmt.ExecQuery(\"S"; + //BA.debugLineNum = 722;BA.debugLine="Sub traeCliente As String 'ignore"; + //BA.debugLineNum = 723;BA.debugLine="Private cli As Cursor = Starter.skmt.ExecQuery(\"S"; _cli = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _cli = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("Select CUENTA from cuentaa"))); -RDebugUtils.currentLine=72089602; - //BA.debugLineNum = 72089602;BA.debugLine="cli.Position = 0"; + //BA.debugLineNum = 724;BA.debugLine="cli.Position = 0"; _cli.setPosition((int) (0)); -RDebugUtils.currentLine=72089603; - //BA.debugLineNum = 72089603;BA.debugLine="Private cl As String = cli.GetString(\"CUENTA\")"; + //BA.debugLineNum = 725;BA.debugLine="Private cl As String = cli.GetString(\"CUENTA\")"; _cl = _cli.GetString("CUENTA"); -RDebugUtils.currentLine=72089604; - //BA.debugLineNum = 72089604;BA.debugLine="cli.Close"; + //BA.debugLineNum = 726;BA.debugLine="cli.Close"; _cli.Close(); -RDebugUtils.currentLine=72089605; - //BA.debugLineNum = 72089605;BA.debugLine="Log(\"Algo paso...\"& cl)"; -anywheresoftware.b4a.keywords.Common.LogImpl("272089605","Algo paso..."+_cl,0); -RDebugUtils.currentLine=72089606; - //BA.debugLineNum = 72089606;BA.debugLine="Return cl"; + //BA.debugLineNum = 727;BA.debugLine="Log(\"Algo paso...\"& cl)"; +anywheresoftware.b4a.keywords.Common.LogImpl("036700165","Algo paso..."+_cl,0); + //BA.debugLineNum = 728;BA.debugLine="Return cl"; if (true) return _cl; -RDebugUtils.currentLine=72089607; - //BA.debugLineNum = 72089607;BA.debugLine="End Sub"; + //BA.debugLineNum = 729;BA.debugLine="End Sub"; return ""; } +public static String _traeconversion(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ +String _pu = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null; + //BA.debugLineNum = 706;BA.debugLine="Sub traeConversion(id As String) As String"; + //BA.debugLineNum = 707;BA.debugLine="Private pu As String = \"0\""; +_pu = "0"; + //BA.debugLineNum = 709;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C"; +_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); + //BA.debugLineNum = 710;BA.debugLine="If idc.RowCount > 0 Then"; +if (_idc.getRowCount()>0) { + //BA.debugLineNum = 711;BA.debugLine="idc.Position=0"; +_idc.setPosition((int) (0)); + //BA.debugLineNum = 712;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString("; +if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("CONVERSION"))) { +_pu = _idc.GetString("CONVERSION");}; + }; + //BA.debugLineNum = 715;BA.debugLine="idc.Close"; +_idc.Close(); + //BA.debugLineNum = 717;BA.debugLine="Return pu"; +if (true) return _pu; + //BA.debugLineNum = 718;BA.debugLine="End Sub"; +return ""; +} +public static anywheresoftware.b4a.objects.collections.Map _traeentregados(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.objects.collections.Map _m = null; +int _cant = 0; +String _monto = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null; + //BA.debugLineNum = 913;BA.debugLine="Sub traeEntregados As Map"; + //BA.debugLineNum = 914;BA.debugLine="Private m As Map"; +_m = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 915;BA.debugLine="Private cant As Int = 0"; +_cant = (int) (0); + //BA.debugLineNum = 916;BA.debugLine="Private monto As String = 0"; +_monto = BA.NumberToString(0); + //BA.debugLineNum = 917;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s"; +_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(HVD_CANT) as CUANTOS, sum(HVD_COSTO_TOT) as CUANTO from HIST_VENTAS where HVD_ESTATUS = '1' and HVD_COSTO_TOT <> '0'")))); + //BA.debugLineNum = 918;BA.debugLine="If rc.RowCount > 0 Then"; +if (_rc.getRowCount()>0) { + //BA.debugLineNum = 919;BA.debugLine="rc.Position = 0"; +_rc.setPosition((int) (0)); + //BA.debugLineNum = 920;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then"; +if (_rc.GetString("CUANTOS")!= null) { + //BA.debugLineNum = 921;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")"; +_cant = (int) (_cant+(double)(Double.parseDouble(_rc.GetString("CUANTOS")))); + //BA.debugLineNum = 922;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")"; +_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(Double.parseDouble(_rc.GetString("CUANTO")))); + }; + }; + //BA.debugLineNum = 926;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto"; +if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)}); + //BA.debugLineNum = 927;BA.debugLine="End Sub"; +return null; +} public static String _traefechaprev(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traefechaprev", false)) - {return ((String) Debug.delegate(null, "traefechaprev", new Object[] {_ba}));} anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; String _a = ""; String[] _fecha = null; String _fecha3 = ""; String[] _hora = null; -RDebugUtils.currentLine=73203712; - //BA.debugLineNum = 73203712;BA.debugLine="Sub traefECHAPREV As String 'ignore"; -RDebugUtils.currentLine=73203713; - //BA.debugLineNum = 73203713;BA.debugLine="Private c As Cursor"; + //BA.debugLineNum = 1020;BA.debugLine="Sub traefECHAPREV As String 'ignore"; + //BA.debugLineNum = 1021;BA.debugLine="Private c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=73203714; - //BA.debugLineNum = 73203714;BA.debugLine="Private a As String"; + //BA.debugLineNum = 1022;BA.debugLine="Private a As String"; _a = ""; -RDebugUtils.currentLine=73203727; - //BA.debugLineNum = 73203727;BA.debugLine="c = Starter.skmt.ExecQuery(\"select HVD_FECHA fro"; + //BA.debugLineNum = 1035;BA.debugLine="c = Starter.skmt.ExecQuery(\"select HVD_FECHA fro"; _c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_FECHA from HIST_VENTAS"))); -RDebugUtils.currentLine=73203728; - //BA.debugLineNum = 73203728;BA.debugLine="c.Position = 0"; + //BA.debugLineNum = 1036;BA.debugLine="c.Position = 0"; _c.setPosition((int) (0)); -RDebugUtils.currentLine=73203729; - //BA.debugLineNum = 73203729;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", c.GetSt"; + //BA.debugLineNum = 1037;BA.debugLine="Dim fecha() As String = Regex.Split(\" \", c.GetSt"; _fecha = anywheresoftware.b4a.keywords.Common.Regex.Split(" ",_c.GetString("HVD_FECHA")); -RDebugUtils.currentLine=73203730; - //BA.debugLineNum = 73203730;BA.debugLine="Dim fecha3 As String = fecha(0)"; + //BA.debugLineNum = 1038;BA.debugLine="Dim fecha3 As String = fecha(0)"; _fecha3 = _fecha[(int) (0)]; -RDebugUtils.currentLine=73203731; - //BA.debugLineNum = 73203731;BA.debugLine="Log(fecha3)"; -anywheresoftware.b4a.keywords.Common.LogImpl("273203731",_fecha3,0); -RDebugUtils.currentLine=73203732; - //BA.debugLineNum = 73203732;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1"; + //BA.debugLineNum = 1039;BA.debugLine="Log(fecha3)"; +anywheresoftware.b4a.keywords.Common.LogImpl("037814291",_fecha3,0); + //BA.debugLineNum = 1040;BA.debugLine="Dim hora() As String = Regex.Split(\"\\.\", fecha(1"; _hora = anywheresoftware.b4a.keywords.Common.Regex.Split("\\.",_fecha[(int) (1)]); -RDebugUtils.currentLine=73203733; - //BA.debugLineNum = 73203733;BA.debugLine="a = fecha3 & \" \" & hora(0)"; + //BA.debugLineNum = 1041;BA.debugLine="a = fecha3 & \" \" & hora(0)"; _a = _fecha3+" "+_hora[(int) (0)]; -RDebugUtils.currentLine=73203734; - //BA.debugLineNum = 73203734;BA.debugLine="c.Close"; + //BA.debugLineNum = 1042;BA.debugLine="c.Close"; _c.Close(); -RDebugUtils.currentLine=73203736; - //BA.debugLineNum = 73203736;BA.debugLine="Return a"; + //BA.debugLineNum = 1044;BA.debugLine="Return a"; if (true) return _a; -RDebugUtils.currentLine=73203737; - //BA.debugLineNum = 73203737;BA.debugLine="End Sub"; + //BA.debugLineNum = 1045;BA.debugLine="End Sub"; return ""; } -public static String _traeusuariodebd(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traeusuariodebd", false)) - {return ((String) Debug.delegate(null, "traeusuariodebd", new Object[] {_ba}));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; -String _u = ""; -RDebugUtils.currentLine=70057984; - //BA.debugLineNum = 70057984;BA.debugLine="Sub traeUsuarioDeBD As String 'ignore"; -RDebugUtils.currentLine=70057985; - //BA.debugLineNum = 70057985;BA.debugLine="Private c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=70057986; - //BA.debugLineNum = 70057986;BA.debugLine="Private u As String = \"SinUsuario\""; -_u = "SinUsuario"; -RDebugUtils.currentLine=70057987; - //BA.debugLineNum = 70057987;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD"; -if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) { -_revisabd(_ba);}; -RDebugUtils.currentLine=70057988; - //BA.debugLineNum = 70057988;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"))); -RDebugUtils.currentLine=70057989; - //BA.debugLineNum = 70057989;BA.debugLine="c.Position=0"; -_c.setPosition((int) (0)); -RDebugUtils.currentLine=70057990; - //BA.debugLineNum = 70057990;BA.debugLine="If c.RowCount > 0 Then u = c.GetString(\"USUARIO\")"; -if (_c.getRowCount()>0) { -_u = _c.GetString("USUARIO");}; -RDebugUtils.currentLine=70057991; - //BA.debugLineNum = 70057991;BA.debugLine="c.Close"; -_c.Close(); -RDebugUtils.currentLine=70057992; - //BA.debugLineNum = 70057992;BA.debugLine="Return u"; -if (true) return _u; -RDebugUtils.currentLine=70057993; - //BA.debugLineNum = 70057993;BA.debugLine="End Sub"; -return ""; -} -public static String _traeruta(anywheresoftware.b4a.BA _ba,String _cliente) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traeruta", false)) - {return ((String) Debug.delegate(null, "traeruta", new Object[] {_ba,_cliente}));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; -String _r = ""; -RDebugUtils.currentLine=72220672; - //BA.debugLineNum = 72220672;BA.debugLine="Sub traeRuta (cliente As String) As String 'ignore"; -RDebugUtils.currentLine=72220673; - //BA.debugLineNum = 72220673;BA.debugLine="Private c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=72220674; - //BA.debugLineNum = 72220674;BA.debugLine="Private r As String"; -_r = ""; -RDebugUtils.currentLine=72220675; - //BA.debugLineNum = 72220675;BA.debugLine="c=Starter.skmt.ExecQuery($\"select CAT_CL_RUTA fro"; -_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_CL_RUTA from kmt_info where CAT_CL_CODIGO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"'")))); -RDebugUtils.currentLine=72220676; - //BA.debugLineNum = 72220676;BA.debugLine="r = \"0\""; -_r = "0"; -RDebugUtils.currentLine=72220677; - //BA.debugLineNum = 72220677;BA.debugLine="If c.RowCount > 0 Then"; -if (_c.getRowCount()>0) { -RDebugUtils.currentLine=72220678; - //BA.debugLineNum = 72220678;BA.debugLine="c.Position=0"; -_c.setPosition((int) (0)); -RDebugUtils.currentLine=72220679; - //BA.debugLineNum = 72220679;BA.debugLine="r = c.GetString(\"CAT_CL_RUTA\")"; -_r = _c.GetString("CAT_CL_RUTA"); +public static String _traefechareparto(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _fe = null; +String _f = ""; + //BA.debugLineNum = 731;BA.debugLine="Sub traeFechaReparto As String"; + //BA.debugLineNum = 732;BA.debugLine="Private fe As Cursor = Starter.skmt.ExecQuery(\"se"; +_fe = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_fe = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)"))); + //BA.debugLineNum = 733;BA.debugLine="Private f As String = \"-\""; +_f = "-"; + //BA.debugLineNum = 734;BA.debugLine="If fe.RowCount > 0 Then"; +if (_fe.getRowCount()>0) { + //BA.debugLineNum = 735;BA.debugLine="fe.Position = 0"; +_fe.setPosition((int) (0)); + //BA.debugLineNum = 736;BA.debugLine="f = fe.GetString(\"HVD_FECHA\")"; +_f = _fe.GetString("HVD_FECHA"); }; -RDebugUtils.currentLine=72220681; - //BA.debugLineNum = 72220681;BA.debugLine="c.Close"; -_c.Close(); -RDebugUtils.currentLine=72220682; - //BA.debugLineNum = 72220682;BA.debugLine="Return r"; -if (true) return _r; -RDebugUtils.currentLine=72220683; - //BA.debugLineNum = 72220683;BA.debugLine="End Sub"; + //BA.debugLineNum = 738;BA.debugLine="fe.Close"; +_fe.Close(); + //BA.debugLineNum = 739;BA.debugLine="Return f"; +if (true) return _f; + //BA.debugLineNum = 740;BA.debugLine="End Sub"; return ""; } -public static String _fechakmt(anywheresoftware.b4a.BA _ba,String _fecha) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "fechakmt", false)) - {return ((String) Debug.delegate(null, "fechakmt", new Object[] {_ba,_fecha}));} -String _origformat = ""; -String _nuevafecha = ""; -RDebugUtils.currentLine=69140480; - //BA.debugLineNum = 69140480;BA.debugLine="Sub fechaKMT(fecha As String) As String 'ignore"; -RDebugUtils.currentLine=69140482; - //BA.debugLineNum = 69140482;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '"; -_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); -RDebugUtils.currentLine=69140483; - //BA.debugLineNum = 69140483;BA.debugLine="DateTime.DateFormat=\"yyMMddHHmmss\""; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMddHHmmss"); -RDebugUtils.currentLine=69140484; - //BA.debugLineNum = 69140484;BA.debugLine="Dim nuevaFecha As String=DateTime.Date(fecha)"; -_nuevafecha = anywheresoftware.b4a.keywords.Common.DateTime.Date((long)(Double.parseDouble(_fecha))); -RDebugUtils.currentLine=69140485; - //BA.debugLineNum = 69140485;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); -RDebugUtils.currentLine=69140487; - //BA.debugLineNum = 69140487;BA.debugLine="Return nuevaFecha"; -if (true) return _nuevafecha; -RDebugUtils.currentLine=69140488; - //BA.debugLineNum = 69140488;BA.debugLine="End Sub"; -return ""; -} -public static String _centralistview(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ListViewWrapper _elemento,int _anchoelementosuperior) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "centralistview", false)) - {return ((String) Debug.delegate(null, "centralistview", new Object[] {_ba,_elemento,_anchoelementosuperior}));} -RDebugUtils.currentLine=71499776; - //BA.debugLineNum = 71499776;BA.debugLine="Sub centraListView(elemento As ListView, anchoElem"; -RDebugUtils.currentLine=71499777; - //BA.debugLineNum = 71499777;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e"; -_elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2))); -RDebugUtils.currentLine=71499778; - //BA.debugLineNum = 71499778;BA.debugLine="End Sub"; -return ""; -} -public static String _setdivider(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.ListViewWrapper _lv,int _color,int _height) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "setdivider", false)) - {return ((String) Debug.delegate(null, "setdivider", new Object[] {_ba,_lv,_color,_height}));} -anywheresoftware.b4a.agraham.reflection.Reflection _r = null; -anywheresoftware.b4a.objects.drawable.ColorDrawable _cd = null; -RDebugUtils.currentLine=71434240; - //BA.debugLineNum = 71434240;BA.debugLine="Sub SetDivider(lv As ListView, Color As Int, Heigh"; -RDebugUtils.currentLine=71434241; - //BA.debugLineNum = 71434241;BA.debugLine="Dim r As Reflector"; -_r = new anywheresoftware.b4a.agraham.reflection.Reflection(); -RDebugUtils.currentLine=71434242; - //BA.debugLineNum = 71434242;BA.debugLine="r.Target = lv"; -_r.Target = (Object)(_lv.getObject()); -RDebugUtils.currentLine=71434243; - //BA.debugLineNum = 71434243;BA.debugLine="Dim CD As ColorDrawable"; -_cd = new anywheresoftware.b4a.objects.drawable.ColorDrawable(); -RDebugUtils.currentLine=71434244; - //BA.debugLineNum = 71434244;BA.debugLine="CD.Initialize(Color, 0)"; -_cd.Initialize(_color,(int) (0)); -RDebugUtils.currentLine=71434245; - //BA.debugLineNum = 71434245;BA.debugLine="r.RunMethod4(\"setDivider\", Array As Object(CD), A"; -_r.RunMethod4("setDivider",new Object[]{(Object)(_cd.getObject())},new String[]{"android.graphics.drawable.Drawable"}); -RDebugUtils.currentLine=71434246; - //BA.debugLineNum = 71434246;BA.debugLine="r.RunMethod2(\"setDividerHeight\", Height, \"java.la"; -_r.RunMethod2("setDividerHeight",BA.NumberToString(_height),"java.lang.int"); -RDebugUtils.currentLine=71434247; - //BA.debugLineNum = 71434247;BA.debugLine="End Sub"; -return ""; -} -public static String _centraetiqueta(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.LabelWrapper _elemento,int _anchoelementosuperior) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "centraetiqueta", false)) - {return ((String) Debug.delegate(null, "centraetiqueta", new Object[] {_ba,_elemento,_anchoelementosuperior}));} -RDebugUtils.currentLine=71630848; - //BA.debugLineNum = 71630848;BA.debugLine="Sub centraEtiqueta(elemento As Label, anchoElement"; -RDebugUtils.currentLine=71630849; - //BA.debugLineNum = 71630849;BA.debugLine="elemento.Left = Round(anchoElementoSuperior/2)-(e"; -_elemento.setLeft((int) (anywheresoftware.b4a.keywords.Common.Round(_anchoelementosuperior/(double)2)-(_elemento.getWidth()/(double)2))); -RDebugUtils.currentLine=71630850; - //BA.debugLineNum = 71630850;BA.debugLine="End Sub"; -return ""; -} -public static String _traerutareparto(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traerutareparto", false)) - {return ((String) Debug.delegate(null, "traerutareparto", new Object[] {_ba}));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; -String _r = ""; -RDebugUtils.currentLine=73007104; - //BA.debugLineNum = 73007104;BA.debugLine="Sub traeRutaReparto As String 'ignore"; -RDebugUtils.currentLine=73007105; - //BA.debugLineNum = 73007105;BA.debugLine="Private c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=73007106; - //BA.debugLineNum = 73007106;BA.debugLine="Private r As String"; -_r = ""; -RDebugUtils.currentLine=73007107; - //BA.debugLineNum = 73007107;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTAA"; -_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); -RDebugUtils.currentLine=73007108; - //BA.debugLineNum = 73007108;BA.debugLine="r = \"0\""; -_r = "0"; -RDebugUtils.currentLine=73007109; - //BA.debugLineNum = 73007109;BA.debugLine="If c.RowCount > 0 Then"; -if (_c.getRowCount()>0) { -RDebugUtils.currentLine=73007110; - //BA.debugLineNum = 73007110;BA.debugLine="c.Position=0"; -_c.setPosition((int) (0)); -RDebugUtils.currentLine=73007111; - //BA.debugLineNum = 73007111;BA.debugLine="r = c.GetString(\"RUTAA\")"; -_r = _c.GetString("RUTAA"); - }; -RDebugUtils.currentLine=73007113; - //BA.debugLineNum = 73007113;BA.debugLine="c.Close"; -_c.Close(); -RDebugUtils.currentLine=73007114; - //BA.debugLineNum = 73007114;BA.debugLine="Return r"; -if (true) return _r; -RDebugUtils.currentLine=73007115; - //BA.debugLineNum = 73007115;BA.debugLine="End Sub"; -return ""; -} -public static String _prodventa(anywheresoftware.b4a.BA _ba,String _clienteoriginal,String _prodid) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "prodventa", false)) - {return ((String) Debug.delegate(null, "prodventa", new Object[] {_ba,_clienteoriginal,_prodid}));} -String _precio = ""; -RDebugUtils.currentLine=72482816; - //BA.debugLineNum = 72482816;BA.debugLine="Sub prodVenta(clienteOriginal As String, prodId As"; -RDebugUtils.currentLine=72482818; - //BA.debugLineNum = 72482818;BA.debugLine="Private precio As String = traePrecio(prodId, tra"; -_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba)); -RDebugUtils.currentLine=72482819; - //BA.debugLineNum = 72482819;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); -RDebugUtils.currentLine=72482820; - //BA.debugLineNum = 72482820;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); -RDebugUtils.currentLine=72482821; - //BA.debugLineNum = 72482821;BA.debugLine="Log($\"update reparto set REP_CANT = REP_CANT - 1"; -anywheresoftware.b4a.keywords.Common.LogImpl("272482821",("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"),0); -RDebugUtils.currentLine=72482822; - //BA.debugLineNum = 72482822;BA.debugLine="Log($\"update reparto set REP_CANT = REP_CANT + 1"; -anywheresoftware.b4a.keywords.Common.LogImpl("272482822",("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'"),0); -RDebugUtils.currentLine=72482823; - //BA.debugLineNum = 72482823;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set RE"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_COSTO_TOT = REP_CANT * "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+", REP_PRECIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+"' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); -RDebugUtils.currentLine=72482844; - //BA.debugLineNum = 72482844;BA.debugLine="End Sub"; -return ""; -} -public static String _traeconversion(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traeconversion", false)) - {return ((String) Debug.delegate(null, "traeconversion", new Object[] {_ba,_id}));} -String _pu = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null; -RDebugUtils.currentLine=72024064; - //BA.debugLineNum = 72024064;BA.debugLine="Sub traeConversion(id As String) As String"; -RDebugUtils.currentLine=72024065; - //BA.debugLineNum = 72024065;BA.debugLine="Private pu As String = \"0\""; -_pu = "0"; -RDebugUtils.currentLine=72024067; - //BA.debugLineNum = 72024067;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C"; -_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select CONVERSION from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); -RDebugUtils.currentLine=72024068; - //BA.debugLineNum = 72024068;BA.debugLine="If idc.RowCount > 0 Then"; -if (_idc.getRowCount()>0) { -RDebugUtils.currentLine=72024069; - //BA.debugLineNum = 72024069;BA.debugLine="idc.Position=0"; -_idc.setPosition((int) (0)); -RDebugUtils.currentLine=72024070; - //BA.debugLineNum = 72024070;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString("; -if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("CONVERSION"))) { -_pu = _idc.GetString("CONVERSION");}; - }; -RDebugUtils.currentLine=72024073; - //BA.debugLineNum = 72024073;BA.debugLine="idc.Close"; -_idc.Close(); -RDebugUtils.currentLine=72024075; - //BA.debugLineNum = 72024075;BA.debugLine="Return pu"; -if (true) return _pu; -RDebugUtils.currentLine=72024076; - //BA.debugLineNum = 72024076;BA.debugLine="End Sub"; -return ""; -} -public static String _traeprecioc(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traeprecioc", false)) - {return ((String) Debug.delegate(null, "traeprecioc", new Object[] {_ba,_id}));} -String _pu = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null; -RDebugUtils.currentLine=71958528; - //BA.debugLineNum = 71958528;BA.debugLine="Sub traePrecioC(id As String) As String"; -RDebugUtils.currentLine=71958529; - //BA.debugLineNum = 71958529;BA.debugLine="Private pu As String = \"0\""; -_pu = "0"; -RDebugUtils.currentLine=71958530; - //BA.debugLineNum = 71958530;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select PR"; -_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select PRECIOCONVER from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); -RDebugUtils.currentLine=71958531; - //BA.debugLineNum = 71958531;BA.debugLine="If idc.RowCount > 0 Then"; -if (_idc.getRowCount()>0) { -RDebugUtils.currentLine=71958532; - //BA.debugLineNum = 71958532;BA.debugLine="idc.Position=0"; -_idc.setPosition((int) (0)); -RDebugUtils.currentLine=71958533; - //BA.debugLineNum = 71958533;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString(\""; -if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("PRECIOCONVER"))) { -_pu = _idc.GetString("PRECIOCONVER");}; - }; -RDebugUtils.currentLine=71958536; - //BA.debugLineNum = 71958536;BA.debugLine="idc.Close"; -_idc.Close(); -RDebugUtils.currentLine=71958537; - //BA.debugLineNum = 71958537;BA.debugLine="Return pu"; -if (true) return _pu; -RDebugUtils.currentLine=71958538; - //BA.debugLineNum = 71958538;BA.debugLine="End Sub"; -return ""; -} -public static String _traeprecio2(anywheresoftware.b4a.BA _ba,String _id,String _quepromo,String _consecutivo) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traeprecio2", false)) - {return ((String) Debug.delegate(null, "traeprecio2", new Object[] {_ba,_id,_quepromo,_consecutivo}));} -String _pu = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _pc = null; -RDebugUtils.currentLine=71892992; - //BA.debugLineNum = 71892992;BA.debugLine="Sub traePrecio2(id As String, quePromo As String,"; -RDebugUtils.currentLine=71892993; - //BA.debugLineNum = 71892993;BA.debugLine="Private pu As String = \"0\""; -_pu = "0"; -RDebugUtils.currentLine=71892995; - //BA.debugLineNum = 71892995;BA.debugLine="If quePromo = traeAlmacen Then"; -if ((_quepromo).equals(_traealmacen(_ba))) { -RDebugUtils.currentLine=71892996; - //BA.debugLineNum = 71892996;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C"; -_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); -RDebugUtils.currentLine=71892997; - //BA.debugLineNum = 71892997;BA.debugLine="If idc.RowCount > 0 Then"; -if (_idc.getRowCount()>0) { -RDebugUtils.currentLine=71892998; - //BA.debugLineNum = 71892998;BA.debugLine="idc.Position=0"; -_idc.setPosition((int) (0)); -RDebugUtils.currentLine=71892999; - //BA.debugLineNum = 71892999;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString("; -if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("CAT_GP_PRECIO"))) { -_pu = _idc.GetString("CAT_GP_PRECIO");}; - }; -RDebugUtils.currentLine=71893002; - //BA.debugLineNum = 71893002;BA.debugLine="idc.Close"; -_idc.Close(); - }else { -RDebugUtils.currentLine=71893004; - //BA.debugLineNum = 71893004;BA.debugLine="Private pc As Cursor = Starter.skmt.ExecQuery($\""; -_pc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_pc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT, HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) and HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"' and HVD_CODPROMO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_quepromo))+"' AND CONSECUTIVO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_consecutivo))+"'")))); -RDebugUtils.currentLine=71893005; - //BA.debugLineNum = 71893005;BA.debugLine="If pc.RowCount > 0 Then"; -if (_pc.getRowCount()>0) { -RDebugUtils.currentLine=71893006; - //BA.debugLineNum = 71893006;BA.debugLine="pc.Position = 0"; -_pc.setPosition((int) (0)); -RDebugUtils.currentLine=71893008; - //BA.debugLineNum = 71893008;BA.debugLine="If pc.GetString(\"HVD_COSTO_TOT\")<> Null And pc."; -if (_pc.GetString("HVD_COSTO_TOT")!= null && _pc.GetString("HVD_CANT")!= null) { -RDebugUtils.currentLine=71893009; - //BA.debugLineNum = 71893009;BA.debugLine="pu = pc.GetString(\"HVD_COSTO_TOT\") / pc.GetStr"; -_pu = BA.NumberToString((double)(Double.parseDouble(_pc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_pc.GetString("HVD_CANT")))); - }; - }; -RDebugUtils.currentLine=71893013; - //BA.debugLineNum = 71893013;BA.debugLine="pc.Close"; -_pc.Close(); - }; -RDebugUtils.currentLine=71893016; - //BA.debugLineNum = 71893016;BA.debugLine="Return pu"; -if (true) return _pu; -RDebugUtils.currentLine=71893018; - //BA.debugLineNum = 71893018;BA.debugLine="End Sub"; -return ""; -} -public static String _traerutaprev(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traerutaprev", false)) - {return ((String) Debug.delegate(null, "traerutaprev", new Object[] {_ba}));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; -String _a = ""; -RDebugUtils.currentLine=73269248; - //BA.debugLineNum = 73269248;BA.debugLine="Sub traerUTAPREV As String 'ignore"; -RDebugUtils.currentLine=73269249; - //BA.debugLineNum = 73269249;BA.debugLine="Private c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=73269250; - //BA.debugLineNum = 73269250;BA.debugLine="Private a As String"; -_a = ""; -RDebugUtils.currentLine=73269251; - //BA.debugLineNum = 73269251;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_CL_RUTA fr"; -_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); -RDebugUtils.currentLine=73269252; - //BA.debugLineNum = 73269252;BA.debugLine="c.Position = 0"; -_c.setPosition((int) (0)); -RDebugUtils.currentLine=73269253; - //BA.debugLineNum = 73269253;BA.debugLine="a = C.GetString(\"CAT_CL_RUTA\")"; -_a = _c.GetString("CAT_CL_RUTA"); -RDebugUtils.currentLine=73269254; - //BA.debugLineNum = 73269254;BA.debugLine="c.Close"; -_c.Close(); -RDebugUtils.currentLine=73269255; - //BA.debugLineNum = 73269255;BA.debugLine="Return a"; -if (true) return _a; -RDebugUtils.currentLine=73269256; - //BA.debugLineNum = 73269256;BA.debugLine="End Sub"; -return ""; -} -public static String _traeusuario(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traeusuario", false)) - {return ((String) Debug.delegate(null, "traeusuario", new Object[] {_ba}));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; -String _a = ""; -RDebugUtils.currentLine=73138176; - //BA.debugLineNum = 73138176;BA.debugLine="Sub traeUsuario As String 'ignore"; -RDebugUtils.currentLine=73138177; - //BA.debugLineNum = 73138177;BA.debugLine="Private c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=73138178; - //BA.debugLineNum = 73138178;BA.debugLine="Private a As String"; -_a = ""; -RDebugUtils.currentLine=73138179; - //BA.debugLineNum = 73138179;BA.debugLine="c = Starter.skmt.ExecQuery(\"select USUARIO from U"; -_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from USUARIOA"))); -RDebugUtils.currentLine=73138180; - //BA.debugLineNum = 73138180;BA.debugLine="c.Position = 0"; -_c.setPosition((int) (0)); -RDebugUtils.currentLine=73138181; - //BA.debugLineNum = 73138181;BA.debugLine="a = C.GetString(\"USUARIO\")"; -_a = _c.GetString("USUARIO"); -RDebugUtils.currentLine=73138182; - //BA.debugLineNum = 73138182;BA.debugLine="c.Close"; -_c.Close(); -RDebugUtils.currentLine=73138183; - //BA.debugLineNum = 73138183;BA.debugLine="Return a"; -if (true) return _a; -RDebugUtils.currentLine=73138184; - //BA.debugLineNum = 73138184;BA.debugLine="End Sub"; -return ""; -} -public static String _dameusuariodedb(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "dameusuariodedb", false)) - {return ((String) Debug.delegate(null, "dameusuariodedb", new Object[] {_ba}));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; -String _u = ""; -RDebugUtils.currentLine=71368704; - //BA.debugLineNum = 71368704;BA.debugLine="Sub dameUsuarioDeDB As String 'ignore"; -RDebugUtils.currentLine=71368705; - //BA.debugLineNum = 71368705;BA.debugLine="Private c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=71368706; - //BA.debugLineNum = 71368706;BA.debugLine="Private u As String = \"SinUsuario\""; -_u = "SinUsuario"; -RDebugUtils.currentLine=71368707; - //BA.debugLineNum = 71368707;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD"; -if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) { -_revisabd(_ba);}; -RDebugUtils.currentLine=71368708; - //BA.debugLineNum = 71368708;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"))); -RDebugUtils.currentLine=71368709; - //BA.debugLineNum = 71368709;BA.debugLine="c.Position=0"; -_c.setPosition((int) (0)); -RDebugUtils.currentLine=71368710; - //BA.debugLineNum = 71368710;BA.debugLine="If c.RowCount > 0 Then u = c.GetString(\"USUARIO\")"; -if (_c.getRowCount()>0) { -_u = _c.GetString("USUARIO");}; -RDebugUtils.currentLine=71368711; - //BA.debugLineNum = 71368711;BA.debugLine="c.Close"; -_c.Close(); -RDebugUtils.currentLine=71368712; - //BA.debugLineNum = 71368712;BA.debugLine="Return u"; -if (true) return _u; -RDebugUtils.currentLine=71368713; - //BA.debugLineNum = 71368713;BA.debugLine="End Sub"; -return ""; -} -public static anywheresoftware.b4a.objects.collections.Map _traeentregados(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traeentregados", false)) - {return ((anywheresoftware.b4a.objects.collections.Map) Debug.delegate(null, "traeentregados", new Object[] {_ba}));} -anywheresoftware.b4a.objects.collections.Map _m = null; +public static int _traemaxcantidad(anywheresoftware.b4a.BA _ba,String _cliente,String _prodid) throws Exception{ int _cant = 0; -String _monto = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null; -RDebugUtils.currentLine=72744960; - //BA.debugLineNum = 72744960;BA.debugLine="Sub traeEntregados As Map"; -RDebugUtils.currentLine=72744961; - //BA.debugLineNum = 72744961;BA.debugLine="Private m As Map"; -_m = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=72744962; - //BA.debugLineNum = 72744962;BA.debugLine="Private cant As Int = 0"; +anywheresoftware.b4a.sql.SQL.CursorWrapper _cr = null; + //BA.debugLineNum = 781;BA.debugLine="Sub traeMaxCantidad(cliente As String, prodId As S"; + //BA.debugLineNum = 782;BA.debugLine="Private cant As Int = 0"; _cant = (int) (0); -RDebugUtils.currentLine=72744963; - //BA.debugLineNum = 72744963;BA.debugLine="Private monto As String = 0"; -_monto = BA.NumberToString(0); -RDebugUtils.currentLine=72744964; - //BA.debugLineNum = 72744964;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s"; -_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(HVD_CANT) as CUANTOS, sum(HVD_COSTO_TOT) as CUANTO from HIST_VENTAS where HVD_ESTATUS = '1' and HVD_COSTO_TOT <> '0'")))); -RDebugUtils.currentLine=72744965; - //BA.debugLineNum = 72744965;BA.debugLine="If rc.RowCount > 0 Then"; -if (_rc.getRowCount()>0) { -RDebugUtils.currentLine=72744966; - //BA.debugLineNum = 72744966;BA.debugLine="rc.Position = 0"; -_rc.setPosition((int) (0)); -RDebugUtils.currentLine=72744967; - //BA.debugLineNum = 72744967;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then"; -if (_rc.GetString("CUANTOS")!= null) { -RDebugUtils.currentLine=72744968; - //BA.debugLineNum = 72744968;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")"; -_cant = (int) (_cant+(double)(Double.parseDouble(_rc.GetString("CUANTOS")))); -RDebugUtils.currentLine=72744969; - //BA.debugLineNum = 72744969;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")"; -_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(Double.parseDouble(_rc.GetString("CUANTO")))); + //BA.debugLineNum = 783;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S"; +_cr = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_cr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select hvd_cant from hist_ventas2 where hvd_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' and hvd_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")))); + //BA.debugLineNum = 785;BA.debugLine="If cr.RowCount > 0 Then"; +if (_cr.getRowCount()>0) { + //BA.debugLineNum = 786;BA.debugLine="cr.Position = 0"; +_cr.setPosition((int) (0)); + //BA.debugLineNum = 787;BA.debugLine="cant = cr.GetString(\"HVD_CANT\")"; +_cant = (int)(Double.parseDouble(_cr.GetString("HVD_CANT"))); }; - }; -RDebugUtils.currentLine=72744973; - //BA.debugLineNum = 72744973;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto"; -if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)}); -RDebugUtils.currentLine=72744974; - //BA.debugLineNum = 72744974;BA.debugLine="End Sub"; -return null; -} -public static anywheresoftware.b4a.objects.collections.Map _traerechazados(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traerechazados", false)) - {return ((anywheresoftware.b4a.objects.collections.Map) Debug.delegate(null, "traerechazados", new Object[] {_ba}));} -anywheresoftware.b4a.objects.collections.Map _m = null; -int _cant = 0; -String _monto = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null; -RDebugUtils.currentLine=72810496; - //BA.debugLineNum = 72810496;BA.debugLine="Sub traeRechazados As Map"; -RDebugUtils.currentLine=72810497; - //BA.debugLineNum = 72810497;BA.debugLine="Private m As Map"; -_m = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=72810498; - //BA.debugLineNum = 72810498;BA.debugLine="Private cant As Int = 0"; -_cant = (int) (0); -RDebugUtils.currentLine=72810499; - //BA.debugLineNum = 72810499;BA.debugLine="Private monto As String = 0"; -_monto = BA.NumberToString(0); -RDebugUtils.currentLine=72810500; - //BA.debugLineNum = 72810500;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s"; -_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(REP_CANT) as CUANTOS, sum(REP_CANT * REP_PRECIO) as CUANTO from REPARTO where REP_RECHAZO = '1' and REP_CANT <> '0'")))); -RDebugUtils.currentLine=72810501; - //BA.debugLineNum = 72810501;BA.debugLine="If rc.RowCount > 0 Then"; -if (_rc.getRowCount()>0) { -RDebugUtils.currentLine=72810502; - //BA.debugLineNum = 72810502;BA.debugLine="rc.Position = 0"; -_rc.setPosition((int) (0)); -RDebugUtils.currentLine=72810503; - //BA.debugLineNum = 72810503;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then"; -if (_rc.GetString("CUANTOS")!= null) { -RDebugUtils.currentLine=72810504; - //BA.debugLineNum = 72810504;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")"; -_cant = (int) (_cant+(double)(Double.parseDouble(_rc.GetString("CUANTOS")))); -RDebugUtils.currentLine=72810505; - //BA.debugLineNum = 72810505;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")"; -_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(Double.parseDouble(_rc.GetString("CUANTO")))); - }; - }; -RDebugUtils.currentLine=72810509; - //BA.debugLineNum = 72810509;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto"; -if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)}); -RDebugUtils.currentLine=72810510; - //BA.debugLineNum = 72810510;BA.debugLine="End Sub"; -return null; -} -public static anywheresoftware.b4a.objects.collections.Map _traevendidos(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traevendidos", false)) - {return ((anywheresoftware.b4a.objects.collections.Map) Debug.delegate(null, "traevendidos", new Object[] {_ba}));} -anywheresoftware.b4a.objects.collections.Map _m = null; -int _cant = 0; -String _monto = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null; -RDebugUtils.currentLine=72876032; - //BA.debugLineNum = 72876032;BA.debugLine="Sub traeVendidos As Map"; -RDebugUtils.currentLine=72876033; - //BA.debugLineNum = 72876033;BA.debugLine="Private m As Map"; -_m = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=72876034; - //BA.debugLineNum = 72876034;BA.debugLine="Private cant As Int = 0"; -_cant = (int) (0); -RDebugUtils.currentLine=72876035; - //BA.debugLineNum = 72876035;BA.debugLine="Private monto As String = 0"; -_monto = BA.NumberToString(0); -RDebugUtils.currentLine=72876036; - //BA.debugLineNum = 72876036;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s"; -_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(REP_CANT) as CUANTOS, sum(REP_CANT * REP_PRECIO) as CUANTO from REPARTO where REP_RECHAZO = '0' and REP_CANT <> '0'")))); -RDebugUtils.currentLine=72876037; - //BA.debugLineNum = 72876037;BA.debugLine="If rc.RowCount > 0 Then"; -if (_rc.getRowCount()>0) { -RDebugUtils.currentLine=72876038; - //BA.debugLineNum = 72876038;BA.debugLine="rc.Position = 0"; -_rc.setPosition((int) (0)); -RDebugUtils.currentLine=72876039; - //BA.debugLineNum = 72876039;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then"; -if (_rc.GetString("CUANTOS")!= null) { -RDebugUtils.currentLine=72876040; - //BA.debugLineNum = 72876040;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")"; -_cant = (int) (_cant+(double)(Double.parseDouble(_rc.GetString("CUANTOS")))); -RDebugUtils.currentLine=72876041; - //BA.debugLineNum = 72876041;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")"; -_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(Double.parseDouble(_rc.GetString("CUANTO")))); - }; - }; -RDebugUtils.currentLine=72876045; - //BA.debugLineNum = 72876045;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto"; -if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)}); -RDebugUtils.currentLine=72876046; - //BA.debugLineNum = 72876046;BA.debugLine="End Sub"; -return null; + //BA.debugLineNum = 789;BA.debugLine="Return cant"; +if (true) return _cant; + //BA.debugLineNum = 790;BA.debugLine="End Sub"; +return 0; } public static anywheresoftware.b4a.objects.collections.Map _traemoscantymonto(anywheresoftware.b4a.BA _ba,b4a.example3.customlistview _clv) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traemoscantymonto", false)) - {return ((anywheresoftware.b4a.objects.collections.Map) Debug.delegate(null, "traemoscantymonto", new Object[] {_ba,_clv}));} int _cant = 0; float _monto = 0f; int _i = 0; @@ -948,1616 +1352,376 @@ anywheresoftware.b4a.objects.B4XViewWrapper _p = null; anywheresoftware.b4a.objects.B4XViewWrapper _cant1 = null; anywheresoftware.b4a.objects.B4XViewWrapper _cant2 = null; anywheresoftware.b4a.objects.collections.List _estetag = null; -RDebugUtils.currentLine=72613888; - //BA.debugLineNum = 72613888;BA.debugLine="Sub traemosCantYMonto(clv As CustomListView) As Ma"; -RDebugUtils.currentLine=72613890; - //BA.debugLineNum = 72613890;BA.debugLine="Private cant As Int = 0"; + //BA.debugLineNum = 853;BA.debugLine="Sub traemosCantYMonto(clv As CustomListView) As Ma"; + //BA.debugLineNum = 855;BA.debugLine="Private cant As Int = 0"; _cant = (int) (0); -RDebugUtils.currentLine=72613891; - //BA.debugLineNum = 72613891;BA.debugLine="Private monto As Float = 0"; + //BA.debugLineNum = 856;BA.debugLine="Private monto As Float = 0"; _monto = (float) (0); -RDebugUtils.currentLine=72613892; - //BA.debugLineNum = 72613892;BA.debugLine="For i = 0 To clv.GetSize - 1"; + //BA.debugLineNum = 857;BA.debugLine="For i = 0 To clv.GetSize - 1"; { final int step3 = 1; final int limit3 = (int) (_clv._getsize()-1); _i = (int) (0) ; for (;_i <= limit3 ;_i = _i + step3 ) { -RDebugUtils.currentLine=72613893; - //BA.debugLineNum = 72613893;BA.debugLine="Private p0 As B4XView = clv.GetPanel(i)"; + //BA.debugLineNum = 858;BA.debugLine="Private p0 As B4XView = clv.GetPanel(i)"; _p0 = new anywheresoftware.b4a.objects.B4XViewWrapper(); _p0 = _clv._getpanel(_i); -RDebugUtils.currentLine=72613894; - //BA.debugLineNum = 72613894;BA.debugLine="Private p As B4XView = p0.GetView(0)"; + //BA.debugLineNum = 859;BA.debugLine="Private p As B4XView = p0.GetView(0)"; _p = new anywheresoftware.b4a.objects.B4XViewWrapper(); _p = _p0.GetView((int) (0)); -RDebugUtils.currentLine=72613895; - //BA.debugLineNum = 72613895;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView("; + //BA.debugLineNum = 860;BA.debugLine="Private cant1 As B4XView = p.GetView(2).GetView("; _cant1 = new anywheresoftware.b4a.objects.B4XViewWrapper(); _cant1 = _p.GetView((int) (2)).GetView((int) (3)); -RDebugUtils.currentLine=72613896; - //BA.debugLineNum = 72613896;BA.debugLine="Private cant2 As B4XView = p.GetView(3).GetView("; + //BA.debugLineNum = 861;BA.debugLine="Private cant2 As B4XView = p.GetView(3).GetView("; _cant2 = new anywheresoftware.b4a.objects.B4XViewWrapper(); _cant2 = _p.GetView((int) (3)).GetView((int) (3)); -RDebugUtils.currentLine=72613898; - //BA.debugLineNum = 72613898;BA.debugLine="If cant1.text <> \"\" Then"; + //BA.debugLineNum = 863;BA.debugLine="If cant1.text <> \"\" Then"; if ((_cant1.getText()).equals("") == false) { -RDebugUtils.currentLine=72613899; - //BA.debugLineNum = 72613899;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0"; + //BA.debugLineNum = 864;BA.debugLine="If cant1.Text = \"\" Then cant1.Text = 0"; if ((_cant1.getText()).equals("")) { _cant1.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=72613900; - //BA.debugLineNum = 72613900;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can"; + //BA.debugLineNum = 865;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can"; _estetag = new anywheresoftware.b4a.objects.collections.List(); _estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",BA.ObjectToString(_cant1.getTag()))); -RDebugUtils.currentLine=72613902; - //BA.debugLineNum = 72613902;BA.debugLine="If esteTag.Get(2) <> esteTag.Get(3) Then cant ="; + //BA.debugLineNum = 867;BA.debugLine="If esteTag.Get(2) <> esteTag.Get(3) Then cant ="; if ((_estetag.Get((int) (2))).equals(_estetag.Get((int) (3))) == false) { _cant = (int) (_cant+(double)(Double.parseDouble(_cant1.getText())));}; -RDebugUtils.currentLine=72613903; - //BA.debugLineNum = 72613903;BA.debugLine="monto = monto + (esteTag.Get(0) * cant1.Text)"; + //BA.debugLineNum = 868;BA.debugLine="monto = monto + (esteTag.Get(0) * cant1.Text)"; _monto = (float) (_monto+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant1.getText())))); }else { -RDebugUtils.currentLine=72613905; - //BA.debugLineNum = 72613905;BA.debugLine="If cant2.Text = \"\" Then cant2.Text = 0"; + //BA.debugLineNum = 870;BA.debugLine="If cant2.Text = \"\" Then cant2.Text = 0"; if ((_cant2.getText()).equals("")) { _cant2.setText(BA.ObjectToCharSequence(0));}; -RDebugUtils.currentLine=72613906; - //BA.debugLineNum = 72613906;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can"; + //BA.debugLineNum = 871;BA.debugLine="Private esteTag As List = Regex.Split(\"\\|\", can"; _estetag = new anywheresoftware.b4a.objects.collections.List(); _estetag = anywheresoftware.b4a.keywords.Common.ArrayToList(anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",BA.ObjectToString(_cant2.getTag()))); -RDebugUtils.currentLine=72613908; - //BA.debugLineNum = 72613908;BA.debugLine="If esteTag.Get(2) <> esteTag.Get(3) Then cant ="; + //BA.debugLineNum = 873;BA.debugLine="If esteTag.Get(2) <> esteTag.Get(3) Then cant ="; if ((_estetag.Get((int) (2))).equals(_estetag.Get((int) (3))) == false) { _cant = (int) (_cant+(double)(Double.parseDouble(_cant2.getText())));}; -RDebugUtils.currentLine=72613909; - //BA.debugLineNum = 72613909;BA.debugLine="monto = monto + (esteTag.Get(0) * cant2.Text)"; + //BA.debugLineNum = 874;BA.debugLine="monto = monto + (esteTag.Get(0) * cant2.Text)"; _monto = (float) (_monto+((double)(BA.ObjectToNumber(_estetag.Get((int) (0))))*(double)(Double.parseDouble(_cant2.getText())))); }; } }; -RDebugUtils.currentLine=72613913; - //BA.debugLineNum = 72613913;BA.debugLine="Return CreateMap(\"cantidad\":cant, \"monto\":monto)"; + //BA.debugLineNum = 878;BA.debugLine="Return CreateMap(\"cantidad\":cant, \"monto\":monto)"; if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)}); -RDebugUtils.currentLine=72613914; - //BA.debugLineNum = 72613914;BA.debugLine="End Sub"; + //BA.debugLineNum = 879;BA.debugLine="End Sub"; return null; } -public static String _prodrechazo(anywheresoftware.b4a.BA _ba,String _clienteoriginal,String _prodid) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "prodrechazo", false)) - {return ((String) Debug.delegate(null, "prodrechazo", new Object[] {_ba,_clienteoriginal,_prodid}));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _rr = null; -anywheresoftware.b4a.sql.SQL.CursorWrapper _chv = null; -String _precio = ""; -RDebugUtils.currentLine=72548352; - //BA.debugLineNum = 72548352;BA.debugLine="Sub prodRechazo(clienteOriginal As String, prodId"; -RDebugUtils.currentLine=72548353; - //BA.debugLineNum = 72548353;BA.debugLine="Log(\"RECHAZO DEVOLUCION\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("272548353","RECHAZO DEVOLUCION",0); -RDebugUtils.currentLine=72548354; - //BA.debugLineNum = 72548354;BA.debugLine="Private rr As Cursor = Starter.skmt.ExecQuery($\"s"; -_rr = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_rr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select count(REP_CLIENTE) as hayRechazo from REPARTO where rep_prodid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and REP_CLIENTE in (Select CUENTA from cuentaa)")))); -RDebugUtils.currentLine=72548355; - //BA.debugLineNum = 72548355;BA.debugLine="rr.Position = 0"; -_rr.setPosition((int) (0)); -RDebugUtils.currentLine=72548356; - //BA.debugLineNum = 72548356;BA.debugLine="If rr.GetString(\"hayRechazo\") = 0 Then"; -if ((_rr.GetString("hayRechazo")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=72548357; - //BA.debugLineNum = 72548357;BA.debugLine="Log(\"INSERTAMOS EN REPARTO\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("272548357","INSERTAMOS EN REPARTO",0); -RDebugUtils.currentLine=72548359; - //BA.debugLineNum = 72548359;BA.debugLine="Private chv As Cursor = Starter.skmt.ExecQuery($"; -_chv = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_chv = (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 hist_ventas where hvd_cliente in (select cuenta from cuentaa) and hvd_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")))); -RDebugUtils.currentLine=72548361; - //BA.debugLineNum = 72548361;BA.debugLine="If chv.RowCount > 0 Then"; -if (_chv.getRowCount()>0) { -RDebugUtils.currentLine=72548362; - //BA.debugLineNum = 72548362;BA.debugLine="chv.Position = 0"; -_chv.setPosition((int) (0)); -RDebugUtils.currentLine=72548364; - //BA.debugLineNum = 72548364;BA.debugLine="Private precio As String = traePrecio(prodId, t"; -_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba)); -RDebugUtils.currentLine=72548365; - //BA.debugLineNum = 72548365;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,1,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_traecliente(_ba),_chv.GetString("HVD_PRONOMBRE"),BA.NumberToString(1),_precio,_chv.GetString("HVD_FECHA"),_prodid,_precio,_traecliente(_ba)})); -RDebugUtils.currentLine=72548366; - //BA.debugLineNum = 72548366;BA.debugLine="Starter.skmt.ExecNonQuery2(\"insert into reparto"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("insert into reparto(REP_CLIENTE, REP_PRONOMBRE, REP_CANT, REP_COSTO_TOT, REP_FECHA, REP_RECHAZO, REP_PRODID, REP_PRECIO, REP_CLI_ORIG) VALUES (?,?,?,?,?,0,?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_traecliente(_ba),_chv.GetString("HVD_PRONOMBRE"),BA.NumberToString((double)(Double.parseDouble(_chv.GetString("HVD_CANT")))-1),BA.NumberToString(((double)(Double.parseDouble(_chv.GetString("HVD_CANT")))-1)*(double)(Double.parseDouble(_precio))),_chv.GetString("HVD_FECHA"),_prodid,_precio,_traecliente(_ba)})); -RDebugUtils.currentLine=72548367; - //BA.debugLineNum = 72548367;BA.debugLine="Starter.skmt.ExecNonQuery($\"update HIST_VENTAS"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = 0, HVD_COSTO_TOT = '0' where HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and HVD_CLIENTE in (Select CUENTA from cuentaa)")); - }; - }else { -RDebugUtils.currentLine=72548370; - //BA.debugLineNum = 72548370;BA.debugLine="Log($\"ACTUALIZAMOS REPARTO\"$)"; -anywheresoftware.b4a.keywords.Common.LogImpl("272548370",("ACTUALIZAMOS REPARTO"),0); -RDebugUtils.currentLine=72548371; - //BA.debugLineNum = 72548371;BA.debugLine="Private precio As String = traePrecio(prodId, tr"; -_precio = _traeprecio(_ba,_prodid,_traealmacen(_ba)); -RDebugUtils.currentLine=72548372; - //BA.debugLineNum = 72548372;BA.debugLine="Starter.skmt.ExecNonQuery2(\"update HIST_VENTAS s"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("update HIST_VENTAS set HVD_PARCIAL = 1, HVD_CANT = 0, HVD_COSTO_TOT = '0' WHERE HVD_PROID = ? and HVD_CLIENTE in (Select CUENTA from cuentaa)",anywheresoftware.b4a.keywords.Common.ArrayToList(new String[]{_prodid})); -RDebugUtils.currentLine=72548373; - //BA.debugLineNum = 72548373;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT + 1 where REP_CLIENTE = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 1 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); -RDebugUtils.currentLine=72548374; - //BA.debugLineNum = 72548374;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_CANT = REP_CANT - 1 where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_RECHAZO = 0 and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); -RDebugUtils.currentLine=72548377; - //BA.debugLineNum = 72548377;BA.debugLine="Starter.skmt.ExecNonQuery($\"update reparto set R"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery(("update reparto set REP_COSTO_TOT = REP_CANT * "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+", REP_PRECIO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_precio))+"' where REP_CLIENTE in (Select CUENTA from cuentaa) and REP_CLI_ORIG = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_clienteoriginal))+"' and REP_PRODID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")); - }; -RDebugUtils.currentLine=72548379; - //BA.debugLineNum = 72548379;BA.debugLine="End Sub"; +public static String _traenombre(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ +String _nombre = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null; + //BA.debugLineNum = 624;BA.debugLine="Sub traeNombre(id As String) As String"; + //BA.debugLineNum = 625;BA.debugLine="Private nombre As String"; +_nombre = ""; + //BA.debugLineNum = 626;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select HV"; +_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select HVD_PRONOMBRE from HIST_VENTAS where HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); + //BA.debugLineNum = 627;BA.debugLine="idc.Position=0"; +_idc.setPosition((int) (0)); + //BA.debugLineNum = 628;BA.debugLine="If idc.RowCount > 0 Then nombre = idc.GetString(\""; +if (_idc.getRowCount()>0) { +_nombre = _idc.GetString("HVD_PRONOMBRE");}; + //BA.debugLineNum = 629;BA.debugLine="idc.Close"; +_idc.Close(); + //BA.debugLineNum = 631;BA.debugLine="Return nombre"; +if (true) return _nombre; + //BA.debugLineNum = 632;BA.debugLine="End Sub"; return ""; } public static String _traeprecio(anywheresoftware.b4a.BA _ba,String _id,String _quepromo) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traeprecio", false)) - {return ((String) Debug.delegate(null, "traeprecio", new Object[] {_ba,_id,_quepromo}));} String _pu = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null; anywheresoftware.b4a.sql.SQL.CursorWrapper _pc = null; -RDebugUtils.currentLine=71827456; - //BA.debugLineNum = 71827456;BA.debugLine="Sub traePrecio(id As String, quePromo As String) A"; -RDebugUtils.currentLine=71827457; - //BA.debugLineNum = 71827457;BA.debugLine="Private pu As String = \"0\""; + //BA.debugLineNum = 635;BA.debugLine="Sub traePrecio(id As String, quePromo As String) A"; + //BA.debugLineNum = 636;BA.debugLine="Private pu As String = \"0\""; _pu = "0"; -RDebugUtils.currentLine=71827459; - //BA.debugLineNum = 71827459;BA.debugLine="If quePromo = traeAlmacen Then"; + //BA.debugLineNum = 638;BA.debugLine="If quePromo = traeAlmacen Then"; if ((_quepromo).equals(_traealmacen(_ba))) { -RDebugUtils.currentLine=71827460; - //BA.debugLineNum = 71827460;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C"; + //BA.debugLineNum = 639;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C"; _idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); -RDebugUtils.currentLine=71827461; - //BA.debugLineNum = 71827461;BA.debugLine="If idc.RowCount > 0 Then"; + //BA.debugLineNum = 640;BA.debugLine="If idc.RowCount > 0 Then"; if (_idc.getRowCount()>0) { -RDebugUtils.currentLine=71827462; - //BA.debugLineNum = 71827462;BA.debugLine="idc.Position=0"; + //BA.debugLineNum = 641;BA.debugLine="idc.Position=0"; _idc.setPosition((int) (0)); -RDebugUtils.currentLine=71827463; - //BA.debugLineNum = 71827463;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString("; + //BA.debugLineNum = 642;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString("; if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("CAT_GP_PRECIO"))) { _pu = _idc.GetString("CAT_GP_PRECIO");}; }; -RDebugUtils.currentLine=71827466; - //BA.debugLineNum = 71827466;BA.debugLine="idc.Close"; + //BA.debugLineNum = 645;BA.debugLine="idc.Close"; _idc.Close(); }else { -RDebugUtils.currentLine=71827468; - //BA.debugLineNum = 71827468;BA.debugLine="Private pc As Cursor = Starter.skmt.ExecQuery($\""; + //BA.debugLineNum = 647;BA.debugLine="Private pc As Cursor = Starter.skmt.ExecQuery($\""; _pc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); _pc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT, HVD_COSTO_TOT from HIST_VENTAS2 where HVD_CLIENTE in (select cuenta from cuentaa) and HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"' and HVD_CODPROMO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_quepromo))+"'")))); -RDebugUtils.currentLine=71827469; - //BA.debugLineNum = 71827469;BA.debugLine="If pc.RowCount > 0 Then"; + //BA.debugLineNum = 648;BA.debugLine="If pc.RowCount > 0 Then"; if (_pc.getRowCount()>0) { -RDebugUtils.currentLine=71827470; - //BA.debugLineNum = 71827470;BA.debugLine="pc.Position = 0"; + //BA.debugLineNum = 649;BA.debugLine="pc.Position = 0"; _pc.setPosition((int) (0)); -RDebugUtils.currentLine=71827472; - //BA.debugLineNum = 71827472;BA.debugLine="If pc.GetString(\"HVD_COSTO_TOT\")<> Null And pc."; + //BA.debugLineNum = 651;BA.debugLine="If pc.GetString(\"HVD_COSTO_TOT\")<> Null And pc."; if (_pc.GetString("HVD_COSTO_TOT")!= null && _pc.GetString("HVD_CANT")!= null) { -RDebugUtils.currentLine=71827473; - //BA.debugLineNum = 71827473;BA.debugLine="pu = pc.GetString(\"HVD_COSTO_TOT\") / pc.GetStr"; + //BA.debugLineNum = 652;BA.debugLine="pu = pc.GetString(\"HVD_COSTO_TOT\") / pc.GetStr"; _pu = BA.NumberToString((double)(Double.parseDouble(_pc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_pc.GetString("HVD_CANT")))); }; }; -RDebugUtils.currentLine=71827477; - //BA.debugLineNum = 71827477;BA.debugLine="pc.Close"; + //BA.debugLineNum = 656;BA.debugLine="pc.Close"; _pc.Close(); }; -RDebugUtils.currentLine=71827480; - //BA.debugLineNum = 71827480;BA.debugLine="Return pu"; + //BA.debugLineNum = 659;BA.debugLine="Return pu"; if (true) return _pu; -RDebugUtils.currentLine=71827482; - //BA.debugLineNum = 71827482;BA.debugLine="End Sub"; + //BA.debugLineNum = 661;BA.debugLine="End Sub"; return ""; } -public static int _traecantidadrechazada(anywheresoftware.b4a.BA _ba,String _cliente,String _prodid) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traecantidadrechazada", false)) - {return ((Integer) Debug.delegate(null, "traecantidadrechazada", new Object[] {_ba,_cliente,_prodid}));} -int _cant = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _cr = null; -RDebugUtils.currentLine=72286208; - //BA.debugLineNum = 72286208;BA.debugLine="Sub traeCantidadRechazada(cliente As String, prodI"; -RDebugUtils.currentLine=72286209; - //BA.debugLineNum = 72286209;BA.debugLine="Private cant As Int = 0"; -_cant = (int) (0); -RDebugUtils.currentLine=72286210; - //BA.debugLineNum = 72286210;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S"; -_cr = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_cr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select rep_cliente, rep_prodid, REP_CANT, REP_RECHAZO from reparto where rep_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' and rep_prodid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and REP_RECHAZO = 1")))); -RDebugUtils.currentLine=72286211; - //BA.debugLineNum = 72286211;BA.debugLine="If cr.RowCount > 0 Then"; -if (_cr.getRowCount()>0) { -RDebugUtils.currentLine=72286212; - //BA.debugLineNum = 72286212;BA.debugLine="cr.Position = 0"; -_cr.setPosition((int) (0)); -RDebugUtils.currentLine=72286213; - //BA.debugLineNum = 72286213;BA.debugLine="cant = cr.GetString(\"REP_CANT\")"; -_cant = (int)(Double.parseDouble(_cr.GetString("REP_CANT"))); - }; -RDebugUtils.currentLine=72286215; - //BA.debugLineNum = 72286215;BA.debugLine="Log($\"${cliente}, ${prodId}, rowcont:${cr.RowCoun"; -anywheresoftware.b4a.keywords.Common.LogImpl("272286215",(""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+", "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+", rowcont:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cr.getRowCount()))+", cant: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cant))+""),0); -RDebugUtils.currentLine=72286216; - //BA.debugLineNum = 72286216;BA.debugLine="Return cant"; -if (true) return _cant; -RDebugUtils.currentLine=72286217; - //BA.debugLineNum = 72286217;BA.debugLine="End Sub"; -return 0; -} -public static String _traenombre(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traenombre", false)) - {return ((String) Debug.delegate(null, "traenombre", new Object[] {_ba,_id}));} -String _nombre = ""; +public static String _traeprecio2(anywheresoftware.b4a.BA _ba,String _id,String _quepromo,String _consecutivo) throws Exception{ +String _pu = ""; anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null; -RDebugUtils.currentLine=71761920; - //BA.debugLineNum = 71761920;BA.debugLine="Sub traeNombre(id As String) As String"; -RDebugUtils.currentLine=71761921; - //BA.debugLineNum = 71761921;BA.debugLine="Private nombre As String"; -_nombre = ""; -RDebugUtils.currentLine=71761922; - //BA.debugLineNum = 71761922;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select HV"; +anywheresoftware.b4a.sql.SQL.CursorWrapper _pc = null; + //BA.debugLineNum = 664;BA.debugLine="Sub traePrecio2(id As String, quePromo As String,"; + //BA.debugLineNum = 665;BA.debugLine="Private pu As String = \"0\""; +_pu = "0"; + //BA.debugLineNum = 667;BA.debugLine="If quePromo = traeAlmacen Then"; +if ((_quepromo).equals(_traealmacen(_ba))) { + //BA.debugLineNum = 668;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select C"; _idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select HVD_PRONOMBRE from HIST_VENTAS where HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); -RDebugUtils.currentLine=71761923; - //BA.debugLineNum = 71761923;BA.debugLine="idc.Position=0"; -_idc.setPosition((int) (0)); -RDebugUtils.currentLine=71761924; - //BA.debugLineNum = 71761924;BA.debugLine="If idc.RowCount > 0 Then nombre = idc.GetString(\""; +_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select CAT_GP_PRECIO from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); + //BA.debugLineNum = 669;BA.debugLine="If idc.RowCount > 0 Then"; if (_idc.getRowCount()>0) { -_nombre = _idc.GetString("HVD_PRONOMBRE");}; -RDebugUtils.currentLine=71761925; - //BA.debugLineNum = 71761925;BA.debugLine="idc.Close"; + //BA.debugLineNum = 670;BA.debugLine="idc.Position=0"; +_idc.setPosition((int) (0)); + //BA.debugLineNum = 671;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString("; +if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("CAT_GP_PRECIO"))) { +_pu = _idc.GetString("CAT_GP_PRECIO");}; + }; + //BA.debugLineNum = 674;BA.debugLine="idc.Close"; _idc.Close(); -RDebugUtils.currentLine=71761927; - //BA.debugLineNum = 71761927;BA.debugLine="Return nombre"; -if (true) return _nombre; -RDebugUtils.currentLine=71761928; - //BA.debugLineNum = 71761928;BA.debugLine="End Sub"; + }else { + //BA.debugLineNum = 676;BA.debugLine="Private pc As Cursor = Starter.skmt.ExecQuery($\""; +_pc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_pc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select HVD_CANT, HVD_COSTO_TOT from HIST_VENTAS where HVD_CLIENTE in (select cuenta from cuentaa) and HVD_PROID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"' and HVD_CODPROMO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_quepromo))+"' AND CONSECUTIVO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_consecutivo))+"'")))); + //BA.debugLineNum = 677;BA.debugLine="If pc.RowCount > 0 Then"; +if (_pc.getRowCount()>0) { + //BA.debugLineNum = 678;BA.debugLine="pc.Position = 0"; +_pc.setPosition((int) (0)); + //BA.debugLineNum = 680;BA.debugLine="If pc.GetString(\"HVD_COSTO_TOT\")<> Null And pc."; +if (_pc.GetString("HVD_COSTO_TOT")!= null && _pc.GetString("HVD_CANT")!= null) { + //BA.debugLineNum = 681;BA.debugLine="pu = pc.GetString(\"HVD_COSTO_TOT\") / pc.GetStr"; +_pu = BA.NumberToString((double)(Double.parseDouble(_pc.GetString("HVD_COSTO_TOT")))/(double)(double)(Double.parseDouble(_pc.GetString("HVD_CANT")))); + }; + }; + //BA.debugLineNum = 685;BA.debugLine="pc.Close"; +_pc.Close(); + }; + //BA.debugLineNum = 688;BA.debugLine="Return pu"; +if (true) return _pu; + //BA.debugLineNum = 690;BA.debugLine="End Sub"; return ""; } -public static String _traefechareparto(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traefechareparto", false)) - {return ((String) Debug.delegate(null, "traefechareparto", new Object[] {_ba}));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _fe = null; -String _f = ""; -RDebugUtils.currentLine=72155136; - //BA.debugLineNum = 72155136;BA.debugLine="Sub traeFechaReparto As String"; -RDebugUtils.currentLine=72155137; - //BA.debugLineNum = 72155137;BA.debugLine="Private fe As Cursor = Starter.skmt.ExecQuery(\"se"; -_fe = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_fe = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select HVD_FECHA from HIST_VENTAS WHERE HVD_CLIENTE IN (Select CUENTA from cuentaa)"))); -RDebugUtils.currentLine=72155138; - //BA.debugLineNum = 72155138;BA.debugLine="Private f As String = \"-\""; -_f = "-"; -RDebugUtils.currentLine=72155139; - //BA.debugLineNum = 72155139;BA.debugLine="If fe.RowCount > 0 Then"; -if (_fe.getRowCount()>0) { -RDebugUtils.currentLine=72155140; - //BA.debugLineNum = 72155140;BA.debugLine="fe.Position = 0"; -_fe.setPosition((int) (0)); -RDebugUtils.currentLine=72155141; - //BA.debugLineNum = 72155141;BA.debugLine="f = fe.GetString(\"HVD_FECHA\")"; -_f = _fe.GetString("HVD_FECHA"); +public static String _traeprecioc(anywheresoftware.b4a.BA _ba,String _id) throws Exception{ +String _pu = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _idc = null; + //BA.debugLineNum = 693;BA.debugLine="Sub traePrecioC(id As String) As String"; + //BA.debugLineNum = 694;BA.debugLine="Private pu As String = \"0\""; +_pu = "0"; + //BA.debugLineNum = 695;BA.debugLine="Private idc As Cursor = kmt.ExecQuery($\"select PR"; +_idc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_idc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery(("select PRECIOCONVER from CAT_GUNAPROD where CAT_GP_ID = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_id))+"'")))); + //BA.debugLineNum = 696;BA.debugLine="If idc.RowCount > 0 Then"; +if (_idc.getRowCount()>0) { + //BA.debugLineNum = 697;BA.debugLine="idc.Position=0"; +_idc.setPosition((int) (0)); + //BA.debugLineNum = 698;BA.debugLine="If idc.RowCount > 0 And IsNumber(idc.GetString(\""; +if (_idc.getRowCount()>0 && anywheresoftware.b4a.keywords.Common.IsNumber(_idc.GetString("PRECIOCONVER"))) { +_pu = _idc.GetString("PRECIOCONVER");}; }; -RDebugUtils.currentLine=72155143; - //BA.debugLineNum = 72155143;BA.debugLine="fe.Close"; -_fe.Close(); -RDebugUtils.currentLine=72155144; - //BA.debugLineNum = 72155144;BA.debugLine="Return f"; -if (true) return _f; -RDebugUtils.currentLine=72155145; - //BA.debugLineNum = 72155145;BA.debugLine="End Sub"; + //BA.debugLineNum = 701;BA.debugLine="idc.Close"; +_idc.Close(); + //BA.debugLineNum = 702;BA.debugLine="Return pu"; +if (true) return _pu; + //BA.debugLineNum = 703;BA.debugLine="End Sub"; return ""; } -public static int _traemaxcantidad(anywheresoftware.b4a.BA _ba,String _cliente,String _prodid) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traemaxcantidad", false)) - {return ((Integer) Debug.delegate(null, "traemaxcantidad", new Object[] {_ba,_cliente,_prodid}));} +public static anywheresoftware.b4a.objects.collections.Map _traerechazados(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.objects.collections.Map _m = null; int _cant = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _cr = null; -RDebugUtils.currentLine=72417280; - //BA.debugLineNum = 72417280;BA.debugLine="Sub traeMaxCantidad(cliente As String, prodId As S"; -RDebugUtils.currentLine=72417281; - //BA.debugLineNum = 72417281;BA.debugLine="Private cant As Int = 0"; +String _monto = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null; + //BA.debugLineNum = 930;BA.debugLine="Sub traeRechazados As Map"; + //BA.debugLineNum = 931;BA.debugLine="Private m As Map"; +_m = new anywheresoftware.b4a.objects.collections.Map(); + //BA.debugLineNum = 932;BA.debugLine="Private cant As Int = 0"; _cant = (int) (0); -RDebugUtils.currentLine=72417282; - //BA.debugLineNum = 72417282;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S"; -_cr = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_cr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select hvd_cant from hist_ventas2 where hvd_cliente = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' and hvd_proid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"'")))); -RDebugUtils.currentLine=72417284; - //BA.debugLineNum = 72417284;BA.debugLine="If cr.RowCount > 0 Then"; -if (_cr.getRowCount()>0) { -RDebugUtils.currentLine=72417285; - //BA.debugLineNum = 72417285;BA.debugLine="cr.Position = 0"; -_cr.setPosition((int) (0)); -RDebugUtils.currentLine=72417286; - //BA.debugLineNum = 72417286;BA.debugLine="cant = cr.GetString(\"HVD_CANT\")"; -_cant = (int)(Double.parseDouble(_cr.GetString("HVD_CANT"))); + //BA.debugLineNum = 933;BA.debugLine="Private monto As String = 0"; +_monto = BA.NumberToString(0); + //BA.debugLineNum = 934;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s"; +_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(REP_CANT) as CUANTOS, sum(REP_CANT * REP_PRECIO) as CUANTO from REPARTO where REP_RECHAZO = '1' and REP_CANT <> '0'")))); + //BA.debugLineNum = 935;BA.debugLine="If rc.RowCount > 0 Then"; +if (_rc.getRowCount()>0) { + //BA.debugLineNum = 936;BA.debugLine="rc.Position = 0"; +_rc.setPosition((int) (0)); + //BA.debugLineNum = 937;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then"; +if (_rc.GetString("CUANTOS")!= null) { + //BA.debugLineNum = 938;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")"; +_cant = (int) (_cant+(double)(Double.parseDouble(_rc.GetString("CUANTOS")))); + //BA.debugLineNum = 939;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")"; +_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(Double.parseDouble(_rc.GetString("CUANTO")))); }; -RDebugUtils.currentLine=72417288; - //BA.debugLineNum = 72417288;BA.debugLine="Return cant"; -if (true) return _cant; -RDebugUtils.currentLine=72417289; - //BA.debugLineNum = 72417289;BA.debugLine="End Sub"; -return 0; -} -public static int _traecantidadvendida(anywheresoftware.b4a.BA _ba,String _cliente,String _prodid) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "traecantidadvendida", false)) - {return ((Integer) Debug.delegate(null, "traecantidadvendida", new Object[] {_ba,_cliente,_prodid}));} -int _cant = 0; -anywheresoftware.b4a.sql.SQL.CursorWrapper _cr = null; -RDebugUtils.currentLine=72351744; - //BA.debugLineNum = 72351744;BA.debugLine="Sub traeCantidadVendida(cliente As String, prodId"; -RDebugUtils.currentLine=72351745; - //BA.debugLineNum = 72351745;BA.debugLine="Private cant As Int = 0"; -_cant = (int) (0); -RDebugUtils.currentLine=72351746; - //BA.debugLineNum = 72351746;BA.debugLine="Private cr As Cursor = Starter.skmt.ExecQuery($\"S"; -_cr = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_cr = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("Select rep_cliente, rep_prodid, REP_CANT, REP_RECHAZO from reparto where rep_cli_orig = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"' and rep_prodid = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_prodid))+"' and REP_RECHAZO = 0 and REP_CANT > 0")))); -RDebugUtils.currentLine=72351748; - //BA.debugLineNum = 72351748;BA.debugLine="If cr.RowCount > 0 Then"; -if (_cr.getRowCount()>0) { -RDebugUtils.currentLine=72351749; - //BA.debugLineNum = 72351749;BA.debugLine="cr.Position = 0"; -_cr.setPosition((int) (0)); -RDebugUtils.currentLine=72351750; - //BA.debugLineNum = 72351750;BA.debugLine="cant = cr.GetString(\"REP_CANT\")"; -_cant = (int)(Double.parseDouble(_cr.GetString("REP_CANT"))); }; -RDebugUtils.currentLine=72351752; - //BA.debugLineNum = 72351752;BA.debugLine="Return cant"; -if (true) return _cant; -RDebugUtils.currentLine=72351753; - //BA.debugLineNum = 72351753;BA.debugLine="End Sub"; -return 0; -} -public static anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _createbitmapwithnumber(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _originalbitmap,int _number) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "createbitmapwithnumber", false)) - {return ((anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper) Debug.delegate(null, "createbitmapwithnumber", new Object[] {_ba,_originalbitmap,_number}));} -anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper _newbitmap = null; -anywheresoftware.b4a.objects.drawable.CanvasWrapper _canvas = null; -anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper _destrect = null; -RDebugUtils.currentLine=73334784; - //BA.debugLineNum = 73334784;BA.debugLine="Sub CreateBitmapWithNumber(OriginalBitmap As Bitma"; -RDebugUtils.currentLine=73334785; - //BA.debugLineNum = 73334785;BA.debugLine="Dim NewBitmap As Bitmap"; -_newbitmap = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.BitmapWrapper(); -RDebugUtils.currentLine=73334786; - //BA.debugLineNum = 73334786;BA.debugLine="NewBitmap.InitializeMutable(OriginalBitmap.Width,"; -_newbitmap.InitializeMutable(_originalbitmap.getWidth(),_originalbitmap.getHeight()); -RDebugUtils.currentLine=73334788; - //BA.debugLineNum = 73334788;BA.debugLine="Dim Canvas As Canvas"; -_canvas = new anywheresoftware.b4a.objects.drawable.CanvasWrapper(); -RDebugUtils.currentLine=73334789; - //BA.debugLineNum = 73334789;BA.debugLine="Canvas.Initialize2(NewBitmap)"; -_canvas.Initialize2((android.graphics.Bitmap)(_newbitmap.getObject())); -RDebugUtils.currentLine=73334792; - //BA.debugLineNum = 73334792;BA.debugLine="Dim DestRect As Rect"; -_destrect = new anywheresoftware.b4a.objects.drawable.CanvasWrapper.RectWrapper(); -RDebugUtils.currentLine=73334793; - //BA.debugLineNum = 73334793;BA.debugLine="DestRect.Initialize(0, 0, OriginalBitmap.Width, O"; -_destrect.Initialize((int) (0),(int) (0),_originalbitmap.getWidth(),_originalbitmap.getHeight()); -RDebugUtils.currentLine=73334796; - //BA.debugLineNum = 73334796;BA.debugLine="Canvas.DrawBitmap(OriginalBitmap, Null, DestRect)"; -_canvas.DrawBitmap((android.graphics.Bitmap)(_originalbitmap.getObject()),(android.graphics.Rect)(anywheresoftware.b4a.keywords.Common.Null),(android.graphics.Rect)(_destrect.getObject())); -RDebugUtils.currentLine=73334799; - //BA.debugLineNum = 73334799;BA.debugLine="Canvas.DrawText(Number, (OriginalBitmap.Width / 2"; -_canvas.DrawText(_ba,BA.NumberToString(_number),(float) ((_originalbitmap.getWidth()/(double)2)),(float) ((_originalbitmap.getHeight()/(double)2.4)),anywheresoftware.b4a.keywords.Common.Typeface.DEFAULT,(float) (20),anywheresoftware.b4a.keywords.Common.Colors.White,BA.getEnumFromString(android.graphics.Paint.Align.class,"CENTER")); -RDebugUtils.currentLine=73334801; - //BA.debugLineNum = 73334801;BA.debugLine="Return NewBitmap"; -if (true) return _newbitmap; -RDebugUtils.currentLine=73334802; - //BA.debugLineNum = 73334802;BA.debugLine="End Sub"; + //BA.debugLineNum = 943;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto"; +if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)}); + //BA.debugLineNum = 944;BA.debugLine="End Sub"; return null; } -public static String _borraarribade100errores(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "borraarribade100errores", false)) - {return ((String) Debug.delegate(null, "borraarribade100errores", new Object[] {_ba}));} -RDebugUtils.currentLine=70778880; - //BA.debugLineNum = 70778880;BA.debugLine="Sub borraArribaDe100Errores 'ignore"; -RDebugUtils.currentLine=70778881; - //BA.debugLineNum = 70778881;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD"; -if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) { -_revisabd(_ba);}; -RDebugUtils.currentLine=70778882; - //BA.debugLineNum = 70778882;BA.debugLine="LogColor(\"Recortamos la tabla de Errores, limite"; -anywheresoftware.b4a.keywords.Common.LogImpl("270778882","Recortamos la tabla de Errores, limite de 100",anywheresoftware.b4a.keywords.Common.Colors.Magenta); -RDebugUtils.currentLine=70778883; - //BA.debugLineNum = 70778883;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 )"); -RDebugUtils.currentLine=70778884; - //BA.debugLineNum = 70778884;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")"; -_errorlog.ExecNonQuery("vacuum;"); -RDebugUtils.currentLine=70778886; - //BA.debugLineNum = 70778886;BA.debugLine="End Sub"; -return ""; -} -public static String _revisabd(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "revisabd", false)) - {return ((String) Debug.delegate(null, "revisabd", new Object[] {_ba}));} +public static String _traeruta(anywheresoftware.b4a.BA _ba,String _cliente) throws Exception{ anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; -RDebugUtils.currentLine=69795840; - //BA.debugLineNum = 69795840;BA.debugLine="Sub revisaBD 'ignore"; -RDebugUtils.currentLine=69795841; - //BA.debugLineNum = 69795841;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");}; -RDebugUtils.currentLine=69795842; - //BA.debugLineNum = 69795842;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);}; -RDebugUtils.currentLine=69795843; - //BA.debugLineNum = 69795843;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)"); -RDebugUtils.currentLine=69795845; - //BA.debugLineNum = 69795845;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS bita"; -_kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS bitacora(fecha INTEGER, texto TEXT)"); -RDebugUtils.currentLine=69795847; - //BA.debugLineNum = 69795847;BA.debugLine="kmt.ExecNonQuery(\"DROP TABLE IF EXISTS CAT_FOLIOS"; -_kmt.ExecNonQuery("DROP TABLE IF EXISTS CAT_FOLIOS"); -RDebugUtils.currentLine=69795848; - //BA.debugLineNum = 69795848;BA.debugLine="kmt.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS REPA"; -_kmt.ExecNonQuery("CREATE TABLE IF NOT EXISTS REPARTO_GEO (CLIENTE TEXT, USUARIO TEXT, FECHA_PUNTEO TEXT, LATITUD TEXT, LONGITUD TEXT, ALMACEN TEXT, RUTA_REPARTO TEXT, RUTA_PREV TEXT, FECHA_PREVENTA TEXT, MOTIVO TEXT, COMENTARIO TEXT, TIPO TEXT, ENVIO TEXT)"); -RDebugUtils.currentLine=69795850; - //BA.debugLineNum = 69795850;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);}; -RDebugUtils.currentLine=69795851; - //BA.debugLineNum = 69795851;BA.debugLine="errorLog.ExecNonQuery(\"CREATE TABLE IF NOT EXISTS"; -_errorlog.ExecNonQuery("CREATE TABLE IF NOT EXISTS errores(fecha INTEGER, error TEXT)"); -RDebugUtils.currentLine=69795853; - //BA.debugLineNum = 69795853;BA.debugLine="Try 'Intentamos usar \"pragma_table_info\" para rev"; -try {RDebugUtils.currentLine=69795854; - //BA.debugLineNum = 69795854;BA.debugLine="Dim c As Cursor=kmt.ExecQuery(\"SELECT COUNT(*) A"; +String _r = ""; + //BA.debugLineNum = 743;BA.debugLine="Sub traeRuta (cliente As String) As String 'ignore"; + //BA.debugLineNum = 744;BA.debugLine="Private c As Cursor"; _c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("SELECT COUNT(*) AS fCol FROM pragma_table_info('noventa') WHERE name='NV_REPROGRAMAR'"))); -RDebugUtils.currentLine=69795855; - //BA.debugLineNum = 69795855;BA.debugLine="c.Position = 0"; -_c.setPosition((int) (0)); -RDebugUtils.currentLine=69795856; - //BA.debugLineNum = 69795856;BA.debugLine="If c.GetString(\"fCol\") = 0 Then 'Si no esta la c"; -if ((_c.GetString("fCol")).equals(BA.NumberToString(0))) { -RDebugUtils.currentLine=69795857; - //BA.debugLineNum = 69795857;BA.debugLine="kmt.ExecNonQuery(\"ALTER TABLE noventa ADD COLUM"; -_kmt.ExecNonQuery("ALTER TABLE noventa ADD COLUMN NV_REPROGRAMAR TEXT"); - }; - } - catch (Exception e16) { - (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e16);RDebugUtils.currentLine=69795860; - //BA.debugLineNum = 69795860;BA.debugLine="Try"; -try {RDebugUtils.currentLine=69795861; - //BA.debugLineNum = 69795861;BA.debugLine="kmt.ExecNonQuery(\"ALTER TABLE noventa ADD COLUM"; -_kmt.ExecNonQuery("ALTER TABLE noventa ADD COLUMN NV_REPROGRAMAR TEXT"); - } - catch (Exception e19) { - (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e19);RDebugUtils.currentLine=69795863; - //BA.debugLineNum = 69795863;BA.debugLine="Log(LastException)"; -anywheresoftware.b4a.keywords.Common.LogImpl("269795863",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); - }; - }; -RDebugUtils.currentLine=69795866; - //BA.debugLineNum = 69795866;BA.debugLine="End Sub"; -return ""; -} -public static String _borraarribade600renglonesbitacora(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "borraarribade600renglonesbitacora", false)) - {return ((String) Debug.delegate(null, "borraarribade600renglonesbitacora", new Object[] {_ba}));} -anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; -RDebugUtils.currentLine=70844416; - //BA.debugLineNum = 70844416;BA.debugLine="Sub borraArribaDe600RenglonesBitacora 'ignore"; -RDebugUtils.currentLine=70844417; - //BA.debugLineNum = 70844417;BA.debugLine="revisaBD"; -_revisabd(_ba); -RDebugUtils.currentLine=70844418; - //BA.debugLineNum = 70844418;BA.debugLine="LogColor(\"Recortamos la tabla de la Bitacora, lim"; -anywheresoftware.b4a.keywords.Common.LogImpl("270844418","Recortamos la tabla de la Bitacora, limite de 600",anywheresoftware.b4a.keywords.Common.Colors.Magenta); -RDebugUtils.currentLine=70844419; - //BA.debugLineNum = 70844419;BA.debugLine="Private c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=70844420; - //BA.debugLineNum = 70844420;BA.debugLine="c = kmt.ExecQuery(\"select fecha from bitacora\")"; -_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("select fecha from bitacora"))); -RDebugUtils.currentLine=70844421; - //BA.debugLineNum = 70844421;BA.debugLine="c.Position = 0"; -_c.setPosition((int) (0)); -RDebugUtils.currentLine=70844422; - //BA.debugLineNum = 70844422;BA.debugLine="If c.RowCount > 650 Then"; -if (_c.getRowCount()>650) { -RDebugUtils.currentLine=70844423; - //BA.debugLineNum = 70844423;BA.debugLine="kmt.ExecNonQuery(\"DELETE FROM bitacora WHERE fec"; -_kmt.ExecNonQuery("DELETE FROM bitacora WHERE fecha NOT in (SELECT fecha FROM bitacora ORDER BY fecha desc LIMIT 599 )"); -RDebugUtils.currentLine=70844424; - //BA.debugLineNum = 70844424;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")"; -_kmt.ExecNonQuery("vacuum;"); - }; -RDebugUtils.currentLine=70844427; - //BA.debugLineNum = 70844427;BA.debugLine="c.Close"; -_c.Close(); -RDebugUtils.currentLine=70844428; - //BA.debugLineNum = 70844428;BA.debugLine="End Sub"; -return ""; -} -public static String _borralogdb(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "borralogdb", false)) - {return ((String) Debug.delegate(null, "borralogdb", new Object[] {_ba}));} -RDebugUtils.currentLine=70451200; - //BA.debugLineNum = 70451200;BA.debugLine="Sub borraLogDB 'ignore"; -RDebugUtils.currentLine=70451201; - //BA.debugLineNum = 70451201;BA.debugLine="LogColor(\"Borramos BD de log\", Colors.Magenta)"; -anywheresoftware.b4a.keywords.Common.LogImpl("270451201","Borramos BD de log",anywheresoftware.b4a.keywords.Common.Colors.Magenta); -RDebugUtils.currentLine=70451202; - //BA.debugLineNum = 70451202;BA.debugLine="kmt.ExecNonQuery(\"delete from bitacora\")"; -_kmt.ExecNonQuery("delete from bitacora"); -RDebugUtils.currentLine=70451203; - //BA.debugLineNum = 70451203;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")"; -_kmt.ExecNonQuery("vacuum;"); -RDebugUtils.currentLine=70451204; - //BA.debugLineNum = 70451204;BA.debugLine="End Sub"; -return ""; -} -public static String _borramosarchivogps(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "borramosarchivogps", false)) - {return ((String) Debug.delegate(null, "borramosarchivogps", new Object[] {_ba}));} -anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; -String _s = ""; -byte[] _t = null; -RDebugUtils.currentLine=69730304; - //BA.debugLineNum = 69730304;BA.debugLine="Sub borramosArchivoGPS 'ignore"; -RDebugUtils.currentLine=69730305; - //BA.debugLineNum = 69730305;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di"; -_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -_out = anywheresoftware.b4a.keywords.Common.File.OpenOutput(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"gps.txt",anywheresoftware.b4a.keywords.Common.False); -RDebugUtils.currentLine=69730306; - //BA.debugLineNum = 69730306;BA.debugLine="Dim s As String = \"\""; -_s = ""; -RDebugUtils.currentLine=69730307; - //BA.debugLineNum = 69730307;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")"; -_t = _s.getBytes("UTF-8"); -RDebugUtils.currentLine=69730308; - //BA.debugLineNum = 69730308;BA.debugLine="out.WriteBytes(t, 0, t.Length)"; -_out.WriteBytes(_t,(int) (0),_t.length); -RDebugUtils.currentLine=69730309; - //BA.debugLineNum = 69730309;BA.debugLine="out.Close"; -_out.Close(); -RDebugUtils.currentLine=69730310; - //BA.debugLineNum = 69730310;BA.debugLine="End Sub"; -return ""; -} -public static String _compress(anywheresoftware.b4a.BA _ba,String _str) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "compress", false)) - {return ((String) Debug.delegate(null, "compress", new Object[] {_ba,_str}));} -byte[] _compressed = null; -String _base64 = ""; -RDebugUtils.currentLine=69009408; - //BA.debugLineNum = 69009408;BA.debugLine="Sub compress(str As String) As String 'ignore"; -RDebugUtils.currentLine=69009410; - //BA.debugLineNum = 69009410;BA.debugLine="Dim compressed() As Byte = GZip.compress(str)"; -_compressed = _gzip.compress(_str); -RDebugUtils.currentLine=69009413; - //BA.debugLineNum = 69009413;BA.debugLine="Dim base64 As String = su.EncodeBase64(compressed"; -_base64 = _su.EncodeBase64(_compressed); -RDebugUtils.currentLine=69009414; - //BA.debugLineNum = 69009414;BA.debugLine="Log($\"Comprimido: ${base64.Length}\"$)"; -anywheresoftware.b4a.keywords.Common.LogImpl("269009414",("Comprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_base64.length()))+""),0); -RDebugUtils.currentLine=69009416; - //BA.debugLineNum = 69009416;BA.debugLine="Return base64"; -if (true) return _base64; -RDebugUtils.currentLine=69009417; - //BA.debugLineNum = 69009417;BA.debugLine="End Sub"; -return ""; -} -public static String _copiadb(anywheresoftware.b4a.BA _ba,boolean _result) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "copiadb", false)) - {return ((String) Debug.delegate(null, "copiadb", new Object[] {_ba,_result}));} -String _p = ""; -String _thedir = ""; -RDebugUtils.currentLine=71172096; - //BA.debugLineNum = 71172096;BA.debugLine="Sub copiaDB(result As Boolean) 'ignore"; -RDebugUtils.currentLine=71172097; - //BA.debugLineNum = 71172097;BA.debugLine="If result Then"; -if (_result) { -RDebugUtils.currentLine=71172098; - //BA.debugLineNum = 71172098;BA.debugLine="Dim p As String"; -_p = ""; -RDebugUtils.currentLine=71172099; - //BA.debugLineNum = 71172099;BA.debugLine="If File.ExternalWritable Then"; -if (anywheresoftware.b4a.keywords.Common.File.getExternalWritable()) { -RDebugUtils.currentLine=71172100; - //BA.debugLineNum = 71172100;BA.debugLine="p = File.DirInternal"; -_p = anywheresoftware.b4a.keywords.Common.File.getDirInternal(); - }else { -RDebugUtils.currentLine=71172103; - //BA.debugLineNum = 71172103;BA.debugLine="p = File.DirInternal"; -_p = anywheresoftware.b4a.keywords.Common.File.getDirInternal(); - }; -RDebugUtils.currentLine=71172106; - //BA.debugLineNum = 71172106;BA.debugLine="Dim theDir As String"; -_thedir = ""; -RDebugUtils.currentLine=71172107; - //BA.debugLineNum = 71172107;BA.debugLine="Try"; -try {RDebugUtils.currentLine=71172108; - //BA.debugLineNum = 71172108;BA.debugLine="File.MakeDir(File.DirInternal,\"kmts\")"; -anywheresoftware.b4a.keywords.Common.File.MakeDir(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmts"); -RDebugUtils.currentLine=71172109; - //BA.debugLineNum = 71172109;BA.debugLine="theDir = \"/kmts\""; -_thedir = "/kmts"; - } - catch (Exception e13) { - (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e13);RDebugUtils.currentLine=71172111; - //BA.debugLineNum = 71172111;BA.debugLine="theDir = \"\""; -_thedir = ""; - }; -RDebugUtils.currentLine=71172113; - //BA.debugLineNum = 71172113;BA.debugLine="Try"; -try {RDebugUtils.currentLine=71172114; - //BA.debugLineNum = 71172114;BA.debugLine="File.Copy(File.DirInternal,\"kmt.db\",File.DirInt"; -anywheresoftware.b4a.keywords.Common.File.Copy(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"kmt.db",anywheresoftware.b4a.keywords.Common.File.getDirInternal()+_thedir,"guna_rep_kmt.db"); -RDebugUtils.currentLine=71172115; - //BA.debugLineNum = 71172115;BA.debugLine="ToastMessageShow(\"BD copiada!\", False)"; -anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("BD copiada!"),anywheresoftware.b4a.keywords.Common.False); - } - catch (Exception e19) { - (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e19);RDebugUtils.currentLine=71172117; - //BA.debugLineNum = 71172117;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); - }; -RDebugUtils.currentLine=71172119; - //BA.debugLineNum = 71172119;BA.debugLine="Log(\"rootExternal=\"&p)"; -anywheresoftware.b4a.keywords.Common.LogImpl("271172119","rootExternal="+_p,0); -RDebugUtils.currentLine=71172120; - //BA.debugLineNum = 71172120;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)"; -anywheresoftware.b4a.keywords.Common.LogImpl("271172120","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0); -RDebugUtils.currentLine=71172121; - //BA.debugLineNum = 71172121;BA.debugLine="Log(\"File.DirInternal=\"&File.DirInternal)"; -anywheresoftware.b4a.keywords.Common.LogImpl("271172121","File.DirInternal="+anywheresoftware.b4a.keywords.Common.File.getDirInternal(),0); - }else { -RDebugUtils.currentLine=71172123; - //BA.debugLineNum = 71172123;BA.debugLine="ToastMessageShow(\"Sin permisos\", False)"; -anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Sin permisos"),anywheresoftware.b4a.keywords.Common.False); - }; -RDebugUtils.currentLine=71172125; - //BA.debugLineNum = 71172125;BA.debugLine="End Sub"; -return ""; -} -public static String _dameerroresjson(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.sql.SQL _sql,int _maxerrores,boolean _comprimido) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "dameerroresjson", false)) - {return ((String) Debug.delegate(null, "dameerroresjson", new Object[] {_ba,_sql,_maxerrores,_comprimido}));} -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; -RDebugUtils.currentLine=70975488; - //BA.debugLineNum = 70975488;BA.debugLine="Sub dameErroresJSON(SQL As SQL, maxErrores As Int,"; -RDebugUtils.currentLine=70975489; - //BA.debugLineNum = 70975489;BA.debugLine="Log(\"dameErroresJSON\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("270975489","dameErroresJSON",0); -RDebugUtils.currentLine=70975490; - //BA.debugLineNum = 70975490;BA.debugLine="Private j As JSONGenerator"; -_j = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator(); -RDebugUtils.currentLine=70975491; - //BA.debugLineNum = 70975491;BA.debugLine="Private lim As String"; -_lim = ""; -RDebugUtils.currentLine=70975492; - //BA.debugLineNum = 70975492;BA.debugLine="Private cur As ResultSet"; -_cur = new anywheresoftware.b4a.sql.SQL.ResultSetWrapper(); -RDebugUtils.currentLine=70975493; - //BA.debugLineNum = 70975493;BA.debugLine="Private l As List"; -_l = new anywheresoftware.b4a.objects.collections.List(); -RDebugUtils.currentLine=70975494; - //BA.debugLineNum = 70975494;BA.debugLine="Private i As Int = 0"; -_i = (int) (0); -RDebugUtils.currentLine=70975495; - //BA.debugLineNum = 70975495;BA.debugLine="l.Initialize"; -_l.Initialize(); -RDebugUtils.currentLine=70975496; - //BA.debugLineNum = 70975496;BA.debugLine="Dim m, m2 As Map"; -_m = new anywheresoftware.b4a.objects.collections.Map(); -_m2 = new anywheresoftware.b4a.objects.collections.Map(); -RDebugUtils.currentLine=70975497; - //BA.debugLineNum = 70975497;BA.debugLine="m2.Initialize"; -_m2.Initialize(); -RDebugUtils.currentLine=70975498; - //BA.debugLineNum = 70975498;BA.debugLine="If maxErrores = 0 Then lim = \"\" Else lim = \"limit"; -if (_maxerrores==0) { -_lim = "";} -else { -_lim = "limit "+BA.NumberToString(_maxerrores);}; -RDebugUtils.currentLine=70975499; - //BA.debugLineNum = 70975499;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))); -RDebugUtils.currentLine=70975500; - //BA.debugLineNum = 70975500;BA.debugLine="Do While cur.NextRow"; -while (_cur.NextRow()) { -RDebugUtils.currentLine=70975501; - //BA.debugLineNum = 70975501;BA.debugLine="m.Initialize"; -_m.Initialize(); -RDebugUtils.currentLine=70975502; - //BA.debugLineNum = 70975502;BA.debugLine="m.Put(\"fecha\", cur.GetString(\"fecha\"))"; -_m.Put((Object)("fecha"),(Object)(_cur.GetString("fecha"))); -RDebugUtils.currentLine=70975503; - //BA.debugLineNum = 70975503;BA.debugLine="m.Put(\"error\", cur.GetString(\"error\"))"; -_m.Put((Object)("error"),(Object)(_cur.GetString("error"))); -RDebugUtils.currentLine=70975504; - //BA.debugLineNum = 70975504;BA.debugLine="m2.Put(i,m)"; -_m2.Put((Object)(_i),(Object)(_m.getObject())); -RDebugUtils.currentLine=70975505; - //BA.debugLineNum = 70975505;BA.debugLine="i = i + 1"; -_i = (int) (_i+1); - } -; -RDebugUtils.currentLine=70975507; - //BA.debugLineNum = 70975507;BA.debugLine="cur.Close"; -_cur.Close(); -RDebugUtils.currentLine=70975508; - //BA.debugLineNum = 70975508;BA.debugLine="j.Initialize(m2)"; -_j.Initialize(_m2); -RDebugUtils.currentLine=70975509; - //BA.debugLineNum = 70975509;BA.debugLine="Log(j.ToString)"; -anywheresoftware.b4a.keywords.Common.LogImpl("270975509",_j.ToString(),0); -RDebugUtils.currentLine=70975510; - //BA.debugLineNum = 70975510;BA.debugLine="If comprimido Then"; -if (_comprimido) { -RDebugUtils.currentLine=70975511; - //BA.debugLineNum = 70975511;BA.debugLine="Return compress(j.ToString)"; -if (true) return _compress(_ba,_j.ToString()); - }else { -RDebugUtils.currentLine=70975513; - //BA.debugLineNum = 70975513;BA.debugLine="Return j.ToString"; -if (true) return _j.ToString(); - }; -RDebugUtils.currentLine=70975515; - //BA.debugLineNum = 70975515;BA.debugLine="End Sub"; -return ""; -} -public static String _dameruta(anywheresoftware.b4a.BA _ba,String _inicioruta,String _origenruta) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "dameruta", false)) - {return ((String) Debug.delegate(null, "dameruta", new Object[] {_ba,_inicioruta,_origenruta}));} -String _fechainicio = ""; -anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; -String _ruta2 = ""; -int _i = 0; -RDebugUtils.currentLine=69533696; - //BA.debugLineNum = 69533696;BA.debugLine="Sub dameRuta(inicioRuta As String, origenRuta As S"; -RDebugUtils.currentLine=69533698; - //BA.debugLineNum = 69533698;BA.debugLine="Dim fechaInicio As String"; -_fechainicio = ""; -RDebugUtils.currentLine=69533699; - //BA.debugLineNum = 69533699;BA.debugLine="Try 'incioRuta es numero"; -try {RDebugUtils.currentLine=69533700; - //BA.debugLineNum = 69533700;BA.debugLine="inicioRuta = inicioRuta * 1"; -_inicioruta = BA.NumberToString((double)(Double.parseDouble(_inicioruta))*1); -RDebugUtils.currentLine=69533702; - //BA.debugLineNum = 69533702;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);RDebugUtils.currentLine=69533704; - //BA.debugLineNum = 69533704;BA.debugLine="fechaInicio = fechaInicioHoy"; -_fechainicio = _fechainiciohoy(_ba); - }; -RDebugUtils.currentLine=69533707; - //BA.debugLineNum = 69533707;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"fechaInicio"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("269533707","fechaInicio: "+_fechainicio+" | rutaHrsAtras="+BA.NumberToString(_rutahrsatras),0);}; -RDebugUtils.currentLine=69533708; - //BA.debugLineNum = 69533708;BA.debugLine="Dim c As Cursor"; -_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); -RDebugUtils.currentLine=69533709; - //BA.debugLineNum = 69533709;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);}; -RDebugUtils.currentLine=69533710; - //BA.debugLineNum = 69533710;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"select FECH"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("269533710","select FECHA, LAT, LON from "+_origenruta+" where FECHA > "+_fechainicio+" order by FECHA desc limit "+BA.NumberToString(_rutamaxpoints),0);}; -RDebugUtils.currentLine=69533711; - //BA.debugLineNum = 69533711;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)))); -RDebugUtils.currentLine=69533712; - //BA.debugLineNum = 69533712;BA.debugLine="c.Position = 0"; -_c.setPosition((int) (0)); -RDebugUtils.currentLine=69533713; - //BA.debugLineNum = 69533713;BA.debugLine="Dim ruta2 As String = \"\""; -_ruta2 = ""; -RDebugUtils.currentLine=69533714; - //BA.debugLineNum = 69533714;BA.debugLine="If c.RowCount>0 Then"; + //BA.debugLineNum = 745;BA.debugLine="Private r As String"; +_r = ""; + //BA.debugLineNum = 746;BA.debugLine="c=Starter.skmt.ExecQuery($\"select CAT_CL_RUTA fro"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select CAT_CL_RUTA from kmt_info where CAT_CL_CODIGO = '"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_cliente))+"'")))); + //BA.debugLineNum = 747;BA.debugLine="r = \"0\""; +_r = "0"; + //BA.debugLineNum = 748;BA.debugLine="If c.RowCount > 0 Then"; if (_c.getRowCount()>0) { -RDebugUtils.currentLine=69533715; - //BA.debugLineNum = 69533715;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 ) { -RDebugUtils.currentLine=69533716; - //BA.debugLineNum = 69533716;BA.debugLine="c.Position=i"; -_c.setPosition(_i); -RDebugUtils.currentLine=69533717; - //BA.debugLineNum = 69533717;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"); -RDebugUtils.currentLine=69533718; - //BA.debugLineNum = 69533718;BA.debugLine="B4XPages.MainPage.fechaRuta = c.GetString(\"FECH"; -mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._fecharuta /*String*/ = _c.GetString("FECHA"); - } -}; + //BA.debugLineNum = 749;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 750;BA.debugLine="r = c.GetString(\"CAT_CL_RUTA\")"; +_r = _c.GetString("CAT_CL_RUTA"); }; -RDebugUtils.currentLine=69533721; - //BA.debugLineNum = 69533721;BA.debugLine="c.Close"; + //BA.debugLineNum = 752;BA.debugLine="c.Close"; _c.Close(); -RDebugUtils.currentLine=69533722; - //BA.debugLineNum = 69533722;BA.debugLine="Return compress(ruta2)"; -if (true) return _compress(_ba,_ruta2); -RDebugUtils.currentLine=69533723; - //BA.debugLineNum = 69533723;BA.debugLine="End Sub"; + //BA.debugLineNum = 753;BA.debugLine="Return r"; +if (true) return _r; + //BA.debugLineNum = 754;BA.debugLine="End Sub"; return ""; } -public static String _fechainiciohoy(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "fechainiciohoy", false)) - {return ((String) Debug.delegate(null, "fechainiciohoy", new Object[] {_ba}));} -String _origformat = ""; -String _h = ""; -RDebugUtils.currentLine=70189056; - //BA.debugLineNum = 70189056;BA.debugLine="Sub fechaInicioHoy As String 'ignore"; -RDebugUtils.currentLine=70189057; - //BA.debugLineNum = 70189057;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat"; -_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); -RDebugUtils.currentLine=70189058; - //BA.debugLineNum = 70189058;BA.debugLine="DateTime.DateFormat=\"yyMMdd\""; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMdd"); -RDebugUtils.currentLine=70189059; - //BA.debugLineNum = 70189059;BA.debugLine="Private h As String = DateTime.Date(DateTime.Now"; -_h = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow())+"000000"; -RDebugUtils.currentLine=70189060; - //BA.debugLineNum = 70189060;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig"; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); -RDebugUtils.currentLine=70189061; - //BA.debugLineNum = 70189061;BA.debugLine="Log(\"Hoy=\"&h)"; -anywheresoftware.b4a.keywords.Common.LogImpl("270189061","Hoy="+_h,0); -RDebugUtils.currentLine=70189062; - //BA.debugLineNum = 70189062;BA.debugLine="Return h"; -if (true) return _h; -RDebugUtils.currentLine=70189063; - //BA.debugLineNum = 70189063;BA.debugLine="End Sub"; +public static String _traerutaprev(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _a = ""; + //BA.debugLineNum = 1047;BA.debugLine="Sub traerUTAPREV As String 'ignore"; + //BA.debugLineNum = 1048;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 1049;BA.debugLine="Private a As String"; +_a = ""; + //BA.debugLineNum = 1050;BA.debugLine="c = Starter.skmt.ExecQuery(\"select CAT_CL_RUTA fr"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select CAT_CL_RUTA from kmt_info where CAT_CL_CODIGO IN (SELECT CUENTA FROM CUENTAA)"))); + //BA.debugLineNum = 1051;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1052;BA.debugLine="a = C.GetString(\"CAT_CL_RUTA\")"; +_a = _c.GetString("CAT_CL_RUTA"); + //BA.debugLineNum = 1053;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1054;BA.debugLine="Return a"; +if (true) return _a; + //BA.debugLineNum = 1055;BA.debugLine="End Sub"; return ""; } -public static String _decompress(anywheresoftware.b4a.BA _ba,String _base64) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "decompress", false)) - {return ((String) Debug.delegate(null, "decompress", new Object[] {_ba,_base64}));} -byte[] _decompressedbytes = null; -anywheresoftware.b4a.agraham.byteconverter.ByteConverter _bc = null; -String _uncompressed = ""; -RDebugUtils.currentLine=69074944; - //BA.debugLineNum = 69074944;BA.debugLine="Sub decompress(base64 As String) As String 'ignore"; -RDebugUtils.currentLine=69074945; - //BA.debugLineNum = 69074945;BA.debugLine="Dim decompressedbytes() As Byte = su.DecodeBase64"; -_decompressedbytes = _su.DecodeBase64(_base64); -RDebugUtils.currentLine=69074947; - //BA.debugLineNum = 69074947;BA.debugLine="Dim bc As ByteConverter"; -_bc = new anywheresoftware.b4a.agraham.byteconverter.ByteConverter(); -RDebugUtils.currentLine=69074948; - //BA.debugLineNum = 69074948;BA.debugLine="Dim uncompressed As String = bc.StringFromBytes(d"; -_uncompressed = _bc.StringFromBytes(_decompressedbytes,"UTF8"); -RDebugUtils.currentLine=69074949; - //BA.debugLineNum = 69074949;BA.debugLine="Log($\"Descomprimido: ${uncompressed.Length}\"$)"; -anywheresoftware.b4a.keywords.Common.LogImpl("269074949",("Descomprimido: "+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(_uncompressed.length()))+""),0); -RDebugUtils.currentLine=69074951; - //BA.debugLineNum = 69074951;BA.debugLine="Return uncompressed"; -if (true) return _uncompressed; -RDebugUtils.currentLine=69074952; - //BA.debugLineNum = 69074952;BA.debugLine="End Sub"; -return ""; -} -public static String _deleteerrorlog_db(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "deleteerrorlog_db", false)) - {return ((String) Debug.delegate(null, "deleteerrorlog_db", new Object[] {_ba}));} -RDebugUtils.currentLine=69664768; - //BA.debugLineNum = 69664768;BA.debugLine="Sub deleteErrorLog_DB 'ignore"; -RDebugUtils.currentLine=69664769; - //BA.debugLineNum = 69664769;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD"; -if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) { -_revisabd(_ba);}; -RDebugUtils.currentLine=69664770; - //BA.debugLineNum = 69664770;BA.debugLine="errorLog.ExecNonQuery(\"delete from errores\")"; -_errorlog.ExecNonQuery("delete from errores"); -RDebugUtils.currentLine=69664771; - //BA.debugLineNum = 69664771;BA.debugLine="errorLog.ExecNonQuery(\"vacuum;\")"; -_errorlog.ExecNonQuery("vacuum;"); -RDebugUtils.currentLine=69664772; - //BA.debugLineNum = 69664772;BA.debugLine="ToastMessageShow(\"Borrada\", False)"; -anywheresoftware.b4a.keywords.Common.ToastMessageShow(BA.ObjectToCharSequence("Borrada"),anywheresoftware.b4a.keywords.Common.False); -RDebugUtils.currentLine=69664773; - //BA.debugLineNum = 69664773;BA.debugLine="End Sub"; -return ""; -} -public static String _deletegps_db(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "deletegps_db", false)) - {return ((String) Debug.delegate(null, "deletegps_db", new Object[] {_ba}));} -RDebugUtils.currentLine=69599232; - //BA.debugLineNum = 69599232;BA.debugLine="Sub deleteGPS_DB 'ignore"; -RDebugUtils.currentLine=69599233; - //BA.debugLineNum = 69599233;BA.debugLine="kmt.ExecNonQuery(\"delete from RUTA_GPS\")"; -_kmt.ExecNonQuery("delete from RUTA_GPS"); -RDebugUtils.currentLine=69599234; - //BA.debugLineNum = 69599234;BA.debugLine="kmt.ExecNonQuery(\"vacuum;\")"; -_kmt.ExecNonQuery("vacuum;"); -RDebugUtils.currentLine=69599235; - //BA.debugLineNum = 69599235;BA.debugLine="End Sub"; -return ""; -} -public static long _fechakmt2ticks(anywheresoftware.b4a.BA _ba,String _fkmt) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "fechakmt2ticks", false)) - {return ((Long) Debug.delegate(null, "fechakmt2ticks", new Object[] {_ba,_fkmt}));} -String _partefecha = ""; -String _partehora = ""; -String _origformat = ""; -long _ticks = 0L; -RDebugUtils.currentLine=71041024; - //BA.debugLineNum = 71041024;BA.debugLine="Sub fechaKMT2Ticks(fKMT As String) As Long 'ignore"; -RDebugUtils.currentLine=71041025; - //BA.debugLineNum = 71041025;BA.debugLine="Try"; -try {RDebugUtils.currentLine=71041026; - //BA.debugLineNum = 71041026;BA.debugLine="If fKMT.Length = 12 Then"; -if (_fkmt.length()==12) { -RDebugUtils.currentLine=71041027; - //BA.debugLineNum = 71041027;BA.debugLine="Private parteFecha As String = fKMT.SubString2("; -_partefecha = _fkmt.substring((int) (0),(int) (6)); -RDebugUtils.currentLine=71041028; - //BA.debugLineNum = 71041028;BA.debugLine="Private parteHora As String = fKMT.SubString(6)"; -_partehora = _fkmt.substring((int) (6)); -RDebugUtils.currentLine=71041029; - //BA.debugLineNum = 71041029;BA.debugLine="Private OrigFormat As String = DateTime.DateFor"; -_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); -RDebugUtils.currentLine=71041030; - //BA.debugLineNum = 71041030;BA.debugLine="DateTime.DateFormat=\"yyMMdd\""; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMdd"); -RDebugUtils.currentLine=71041031; - //BA.debugLineNum = 71041031;BA.debugLine="DateTime.TimeFormat=\"HHmmss\""; -anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat("HHmmss"); -RDebugUtils.currentLine=71041032; - //BA.debugLineNum = 71041032;BA.debugLine="Private ticks As Long = DateTime.DateTimeParse("; -_ticks = anywheresoftware.b4a.keywords.Common.DateTime.DateTimeParse(_partefecha,_partehora); -RDebugUtils.currentLine=71041034; - //BA.debugLineNum = 71041034;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig"; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); -RDebugUtils.currentLine=71041035; - //BA.debugLineNum = 71041035;BA.debugLine="Return ticks"; -if (true) return _ticks; - }else { -RDebugUtils.currentLine=71041037; - //BA.debugLineNum = 71041037;BA.debugLine="Log(\"Formato de fecha incorrecto, debe de ser '"; -anywheresoftware.b4a.keywords.Common.LogImpl("271041037","Formato de fecha incorrecto, debe de ser 'YYMMDDHHMMSS', no '"+_fkmt+"' largo="+BA.NumberToString(_fkmt.length()),0); -RDebugUtils.currentLine=71041038; - //BA.debugLineNum = 71041038;BA.debugLine="Return 0"; -if (true) return (long) (0); +public static String _traerutareparto(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _r = ""; + //BA.debugLineNum = 985;BA.debugLine="Sub traeRutaReparto As String 'ignore"; + //BA.debugLineNum = 986;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 987;BA.debugLine="Private r As String"; +_r = ""; + //BA.debugLineNum = 988;BA.debugLine="c=Starter.skmt.ExecQuery(\"select RUTAA from RUTAA"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select RUTAA from RUTAA"))); + //BA.debugLineNum = 989;BA.debugLine="r = \"0\""; +_r = "0"; + //BA.debugLineNum = 990;BA.debugLine="If c.RowCount > 0 Then"; +if (_c.getRowCount()>0) { + //BA.debugLineNum = 991;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 992;BA.debugLine="r = c.GetString(\"RUTAA\")"; +_r = _c.GetString("RUTAA"); }; - } - catch (Exception e16) { - (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e16);RDebugUtils.currentLine=71041041; - //BA.debugLineNum = 71041041;BA.debugLine="Log(LastException)"; -anywheresoftware.b4a.keywords.Common.LogImpl("271041041",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); -RDebugUtils.currentLine=71041042; - //BA.debugLineNum = 71041042;BA.debugLine="LogColor($\"Fecha dada: ${fKMT}, Parte Fecha: ${p"; -anywheresoftware.b4a.keywords.Common.LogImpl("271041042",("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); -RDebugUtils.currentLine=71041043; - //BA.debugLineNum = 71041043;BA.debugLine="Return 0"; -if (true) return (long) (0); - }; -RDebugUtils.currentLine=71041045; - //BA.debugLineNum = 71041045;BA.debugLine="End Sub"; -return 0L; -} -public static String _getphnid(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "getphnid", false)) - {return ((String) Debug.delegate(null, "getphnid", new Object[] {_ba}));} -String _t = ""; -String _s = ""; -RDebugUtils.currentLine=68943872; - //BA.debugLineNum = 68943872;BA.debugLine="Sub getPhnId As String 'ignore"; -RDebugUtils.currentLine=68943874; - //BA.debugLineNum = 68943874;BA.debugLine="devModel = phn.Model"; -_devmodel = _phn.getModel(); -RDebugUtils.currentLine=68943875; - //BA.debugLineNum = 68943875;BA.debugLine="If devModel.Length <= 3 Then 'Si phn.Model esta e"; -if (_devmodel.length()<=3) { -RDebugUtils.currentLine=68943876; - //BA.debugLineNum = 68943876;BA.debugLine="Dim t As String = phn.GetSettings(\"android_id\")"; -_t = _phn.GetSettings("android_id"); -RDebugUtils.currentLine=68943877; - //BA.debugLineNum = 68943877;BA.debugLine="devModel = t"; -_devmodel = _t; - }; -RDebugUtils.currentLine=68943879; - //BA.debugLineNum = 68943879;BA.debugLine="If devModel.Length >= 3 Then 'Si tenemos valor pa"; -if (_devmodel.length()>=3) { -RDebugUtils.currentLine=68943880; - //BA.debugLineNum = 68943880;BA.debugLine="File.WriteString(File.DirInternal, \"phnId.txt\","; -anywheresoftware.b4a.keywords.Common.File.WriteString(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"phnId.txt",_devmodel); - }else -{RDebugUtils.currentLine=68943882; - //BA.debugLineNum = 68943882;BA.debugLine="Else If devModel.Length < 3 Then ' Si no tenemos"; -if (_devmodel.length()<3) { -RDebugUtils.currentLine=68943883; - //BA.debugLineNum = 68943883;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"); -RDebugUtils.currentLine=68943884; - //BA.debugLineNum = 68943884;BA.debugLine="devModel = s"; -_devmodel = _s; - }} -; -RDebugUtils.currentLine=68943888; - //BA.debugLineNum = 68943888;BA.debugLine="Return devModel"; -if (true) return _devmodel; -RDebugUtils.currentLine=68943889; - //BA.debugLineNum = 68943889;BA.debugLine="End Sub"; + //BA.debugLineNum = 994;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 995;BA.debugLine="Return r"; +if (true) return _r; + //BA.debugLineNum = 996;BA.debugLine="End Sub"; return ""; } -public static String _getssid(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "getssid", false)) - {return ((String) Debug.delegate(null, "getssid", new Object[] {_ba}));} -RDebugUtils.currentLine=69861376; - //BA.debugLineNum = 69861376;BA.debugLine="Sub getSSID 'ignore"; -RDebugUtils.currentLine=69861381; - //BA.debugLineNum = 69861381;BA.debugLine="End Sub"; +public static String _traeusuario(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _a = ""; + //BA.debugLineNum = 1009;BA.debugLine="Sub traeUsuario As String 'ignore"; + //BA.debugLineNum = 1010;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 1011;BA.debugLine="Private a As String"; +_a = ""; + //BA.debugLineNum = 1012;BA.debugLine="c = Starter.skmt.ExecQuery(\"select USUARIO from U"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery("select USUARIO from USUARIOA"))); + //BA.debugLineNum = 1013;BA.debugLine="c.Position = 0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 1014;BA.debugLine="a = C.GetString(\"USUARIO\")"; +_a = _c.GetString("USUARIO"); + //BA.debugLineNum = 1015;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 1016;BA.debugLine="Return a"; +if (true) return _a; + //BA.debugLineNum = 1017;BA.debugLine="End Sub"; return ""; } -public static String _guardainfoenarchivo(anywheresoftware.b4a.BA _ba,String _coords) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "guardainfoenarchivo", false)) - {return ((String) Debug.delegate(null, "guardainfoenarchivo", new Object[] {_ba,_coords}));} -String _origformat = ""; -String _lastupdate = ""; -String _ubic = ""; -anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper _out = null; -String _s = ""; -byte[] _t = null; -RDebugUtils.currentLine=69402624; - //BA.debugLineNum = 69402624;BA.debugLine="Sub guardaInfoEnArchivo(coords As String) 'ignore"; -RDebugUtils.currentLine=69402626; - //BA.debugLineNum = 69402626;BA.debugLine="Dim OrigFormat As String=DateTime.DateFormat 'sa"; -_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); -RDebugUtils.currentLine=69402627; - //BA.debugLineNum = 69402627;BA.debugLine="DateTime.DateFormat=\"MMM-dd HH:mm:ss\""; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MMM-dd HH:mm:ss"); -RDebugUtils.currentLine=69402628; - //BA.debugLineNum = 69402628;BA.debugLine="Dim lastUpdate As String=DateTime.Date(DateTime.N"; -_lastupdate = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); -RDebugUtils.currentLine=69402629; - //BA.debugLineNum = 69402629;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); -RDebugUtils.currentLine=69402631; - //BA.debugLineNum = 69402631;BA.debugLine="Dim ubic As String = coords&\",\"&lastUpdate"; -_ubic = _coords+","+_lastupdate; -RDebugUtils.currentLine=69402632; - //BA.debugLineNum = 69402632;BA.debugLine="Dim out As OutputStream = File.OpenOutput(File.Di"; -_out = new anywheresoftware.b4a.objects.streams.File.OutputStreamWrapper(); -_out = anywheresoftware.b4a.keywords.Common.File.OpenOutput(anywheresoftware.b4a.keywords.Common.File.getDirInternal(),"gps.txt",anywheresoftware.b4a.keywords.Common.True); -RDebugUtils.currentLine=69402633; - //BA.debugLineNum = 69402633;BA.debugLine="Dim s As String = ubic & CRLF"; -_s = _ubic+anywheresoftware.b4a.keywords.Common.CRLF; -RDebugUtils.currentLine=69402634; - //BA.debugLineNum = 69402634;BA.debugLine="Dim t() As Byte = s.GetBytes(\"UTF-8\")"; -_t = _s.getBytes("UTF-8"); -RDebugUtils.currentLine=69402635; - //BA.debugLineNum = 69402635;BA.debugLine="out.WriteBytes(t, 0, t.Length)"; -_out.WriteBytes(_t,(int) (0),_t.length); -RDebugUtils.currentLine=69402636; - //BA.debugLineNum = 69402636;BA.debugLine="out.Close"; -_out.Close(); -RDebugUtils.currentLine=69402637; - //BA.debugLineNum = 69402637;BA.debugLine="End Sub"; -return ""; -} -public static String _guardainfoenbd(anywheresoftware.b4a.BA _ba,String _coords) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "guardainfoenbd", false)) - {return ((String) Debug.delegate(null, "guardainfoenbd", new Object[] {_ba,_coords}));} -String[] _latlon = null; -RDebugUtils.currentLine=69468160; - //BA.debugLineNum = 69468160;BA.debugLine="Sub guardaInfoEnBD(coords As String) 'ignore"; -RDebugUtils.currentLine=69468161; - //BA.debugLineNum = 69468161;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Guardamos u"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("269468161","Guardamos ubicacion en BD - "+_coords,0);}; -RDebugUtils.currentLine=69468162; - //BA.debugLineNum = 69468162;BA.debugLine="Try"; -try {RDebugUtils.currentLine=69468163; - //BA.debugLineNum = 69468163;BA.debugLine="Dim latlon() As String = Regex.Split(\"\\|\", coord"; -_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split("\\|",_coords); -RDebugUtils.currentLine=69468164; - //BA.debugLineNum = 69468164;BA.debugLine="If latlon.Length < 2 Then latlon = Regex.Split(\""; -if (_latlon.length<2) { -_latlon = anywheresoftware.b4a.keywords.Common.Regex.Split(",",_coords);}; -RDebugUtils.currentLine=69468166; - //BA.debugLineNum = 69468166;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD"; +public static String _traeusuariodebd(anywheresoftware.b4a.BA _ba) throws Exception{ +anywheresoftware.b4a.sql.SQL.CursorWrapper _c = null; +String _u = ""; + //BA.debugLineNum = 257;BA.debugLine="Sub traeUsuarioDeBD As String 'ignore"; + //BA.debugLineNum = 258;BA.debugLine="Private c As Cursor"; +_c = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); + //BA.debugLineNum = 259;BA.debugLine="Private u As String = \"SinUsuario\""; +_u = "SinUsuario"; + //BA.debugLineNum = 260;BA.debugLine="If Not(kmt.IsInitialized) Then revisaBD"; if (anywheresoftware.b4a.keywords.Common.Not(_kmt.IsInitialized())) { _revisabd(_ba);}; -RDebugUtils.currentLine=69468167; - //BA.debugLineNum = 69468167;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);RDebugUtils.currentLine=69468169; - //BA.debugLineNum = 69468169;BA.debugLine="Log(LastException)"; -anywheresoftware.b4a.keywords.Common.LogImpl("269468169",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); - }; -RDebugUtils.currentLine=69468171; - //BA.debugLineNum = 69468171;BA.debugLine="End Sub"; + //BA.debugLineNum = 261;BA.debugLine="c=kmt.ExecQuery(\"select USUARIO from usuarioa\")"; +_c = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(_kmt.ExecQuery("select USUARIO from usuarioa"))); + //BA.debugLineNum = 262;BA.debugLine="c.Position=0"; +_c.setPosition((int) (0)); + //BA.debugLineNum = 263;BA.debugLine="If c.RowCount > 0 Then u = c.GetString(\"USUARIO\")"; +if (_c.getRowCount()>0) { +_u = _c.GetString("USUARIO");}; + //BA.debugLineNum = 264;BA.debugLine="c.Close"; +_c.Close(); + //BA.debugLineNum = 265;BA.debugLine="Return u"; +if (true) return _u; + //BA.debugLineNum = 266;BA.debugLine="End Sub"; return ""; } -public static String _hmskmt(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "hmskmt", false)) - {return ((String) Debug.delegate(null, "hmskmt", new Object[] {_ba}));} -String _origformat = ""; -String _nuevahora = ""; -RDebugUtils.currentLine=69206016; - //BA.debugLineNum = 69206016;BA.debugLine="Sub hmsKMT As String 'ignore"; -RDebugUtils.currentLine=69206018; - //BA.debugLineNum = 69206018;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '"; -_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); -RDebugUtils.currentLine=69206019; - //BA.debugLineNum = 69206019;BA.debugLine="DateTime.DateFormat=\"HHmmss\""; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("HHmmss"); -RDebugUtils.currentLine=69206020; - //BA.debugLineNum = 69206020;BA.debugLine="Private nuevaHora As String=DateTime.Date(DateTim"; -_nuevahora = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); -RDebugUtils.currentLine=69206021; - //BA.debugLineNum = 69206021;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); -RDebugUtils.currentLine=69206023; - //BA.debugLineNum = 69206023;BA.debugLine="Return nuevaHora"; -if (true) return _nuevahora; -RDebugUtils.currentLine=69206024; - //BA.debugLineNum = 69206024;BA.debugLine="End Sub"; -return ""; -} -public static String _insertaenerrores(anywheresoftware.b4a.BA _ba,String _error) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "insertaenerrores", false)) - {return ((String) Debug.delegate(null, "insertaenerrores", new Object[] {_ba,_error}));} -RDebugUtils.currentLine=71303168; - //BA.debugLineNum = 71303168;BA.debugLine="Sub insertaEnErrores(error As String) 'ignore"; -RDebugUtils.currentLine=71303169; - //BA.debugLineNum = 71303169;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD"; -if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) { -_revisabd(_ba);}; -RDebugUtils.currentLine=71303170; - //BA.debugLineNum = 71303170;BA.debugLine="errorLog.ExecNonQuery2(\"INSERT INTO errores(fecha"; -_errorlog.ExecNonQuery2("INSERT INTO errores(fecha, error) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)(_error)})); -RDebugUtils.currentLine=71303171; - //BA.debugLineNum = 71303171;BA.debugLine="End Sub"; -return ""; -} -public static String _insertarenglonespruebaenerrorlog(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "insertarenglonespruebaenerrorlog", false)) - {return ((String) Debug.delegate(null, "insertarenglonespruebaenerrorlog", new Object[] {_ba}));} -int _x = 0; -RDebugUtils.currentLine=70909952; - //BA.debugLineNum = 70909952;BA.debugLine="Sub insertaRenglonesPruebaEnErrorLog 'ignore"; -RDebugUtils.currentLine=70909953; - //BA.debugLineNum = 70909953;BA.debugLine="If Not(errorLog.IsInitialized) Then revisaBD"; -if (anywheresoftware.b4a.keywords.Common.Not(_errorlog.IsInitialized())) { -_revisabd(_ba);}; -RDebugUtils.currentLine=70909954; - //BA.debugLineNum = 70909954;BA.debugLine="Log(\"insertamos 50 renglones a errorLog\")"; -anywheresoftware.b4a.keywords.Common.LogImpl("270909954","insertamos 50 renglones a errorLog",0); -RDebugUtils.currentLine=70909955; - //BA.debugLineNum = 70909955;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 ) { -RDebugUtils.currentLine=70909956; - //BA.debugLineNum = 70909956;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")})); -RDebugUtils.currentLine=70909957; - //BA.debugLineNum = 70909957;BA.debugLine="Log(x)"; -anywheresoftware.b4a.keywords.Common.LogImpl("270909957",BA.NumberToString(_x),0); - } -}; -RDebugUtils.currentLine=70909959; - //BA.debugLineNum = 70909959;BA.debugLine="End Sub"; -return ""; -} -public static String _installapk(anywheresoftware.b4a.BA _ba,String _dir,String _apk) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "installapk", false)) - {return ((String) Debug.delegate(null, "installapk", new Object[] {_ba,_dir,_apk}));} -anywheresoftware.b4a.objects.IntentWrapper _i = null; -RDebugUtils.currentLine=71106560; - //BA.debugLineNum = 71106560;BA.debugLine="Sub InstallAPK(dir As String, apk As String) 'igno"; -RDebugUtils.currentLine=71106561; - //BA.debugLineNum = 71106561;BA.debugLine="If File.Exists(dir, apk) Then"; -if (anywheresoftware.b4a.keywords.Common.File.Exists(_dir,_apk)) { -RDebugUtils.currentLine=71106562; - //BA.debugLineNum = 71106562;BA.debugLine="Dim i As Intent"; -_i = new anywheresoftware.b4a.objects.IntentWrapper(); -RDebugUtils.currentLine=71106563; - //BA.debugLineNum = 71106563;BA.debugLine="i.Initialize(i.ACTION_VIEW, \"file://\" & File.Com"; -_i.Initialize(_i.ACTION_VIEW,"file://"+anywheresoftware.b4a.keywords.Common.File.Combine(_dir,_apk)); -RDebugUtils.currentLine=71106564; - //BA.debugLineNum = 71106564;BA.debugLine="i.SetType(\"application/vnd.android.package-archi"; -_i.SetType("application/vnd.android.package-archive"); -RDebugUtils.currentLine=71106565; - //BA.debugLineNum = 71106565;BA.debugLine="StartActivity(i)"; -anywheresoftware.b4a.keywords.Common.StartActivity((_ba.processBA == null ? _ba : _ba.processBA),(Object)(_i.getObject())); - }; -RDebugUtils.currentLine=71106567; - //BA.debugLineNum = 71106567;BA.debugLine="End Sub"; -return ""; -} -public static anywheresoftware.b4a.objects.collections.Map _json2map(anywheresoftware.b4a.BA _ba,String _thejson) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "json2map", false)) - {return ((anywheresoftware.b4a.objects.collections.Map) Debug.delegate(null, "json2map", new Object[] {_ba,_thejson}));} -anywheresoftware.b4a.objects.collections.JSONParser _json = null; +public static anywheresoftware.b4a.objects.collections.Map _traevendidos(anywheresoftware.b4a.BA _ba) throws Exception{ anywheresoftware.b4a.objects.collections.Map _m = null; -RDebugUtils.currentLine=69926912; - //BA.debugLineNum = 69926912;BA.debugLine="Sub JSON2Map(theJson As String) As Map 'ignore"; -RDebugUtils.currentLine=69926914; - //BA.debugLineNum = 69926914;BA.debugLine="Try"; -try {RDebugUtils.currentLine=69926915; - //BA.debugLineNum = 69926915;BA.debugLine="Private json As JSONParser"; -_json = new anywheresoftware.b4a.objects.collections.JSONParser(); -RDebugUtils.currentLine=69926916; - //BA.debugLineNum = 69926916;BA.debugLine="json.Initialize(theJson)"; -_json.Initialize(_thejson); -RDebugUtils.currentLine=69926917; - //BA.debugLineNum = 69926917;BA.debugLine="Return json.NextObject"; -if (true) return _json.NextObject(); - } - catch (Exception e6) { - (_ba.processBA == null ? _ba : _ba.processBA).setLastException(e6);RDebugUtils.currentLine=69926919; - //BA.debugLineNum = 69926919;BA.debugLine="Log(LastException)"; -anywheresoftware.b4a.keywords.Common.LogImpl("269926919",BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba)),0); -RDebugUtils.currentLine=69926920; - //BA.debugLineNum = 69926920;BA.debugLine="log2DB(\"JSON2Map: \"&LastException)"; -_log2db(_ba,"JSON2Map: "+BA.ObjectToString(anywheresoftware.b4a.keywords.Common.LastException(_ba))); -RDebugUtils.currentLine=69926921; - //BA.debugLineNum = 69926921;BA.debugLine="Private m As Map = CreateMap(\"title\":\"Error gene"; +int _cant = 0; +String _monto = ""; +anywheresoftware.b4a.sql.SQL.CursorWrapper _rc = null; + //BA.debugLineNum = 947;BA.debugLine="Sub traeVendidos As Map"; + //BA.debugLineNum = 948;BA.debugLine="Private m As Map"; _m = new anywheresoftware.b4a.objects.collections.Map(); -_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())}); -RDebugUtils.currentLine=69926922; - //BA.debugLineNum = 69926922;BA.debugLine="Return m"; -if (true) return _m; + //BA.debugLineNum = 949;BA.debugLine="Private cant As Int = 0"; +_cant = (int) (0); + //BA.debugLineNum = 950;BA.debugLine="Private monto As String = 0"; +_monto = BA.NumberToString(0); + //BA.debugLineNum = 951;BA.debugLine="Private rc As Cursor = Starter.skmt.ExecQuery($\"s"; +_rc = new anywheresoftware.b4a.sql.SQL.CursorWrapper(); +_rc = (anywheresoftware.b4a.sql.SQL.CursorWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.sql.SQL.CursorWrapper(), (android.database.Cursor)(mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecQuery(("select sum(REP_CANT) as CUANTOS, sum(REP_CANT * REP_PRECIO) as CUANTO from REPARTO where REP_RECHAZO = '0' and REP_CANT <> '0'")))); + //BA.debugLineNum = 952;BA.debugLine="If rc.RowCount > 0 Then"; +if (_rc.getRowCount()>0) { + //BA.debugLineNum = 953;BA.debugLine="rc.Position = 0"; +_rc.setPosition((int) (0)); + //BA.debugLineNum = 954;BA.debugLine="If rc.GetString(\"CUANTOS\") <> Null Then"; +if (_rc.GetString("CUANTOS")!= null) { + //BA.debugLineNum = 955;BA.debugLine="cant = cant + rc.GetString(\"CUANTOS\")"; +_cant = (int) (_cant+(double)(Double.parseDouble(_rc.GetString("CUANTOS")))); + //BA.debugLineNum = 956;BA.debugLine="monto = monto + rc.GetString(\"CUANTO\")"; +_monto = BA.NumberToString((double)(Double.parseDouble(_monto))+(double)(Double.parseDouble(_rc.GetString("CUANTO")))); }; -RDebugUtils.currentLine=69926924; - //BA.debugLineNum = 69926924;BA.debugLine="End Sub"; + }; + //BA.debugLineNum = 960;BA.debugLine="Return CreateMap(\"cantidad\": cant, \"monto\": monto"; +if (true) return anywheresoftware.b4a.keywords.Common.createMap(new Object[] {(Object)("cantidad"),(Object)(_cant),(Object)("monto"),(Object)(_monto)}); + //BA.debugLineNum = 961;BA.debugLine="End Sub"; return null; } -public static String _log2db(anywheresoftware.b4a.BA _ba,String _texto) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "log2db", false)) - {return ((String) Debug.delegate(null, "log2db", new Object[] {_ba,_texto}));} -RDebugUtils.currentLine=70254592; - //BA.debugLineNum = 70254592;BA.debugLine="Sub log2DB(texto As String) 'ignore"; -RDebugUtils.currentLine=70254593; - //BA.debugLineNum = 70254593;BA.debugLine="LogColor(fechaKMT(DateTime.Now)&\" - log2BD: '\"&te"; -anywheresoftware.b4a.keywords.Common.LogImpl("270254593",_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))+" - log2BD: '"+_texto+"'",anywheresoftware.b4a.keywords.Common.Colors.Magenta); -RDebugUtils.currentLine=70254594; - //BA.debugLineNum = 70254594;BA.debugLine="If kmt.IsInitialized Then kmt.ExecNonQuery2(\"INSE"; -if (_kmt.IsInitialized()) { -_kmt.ExecNonQuery2("INSERT INTO bitacora(fecha, texto) VALUES (?,?)",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_fechakmt(_ba,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow()))),(Object)(_texto)}));}; -RDebugUtils.currentLine=70254595; - //BA.debugLineNum = 70254595;BA.debugLine="End Sub"; -return ""; } -public static String _mandamosloc(anywheresoftware.b4a.BA _ba,String _coords) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "mandamosloc", false)) - {return ((String) Debug.delegate(null, "mandamosloc", new Object[] {_ba,_coords}));} -RDebugUtils.currentLine=70123520; - //BA.debugLineNum = 70123520;BA.debugLine="Sub mandamosLoc(coords As String) 'ignore"; -RDebugUtils.currentLine=70123536; - //BA.debugLineNum = 70123536;BA.debugLine="End Sub"; -return ""; -} -public static String _map2json(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.collections.Map _m) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "map2json", false)) - {return ((String) Debug.delegate(null, "map2json", new Object[] {_ba,_m}));} -anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator _jg = null; -String _t = ""; -RDebugUtils.currentLine=69992448; - //BA.debugLineNum = 69992448;BA.debugLine="Sub map2JSON(m As Map) As String 'ignore"; -RDebugUtils.currentLine=69992451; - //BA.debugLineNum = 69992451;BA.debugLine="Dim jg As JSONGenerator"; -_jg = new anywheresoftware.b4a.objects.collections.JSONParser.JSONGenerator(); -RDebugUtils.currentLine=69992452; - //BA.debugLineNum = 69992452;BA.debugLine="jg.Initialize(m)"; -_jg.Initialize(_m); -RDebugUtils.currentLine=69992453; - //BA.debugLineNum = 69992453;BA.debugLine="Dim t As String = jg.ToString"; -_t = _jg.ToString(); -RDebugUtils.currentLine=69992454; - //BA.debugLineNum = 69992454;BA.debugLine="Return t"; -if (true) return _t; -RDebugUtils.currentLine=69992455; - //BA.debugLineNum = 69992455;BA.debugLine="End Sub"; -return ""; -} -public static boolean _masdexxmins(anywheresoftware.b4a.BA _ba,int _hora,int _mins) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "masdexxmins", false)) - {return ((Boolean) Debug.delegate(null, "masdexxmins", new Object[] {_ba,_hora,_mins}));} -RDebugUtils.currentLine=70320128; - //BA.debugLineNum = 70320128;BA.debugLine="Sub masDeXXMins(hora As Int, mins As Int) As Boole"; -RDebugUtils.currentLine=70320129; - //BA.debugLineNum = 70320129;BA.debugLine="If (hora + mins * DateTime.TicksPerMinute) < Date"; -if ((_hora+_mins*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute)500) { -RDebugUtils.currentLine=70647826; - //BA.debugLineNum = 70647826;BA.debugLine="log2DB(\"revisaFLP: 'No se esta actualizando, lo"; -_log2db(_ba,"revisaFLP: 'No se esta actualizando, lo reiniciamos ...'"); -RDebugUtils.currentLine=70647827; - //BA.debugLineNum = 70647827;BA.debugLine="StartService(Tracker)"; -anywheresoftware.b4a.keywords.Common.StartService((_ba.processBA == null ? _ba : _ba.processBA),(Object)(mostCurrent._tracker.getObject())); -RDebugUtils.currentLine=70647828; - //BA.debugLineNum = 70647828;BA.debugLine="todoBienFLP = False"; -_todobienflp = anywheresoftware.b4a.keywords.Common.False; - }; - }; -RDebugUtils.currentLine=70647831; - //BA.debugLineNum = 70647831;BA.debugLine="If todoBienFLP Then LogColor(\" +++ +++ Sin errore"; -if (_todobienflp) { -anywheresoftware.b4a.keywords.Common.LogImpl("270647831"," +++ +++ Sin errores en FLP",anywheresoftware.b4a.keywords.Common.Colors.Green);}; -RDebugUtils.currentLine=70647833; - //BA.debugLineNum = 70647833;BA.debugLine="End Sub"; -return ""; -} -public static String _revisapushservice(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "revisapushservice", false)) - {return ((String) Debug.delegate(null, "revisapushservice", new Object[] {_ba}));} -RDebugUtils.currentLine=70713344; - //BA.debugLineNum = 70713344;BA.debugLine="Sub revisaPushService 'ignore"; -RDebugUtils.currentLine=70713382; - //BA.debugLineNum = 70713382;BA.debugLine="End Sub"; -return ""; -} -public static String _revisauug(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="subs"; -if (Debug.shouldDelegate(null, "revisauug", false)) - {return ((String) Debug.delegate(null, "revisauug", new Object[] {_ba}));} -int _daa = 0; -RDebugUtils.currentLine=70582272; - //BA.debugLineNum = 70582272;BA.debugLine="Sub revisaUUG 'ignore"; -RDebugUtils.currentLine=70582273; - //BA.debugLineNum = 70582273;BA.debugLine="revisaFLP"; -_revisaflp(_ba); -RDebugUtils.currentLine=70582274; - //BA.debugLineNum = 70582274;BA.debugLine="If Tracker.FLP.GetLastKnownLocation.IsInitialized"; -if (mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().IsInitialized()) { -RDebugUtils.currentLine=70582275; - //BA.debugLineNum = 70582275;BA.debugLine="Dim daa As Int = Tracker.UUGCoords.DistanceTo(Tr"; -_daa = (int) (mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ .DistanceTo((android.location.Location)(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getObject()))); -RDebugUtils.currentLine=70582276; - //BA.debugLineNum = 70582276;BA.debugLine="If B4XPages.MainPage.Logger Then LogColor($\"****"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("270582276",("**** 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)));}; -RDebugUtils.currentLine=70582277; - //BA.debugLineNum = 70582277;BA.debugLine="If daa > 40 And Tracker.FLP.GetLastKnownLocation"; -if (_daa>40 && mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()<35) { -RDebugUtils.currentLine=70582278; - //BA.debugLineNum = 70582278;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())})); -RDebugUtils.currentLine=70582279; - //BA.debugLineNum = 70582279;BA.debugLine="If B4XPages.MainPage.Logger Then Log(\"++++ Dist"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (_ba)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("270582279","++++ Distancia a anterior="+BA.NumberToString(_daa)+"|"+"Precision="+BA.NumberToString(mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation().getAccuracy()),0);}; - }; -RDebugUtils.currentLine=70582281; - //BA.debugLineNum = 70582281;BA.debugLine="Tracker.UUGCoords = Tracker.FLP.GetLastKnownLoca"; -mostCurrent._tracker._uugcoords /*anywheresoftware.b4a.gps.LocationWrapper*/ = mostCurrent._tracker._flp /*uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper*/ .GetLastKnownLocation(); - }; -RDebugUtils.currentLine=70582283; - //BA.debugLineNum = 70582283;BA.debugLine="End Sub"; -return ""; -} -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/swiftbutton.java b/B4A/Objects/src/reparto_izca/keymon/lat/swiftbutton.java index 943c56d..eda0057 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/swiftbutton.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/swiftbutton.java @@ -10,7 +10,7 @@ public class swiftbutton extends B4AClass.ImplB4AClass implements BA.SubDelegato private static java.util.HashMap htSubs; private void innerInitialize(BA _ba) throws Exception { if (ba == null) { - ba = new anywheresoftware.b4a.ShellBA(_ba, this, htSubs, "reparto_izca.keymon.lat.swiftbutton"); + ba = new BA(_ba, this, htSubs, "reparto_izca.keymon.lat.swiftbutton"); if (htSubs == null) { ba.loadHtSubs(this.getClass()); htSubs = ba.htSubs; @@ -23,14 +23,7 @@ public class swiftbutton extends B4AClass.ImplB4AClass implements BA.SubDelegato ba.raiseEvent2(null, true, "class_globals", false); } - - public void innerInitializeHelper(anywheresoftware.b4a.BA _ba) throws Exception{ - innerInitialize(_ba); - } - public Object callSub(String sub, Object sender, Object[] args) throws Exception { - return BA.SubDelegator.SubNotFound; - } -public anywheresoftware.b4a.keywords.Common __c = null; + public anywheresoftware.b4a.keywords.Common __c = null; public String _meventname = ""; public Object _mcallback = null; public anywheresoftware.b4a.objects.B4XViewWrapper _mbase = null; @@ -60,410 +53,268 @@ public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; -public String _base_resize(reparto_izca.keymon.lat.swiftbutton __ref,double _width,double _height) throws Exception{ -__ref = this; -RDebugUtils.currentModule="swiftbutton"; -if (Debug.shouldDelegate(ba, "base_resize", true)) - {return ((String) Debug.delegate(ba, "base_resize", new Object[] {_width,_height}));} +public String _base_resize(double _width,double _height) throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _v = null; -RDebugUtils.currentLine=64880640; - //BA.debugLineNum = 64880640;BA.debugLine="Private Sub Base_Resize (Width As Double, Height A"; -RDebugUtils.currentLine=64880641; - //BA.debugLineNum = 64880641;BA.debugLine="cvs.Resize(Width, Height)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Resize((float) (_width),(float) (_height)); -RDebugUtils.currentLine=64880642; - //BA.debugLineNum = 64880642;BA.debugLine="For Each v As B4XView In mBase.GetAllViewsRecursi"; + //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 = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .GetAllViewsRecursive(); +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))); -RDebugUtils.currentLine=64880643; - //BA.debugLineNum = 64880643;BA.debugLine="v.SetLayoutAnimated(0, 0, 0, Width, Height)"; + //BA.debugLineNum = 57;BA.debugLine="v.SetLayoutAnimated(0, 0, 0, Width, Height)"; _v.SetLayoutAnimated((int) (0),(int) (0),(int) (0),(int) (_width),(int) (_height)); } }; -RDebugUtils.currentLine=64880645; - //BA.debugLineNum = 64880645;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=64880646; - //BA.debugLineNum = 64880646;BA.debugLine="End Sub"; + //BA.debugLineNum = 59;BA.debugLine="Draw"; +_draw(); + //BA.debugLineNum = 60;BA.debugLine="End Sub"; return ""; } -public String _draw(reparto_izca.keymon.lat.swiftbutton __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="swiftbutton"; -if (Debug.shouldDelegate(ba, "draw", true)) - {return ((String) Debug.delegate(ba, "draw", null));} -anywheresoftware.b4a.objects.B4XCanvas.B4XRect _r = null; -anywheresoftware.b4a.objects.B4XCanvas.B4XPath _p = null; -int _c = 0; -RDebugUtils.currentLine=65339392; - //BA.debugLineNum = 65339392;BA.debugLine="Private Sub Draw"; -RDebugUtils.currentLine=65339393; - //BA.debugLineNum = 65339393;BA.debugLine="cvs.ClearRect(cvs.TargetRect)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .ClearRect(__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .getTargetRect()); -RDebugUtils.currentLine=65339394; - //BA.debugLineNum = 65339394;BA.debugLine="Dim r As B4XRect"; -_r = new anywheresoftware.b4a.objects.B4XCanvas.B4XRect(); -RDebugUtils.currentLine=65339395; - //BA.debugLineNum = 65339395;BA.debugLine="Dim p As B4XPath"; -_p = new anywheresoftware.b4a.objects.B4XCanvas.B4XPath(); -RDebugUtils.currentLine=65339396; - //BA.debugLineNum = 65339396;BA.debugLine="r.Initialize(0, SideHeight, mBase.Width, mBase.He"; -_r.Initialize((float) (0),(float) (__ref._sideheight /*int*/ ),(float) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()),(float) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight())); -RDebugUtils.currentLine=65339397; - //BA.debugLineNum = 65339397;BA.debugLine="If pressed = False Then"; -if (__ref._pressed /*boolean*/ ==__c.False) { -RDebugUtils.currentLine=65339398; - //BA.debugLineNum = 65339398;BA.debugLine="xLBL.Top = 0"; -__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTop((int) (0)); -RDebugUtils.currentLine=65339399; - //BA.debugLineNum = 65339399;BA.debugLine="p.InitializeRoundedRect(r, CornersRadius)"; -_p.InitializeRoundedRect(_r,(float) (__ref._cornersradius /*int*/ )); -RDebugUtils.currentLine=65339400; - //BA.debugLineNum = 65339400;BA.debugLine="cvs.DrawPath(p, clr2, True, 0)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawPath(_p,__ref._clr2 /*int*/ ,__c.True,(float) (0)); -RDebugUtils.currentLine=65339401; - //BA.debugLineNum = 65339401;BA.debugLine="r.Initialize(0, 0, mBase.Width, mBase.Height - S"; -_r.Initialize((float) (0),(float) (0),(float) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth()),(float) (__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()-__ref._sideheight /*int*/ )); -RDebugUtils.currentLine=65339402; - //BA.debugLineNum = 65339402;BA.debugLine="p.InitializeRoundedRect(r, CornersRadius)"; -_p.InitializeRoundedRect(_r,(float) (__ref._cornersradius /*int*/ )); -RDebugUtils.currentLine=65339403; - //BA.debugLineNum = 65339403;BA.debugLine="cvs.DrawPath(p, clr1, True, 0)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawPath(_p,__ref._clr1 /*int*/ ,__c.True,(float) (0)); - }else { -RDebugUtils.currentLine=65339405; - //BA.debugLineNum = 65339405;BA.debugLine="xLBL.Top = SideHeight"; -__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTop(__ref._sideheight /*int*/ ); -RDebugUtils.currentLine=65339406; - //BA.debugLineNum = 65339406;BA.debugLine="p.InitializeRoundedRect(r, CornersRadius)"; -_p.InitializeRoundedRect(_r,(float) (__ref._cornersradius /*int*/ )); -RDebugUtils.currentLine=65339407; - //BA.debugLineNum = 65339407;BA.debugLine="Dim c As Int"; -_c = 0; -RDebugUtils.currentLine=65339408; - //BA.debugLineNum = 65339408;BA.debugLine="If mDisabled Then c = disabledColor Else c = clr"; -if (__ref._mdisabled /*boolean*/ ) { -_c = __ref._disabledcolor /*int*/ ;} -else { -_c = __ref._clr1 /*int*/ ;}; -RDebugUtils.currentLine=65339409; - //BA.debugLineNum = 65339409;BA.debugLine="cvs.DrawPath(p, c, True, 0)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .DrawPath(_p,_c,__c.True,(float) (0)); - }; -RDebugUtils.currentLine=65339412; - //BA.debugLineNum = 65339412;BA.debugLine="cvs.Invalidate"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Invalidate(); -RDebugUtils.currentLine=65339413; - //BA.debugLineNum = 65339413;BA.debugLine="End Sub"; -return ""; -} -public String _class_globals(reparto_izca.keymon.lat.swiftbutton __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="swiftbutton"; -RDebugUtils.currentLine=64684032; - //BA.debugLineNum = 64684032;BA.debugLine="Sub Class_Globals"; -RDebugUtils.currentLine=64684033; - //BA.debugLineNum = 64684033;BA.debugLine="Private mEventName As String 'ignore"; +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 = ""; -RDebugUtils.currentLine=64684034; - //BA.debugLineNum = 64684034;BA.debugLine="Private mCallBack As Object 'ignore"; + //BA.debugLineNum = 14;BA.debugLine="Private mCallBack As Object 'ignore"; _mcallback = new Object(); -RDebugUtils.currentLine=64684035; - //BA.debugLineNum = 64684035;BA.debugLine="Public mBase As B4XView 'ignore"; + //BA.debugLineNum = 15;BA.debugLine="Public mBase As B4XView 'ignore"; _mbase = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=64684036; - //BA.debugLineNum = 64684036;BA.debugLine="Private xui As XUI 'ignore"; + //BA.debugLineNum = 16;BA.debugLine="Private xui As XUI 'ignore"; _xui = new anywheresoftware.b4a.objects.B4XViewWrapper.XUI(); -RDebugUtils.currentLine=64684037; - //BA.debugLineNum = 64684037;BA.debugLine="Private cvs As B4XCanvas"; + //BA.debugLineNum = 17;BA.debugLine="Private cvs As B4XCanvas"; _cvs = new anywheresoftware.b4a.objects.B4XCanvas(); -RDebugUtils.currentLine=64684038; - //BA.debugLineNum = 64684038;BA.debugLine="Public xLBL As B4XView"; + //BA.debugLineNum = 18;BA.debugLine="Public xLBL As B4XView"; _xlbl = new anywheresoftware.b4a.objects.B4XViewWrapper(); -RDebugUtils.currentLine=64684039; - //BA.debugLineNum = 64684039;BA.debugLine="Public clr1, clr2, disabledColor As Int"; + //BA.debugLineNum = 19;BA.debugLine="Public clr1, clr2, disabledColor As Int"; _clr1 = 0; _clr2 = 0; _disabledcolor = 0; -RDebugUtils.currentLine=64684040; - //BA.debugLineNum = 64684040;BA.debugLine="Private pressed As Boolean"; + //BA.debugLineNum = 20;BA.debugLine="Private pressed As Boolean"; _pressed = false; -RDebugUtils.currentLine=64684041; - //BA.debugLineNum = 64684041;BA.debugLine="Public Tag As Object"; + //BA.debugLineNum = 21;BA.debugLine="Public Tag As Object"; _tag = new Object(); -RDebugUtils.currentLine=64684042; - //BA.debugLineNum = 64684042;BA.debugLine="Private mDisabled As Boolean"; + //BA.debugLineNum = 22;BA.debugLine="Private mDisabled As Boolean"; _mdisabled = false; -RDebugUtils.currentLine=64684043; - //BA.debugLineNum = 64684043;BA.debugLine="Public CornersRadius, SideHeight As Int"; + //BA.debugLineNum = 23;BA.debugLine="Public CornersRadius, SideHeight As Int"; _cornersradius = 0; _sideheight = 0; -RDebugUtils.currentLine=64684044; - //BA.debugLineNum = 64684044;BA.debugLine="Public mHaptic As Boolean"; + //BA.debugLineNum = 24;BA.debugLine="Public mHaptic As Boolean"; _mhaptic = false; -RDebugUtils.currentLine=64684045; - //BA.debugLineNum = 64684045;BA.debugLine="End Sub"; + //BA.debugLineNum = 25;BA.debugLine="End Sub"; return ""; } -public String _designercreateview(reparto_izca.keymon.lat.swiftbutton __ref,Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ -__ref = this; -RDebugUtils.currentModule="swiftbutton"; -if (Debug.shouldDelegate(ba, "designercreateview", true)) - {return ((String) Debug.delegate(ba, "designercreateview", new Object[] {_base,_lbl,_props}));} +public String _designercreateview(Object _base,anywheresoftware.b4a.objects.LabelWrapper _lbl,anywheresoftware.b4a.objects.collections.Map _props) throws Exception{ anywheresoftware.b4a.objects.B4XViewWrapper _p = null; -RDebugUtils.currentLine=64815104; - //BA.debugLineNum = 64815104;BA.debugLine="Public Sub DesignerCreateView (Base As Object, Lbl"; -RDebugUtils.currentLine=64815105; - //BA.debugLineNum = 64815105;BA.debugLine="mBase = Base"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_base)); -RDebugUtils.currentLine=64815106; - //BA.debugLineNum = 64815106;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._tag /*Object*/ = __ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getTag(); -RDebugUtils.currentLine=64815106; - //BA.debugLineNum = 64815106;BA.debugLine="Tag = mBase.Tag : mBase.Tag = Me"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setTag(this); -RDebugUtils.currentLine=64815107; - //BA.debugLineNum = 64815107;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"p\")"; + //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 = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .CreatePanel(ba,"p"); -RDebugUtils.currentLine=64815108; - //BA.debugLineNum = 64815108;BA.debugLine="p.Color = xui.Color_Transparent"; -_p.setColor(__ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .Color_Transparent); -RDebugUtils.currentLine=64815109; - //BA.debugLineNum = 64815109;BA.debugLine="clr1 = xui.PaintOrColorToColor(Props.Get(\"Primary"; -__ref._clr1 /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("PrimaryColor"))); -RDebugUtils.currentLine=64815110; - //BA.debugLineNum = 64815110;BA.debugLine="clr2 = xui.PaintOrColorToColor(Props.Get(\"Seconda"; -__ref._clr2 /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.Get((Object)("SecondaryColor"))); -RDebugUtils.currentLine=64815111; - //BA.debugLineNum = 64815111;BA.debugLine="disabledColor = xui.PaintOrColorToColor(Props.Get"; -__ref._disabledcolor /*int*/ = __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .PaintOrColorToColor(_props.GetDefault((Object)("DisabledColor"),(Object)(((int)0xff999999)))); -RDebugUtils.currentLine=64815112; - //BA.debugLineNum = 64815112;BA.debugLine="CornersRadius = DipToCurrent(Props.GetDefault(\"Co"; -__ref._cornersradius /*int*/ = __c.DipToCurrent((int)(BA.ObjectToNumber(_props.GetDefault((Object)("CornersRadius"),(Object)(15))))); -RDebugUtils.currentLine=64815113; - //BA.debugLineNum = 64815113;BA.debugLine="SideHeight = DipToCurrent(Props.GetDefault(\"SideH"; -__ref._sideheight /*int*/ = __c.DipToCurrent((int)(BA.ObjectToNumber(_props.GetDefault((Object)("SideHeight"),(Object)(5))))); -RDebugUtils.currentLine=64815114; - //BA.debugLineNum = 64815114;BA.debugLine="mDisabled = Not(Props.GetDefault(\"ButtonEnabled\","; -__ref._mdisabled /*boolean*/ = __c.Not(BA.ObjectToBoolean(_props.GetDefault((Object)("ButtonEnabled"),(Object)(__c.True)))); -RDebugUtils.currentLine=64815115; - //BA.debugLineNum = 64815115;BA.debugLine="mHaptic = Props.GetDefault(\"HapticFeedback\", Fals"; -__ref._mhaptic /*boolean*/ = BA.ObjectToBoolean(_props.GetDefault((Object)("HapticFeedback"),(Object)(__c.False))); -RDebugUtils.currentLine=64815116; - //BA.debugLineNum = 64815116;BA.debugLine="pressed = mDisabled"; -__ref._pressed /*boolean*/ = __ref._mdisabled /*boolean*/ ; -RDebugUtils.currentLine=64815117; - //BA.debugLineNum = 64815117;BA.debugLine="xLBL = Lbl"; -__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ = (anywheresoftware.b4a.objects.B4XViewWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4a.objects.B4XViewWrapper(), (java.lang.Object)(_lbl.getObject())); -RDebugUtils.currentLine=64815118; - //BA.debugLineNum = 64815118;BA.debugLine="xLBL.Visible = True"; -__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .setVisible(__c.True); -RDebugUtils.currentLine=64815119; - //BA.debugLineNum = 64815119;BA.debugLine="mBase.AddView(xLBL, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=64815120; - //BA.debugLineNum = 64815120;BA.debugLine="mBase.AddView(p, 0, 0, 0, 0)"; -__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .AddView((android.view.View)(_p.getObject()),(int) (0),(int) (0),(int) (0),(int) (0)); -RDebugUtils.currentLine=64815121; - //BA.debugLineNum = 64815121;BA.debugLine="xLBL.SetTextAlignment(\"CENTER\", \"CENTER\")"; -__ref._xlbl /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .SetTextAlignment("CENTER","CENTER"); -RDebugUtils.currentLine=64815122; - //BA.debugLineNum = 64815122;BA.debugLine="cvs.Initialize(mBase)"; -__ref._cvs /*anywheresoftware.b4a.objects.B4XCanvas*/ .Initialize(__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ ); -RDebugUtils.currentLine=64815123; - //BA.debugLineNum = 64815123;BA.debugLine="Base_Resize(mBase.Width, mBase.Height)"; -__ref._base_resize /*String*/ (null,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth(),__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight()); -RDebugUtils.currentLine=64815124; - //BA.debugLineNum = 64815124;BA.debugLine="End Sub"; +_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 boolean _getenabled(reparto_izca.keymon.lat.swiftbutton __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="swiftbutton"; -if (Debug.shouldDelegate(ba, "getenabled", true)) - {return ((Boolean) Debug.delegate(ba, "getenabled", null));} -RDebugUtils.currentLine=64946176; - //BA.debugLineNum = 64946176;BA.debugLine="Public Sub getEnabled As Boolean"; -RDebugUtils.currentLine=64946177; - //BA.debugLineNum = 64946177;BA.debugLine="Return Not(mDisabled)"; -if (true) return __c.Not(__ref._mdisabled /*boolean*/ ); -RDebugUtils.currentLine=64946178; - //BA.debugLineNum = 64946178;BA.debugLine="End Sub"; +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(reparto_izca.keymon.lat.swiftbutton __ref,anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ -__ref = this; +public String _initialize(anywheresoftware.b4a.BA _ba,Object _callback,String _eventname) throws Exception{ innerInitialize(_ba); -RDebugUtils.currentModule="swiftbutton"; -if (Debug.shouldDelegate(ba, "initialize", true)) - {return ((String) Debug.delegate(ba, "initialize", new Object[] {_ba,_callback,_eventname}));} -RDebugUtils.currentLine=64749568; - //BA.debugLineNum = 64749568;BA.debugLine="Public Sub Initialize (Callback As Object, EventNa"; -RDebugUtils.currentLine=64749569; - //BA.debugLineNum = 64749569;BA.debugLine="mEventName = EventName"; -__ref._meventname /*String*/ = _eventname; -RDebugUtils.currentLine=64749570; - //BA.debugLineNum = 64749570;BA.debugLine="mCallBack = Callback"; -__ref._mcallback /*Object*/ = _callback; -RDebugUtils.currentLine=64749571; - //BA.debugLineNum = 64749571;BA.debugLine="End Sub"; + //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(reparto_izca.keymon.lat.swiftbutton __ref,int _action,float _x,float _y) throws Exception{ -__ref = this; -RDebugUtils.currentModule="swiftbutton"; -if (Debug.shouldDelegate(ba, "p_touch", true)) - {return ((String) Debug.delegate(ba, "p_touch", new Object[] {_action,_x,_y}));} +public String _p_touch(int _action,float _x,float _y) throws Exception{ boolean _inside = false; -RDebugUtils.currentLine=65077248; - //BA.debugLineNum = 65077248;BA.debugLine="Private Sub p_Touch (Action As Int, X As Float, Y"; -RDebugUtils.currentLine=65077249; - //BA.debugLineNum = 65077249;BA.debugLine="If mDisabled Then Return"; -if (__ref._mdisabled /*boolean*/ ) { + //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 "";}; -RDebugUtils.currentLine=65077250; - //BA.debugLineNum = 65077250;BA.debugLine="Dim Inside As Boolean = x > 0 And x < mBase.Width"; -_inside = _x>0 && _x<__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getWidth() && _y>0 && _y<__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .getHeight(); -RDebugUtils.currentLine=65077251; - //BA.debugLineNum = 65077251;BA.debugLine="Select Action"; -switch (BA.switchObjectToInt(_action,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_DOWN,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_MOVE,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ .TOUCH_ACTION_UP,(int) (3))) { + //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: { -RDebugUtils.currentLine=65077253; - //BA.debugLineNum = 65077253;BA.debugLine="SetPressedState(True)"; -__ref._setpressedstate /*String*/ (null,__c.True); -RDebugUtils.currentLine=65077254; - //BA.debugLineNum = 65077254;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); + //BA.debugLineNum = 77;BA.debugLine="SetPressedState(True)"; +_setpressedstate(__c.True); + //BA.debugLineNum = 78;BA.debugLine="Draw"; +_draw(); break; } case 1: { -RDebugUtils.currentLine=65077256; - //BA.debugLineNum = 65077256;BA.debugLine="If pressed <> Inside Then"; -if (__ref._pressed /*boolean*/ !=_inside) { -RDebugUtils.currentLine=65077257; - //BA.debugLineNum = 65077257;BA.debugLine="SetPressedState(Inside)"; -__ref._setpressedstate /*String*/ (null,_inside); -RDebugUtils.currentLine=65077258; - //BA.debugLineNum = 65077258;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); + //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: { -RDebugUtils.currentLine=65077261; - //BA.debugLineNum = 65077261;BA.debugLine="SetPressedState(False)"; -__ref._setpressedstate /*String*/ (null,__c.False); -RDebugUtils.currentLine=65077262; - //BA.debugLineNum = 65077262;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=65077263; - //BA.debugLineNum = 65077263;BA.debugLine="If Inside Then"; + //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) { -RDebugUtils.currentLine=65077264; - //BA.debugLineNum = 65077264;BA.debugLine="If mHaptic Then XUIViewsUtils.PerformHapticFee"; -if (__ref._mhaptic /*boolean*/ ) { -_xuiviewsutils._performhapticfeedback /*String*/ (ba,__ref._mbase /*anywheresoftware.b4a.objects.B4XViewWrapper*/ );}; -RDebugUtils.currentLine=65077265; - //BA.debugLineNum = 65077265;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_Click"; -__c.CallSubDelayed(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_Click"); + //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; } } ; -RDebugUtils.currentLine=65077268; - //BA.debugLineNum = 65077268;BA.debugLine="End Sub"; + //BA.debugLineNum = 92;BA.debugLine="End Sub"; return ""; } -public String _setpressedstate(reparto_izca.keymon.lat.swiftbutton __ref,boolean _newstate) throws Exception{ -__ref = this; -RDebugUtils.currentModule="swiftbutton"; -if (Debug.shouldDelegate(ba, "setpressedstate", true)) - {return ((String) Debug.delegate(ba, "setpressedstate", new Object[] {_newstate}));} -RDebugUtils.currentLine=65142784; - //BA.debugLineNum = 65142784;BA.debugLine="Private Sub SetPressedState(NewState As Boolean)"; -RDebugUtils.currentLine=65142785; - //BA.debugLineNum = 65142785;BA.debugLine="If pressed = NewState Then Return"; -if (__ref._pressed /*boolean*/ ==_newstate) { +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 "";}; -RDebugUtils.currentLine=65142786; - //BA.debugLineNum = 65142786;BA.debugLine="If NewState And xui.SubExists(mCallBack, mEventNa"; -if (_newstate && __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_ButtonDown",(int) (0))) { -RDebugUtils.currentLine=65142787; - //BA.debugLineNum = 65142787;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_ButtonD"; -__c.CallSubDelayed(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_ButtonDown"); + //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"); }; -RDebugUtils.currentLine=65142789; - //BA.debugLineNum = 65142789;BA.debugLine="If NewState = False And xui.SubExists(mCallBack,"; -if (_newstate==__c.False && __ref._xui /*anywheresoftware.b4a.objects.B4XViewWrapper.XUI*/ .SubExists(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_ButtonUp",(int) (0))) { -RDebugUtils.currentLine=65142790; - //BA.debugLineNum = 65142790;BA.debugLine="CallSubDelayed(mCallBack, mEventName & \"_ButtonU"; -__c.CallSubDelayed(ba,__ref._mcallback /*Object*/ ,__ref._meventname /*String*/ +"_ButtonUp"); + //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"); }; -RDebugUtils.currentLine=65142792; - //BA.debugLineNum = 65142792;BA.debugLine="pressed= NewState"; -__ref._pressed /*boolean*/ = _newstate; -RDebugUtils.currentLine=65142793; - //BA.debugLineNum = 65142793;BA.debugLine="End Sub"; + //BA.debugLineNum = 102;BA.debugLine="pressed= NewState"; +_pressed = _newstate; + //BA.debugLineNum = 103;BA.debugLine="End Sub"; return ""; } -public String _setcolors(reparto_izca.keymon.lat.swiftbutton __ref,int _primary,int _secondary) throws Exception{ -__ref = this; -RDebugUtils.currentModule="swiftbutton"; -if (Debug.shouldDelegate(ba, "setcolors", true)) - {return ((String) Debug.delegate(ba, "setcolors", new Object[] {_primary,_secondary}));} -RDebugUtils.currentLine=65208320; - //BA.debugLineNum = 65208320;BA.debugLine="Public Sub SetColors(Primary As Int, Secondary As"; -RDebugUtils.currentLine=65208321; - //BA.debugLineNum = 65208321;BA.debugLine="clr1 = Primary"; -__ref._clr1 /*int*/ = _primary; -RDebugUtils.currentLine=65208322; - //BA.debugLineNum = 65208322;BA.debugLine="clr2 = Secondary"; -__ref._clr2 /*int*/ = _secondary; -RDebugUtils.currentLine=65208323; - //BA.debugLineNum = 65208323;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=65208324; - //BA.debugLineNum = 65208324;BA.debugLine="End Sub"; +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 String _setenabled(reparto_izca.keymon.lat.swiftbutton __ref,boolean _b) throws Exception{ -__ref = this; -RDebugUtils.currentModule="swiftbutton"; -if (Debug.shouldDelegate(ba, "setenabled", true)) - {return ((String) Debug.delegate(ba, "setenabled", new Object[] {_b}));} -RDebugUtils.currentLine=65011712; - //BA.debugLineNum = 65011712;BA.debugLine="Public Sub setEnabled(b As Boolean)"; -RDebugUtils.currentLine=65011713; - //BA.debugLineNum = 65011713;BA.debugLine="mDisabled = Not(b)"; -__ref._mdisabled /*boolean*/ = __c.Not(_b); -RDebugUtils.currentLine=65011714; - //BA.debugLineNum = 65011714;BA.debugLine="pressed = mDisabled"; -__ref._pressed /*boolean*/ = __ref._mdisabled /*boolean*/ ; -RDebugUtils.currentLine=65011715; - //BA.debugLineNum = 65011715;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=65011716; - //BA.debugLineNum = 65011716;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 String _update(reparto_izca.keymon.lat.swiftbutton __ref) throws Exception{ -__ref = this; -RDebugUtils.currentModule="swiftbutton"; -if (Debug.shouldDelegate(ba, "update", true)) - {return ((String) Debug.delegate(ba, "update", null));} -RDebugUtils.currentLine=65273856; - //BA.debugLineNum = 65273856;BA.debugLine="Public Sub Update"; -RDebugUtils.currentLine=65273857; - //BA.debugLineNum = 65273857;BA.debugLine="Draw"; -__ref._draw /*String*/ (null); -RDebugUtils.currentLine=65273858; - //BA.debugLineNum = 65273858;BA.debugLine="End Sub"; -return ""; } -} \ No newline at end of file diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/tracker.java b/B4A/Objects/src/reparto_izca/keymon/lat/tracker.java index 6302457..4ddc5c9 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/tracker.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/tracker.java @@ -14,7 +14,7 @@ public class tracker extends android.app.Service{ 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, anywheresoftware.b4a.ShellBA.class); + ServiceHelper.StarterHelper.startServiceFromReceiver (context, in, false, BA.class); } } @@ -29,7 +29,7 @@ public class tracker extends android.app.Service{ super.onCreate(); mostCurrent = this; if (processBA == null) { - processBA = new anywheresoftware.b4a.ShellBA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.tracker"); + processBA = new BA(this, null, null, "reparto_izca.keymon.lat", "reparto_izca.keymon.lat.tracker"); if (BA.isShellModeRuntimeCheck(processBA)) { processBA.raiseEvent2(null, true, "SHELL", false); } @@ -127,8 +127,7 @@ public class tracker extends android.app.Service{ @Override public android.os.IBinder onBind(android.content.Intent intent) { return null; - } -public anywheresoftware.b4a.keywords.Common __c = 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; @@ -153,209 +152,279 @@ public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; public reparto_izca.keymon.lat.xuiviewsutils _xuiviewsutils = null; public static uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _createlocationrequest() throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "createlocationrequest", false)) - {return ((uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest) Debug.delegate(processBA, "createlocationrequest", null));} uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _lr = null; -RDebugUtils.currentLine=73990144; - //BA.debugLineNum = 73990144;BA.debugLine="Private Sub CreateLocationRequest As LocationReque"; -RDebugUtils.currentLine=73990145; - //BA.debugLineNum = 73990145;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"CreateLocat"; + //BA.debugLineNum = 119;BA.debugLine="Private Sub CreateLocationRequest As LocationReque"; + //BA.debugLineNum = 120;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"CreateLocat"; if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("273990145","CreateLocationRequest",0);}; -RDebugUtils.currentLine=73990146; - //BA.debugLineNum = 73990146;BA.debugLine="Dim lr As LocationRequest"; +anywheresoftware.b4a.keywords.Common.LogImpl("038600705","CreateLocationRequest",0);}; + //BA.debugLineNum = 121;BA.debugLine="Dim lr As LocationRequest"; _lr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest(); -RDebugUtils.currentLine=73990147; - //BA.debugLineNum = 73990147;BA.debugLine="lr.Initialize"; + //BA.debugLineNum = 122;BA.debugLine="lr.Initialize"; _lr.Initialize(); -RDebugUtils.currentLine=73990148; - //BA.debugLineNum = 73990148;BA.debugLine="lr.SetInterval(100000) 'Intervalo deseado para ac"; + //BA.debugLineNum = 123;BA.debugLine="lr.SetInterval(100000) 'Intervalo deseado para ac"; _lr.SetInterval((long) (100000)); -RDebugUtils.currentLine=73990149; - //BA.debugLineNum = 73990149;BA.debugLine="lr.SetFastestInterval(lr.GetInterval / 2) 'Interv"; + //BA.debugLineNum = 124;BA.debugLine="lr.SetFastestInterval(lr.GetInterval / 2) 'Interv"; _lr.SetFastestInterval((long) (_lr.GetInterval()/(double)2)); -RDebugUtils.currentLine=73990150; - //BA.debugLineNum = 73990150;BA.debugLine="lr.SetSmallestDisplacement(75) 'Solo registra cam"; + //BA.debugLineNum = 125;BA.debugLine="lr.SetSmallestDisplacement(75) 'Solo registra cam"; _lr.SetSmallestDisplacement((float) (75)); -RDebugUtils.currentLine=73990151; - //BA.debugLineNum = 73990151;BA.debugLine="lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY"; + //BA.debugLineNum = 126;BA.debugLine="lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY"; _lr.SetPriority(_lr.Priority.PRIORITY_HIGH_ACCURACY); -RDebugUtils.currentLine=73990152; - //BA.debugLineNum = 73990152;BA.debugLine="actualLR=lr"; + //BA.debugLineNum = 127;BA.debugLine="actualLR=lr"; _actuallr = _lr; -RDebugUtils.currentLine=73990153; - //BA.debugLineNum = 73990153;BA.debugLine="Return lr"; + //BA.debugLineNum = 128;BA.debugLine="Return lr"; if (true) return _lr; -RDebugUtils.currentLine=73990154; - //BA.debugLineNum = 73990154;BA.debugLine="End Sub"; + //BA.debugLineNum = 129;BA.debugLine="End Sub"; return null; } public static uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _createlocationrequest2times() throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "createlocationrequest2times", false)) - {return ((uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest) Debug.delegate(processBA, "createlocationrequest2times", null));} uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest _lr = null; -RDebugUtils.currentLine=74055680; - //BA.debugLineNum = 74055680;BA.debugLine="Private Sub CreateLocationRequest2times As Locatio"; -RDebugUtils.currentLine=74055681; - //BA.debugLineNum = 74055681;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Iniciamos C"; + //BA.debugLineNum = 131;BA.debugLine="Private Sub CreateLocationRequest2times As Locatio"; + //BA.debugLineNum = 132;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Iniciamos C"; if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("274055681","Iniciamos CreateLocationRequest2times",0);}; -RDebugUtils.currentLine=74055682; - //BA.debugLineNum = 74055682;BA.debugLine="Dim lr As LocationRequest"; +anywheresoftware.b4a.keywords.Common.LogImpl("038666241","Iniciamos CreateLocationRequest2times",0);}; + //BA.debugLineNum = 133;BA.debugLine="Dim lr As LocationRequest"; _lr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest(); -RDebugUtils.currentLine=74055683; - //BA.debugLineNum = 74055683;BA.debugLine="lr.Initialize"; + //BA.debugLineNum = 134;BA.debugLine="lr.Initialize"; _lr.Initialize(); -RDebugUtils.currentLine=74055684; - //BA.debugLineNum = 74055684;BA.debugLine="lr.SetInterval(2000) 'Intervalo deseado para actu"; + //BA.debugLineNum = 135;BA.debugLine="lr.SetInterval(2000) 'Intervalo deseado para actu"; _lr.SetInterval((long) (2000)); -RDebugUtils.currentLine=74055685; - //BA.debugLineNum = 74055685;BA.debugLine="lr.SetFastestInterval(lr.GetInterval / 2) 'Interv"; + //BA.debugLineNum = 136;BA.debugLine="lr.SetFastestInterval(lr.GetInterval / 2) 'Interv"; _lr.SetFastestInterval((long) (_lr.GetInterval()/(double)2)); -RDebugUtils.currentLine=74055686; - //BA.debugLineNum = 74055686;BA.debugLine="lr.setNumUpdates(2) 'Solicitamos solo 2 actualiza"; + //BA.debugLineNum = 137;BA.debugLine="lr.setNumUpdates(2) 'Solicitamos solo 2 actualiza"; _lr.SetNumUpdates((int) (2)); -RDebugUtils.currentLine=74055687; - //BA.debugLineNum = 74055687;BA.debugLine="lr.SetSmallestDisplacement(10) 'Solo registra cam"; + //BA.debugLineNum = 138;BA.debugLine="lr.SetSmallestDisplacement(10) 'Solo registra cam"; _lr.SetSmallestDisplacement((float) (10)); -RDebugUtils.currentLine=74055688; - //BA.debugLineNum = 74055688;BA.debugLine="lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY"; + //BA.debugLineNum = 139;BA.debugLine="lr.SetPriority(lr.Priority.PRIORITY_HIGH_ACCURACY"; _lr.SetPriority(_lr.Priority.PRIORITY_HIGH_ACCURACY); -RDebugUtils.currentLine=74055689; - //BA.debugLineNum = 74055689;BA.debugLine="actualLR=lr"; + //BA.debugLineNum = 140;BA.debugLine="actualLR=lr"; _actuallr = _lr; -RDebugUtils.currentLine=74055690; - //BA.debugLineNum = 74055690;BA.debugLine="Return lr"; + //BA.debugLineNum = 141;BA.debugLine="Return lr"; if (true) return _lr; -RDebugUtils.currentLine=74055691; - //BA.debugLineNum = 74055691;BA.debugLine="End Sub"; + //BA.debugLineNum = 142;BA.debugLine="End Sub"; return null; } public static anywheresoftware.b4a.objects.NotificationWrapper _createnotification(String _body) throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "createnotification", false)) - {return ((anywheresoftware.b4a.objects.NotificationWrapper) Debug.delegate(processBA, "createnotification", new Object[] {_body}));} anywheresoftware.b4a.objects.NotificationWrapper _notification = null; -RDebugUtils.currentLine=74317824; - //BA.debugLineNum = 74317824;BA.debugLine="Sub CreateNotification (Body As String) As Notific"; -RDebugUtils.currentLine=74317825; - //BA.debugLineNum = 74317825;BA.debugLine="Dim notification As Notification"; + //BA.debugLineNum = 206;BA.debugLine="Sub CreateNotification (Body As String) As Notific"; + //BA.debugLineNum = 207;BA.debugLine="Dim notification As Notification"; _notification = new anywheresoftware.b4a.objects.NotificationWrapper(); -RDebugUtils.currentLine=74317826; - //BA.debugLineNum = 74317826;BA.debugLine="notification.Initialize2(notification.IMPORTANCE_"; + //BA.debugLineNum = 208;BA.debugLine="notification.Initialize2(notification.IMPORTANCE_"; _notification.Initialize2(_notification.IMPORTANCE_LOW); -RDebugUtils.currentLine=74317827; - //BA.debugLineNum = 74317827;BA.debugLine="notification.Icon = \"icon\""; + //BA.debugLineNum = 209;BA.debugLine="notification.Icon = \"icon\""; _notification.setIcon("icon"); -RDebugUtils.currentLine=74317828; - //BA.debugLineNum = 74317828;BA.debugLine="notification.SetInfo(\"IZCA REPARTO\", Body, Main)"; + //BA.debugLineNum = 210;BA.debugLine="notification.SetInfo(\"IZCA REPARTO\", Body, Main)"; _notification.SetInfoNew(processBA,BA.ObjectToCharSequence("IZCA REPARTO"),BA.ObjectToCharSequence(_body),(Object)(mostCurrent._main.getObject())); -RDebugUtils.currentLine=74317829; - //BA.debugLineNum = 74317829;BA.debugLine="Return notification"; + //BA.debugLineNum = 211;BA.debugLine="Return notification"; if (true) return _notification; -RDebugUtils.currentLine=74317830; - //BA.debugLineNum = 74317830;BA.debugLine="End Sub"; + //BA.debugLineNum = 212;BA.debugLine="End Sub"; return null; } public static String _dameultimaubicacionconocida() throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "dameultimaubicacionconocida", false)) - {return ((String) Debug.delegate(processBA, "dameultimaubicacionconocida", null));} String _coords = ""; -RDebugUtils.currentLine=74121216; - //BA.debugLineNum = 74121216;BA.debugLine="Sub dameUltimaUbicacionConocida"; -RDebugUtils.currentLine=74121217; - //BA.debugLineNum = 74121217;BA.debugLine="If FLP.GetLastKnownLocation.IsInitialized Then 'M"; + //BA.debugLineNum = 144;BA.debugLine="Sub dameUltimaUbicacionConocida"; + //BA.debugLineNum = 145;BA.debugLine="If FLP.GetLastKnownLocation.IsInitialized Then 'M"; if (_flp.GetLastKnownLocation().IsInitialized()) { -RDebugUtils.currentLine=74121219; - //BA.debugLineNum = 74121219;BA.debugLine="If B4XPages.MainPage.Logger Then LogColor($\"Mand"; + //BA.debugLineNum = 147;BA.debugLine="If B4XPages.MainPage.Logger Then LogColor($\"Mand"; if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("274121219",("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)));}; -RDebugUtils.currentLine=74121220; - //BA.debugLineNum = 74121220;BA.debugLine="Dim coords As String = FLP.GetLastKnownLocation."; +anywheresoftware.b4a.keywords.Common.LogImpl("038731779",("Mandamos UUC \""+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("",(Object)(mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(_flp.GetLastKnownLocation().getTime()))))+"|Acc:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getAccuracy()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLatitude()))+"|"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.8",(Object)(_flp.GetLastKnownLocation().getLongitude()))+"|Spd:"+anywheresoftware.b4a.keywords.Common.SmartStringFormatter("0.2",(Object)(_flp.GetLastKnownLocation().getSpeed()))+"|"),anywheresoftware.b4a.keywords.Common.Colors.RGB((int) (255),(int) (112),(int) (35)));}; + //BA.debugLineNum = 148;BA.debugLine="Dim coords As String = FLP.GetLastKnownLocation."; _coords = BA.NumberToString(_flp.GetLastKnownLocation().getLatitude())+","+BA.NumberToString(_flp.GetLastKnownLocation().getLongitude())+","+_formatofecha(BA.NumberToString(_flp.GetLastKnownLocation().getTime())); -RDebugUtils.currentLine=74121222; - //BA.debugLineNum = 74121222;BA.debugLine="Subs.mandamosLoc(coords)"; + //BA.debugLineNum = 150;BA.debugLine="Subs.mandamosLoc(coords)"; mostCurrent._subs._mandamosloc /*String*/ (processBA,_coords); }; -RDebugUtils.currentLine=74121224; - //BA.debugLineNum = 74121224;BA.debugLine="End Sub"; -return ""; -} -public static String _formatofecha(String _fecha) throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "formatofecha", false)) - {return ((String) Debug.delegate(processBA, "formatofecha", new Object[] {_fecha}));} -String _origformat = ""; -String _lastupdate = ""; -RDebugUtils.currentLine=74448896; - //BA.debugLineNum = 74448896;BA.debugLine="Sub formatoFecha(fecha As String) As String 'Convi"; -RDebugUtils.currentLine=74448898; - //BA.debugLineNum = 74448898;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '"; -_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); -RDebugUtils.currentLine=74448899; - //BA.debugLineNum = 74448899;BA.debugLine="DateTime.DateFormat=\"yyMMddHHmmss\""; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMddHHmmss"); -RDebugUtils.currentLine=74448900; - //BA.debugLineNum = 74448900;BA.debugLine="Dim lastUpdate As String=DateTime.Date(fecha)"; -_lastupdate = anywheresoftware.b4a.keywords.Common.DateTime.Date((long)(Double.parseDouble(_fecha))); -RDebugUtils.currentLine=74448901; - //BA.debugLineNum = 74448901;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); -RDebugUtils.currentLine=74448903; - //BA.debugLineNum = 74448903;BA.debugLine="Return lastUpdate"; -if (true) return _lastupdate; -RDebugUtils.currentLine=74448904; - //BA.debugLineNum = 74448904;BA.debugLine="End Sub"; + //BA.debugLineNum = 152;BA.debugLine="End Sub"; return ""; } public static String _flp_connectionfailed(int _connectionresult1) throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "flp_connectionfailed", false)) - {return ((String) Debug.delegate(processBA, "flp_connectionfailed", new Object[] {_connectionresult1}));} -RDebugUtils.currentLine=73596928; - //BA.debugLineNum = 73596928;BA.debugLine="Sub flp_ConnectionFailed(ConnectionResult1 As Int)"; -RDebugUtils.currentLine=73596929; - //BA.debugLineNum = 73596929;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Failed to c"; + //BA.debugLineNum = 59;BA.debugLine="Sub flp_ConnectionFailed(ConnectionResult1 As Int)"; + //BA.debugLineNum = 60;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Failed to c"; if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("273596929","Failed to connect to location provider",0);}; -RDebugUtils.currentLine=73596930; - //BA.debugLineNum = 73596930;BA.debugLine="End Sub"; +anywheresoftware.b4a.keywords.Common.LogImpl("038207489","Failed to connect to location provider",0);}; + //BA.debugLineNum = 61;BA.debugLine="End Sub"; return ""; } public static String _flp_connectionsuccess() throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "flp_connectionsuccess", false)) - {return ((String) Debug.delegate(processBA, "flp_connectionsuccess", null));} -RDebugUtils.currentLine=73531392; - //BA.debugLineNum = 73531392;BA.debugLine="Sub flp_ConnectionSuccess"; -RDebugUtils.currentLine=73531395; - //BA.debugLineNum = 73531395;BA.debugLine="End Sub"; + //BA.debugLineNum = 54;BA.debugLine="Sub flp_ConnectionSuccess"; + //BA.debugLineNum = 57;BA.debugLine="End Sub"; return ""; } public static String _flp_connectionsuspended(int _connectionresult1) throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "flp_connectionsuspended", false)) - {return ((String) Debug.delegate(processBA, "flp_connectionsuspended", new Object[] {_connectionresult1}));} -RDebugUtils.currentLine=73662464; - //BA.debugLineNum = 73662464;BA.debugLine="Sub flp_ConnectionSuspended(ConnectionResult1 As I"; -RDebugUtils.currentLine=73662465; - //BA.debugLineNum = 73662465;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"FLP conecti"; + //BA.debugLineNum = 63;BA.debugLine="Sub flp_ConnectionSuspended(ConnectionResult1 As I"; + //BA.debugLineNum = 64;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"FLP conecti"; if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("273662465","FLP conection suspended",0);}; -RDebugUtils.currentLine=73662466; - //BA.debugLineNum = 73662466;BA.debugLine="StartFLP"; +anywheresoftware.b4a.keywords.Common.LogImpl("038273025","FLP conection suspended",0);}; + //BA.debugLineNum = 65;BA.debugLine="StartFLP"; _startflp(); -RDebugUtils.currentLine=73662467; - //BA.debugLineNum = 73662467;BA.debugLine="End Sub"; + //BA.debugLineNum = 66;BA.debugLine="End Sub"; +return ""; +} +public static String _flp_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ +String _sdate = ""; +String _stime = ""; +String _coords = ""; +String _origformat = ""; +int _minsdif = 0; + //BA.debugLineNum = 162;BA.debugLine="Sub flp_LocationChanged (Location1 As Location)"; + //BA.debugLineNum = 163;BA.debugLine="Starter.trackerActividad = Subs.fechaKMT(DateTime"; +mostCurrent._starter._trackeractividad /*String*/ = mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow())); + //BA.debugLineNum = 164;BA.debugLine="UUGCoords = Location1"; +_uugcoords = _location1; + //BA.debugLineNum = 166;BA.debugLine="CallSub2(Starter, \"GPS_LocationChanged\", Location"; +anywheresoftware.b4a.keywords.Common.CallSubNew2(processBA,(Object)(mostCurrent._starter.getObject()),"GPS_LocationChanged",(Object)(_location1)); + //BA.debugLineNum = 169;BA.debugLine="B4XPages.MainPage.lat_gps = Location1.Latitude"; +mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ = BA.NumberToString(_location1.getLatitude()); + //BA.debugLineNum = 170;BA.debugLine="B4XPages.MainPage.lon_gps = Location1.Longitude"; +mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ = BA.NumberToString(_location1.getLongitude()); + //BA.debugLineNum = 172;BA.debugLine="Dim sDate,sTime As String"; +_sdate = ""; +_stime = ""; + //BA.debugLineNum = 173;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MM/dd/yyyy"); + //BA.debugLineNum = 174;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; +_sdate = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 175;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; +_stime = anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); + //BA.debugLineNum = 176;BA.debugLine="Try"; +try { //BA.debugLineNum = 177;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM HIST_GPS\""; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS"); + //BA.debugLineNum = 178;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_GPS"; +mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_GPS (HGDATE, HGLAT, HGLON) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_sdate+_stime),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ )})); + } + catch (Exception e14) { + processBA.setLastException(e14); //BA.debugLineNum = 180;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Error al b"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("038862866","Error al borrar o insertar nuevas coordendas en HIST_GPS",0);}; + }; + //BA.debugLineNum = 183;BA.debugLine="Dim coords As String = Location1.Latitude&\",\"&Loc"; +_coords = BA.NumberToString(_location1.getLatitude())+","+BA.NumberToString(_location1.getLongitude())+","+_formatofecha(BA.NumberToString(_location1.getTime())); + //BA.debugLineNum = 184;BA.debugLine="Log(\"Loc changed : \"&Location1.Latitude&\",\"&Locat"; +anywheresoftware.b4a.keywords.Common.LogImpl("038862870","Loc changed : "+BA.NumberToString(_location1.getLatitude())+","+BA.NumberToString(_location1.getLongitude()),0); + //BA.debugLineNum = 185;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Mandamos Ub"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("038862871","Mandamos Ubicacion",0);}; + //BA.debugLineNum = 186;BA.debugLine="If B4XPages.MainPage.logger Then Log(locRequest)"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("038862872",_locrequest,0);}; + //BA.debugLineNum = 188;BA.debugLine="If Location1.Accuracy < 100 Then"; +if (_location1.getAccuracy()<100) { + //BA.debugLineNum = 189;BA.debugLine="Subs.guardaInfoEnBD(coords)'Escribimos coordenad"; +mostCurrent._subs._guardainfoenbd /*String*/ (processBA,_coords); + //BA.debugLineNum = 191;BA.debugLine="Subs.mandamosLoc(coords)"; +mostCurrent._subs._mandamosloc /*String*/ (processBA,_coords); + }; + //BA.debugLineNum = 193;BA.debugLine="Dim origFormat As String = DateTime.TimeFormat 'G"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getTimeFormat(); + //BA.debugLineNum = 194;BA.debugLine="DateTime.TimeFormat = \"HHmmss\" ' Modificamos form"; +anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat("HHmmss"); + //BA.debugLineNum = 195;BA.debugLine="Dim minsDif As Int = DateTime.Time(DateTime.Now)"; +_minsdif = (int) ((double)(Double.parseDouble(anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow())))-(double)(Double.parseDouble(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._ultimaactualizaciongps /*String*/ ))); + //BA.debugLineNum = 197;BA.debugLine="If Location1.Accuracy < 100 And minsDif > 240 The"; +if (_location1.getAccuracy()<100 && _minsdif>240) { + //BA.debugLineNum = 198;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"actualizam"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("038862884","actualizamos Ubicacion Web",0);}; + //BA.debugLineNum = 199;BA.debugLine="CallSubDelayed(Starter, \"ENVIA_ULTIMA_GPS\")"; +anywheresoftware.b4a.keywords.Common.CallSubDelayed(processBA,(Object)(mostCurrent._starter.getObject()),"ENVIA_ULTIMA_GPS"); + }; + //BA.debugLineNum = 201;BA.debugLine="DateTime.TimeFormat = origFormat 'Regresamos form"; +anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat(_origformat); + //BA.debugLineNum = 203;BA.debugLine="Subs.monitor"; +mostCurrent._subs._monitor /*String*/ (processBA); + //BA.debugLineNum = 204;BA.debugLine="End Sub"; +return ""; +} +public static String _formatofecha(String _fecha) throws Exception{ +String _origformat = ""; +String _lastupdate = ""; + //BA.debugLineNum = 222;BA.debugLine="Sub formatoFecha(fecha As String) As String 'Convi"; + //BA.debugLineNum = 224;BA.debugLine="Dim OrigFormat As String = DateTime.DateFormat '"; +_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getDateFormat(); + //BA.debugLineNum = 225;BA.debugLine="DateTime.DateFormat=\"yyMMddHHmmss\""; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("yyMMddHHmmss"); + //BA.debugLineNum = 226;BA.debugLine="Dim lastUpdate As String=DateTime.Date(fecha)"; +_lastupdate = anywheresoftware.b4a.keywords.Common.DateTime.Date((long)(Double.parseDouble(_fecha))); + //BA.debugLineNum = 227;BA.debugLine="DateTime.DateFormat=OrigFormat 'return to orig d"; +anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat(_origformat); + //BA.debugLineNum = 229;BA.debugLine="Return lastUpdate"; +if (true) return _lastupdate; + //BA.debugLineNum = 230;BA.debugLine="End Sub"; +return ""; +} +public static String _process_globals() throws Exception{ + //BA.debugLineNum = 29;BA.debugLine="Sub Process_Globals"; + //BA.debugLineNum = 30;BA.debugLine="Private nid As Int = 1"; +_nid = (int) (1); + //BA.debugLineNum = 31;BA.debugLine="dim Tracking As Boolean"; +_tracking = false; + //BA.debugLineNum = 32;BA.debugLine="Private lock As PhoneWakeState"; +_lock = new anywheresoftware.b4a.phone.Phone.PhoneWakeState(); + //BA.debugLineNum = 34;BA.debugLine="Public FLP As FusedLocationProvider"; +_flp = new uk.co.martinpearman.b4a.fusedlocationprovider.FusedLocationProviderWrapper(); + //BA.debugLineNum = 35;BA.debugLine="Dim actualLR As LocationRequest"; +_actuallr = new uk.co.martinpearman.b4a.fusedlocationprovider.LocationRequest(); + //BA.debugLineNum = 36;BA.debugLine="Private flpStarted As Boolean"; +_flpstarted = false; + //BA.debugLineNum = 37;BA.debugLine="Dim locRequest As String"; +_locrequest = ""; + //BA.debugLineNum = 38;BA.debugLine="Dim UUGCoords As Location 'Ultima Ubicacion Guard"; +_uugcoords = new anywheresoftware.b4a.gps.LocationWrapper(); + //BA.debugLineNum = 39;BA.debugLine="Dim trackerActividad, pushServiceActividad As Str"; +_trackeractividad = ""; +_pushserviceactividad = ""; + //BA.debugLineNum = 40;BA.debugLine="End Sub"; +return ""; +} +public static String _service_create() throws Exception{ + //BA.debugLineNum = 42;BA.debugLine="Sub Service_Create"; + //BA.debugLineNum = 43;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT"; +mostCurrent._service.AutomaticForegroundMode = mostCurrent._service.AUTOMATIC_FOREGROUND_NEVER; + //BA.debugLineNum = 44;BA.debugLine="UUGCoords.Initialize"; +_uugcoords.Initialize(); + //BA.debugLineNum = 45;BA.debugLine="UUGCoords.Latitude = 0"; +_uugcoords.setLatitude(0); + //BA.debugLineNum = 46;BA.debugLine="UUGCoords.Longitude = 0"; +_uugcoords.setLongitude(0); + //BA.debugLineNum = 48;BA.debugLine="FLP.Initialize(\"flp\")"; +_flp.Initialize(processBA,"flp"); + //BA.debugLineNum = 49;BA.debugLine="FLP.Connect"; +_flp.Connect(); + //BA.debugLineNum = 50;BA.debugLine="lock.PartialLock"; +_lock.PartialLock(processBA); + //BA.debugLineNum = 51;BA.debugLine="StartFLP"; +_startflp(); + //BA.debugLineNum = 52;BA.debugLine="End Sub"; +return ""; +} +public static String _service_destroy() throws Exception{ + //BA.debugLineNum = 214;BA.debugLine="Sub Service_Destroy"; + //BA.debugLineNum = 215;BA.debugLine="If Tracking Then"; +if (_tracking) { + //BA.debugLineNum = 216;BA.debugLine="StopFLP"; +_stopflp(); + }; + //BA.debugLineNum = 218;BA.debugLine="Tracking = False"; +_tracking = anywheresoftware.b4a.keywords.Common.False; + //BA.debugLineNum = 219;BA.debugLine="lock.ReleasePartialLock"; +_lock.ReleasePartialLock(); + //BA.debugLineNum = 220;BA.debugLine="End Sub"; +return ""; +} +public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{ + //BA.debugLineNum = 68;BA.debugLine="Sub Service_Start (StartingIntent As Intent)"; + //BA.debugLineNum = 69;BA.debugLine="LogColor(\"Iniciando Tracker ...\", Colors.Green)"; +anywheresoftware.b4a.keywords.Common.LogImpl("038338561","Iniciando Tracker ...",anywheresoftware.b4a.keywords.Common.Colors.Green); + //BA.debugLineNum = 70;BA.debugLine="Service.StopAutomaticForeground"; +mostCurrent._service.StopAutomaticForeground(); + //BA.debugLineNum = 72;BA.debugLine="StartServiceAt(Me, DateTime.Now + 10 * DateTime.T"; +anywheresoftware.b4a.keywords.Common.StartServiceAt(processBA,tracker.getObject(),(long) (anywheresoftware.b4a.keywords.Common.DateTime.getNow()+10*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute),anywheresoftware.b4a.keywords.Common.True); + //BA.debugLineNum = 73;BA.debugLine="Track"; +_track(); + //BA.debugLineNum = 74;BA.debugLine="Starter.trackerActividad = Subs.fechaKMT(DateTime"; +mostCurrent._starter._trackeractividad /*String*/ = mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow())); + //BA.debugLineNum = 76;BA.debugLine="End Sub"; return ""; } public static void _startflp() throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "startflp", false)) - {Debug.delegate(processBA, "startflp", null); return;} ResumableSub_StartFLP rsub = new ResumableSub_StartFLP(null); rsub.resume(processBA, null); } @@ -367,7 +436,6 @@ reparto_izca.keymon.lat.tracker parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="tracker"; while (true) { switch (state) { @@ -377,8 +445,7 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=73859074; - //BA.debugLineNum = 73859074;BA.debugLine="Do While FLP.IsConnected = False"; + //BA.debugLineNum = 94;BA.debugLine="Do While FLP.IsConnected = False"; if (true) break; case 1: @@ -393,9 +460,8 @@ if (true) break; case 3: //C this.state = 1; -RDebugUtils.currentLine=73859075; - //BA.debugLineNum = 73859075;BA.debugLine="Sleep(500)"; -anywheresoftware.b4a.keywords.Common.Sleep(processBA,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "tracker", "startflp"),(int) (500)); + //BA.debugLineNum = 95;BA.debugLine="Sleep(500)"; +anywheresoftware.b4a.keywords.Common.Sleep(processBA,this,(int) (500)); this.state = 5; return; case 5: @@ -408,272 +474,18 @@ case 4: //C this.state = -1; ; -RDebugUtils.currentLine=73859080; - //BA.debugLineNum = 73859080;BA.debugLine="FLP.RequestLocationUpdates(CreateLocationRequest"; + //BA.debugLineNum = 100;BA.debugLine="FLP.RequestLocationUpdates(CreateLocationRequest"; parent._flp.RequestLocationUpdates((com.google.android.gms.location.LocationRequest)(_createlocationrequest().getObject())); -RDebugUtils.currentLine=73859083; - //BA.debugLineNum = 73859083;BA.debugLine="flpStarted = True"; + //BA.debugLineNum = 103;BA.debugLine="flpStarted = True"; parent._flpstarted = anywheresoftware.b4a.keywords.Common.True; -RDebugUtils.currentLine=73859085; - //BA.debugLineNum = 73859085;BA.debugLine="End Sub"; + //BA.debugLineNum = 105;BA.debugLine="End Sub"; if (true) break; } } } } -public static String _flp_locationchanged(anywheresoftware.b4a.gps.LocationWrapper _location1) throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "flp_locationchanged", false)) - {return ((String) Debug.delegate(processBA, "flp_locationchanged", new Object[] {_location1}));} -String _sdate = ""; -String _stime = ""; -String _coords = ""; -String _origformat = ""; -int _minsdif = 0; -RDebugUtils.currentLine=74252288; - //BA.debugLineNum = 74252288;BA.debugLine="Sub flp_LocationChanged (Location1 As Location)"; -RDebugUtils.currentLine=74252289; - //BA.debugLineNum = 74252289;BA.debugLine="Starter.trackerActividad = Subs.fechaKMT(DateTime"; -mostCurrent._starter._trackeractividad /*String*/ = mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow())); -RDebugUtils.currentLine=74252290; - //BA.debugLineNum = 74252290;BA.debugLine="UUGCoords = Location1"; -_uugcoords = _location1; -RDebugUtils.currentLine=74252292; - //BA.debugLineNum = 74252292;BA.debugLine="CallSub2(Starter, \"GPS_LocationChanged\", Location"; -anywheresoftware.b4a.keywords.Common.CallSubDebug2(processBA,(Object)(mostCurrent._starter.getObject()),"GPS_LocationChanged",(Object)(_location1)); -RDebugUtils.currentLine=74252295; - //BA.debugLineNum = 74252295;BA.debugLine="B4XPages.MainPage.lat_gps = Location1.Latitude"; -mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ = BA.NumberToString(_location1.getLatitude()); -RDebugUtils.currentLine=74252296; - //BA.debugLineNum = 74252296;BA.debugLine="B4XPages.MainPage.lon_gps = Location1.Longitude"; -mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ = BA.NumberToString(_location1.getLongitude()); -RDebugUtils.currentLine=74252298; - //BA.debugLineNum = 74252298;BA.debugLine="Dim sDate,sTime As String"; -_sdate = ""; -_stime = ""; -RDebugUtils.currentLine=74252299; - //BA.debugLineNum = 74252299;BA.debugLine="DateTime.DateFormat = \"MM/dd/yyyy\""; -anywheresoftware.b4a.keywords.Common.DateTime.setDateFormat("MM/dd/yyyy"); -RDebugUtils.currentLine=74252300; - //BA.debugLineNum = 74252300;BA.debugLine="sDate=DateTime.Date(DateTime.Now)"; -_sdate = anywheresoftware.b4a.keywords.Common.DateTime.Date(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); -RDebugUtils.currentLine=74252301; - //BA.debugLineNum = 74252301;BA.debugLine="sTime=DateTime.Time(DateTime.Now)"; -_stime = anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow()); -RDebugUtils.currentLine=74252302; - //BA.debugLineNum = 74252302;BA.debugLine="Try"; -try {RDebugUtils.currentLine=74252303; - //BA.debugLineNum = 74252303;BA.debugLine="Starter.skmt.ExecNonQuery(\"DELETE FROM HIST_GPS\""; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery("DELETE FROM HIST_GPS"); -RDebugUtils.currentLine=74252304; - //BA.debugLineNum = 74252304;BA.debugLine="Starter.skmt.ExecNonQuery2(\"INSERT INTO HIST_GPS"; -mostCurrent._starter._skmt /*anywheresoftware.b4a.sql.SQL*/ .ExecNonQuery2("INSERT INTO HIST_GPS (HGDATE, HGLAT, HGLON) VALUES(?,?,?) ",anywheresoftware.b4a.keywords.Common.ArrayToList(new Object[]{(Object)(_sdate+_stime),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lat_gps /*String*/ ),(Object)(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._lon_gps /*String*/ )})); - } - catch (Exception e14) { - processBA.setLastException(e14);RDebugUtils.currentLine=74252306; - //BA.debugLineNum = 74252306;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Error al b"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("274252306","Error al borrar o insertar nuevas coordendas en HIST_GPS",0);}; - }; -RDebugUtils.currentLine=74252309; - //BA.debugLineNum = 74252309;BA.debugLine="Dim coords As String = Location1.Latitude&\",\"&Loc"; -_coords = BA.NumberToString(_location1.getLatitude())+","+BA.NumberToString(_location1.getLongitude())+","+_formatofecha(BA.NumberToString(_location1.getTime())); -RDebugUtils.currentLine=74252310; - //BA.debugLineNum = 74252310;BA.debugLine="Log(\"Loc changed : \"&Location1.Latitude&\",\"&Locat"; -anywheresoftware.b4a.keywords.Common.LogImpl("274252310","Loc changed : "+BA.NumberToString(_location1.getLatitude())+","+BA.NumberToString(_location1.getLongitude()),0); -RDebugUtils.currentLine=74252311; - //BA.debugLineNum = 74252311;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Mandamos Ub"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("274252311","Mandamos Ubicacion",0);}; -RDebugUtils.currentLine=74252312; - //BA.debugLineNum = 74252312;BA.debugLine="If B4XPages.MainPage.logger Then Log(locRequest)"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("274252312",_locrequest,0);}; -RDebugUtils.currentLine=74252314; - //BA.debugLineNum = 74252314;BA.debugLine="If Location1.Accuracy < 100 Then"; -if (_location1.getAccuracy()<100) { -RDebugUtils.currentLine=74252315; - //BA.debugLineNum = 74252315;BA.debugLine="Subs.guardaInfoEnBD(coords)'Escribimos coordenad"; -mostCurrent._subs._guardainfoenbd /*String*/ (processBA,_coords); -RDebugUtils.currentLine=74252317; - //BA.debugLineNum = 74252317;BA.debugLine="Subs.mandamosLoc(coords)"; -mostCurrent._subs._mandamosloc /*String*/ (processBA,_coords); - }; -RDebugUtils.currentLine=74252319; - //BA.debugLineNum = 74252319;BA.debugLine="Dim origFormat As String = DateTime.TimeFormat 'G"; -_origformat = anywheresoftware.b4a.keywords.Common.DateTime.getTimeFormat(); -RDebugUtils.currentLine=74252320; - //BA.debugLineNum = 74252320;BA.debugLine="DateTime.TimeFormat = \"HHmmss\" ' Modificamos form"; -anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat("HHmmss"); -RDebugUtils.currentLine=74252321; - //BA.debugLineNum = 74252321;BA.debugLine="Dim minsDif As Int = DateTime.Time(DateTime.Now)"; -_minsdif = (int) ((double)(Double.parseDouble(anywheresoftware.b4a.keywords.Common.DateTime.Time(anywheresoftware.b4a.keywords.Common.DateTime.getNow())))-(double)(Double.parseDouble(mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._ultimaactualizaciongps /*String*/ ))); -RDebugUtils.currentLine=74252323; - //BA.debugLineNum = 74252323;BA.debugLine="If Location1.Accuracy < 100 And minsDif > 240 The"; -if (_location1.getAccuracy()<100 && _minsdif>240) { -RDebugUtils.currentLine=74252324; - //BA.debugLineNum = 74252324;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"actualizam"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("274252324","actualizamos Ubicacion Web",0);}; -RDebugUtils.currentLine=74252325; - //BA.debugLineNum = 74252325;BA.debugLine="CallSubDelayed(Starter, \"ENVIA_ULTIMA_GPS\")"; -anywheresoftware.b4a.keywords.Common.CallSubDelayed(processBA,(Object)(mostCurrent._starter.getObject()),"ENVIA_ULTIMA_GPS"); - }; -RDebugUtils.currentLine=74252327; - //BA.debugLineNum = 74252327;BA.debugLine="DateTime.TimeFormat = origFormat 'Regresamos form"; -anywheresoftware.b4a.keywords.Common.DateTime.setTimeFormat(_origformat); -RDebugUtils.currentLine=74252329; - //BA.debugLineNum = 74252329;BA.debugLine="Subs.monitor"; -mostCurrent._subs._monitor /*String*/ (processBA); -RDebugUtils.currentLine=74252330; - //BA.debugLineNum = 74252330;BA.debugLine="End Sub"; -return ""; -} -public static String _service_create() throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "service_create", false)) - {return ((String) Debug.delegate(processBA, "service_create", null));} -RDebugUtils.currentLine=73465856; - //BA.debugLineNum = 73465856;BA.debugLine="Sub Service_Create"; -RDebugUtils.currentLine=73465857; - //BA.debugLineNum = 73465857;BA.debugLine="Service.AutomaticForegroundMode = Service.AUTOMAT"; -mostCurrent._service.AutomaticForegroundMode = mostCurrent._service.AUTOMATIC_FOREGROUND_NEVER; -RDebugUtils.currentLine=73465858; - //BA.debugLineNum = 73465858;BA.debugLine="UUGCoords.Initialize"; -_uugcoords.Initialize(); -RDebugUtils.currentLine=73465859; - //BA.debugLineNum = 73465859;BA.debugLine="UUGCoords.Latitude = 0"; -_uugcoords.setLatitude(0); -RDebugUtils.currentLine=73465860; - //BA.debugLineNum = 73465860;BA.debugLine="UUGCoords.Longitude = 0"; -_uugcoords.setLongitude(0); -RDebugUtils.currentLine=73465862; - //BA.debugLineNum = 73465862;BA.debugLine="FLP.Initialize(\"flp\")"; -_flp.Initialize(processBA,"flp"); -RDebugUtils.currentLine=73465863; - //BA.debugLineNum = 73465863;BA.debugLine="FLP.Connect"; -_flp.Connect(); -RDebugUtils.currentLine=73465864; - //BA.debugLineNum = 73465864;BA.debugLine="lock.PartialLock"; -_lock.PartialLock(processBA); -RDebugUtils.currentLine=73465865; - //BA.debugLineNum = 73465865;BA.debugLine="StartFLP"; -_startflp(); -RDebugUtils.currentLine=73465866; - //BA.debugLineNum = 73465866;BA.debugLine="End Sub"; -return ""; -} -public static String _service_destroy() throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "service_destroy", false)) - {return ((String) Debug.delegate(processBA, "service_destroy", null));} -RDebugUtils.currentLine=74383360; - //BA.debugLineNum = 74383360;BA.debugLine="Sub Service_Destroy"; -RDebugUtils.currentLine=74383361; - //BA.debugLineNum = 74383361;BA.debugLine="If Tracking Then"; -if (_tracking) { -RDebugUtils.currentLine=74383362; - //BA.debugLineNum = 74383362;BA.debugLine="StopFLP"; -_stopflp(); - }; -RDebugUtils.currentLine=74383364; - //BA.debugLineNum = 74383364;BA.debugLine="Tracking = False"; -_tracking = anywheresoftware.b4a.keywords.Common.False; -RDebugUtils.currentLine=74383365; - //BA.debugLineNum = 74383365;BA.debugLine="lock.ReleasePartialLock"; -_lock.ReleasePartialLock(); -RDebugUtils.currentLine=74383366; - //BA.debugLineNum = 74383366;BA.debugLine="End Sub"; -return ""; -} -public static String _stopflp() throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "stopflp", false)) - {return ((String) Debug.delegate(processBA, "stopflp", null));} -RDebugUtils.currentLine=74186752; - //BA.debugLineNum = 74186752;BA.debugLine="Public Sub StopFLP"; -RDebugUtils.currentLine=74186754; - //BA.debugLineNum = 74186754;BA.debugLine="If flpStarted Then"; -if (_flpstarted) { -RDebugUtils.currentLine=74186755; - //BA.debugLineNum = 74186755;BA.debugLine="FLP.RemoveLocationUpdates 'Eliminamos todas las"; -_flp.RemoveLocationUpdates(); -RDebugUtils.currentLine=74186756; - //BA.debugLineNum = 74186756;BA.debugLine="flpStarted = False"; -_flpstarted = anywheresoftware.b4a.keywords.Common.False; - }; -RDebugUtils.currentLine=74186758; - //BA.debugLineNum = 74186758;BA.debugLine="End Sub"; -return ""; -} -public static String _service_start(anywheresoftware.b4a.objects.IntentWrapper _startingintent) throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "service_start", false)) - {return ((String) Debug.delegate(processBA, "service_start", new Object[] {_startingintent}));} -RDebugUtils.currentLine=73728000; - //BA.debugLineNum = 73728000;BA.debugLine="Sub Service_Start (StartingIntent As Intent)"; -RDebugUtils.currentLine=73728001; - //BA.debugLineNum = 73728001;BA.debugLine="LogColor(\"Iniciando Tracker ...\", Colors.Green)"; -anywheresoftware.b4a.keywords.Common.LogImpl("273728001","Iniciando Tracker ...",anywheresoftware.b4a.keywords.Common.Colors.Green); -RDebugUtils.currentLine=73728002; - //BA.debugLineNum = 73728002;BA.debugLine="Service.StopAutomaticForeground"; -mostCurrent._service.StopAutomaticForeground(); -RDebugUtils.currentLine=73728004; - //BA.debugLineNum = 73728004;BA.debugLine="StartServiceAt(Me, DateTime.Now + 10 * DateTime.T"; -anywheresoftware.b4a.keywords.Common.StartServiceAt(processBA,tracker.getObject(),(long) (anywheresoftware.b4a.keywords.Common.DateTime.getNow()+10*anywheresoftware.b4a.keywords.Common.DateTime.TicksPerMinute),anywheresoftware.b4a.keywords.Common.True); -RDebugUtils.currentLine=73728005; - //BA.debugLineNum = 73728005;BA.debugLine="Track"; -_track(); -RDebugUtils.currentLine=73728006; - //BA.debugLineNum = 73728006;BA.debugLine="Starter.trackerActividad = Subs.fechaKMT(DateTime"; -mostCurrent._starter._trackeractividad /*String*/ = mostCurrent._subs._fechakmt /*String*/ (processBA,BA.NumberToString(anywheresoftware.b4a.keywords.Common.DateTime.getNow())); -RDebugUtils.currentLine=73728008; - //BA.debugLineNum = 73728008;BA.debugLine="End Sub"; -return ""; -} -public static String _track() throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "track", false)) - {return ((String) Debug.delegate(processBA, "track", null));} -RDebugUtils.currentLine=73793536; - //BA.debugLineNum = 73793536;BA.debugLine="Public Sub Track"; -RDebugUtils.currentLine=73793537; - //BA.debugLineNum = 73793537;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Inicia Trac"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("273793537","Inicia Track - Tracking : "+BA.ObjectToString(_tracking),0);}; -RDebugUtils.currentLine=73793538; - //BA.debugLineNum = 73793538;BA.debugLine="If Tracking Then"; -if (_tracking) { -RDebugUtils.currentLine=73793540; - //BA.debugLineNum = 73793540;BA.debugLine="Return 'Si ya estamos \"rastreando\" no hacemos na"; -if (true) return ""; - }; -RDebugUtils.currentLine=73793542; - //BA.debugLineNum = 73793542;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) { -RDebugUtils.currentLine=73793543; - //BA.debugLineNum = 73793543;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"No permiss"; -if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { -anywheresoftware.b4a.keywords.Common.LogImpl("273793543","No permission",0);}; -RDebugUtils.currentLine=73793544; - //BA.debugLineNum = 73793544;BA.debugLine="Return"; -if (true) return ""; - }; -RDebugUtils.currentLine=73793546; - //BA.debugLineNum = 73793546;BA.debugLine="StartFLP 'Iniciamos FusedLocationProvider"; -_startflp(); -RDebugUtils.currentLine=73793547; - //BA.debugLineNum = 73793547;BA.debugLine="Tracking = True"; -_tracking = anywheresoftware.b4a.keywords.Common.True; -RDebugUtils.currentLine=73793548; - //BA.debugLineNum = 73793548;BA.debugLine="End Sub"; -return ""; -} public static void _startflp2reqs() throws Exception{ -RDebugUtils.currentModule="tracker"; -if (Debug.shouldDelegate(processBA, "startflp2reqs", false)) - {Debug.delegate(processBA, "startflp2reqs", null); return;} ResumableSub_StartFLP2Reqs rsub = new ResumableSub_StartFLP2Reqs(null); rsub.resume(processBA, null); } @@ -685,7 +497,6 @@ reparto_izca.keymon.lat.tracker parent; @Override public void resume(BA ba, Object[] result) throws Exception{ -RDebugUtils.currentModule="tracker"; while (true) { switch (state) { @@ -695,8 +506,7 @@ return; case 0: //C this.state = 1; -RDebugUtils.currentLine=73924609; - //BA.debugLineNum = 73924609;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"StartFLP -"; + //BA.debugLineNum = 108;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"StartFLP -"; if (true) break; case 1: @@ -709,15 +519,14 @@ this.state = 3; case 3: //C this.state = 6; -anywheresoftware.b4a.keywords.Common.LogImpl("273924609","StartFLP - flpStarted="+BA.ObjectToString(parent._flpstarted),0); +anywheresoftware.b4a.keywords.Common.LogImpl("038535169","StartFLP - flpStarted="+BA.ObjectToString(parent._flpstarted),0); if (true) break; case 6: //C this.state = 7; ; -RDebugUtils.currentLine=73924610; - //BA.debugLineNum = 73924610;BA.debugLine="Do While FLP.IsConnected = False"; + //BA.debugLineNum = 109;BA.debugLine="Do While FLP.IsConnected = False"; if (true) break; case 7: @@ -732,17 +541,15 @@ if (true) break; case 9: //C this.state = 10; -RDebugUtils.currentLine=73924611; - //BA.debugLineNum = 73924611;BA.debugLine="Sleep(500)"; -anywheresoftware.b4a.keywords.Common.Sleep(processBA,new anywheresoftware.b4a.shell.DebugResumableSub.DelegatableResumableSub(this, "tracker", "startflp2reqs"),(int) (500)); + //BA.debugLineNum = 110;BA.debugLine="Sleep(500)"; +anywheresoftware.b4a.keywords.Common.Sleep(processBA,this,(int) (500)); this.state = 29; return; case 29: //C this.state = 10; ; -RDebugUtils.currentLine=73924612; - //BA.debugLineNum = 73924612;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"sleeping G"; + //BA.debugLineNum = 111;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"sleeping G"; if (true) break; case 10: @@ -755,7 +562,7 @@ this.state = 12; case 12: //C this.state = 15; -anywheresoftware.b4a.keywords.Common.LogImpl("273924612","sleeping GR",0); +anywheresoftware.b4a.keywords.Common.LogImpl("038535172","sleeping GR",0); if (true) break; case 15: @@ -768,14 +575,11 @@ case 16: //C this.state = 17; ; -RDebugUtils.currentLine=73924614; - //BA.debugLineNum = 73924614;BA.debugLine="dameUltimaUbicacionConocida 'Regresamos ultima ub"; + //BA.debugLineNum = 113;BA.debugLine="dameUltimaUbicacionConocida 'Regresamos ultima ub"; _dameultimaubicacionconocida(); -RDebugUtils.currentLine=73924615; - //BA.debugLineNum = 73924615;BA.debugLine="FLP.RequestLocationUpdates(CreateLocationRequest2"; + //BA.debugLineNum = 114;BA.debugLine="FLP.RequestLocationUpdates(CreateLocationRequest2"; parent._flp.RequestLocationUpdates((com.google.android.gms.location.LocationRequest)(_createlocationrequest2times().getObject())); -RDebugUtils.currentLine=73924616; - //BA.debugLineNum = 73924616;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Buscamos ub"; + //BA.debugLineNum = 115;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Buscamos ub"; if (true) break; case 17: @@ -788,15 +592,14 @@ this.state = 19; case 19: //C this.state = 22; -anywheresoftware.b4a.keywords.Common.LogImpl("273924616","Buscamos ubicacion 2 peticiones",0); +anywheresoftware.b4a.keywords.Common.LogImpl("038535176","Buscamos ubicacion 2 peticiones",0); if (true) break; case 22: //C this.state = 23; ; -RDebugUtils.currentLine=73924617; - //BA.debugLineNum = 73924617;BA.debugLine="If B4XPages.MainPage.logger Then Log(actualLR.Get"; + //BA.debugLineNum = 116;BA.debugLine="If B4XPages.MainPage.logger Then Log(actualLR.Get"; if (true) break; case 23: @@ -809,19 +612,55 @@ this.state = 25; case 25: //C this.state = 28; -anywheresoftware.b4a.keywords.Common.LogImpl("273924617",BA.NumberToString(parent._actuallr.GetSmallestDisplacement()),0); +anywheresoftware.b4a.keywords.Common.LogImpl("038535177",BA.NumberToString(parent._actuallr.GetSmallestDisplacement()),0); if (true) break; case 28: //C this.state = -1; ; -RDebugUtils.currentLine=73924618; - //BA.debugLineNum = 73924618;BA.debugLine="End Sub"; + //BA.debugLineNum = 117;BA.debugLine="End Sub"; if (true) break; } } } } -} \ No newline at end of file +public static String _stopflp() throws Exception{ + //BA.debugLineNum = 154;BA.debugLine="Public Sub StopFLP"; + //BA.debugLineNum = 156;BA.debugLine="If flpStarted Then"; +if (_flpstarted) { + //BA.debugLineNum = 157;BA.debugLine="FLP.RemoveLocationUpdates 'Eliminamos todas las"; +_flp.RemoveLocationUpdates(); + //BA.debugLineNum = 158;BA.debugLine="flpStarted = False"; +_flpstarted = anywheresoftware.b4a.keywords.Common.False; + }; + //BA.debugLineNum = 160;BA.debugLine="End Sub"; +return ""; +} +public static String _track() throws Exception{ + //BA.debugLineNum = 78;BA.debugLine="Public Sub Track"; + //BA.debugLineNum = 79;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"Inicia Trac"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("038404097","Inicia Track - Tracking : "+BA.ObjectToString(_tracking),0);}; + //BA.debugLineNum = 80;BA.debugLine="If Tracking Then"; +if (_tracking) { + //BA.debugLineNum = 82;BA.debugLine="Return 'Si ya estamos \"rastreando\" no hacemos na"; +if (true) return ""; + }; + //BA.debugLineNum = 84;BA.debugLine="If Starter.rp.Check(Starter.rp.PERMISSION_ACCESS_"; +if (mostCurrent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .Check(mostCurrent._starter._rp /*anywheresoftware.b4a.objects.RuntimePermissions*/ .PERMISSION_ACCESS_FINE_LOCATION)==anywheresoftware.b4a.keywords.Common.False) { + //BA.debugLineNum = 85;BA.debugLine="If B4XPages.MainPage.logger Then Log(\"No permiss"; +if (mostCurrent._b4xpages._mainpage /*reparto_izca.keymon.lat.b4xmainpage*/ (processBA)._logger /*boolean*/ ) { +anywheresoftware.b4a.keywords.Common.LogImpl("038404103","No permission",0);}; + //BA.debugLineNum = 86;BA.debugLine="Return"; +if (true) return ""; + }; + //BA.debugLineNum = 88;BA.debugLine="StartFLP 'Iniciamos FusedLocationProvider"; +_startflp(); + //BA.debugLineNum = 89;BA.debugLine="Tracking = True"; +_tracking = anywheresoftware.b4a.keywords.Common.True; + //BA.debugLineNum = 90;BA.debugLine="End Sub"; +return ""; +} +} diff --git a/B4A/Objects/src/reparto_izca/keymon/lat/xuiviewsutils.java b/B4A/Objects/src/reparto_izca/keymon/lat/xuiviewsutils.java index e79dc01..5e5b2a7 100644 --- a/B4A/Objects/src/reparto_izca/keymon/lat/xuiviewsutils.java +++ b/B4A/Objects/src/reparto_izca/keymon/lat/xuiviewsutils.java @@ -10,8 +10,7 @@ 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 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; @@ -27,196 +26,134 @@ public reparto_izca.keymon.lat.newinst2 _newinst2 = null; public reparto_izca.keymon.lat.b4xpages _b4xpages = null; public reparto_izca.keymon.lat.b4xcollections _b4xcollections = null; public reparto_izca.keymon.lat.httputils2service _httputils2service = null; -public static String _performhapticfeedback(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.B4XViewWrapper _view) throws Exception{ -RDebugUtils.currentModule="xuiviewsutils"; -if (Debug.shouldDelegate(null, "performhapticfeedback", true)) - {return ((String) Debug.delegate(null, "performhapticfeedback", new Object[] {_ba,_view}));} -anywheresoftware.b4j.object.JavaObject _jo = null; -RDebugUtils.currentLine=65536000; - //BA.debugLineNum = 65536000;BA.debugLine="Public Sub PerformHapticFeedback (View As B4XView)"; -RDebugUtils.currentLine=65536001; - //BA.debugLineNum = 65536001;BA.debugLine="Initialize"; -_initialize(_ba); -RDebugUtils.currentLine=65536003; - //BA.debugLineNum = 65536003;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())); -RDebugUtils.currentLine=65536004; - //BA.debugLineNum = 65536004;BA.debugLine="jo.RunMethod(\"performHapticFeedback\", Array(1))"; -_jo.RunMethod("performHapticFeedback",new Object[]{(Object)(1)}); -RDebugUtils.currentLine=65536010; - //BA.debugLineNum = 65536010;BA.debugLine="End Sub"; -return ""; -} -public static String _settextorcsbuildertolabel(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.B4XViewWrapper _xlbl,Object _text) throws Exception{ -RDebugUtils.currentModule="xuiviewsutils"; -if (Debug.shouldDelegate(null, "settextorcsbuildertolabel", true)) - {return ((String) Debug.delegate(null, "settextorcsbuildertolabel", new Object[] {_ba,_xlbl,_text}));} -RDebugUtils.currentLine=65667072; - //BA.debugLineNum = 65667072;BA.debugLine="Public Sub SetTextOrCSBuilderToLabel(xlbl As B4XVi"; -RDebugUtils.currentLine=65667074; - //BA.debugLineNum = 65667074;BA.debugLine="xlbl.Text = Text"; -_xlbl.setText(BA.ObjectToCharSequence(_text)); -RDebugUtils.currentLine=65667084; - //BA.debugLineNum = 65667084;BA.debugLine="End Sub"; -return ""; -} public static String _addstubtoclvifneeded(anywheresoftware.b4a.BA _ba,b4a.example3.customlistview _customlistview1,int _color) throws Exception{ -RDebugUtils.currentModule="xuiviewsutils"; -if (Debug.shouldDelegate(null, "addstubtoclvifneeded", true)) - {return ((String) Debug.delegate(null, "addstubtoclvifneeded", new Object[] {_ba,_customlistview1,_color}));} b4a.example3.customlistview._clvitem _lastitem = null; anywheresoftware.b4a.objects.B4XViewWrapper _p = null; int _height = 0; -RDebugUtils.currentLine=65601536; - //BA.debugLineNum = 65601536;BA.debugLine="Public Sub AddStubToCLVIfNeeded(CustomListView1 As"; -RDebugUtils.currentLine=65601537; - //BA.debugLineNum = 65601537;BA.debugLine="If CustomListView1.Size = 0 Then Return"; + //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 "";}; -RDebugUtils.currentLine=65601538; - //BA.debugLineNum = 65601538;BA.debugLine="Dim LastItem As CLVItem = CustomListView1.GetRawL"; + //BA.debugLineNum = 36;BA.debugLine="Dim LastItem As CLVItem = CustomListView1.GetRawL"; _lastitem = _customlistview1._getrawlistitem((int) (_customlistview1._getsize()-1)); -RDebugUtils.currentLine=65601539; - //BA.debugLineNum = 65601539;BA.debugLine="If LastItem.Offset + LastItem.Panel.Height < Cust"; + //BA.debugLineNum = 37;BA.debugLine="If LastItem.Offset + LastItem.Panel.Height < Cust"; if (_lastitem.Offset+_lastitem.Panel.getHeight()<_customlistview1._asview().getHeight()) { -RDebugUtils.currentLine=65601541; - //BA.debugLineNum = 65601541;BA.debugLine="Dim p As B4XView = xui.CreatePanel(\"stub\")"; + //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"); -RDebugUtils.currentLine=65601542; - //BA.debugLineNum = 65601542;BA.debugLine="p.Color = Color"; + //BA.debugLineNum = 40;BA.debugLine="p.Color = Color"; _p.setColor(_color); -RDebugUtils.currentLine=65601543; - //BA.debugLineNum = 65601543;BA.debugLine="Dim Height As Int = CustomListView1.AsView.Heigh"; + //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))); -RDebugUtils.currentLine=65601544; - //BA.debugLineNum = 65601544;BA.debugLine="If xui.IsB4J Then Height = Height + 5"; + //BA.debugLineNum = 42;BA.debugLine="If xui.IsB4J Then Height = Height + 5"; if (_xui.getIsB4J()) { _height = (int) (_height+5);}; -RDebugUtils.currentLine=65601545; - //BA.debugLineNum = 65601545;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, CustomListView1.AsV"; + //BA.debugLineNum = 43;BA.debugLine="p.SetLayoutAnimated(0, 0, 0, CustomListView1.AsV"; _p.SetLayoutAnimated((int) (0),(int) (0),(int) (0),_customlistview1._asview().getWidth(),_height); -RDebugUtils.currentLine=65601546; - //BA.debugLineNum = 65601546;BA.debugLine="CustomListView1.Add(p, \"\")"; + //BA.debugLineNum = 44;BA.debugLine="CustomListView1.Add(p, \"\")"; _customlistview1._add(_p,(Object)("")); -RDebugUtils.currentLine=65601547; - //BA.debugLineNum = 65601547;BA.debugLine="CustomListView1.sv.ScrollViewContentHeight = Cus"; + //BA.debugLineNum = 45;BA.debugLine="CustomListView1.sv.ScrollViewContentHeight = Cus"; _customlistview1._sv.setScrollViewContentHeight((int) (_customlistview1._sv.getScrollViewContentHeight()-_customlistview1._getdividersize())); }; -RDebugUtils.currentLine=65601549; - //BA.debugLineNum = 65601549;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{ -RDebugUtils.currentModule="xuiviewsutils"; -if (Debug.shouldDelegate(null, "setbitmapandfill", true)) - {return ((String) Debug.delegate(null, "setbitmapandfill", new Object[] {_ba,_imageview,_bmp}));} -anywheresoftware.b4a.objects.ImageViewWrapper _iiv = null; -RDebugUtils.currentLine=65732608; - //BA.debugLineNum = 65732608;BA.debugLine="Public Sub SetBitmapAndFill (ImageView As B4XView,"; -RDebugUtils.currentLine=65732609; - //BA.debugLineNum = 65732609;BA.debugLine="ImageView.SetBitmap(Bmp)"; -_imageview.SetBitmap((android.graphics.Bitmap)(_bmp.getObject())); -RDebugUtils.currentLine=65732610; - //BA.debugLineNum = 65732610;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())); -RDebugUtils.currentLine=65732612; - //BA.debugLineNum = 65732612;BA.debugLine="iiv.Gravity = Gravity.FILL"; -_iiv.setGravity(anywheresoftware.b4a.keywords.Common.Gravity.FILL); -RDebugUtils.currentLine=65732618; - //BA.debugLineNum = 65732618;BA.debugLine="End Sub"; -return ""; -} -public static String _setalpha(anywheresoftware.b4a.BA _ba,anywheresoftware.b4a.objects.B4XViewWrapper _view,float _level) throws Exception{ -RDebugUtils.currentModule="xuiviewsutils"; -if (Debug.shouldDelegate(null, "setalpha", true)) - {return ((String) Debug.delegate(null, "setalpha", new Object[] {_ba,_view,_level}));} -anywheresoftware.b4j.object.JavaObject _jo = null; -float _alpha = 0f; -RDebugUtils.currentLine=65929216; - //BA.debugLineNum = 65929216;BA.debugLine="Public Sub SetAlpha (View As B4XView, Level As Flo"; -RDebugUtils.currentLine=65929218; - //BA.debugLineNum = 65929218;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())); -RDebugUtils.currentLine=65929219; - //BA.debugLineNum = 65929219;BA.debugLine="Dim alpha As Float = Level"; -_alpha = _level; -RDebugUtils.currentLine=65929220; - //BA.debugLineNum = 65929220;BA.debugLine="jo.RunMethod(\"setAlpha\", Array(alpha))"; -_jo.RunMethod("setAlpha",new Object[]{(Object)(_alpha)}); -RDebugUtils.currentLine=65929228; - //BA.debugLineNum = 65929228;BA.debugLine="End Sub"; + //BA.debugLineNum = 47;BA.debugLine="End Sub"; return ""; } public static reparto_izca.keymon.lat.b4ximageview _createb4ximageview(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="xuiviewsutils"; -if (Debug.shouldDelegate(null, "createb4ximageview", true)) - {return ((reparto_izca.keymon.lat.b4ximageview) Debug.delegate(null, "createb4ximageview", new Object[] {_ba}));} reparto_izca.keymon.lat.b4ximageview _iv = null; anywheresoftware.b4a.objects.B4XViewWrapper _base = null; -RDebugUtils.currentLine=65863680; - //BA.debugLineNum = 65863680;BA.debugLine="Public Sub CreateB4XImageView As B4XImageView"; -RDebugUtils.currentLine=65863681; - //BA.debugLineNum = 65863681;BA.debugLine="Dim iv As B4XImageView"; + //BA.debugLineNum = 85;BA.debugLine="Public Sub CreateB4XImageView As B4XImageView"; + //BA.debugLineNum = 86;BA.debugLine="Dim iv As B4XImageView"; _iv = new reparto_izca.keymon.lat.b4ximageview(); -RDebugUtils.currentLine=65863682; - //BA.debugLineNum = 65863682;BA.debugLine="iv.Initialize(Null, \"\")"; -_iv._initialize /*String*/ (null,_ba,anywheresoftware.b4a.keywords.Common.Null,""); -RDebugUtils.currentLine=65863683; - //BA.debugLineNum = 65863683;BA.debugLine="Dim base As B4XView = xui.CreatePanel(\"\")"; + //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),""); -RDebugUtils.currentLine=65863684; - //BA.debugLineNum = 65863684;BA.debugLine="base.SetLayoutAnimated(0, 0, 0, 100dip, 100dip)"; + //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))); -RDebugUtils.currentLine=65863685; - //BA.debugLineNum = 65863685;BA.debugLine="iv.DesignerCreateView(base, Null, CreateMap(\"Roun"; -_iv._designercreateview /*String*/ (null,(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)})); -RDebugUtils.currentLine=65863686; - //BA.debugLineNum = 65863686;BA.debugLine="Return iv"; + //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; -RDebugUtils.currentLine=65863687; - //BA.debugLineNum = 65863687;BA.debugLine="End Sub"; + //BA.debugLineNum = 92;BA.debugLine="End Sub"; return null; } public static anywheresoftware.b4a.objects.B4XViewWrapper _createlabel(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="xuiviewsutils"; -if (Debug.shouldDelegate(null, "createlabel", true)) - {return ((anywheresoftware.b4a.objects.B4XViewWrapper) Debug.delegate(null, "createlabel", new Object[] {_ba}));} anywheresoftware.b4a.objects.LabelWrapper _lbl = null; -RDebugUtils.currentLine=65798144; - //BA.debugLineNum = 65798144;BA.debugLine="Public Sub CreateLabel As B4XView"; -RDebugUtils.currentLine=65798145; - //BA.debugLineNum = 65798145;BA.debugLine="Dim lbl As Label"; + //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(); -RDebugUtils.currentLine=65798146; - //BA.debugLineNum = 65798146;BA.debugLine="lbl.Initialize(\"\")"; + //BA.debugLineNum = 80;BA.debugLine="lbl.Initialize(\"\")"; _lbl.Initialize(_ba,""); -RDebugUtils.currentLine=65798147; - //BA.debugLineNum = 65798147;BA.debugLine="Return lbl"; + //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())); -RDebugUtils.currentLine=65798148; - //BA.debugLineNum = 65798148;BA.debugLine="End Sub"; + //BA.debugLineNum = 82;BA.debugLine="End Sub"; return null; } public static String _initialize(anywheresoftware.b4a.BA _ba) throws Exception{ -RDebugUtils.currentModule="xuiviewsutils"; -if (Debug.shouldDelegate(null, "initialize", true)) - {return ((String) Debug.delegate(null, "initialize", new Object[] {_ba}));} -RDebugUtils.currentLine=65470464; - //BA.debugLineNum = 65470464;BA.debugLine="Private Sub Initialize"; -RDebugUtils.currentLine=65470465; - //BA.debugLineNum = 65470465;BA.debugLine="If UtilsInitialized Then Return"; + //BA.debugLineNum = 10;BA.debugLine="Private Sub Initialize"; + //BA.debugLineNum = 11;BA.debugLine="If UtilsInitialized Then Return"; if (_utilsinitialized) { if (true) return "";}; -RDebugUtils.currentLine=65470466; - //BA.debugLineNum = 65470466;BA.debugLine="UtilsInitialized = True"; + //BA.debugLineNum = 12;BA.debugLine="UtilsInitialized = True"; _utilsinitialized = anywheresoftware.b4a.keywords.Common.True; -RDebugUtils.currentLine=65470473; - //BA.debugLineNum = 65470473;BA.debugLine="End Sub"; + //BA.debugLineNum = 19;BA.debugLine="End Sub"; return ""; } -} \ No newline at end of file +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 ""; +} +}